.chat.attend()
This event handler allows you to invoke a method right after an operator picks up an incoming chat.
PARAMETERS
visitid: Unique ID generated for the chat.
data: Operator information.
attendername: The name of the operator who picks up the chat.
attenderemail: The email address of the operator who picks up the chat.
Syntax
Copied$zoho.salesiq.chat.attend(function(visitid,data){});
"visitid" : "<Visitor id>","data" :
{
"attendername" : "<Agent name>",
"attenderemail" : "<Agent email address>",
"visitid" : "<Visitor id>"
}
Example
Copied<script>
$zoho.salesiq.ready=function()
{
$zoho.salesiq.chat.attend(function(visitid,data)
{
TrackinMyApplication(data.attendername, data.attenderemail, data.visitid);
});
}
</script>