From Bright Pattern Documentation
(Created page with "<translate> = getAgentNotReadyReasons = Gets list of available reasons for an agent's “not ready” state. == Request == === Syntax === {| class="wikitable" |getAgentNotR...") |
(No difference)
|
Latest revision as of 13:38, 16 September 2022
• 5.19
getAgentNotReadyReasons
Gets list of available reasons for an agent's “not ready” state.
Request
Syntax
getAgentNotReadyReasons(): Promise<OperationResult<string[]>> |
Parameters
(None)
Example Request
getAgentNotReadyReasonsButton.onclick = async () => {
const result = await adApi.getAgentNotReadyReasons();
}
Return Value
Object | Object Values | Data Type | Optional?
(Y/N) |
Return Value Description |
Strings Array | List of configured in the Call Center available not ready reasons for the current agent. They are required for the API method “setAgentState” when you would set an agent in the “not_ready” state. |