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.

FieldTypeDescription
configobjectRep configuration info.
config.hasMutebooleanIndicates whether mute is supported.
config.hasRecordbooleanIndicates whether recording is supported.
config.hasMergebooleanIndicates whether merge is supported.
config.hasSwapbooleanIndicates whether swap is supported.
config.phonesArray<string>Optional. Supported phone types. Phone type value can be “SOFT_PHONE” or “DESK_PHONE”.
config.selectedPhonestringSelected phone type. Phone type value can be “SOFT_PHONE” or “DESK_PHONE”.
config.supportsMosbooleanIndicates whether Mean Opinion Score (MOS) is supported.
config.hidDeviceInfoHidDeviceOptional. Information about the selected HID device (such as headset) for the user.