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

PropertyData typeDescription
idStringID of the department
nameStringName of the department
availableBoolCurrent availability of the department based on operator availability and business hours.

Error Handling

CodeDescription
500Mobilisten not initialized
605Mobilisten disabled

 

Usage

CopiedZohoSalesIQ.Chat.getDepartments { (error, departments) in
	// your code goes here
}