setAgentStatus
Set status information for the rep.
setAgentStatus(agentStatus, statusInfo, enqueueNextState) → Promise.<GenericResult>
Returns: GenericResult — Represents a generic result type for a Connector API function.
| Field | Type | Description |
|---|---|---|
| agentStatus | string | The rep status, as configured in Salesforce. |
| statusInfo | object | Additional information about the rep status. |
| enqueueNextState | boolean | Indicates whether the state should be enqueued, which updates the rep’s status after a call ends. Defaults to false. |