setAgentConfig
Set configuration information for the rep. Examples of when this method is called include when the Omni-Channel widget loads and when the user saves their Omni-Channel widget settings.
setAgentConfig(config) → Promise.<SetAgentConfigResult>
Returns: SetAgentConfigResult — Represents the result for the setAgentConfig() function.
Parameter values can be undefined or null.
| Field | Type | Description |
|---|---|---|
| config | object | Rep configuration info. |
| config.hasMute | boolean | Indicates whether mute is supported. |
| config.hasRecord | boolean | Indicates whether recording is supported. |
| config.hasMerge | boolean | Indicates whether merge is supported. |
| config.hasSwap | boolean | Indicates whether swap is supported. |
| config.phones | Array<string> | Optional. Supported phone types. Phone type value can be “SOFT_PHONE” or “DESK_PHONE”. |
| config.selectedPhone | string | Selected phone type. Phone type value can be “SOFT_PHONE” or “DESK_PHONE”. |
| config.supportsMos | boolean | Indicates whether Mean Opinion Score (MOS) is supported. |
| config.hidDeviceInfo | HidDevice | Optional. Information about the selected HID device (such as headset) for the user. |