.getDepartments()
This API allows you to programmatically get a list of all departments that have been associated with the brand in which Mobilisten is configured.
Properties
| Property | Data type | Description |
| id | String | The 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 codes
| Code | Description |
| 500 | Mobilisten not initialized |
| 605 | Mobilisten disabled |
Callbacks
| Name | Description |
| error | 'Error' is returned if an error occurs while using the API. The list of possible error codes is mentioned in the table above. |
| departments | List of all the departments that have been associated with the brand in which Mobilisten is configured. |