SmartQueueTask
Methods
addEventListener
addEventListener(event: , callback: Function
): void
Adds a handler for the specified SmartQueueEvents event. Use only functions as handlers; anything except a function leads to the error and scenario termination when a handler is called
Parameters
event:
Event class (i.e., SmartQueueEvents.OperatorReached)
callback:
Function
Handler function. A single parameter is passed - object with event information
Returns
type:
void
end
end(description: string
): void
Ends the current activity.
Parameters
description:
string
Returns
type:
void
removeEventListener
removeEventListener(event: , callback: Function
): void
Removes a handler for the specified SmartQueueEvents event
Parameters
event:
Event class (i.e., SmartQueueEvents.OperatorReached)
callback:
Function
OptionalHandler function. If not specified, all event listeners are removed
Returns
type:
void
Props
id
id: string
A Smart queue activity's ID.
settings
settings:
Specifies the smart queue activity's settings, such as required skills, priority, queue and more.
status
status:
Specifies the current status of the activity, whether it is distributing, connecting, connected, ended or failed.
terminationStatus
terminationStatus: | null
Specifies the reason of activity's termination.