ACDRequest
Represents request that is put to the ACD queue. Add the following line to your scenario code to use the class:
require(Modules.ACD);
Methods
addEventListener
addEventListener(event: , handler: Function
): void
Adds handler for specific event generated by ACD request
Parameters
event:
Event class (i.e., ACDEvents.Offline)
handler:
Function
Handler function. A single parameter is passed - object with event information
Returns
type:
void
cancel
cancel(): void
Cancel pending request and remove it from queue
Returns
type:
void
getStatus
getStatus(): void
Gets status of the current request. Mustn't be called before the request is successfully queued (the ACDEvents.Queued event). This method's call triggers the ACDEvents.Waiting event; it is possible to retrieve an estimated wait time in minutes via the ewt property of the event.
Returns
type:
void
id
id(): string
Returns request id. It can be used as the acd_request_id parameter in the GetACDHistory method to search in ACD history.
Returns
type:
string
removeEventListener
removeEventListener(event: , handler: Function
): void
Removes handler for specific event generated by ACD request
Parameters
event:
Event class (i.e., ACDEvents.Offline)
handler:
Function
OptionalHandler function. If not specified, all event listeners are removed
Returns
type:
void