Chat.setDepartment()

This API lets you set a default department to which you would like to route all the chat requests placed by the visitors.

Note: If you opt to use this API the department field in the pre-chat window will automatically be hidden. 

Syntax:

CopiedZohoSalesIQ.Chat.setDepartment(String departmentName)

Example:

CopiedZohoSalesIQ.Chat.setDepartment("ZylkerSales")