Chat.getDepartments()
This API allows you to programmatically get a list of all the departments that have been associated with the brand in which Mobilisten is configured.
The API provides an array of instances of the SIQDepartment class to represent the list of departments asynchronously.
The SIQDepartment class comprises the following properties
Property | Data type | Description |
id | String | ID of the department |
name | String | Name of the department |
available | Bool | Current availability of the department based on operator availability and business hours. |
Error Handling
Code | Description |
500 | Mobilisten not initialized |
605 | Mobilisten disabled |
Usage
CopiedZohoSalesIQ.Chat.getDepartments { (error, departments) in
// your code goes here
}