.chat.transferchat()
This event handler will be invoked right after an operator transfers a picked up chat request.
PARAMETERS
- visitid: Unique ID generated for the chat.
- data: Visitor information.
- currentuser: Name of the operator who transfers the chat.
- transfertype: Chat transfer type, i.e., the chat is transferred to an operator or a department.
- transfername: Name of the operator/department to which the chat is being transferred.
- visitid: Unique ID generated for the chat.
Syntax
Copied$zoho.salesiq.chat.transferchat(function(visitid,data){});
"visitid" : "","data" :
{
"currentuser" : "<name of the user transfering the chat>",
"transfertype" : "<chat transfer type (user/Department)>",
"transfername" : "<name of the user/depatment the chat is being transfered>",
"visitid" : "<visitor id>"
}
Example
Copied<script>
$zoho.salesiq.ready=function()
{
$zoho.salesiq.chat.transferchat(function(visitid,data)
{
TrackinMyApplication(data.currentuser,data.transfertype,data.transfername,data.visitid);
});
}
</script>