From Bright Pattern Documentation
(Created page with "<translate> = getServicesList = Returns an array of available services, which may be selected for outgoing interactions. == Request == === Syntax === {| class="wikitable" |...") |
(No difference)
|
Revision as of 13:40, 16 September 2022
• 5.19
<translate>
getServicesList
Returns an array of available services, which may be selected for outgoing interactions.
Request
Syntax
getServicesList(): Promise<OperationResult<ServiceData[]>> |
Where:
type ServiceData = {
id: string name: string useDispositions: boolean requireDisposition: boolean } |
Parameters
(None)
Example Request
getServicesListButton.onclick = () => {
adApi.getServicesList()
}
Return Value
Object | Object Values | Data Type | Optional?
(Y/N) |
Value Description |
ServiceData | ||||
id | String | N | The service’s unique ID | |
name | String | N | The service’s display name | |
useDispositions | Boolean | N | Returns true if the Use dispositions setting is enabled in the Contact Center Administrator application; returns false if the setting is not enabled | |
requireDispositions | Boolean | N | Returns true if the Require dispositions setting is enabled in the Contact Center Administrator application; returns false if the setting is not enabled |
</translate>