Methods
downloadLogs(logs)
Triggers a browser download for Vendor Logs
Parameters:
| Name | Type | Description |
|---|---|---|
logs |
Array.<String> | Array of log messages. |
getAgentStatus() → {Promise.<AgentStatusInfo>}
Get agent status
Returns:
- Type
- Promise.<AgentStatusInfo>
getTelephonyConnector() → {Promise.<TelephonyConnector>}
Gets the telephonyConnector
Returns:
- Type
- Promise.<TelephonyConnector>
handleMessage(message)
Handle message from LWC/Aura component
Parameters:
| Name | Type | Description |
|---|---|---|
message |
object |
init(connectorConfig) → {Promise.<InitResult>}
Initialize the connector
Parameters:
| Name | Type | Description |
|---|---|---|
connectorConfig |
object |
Returns:
- Type
- Promise.<InitResult>
logMessageToVendor(logLevel, message, payload)
Sends the logs with a logLevel and payload to the vendor connector.
Does a no-op, if not implemented.
Parameters:
| Name | Type | Description |
|---|---|---|
logLevel |
String | Log Level (INFO, WARN, ERROR) |
message |
String | Message to be logged |
payload |
Object | An optional payload to be logged |
logout() → {Promise.<LogoutResult>}
Logout from Omni
Returns:
- Type
- Promise.<LogoutResult>
onAgentWorkEvent(agentWork)
Sends non-voice agent work events to vendor such as work accepted, declined, etc
Parameters:
| Name | Type | Description |
|---|---|---|
agentWork |
AgentWork |
setAgentStatus(agentStatus, statusInfo, enqueueNextState) → {Promise.<GenericResult>}
Set agent status
Parameters:
| Name | Type | Description |
|---|---|---|
agentStatus |
string | |
statusInfo |
StatusInfo | |
enqueueNextState |
Boolean | flag to determine if this status change request should be enqueued if neccessary |
Returns:
- Type
- Promise.<GenericResult>