From Bright Pattern Documentation
• 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. |