Members
(static) customer :VivochaCustomer
VivochaCustomer object.
Type:
(static) history :VivochaHistory
VivochaHistory object.
Type:
(static) $
(static) customer :VivochaCustomer
VivochaCustomer object.
Type:
(static) history :VivochaHistory
VivochaHistory object.
Type:
Methods
getConsole(id)
This function, will return the VivochaEmbeddedConsole starting from the Contact id.
Parameters:
Name | Type | Description |
---|---|---|
id |
string | Contact id for which you want to open a dedicated Console. |
Returns:
openConsole(cid, token, containeropt) → {Promise}
This function, resolving the returned Promise, signals that the Vivocha Embedded Console is fully loaded, initialized and ready to be used.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
cid |
string | Contact id for which you want to open a dedicated Console. |
|
token |
string | Embedded console token URL to open the dedicated Console. |
|
container |
string |
<optional> |
DOM Element in which you want to append the Embedded console iframe (if not specified the iframe will be appended to the body element). |
Returns:
Resolves to an VivochaEmbeddedConsole when the Console is loaded.
- Type
- Promise
updateDeltaLoad(update, pauseChanged)
Updates the Vivocha servers with the current load of the agent. Vivocha calculates the load automatically whenever a change is detected on the Vivocha managed media. Call this method only if change in load is caused by events outside of the Vivocha scope, for instance if the agent is using a physical phone to place a direct call.
Parameters:
Name | Type | Description |
---|---|---|
update |
VivochaAgentChannel~AgentLoad | The agent load object to send to te server |
pauseChanged |
boolean | If |