Rate this page:

SmartQueueTask

Methods

addEventListener

Copy URL
addEventListener(event: 

SmartQueueEvents

,
callback:

Function

):

void

Subscribes to an event.

Parameters

Returns

  • type:

    void

end

Copy URL
end(description: 

string

):

void

Ends the activity.

Parameters

  • description:

    string

Returns

  • type:

    void

removeEventListener

Copy URL
removeEventListener(event: 

SmartQueueEvents

,
callback:

any

):

void

Removes event subscription.

Parameters

Returns

  • type:

    void

transfer

Copy URL
transfer(operator: 

string

):

Promise<void>

Transfers the activity to another operator.

Parameters

  • operator:

    string

Returns

  • type:

    Promise<void>

Props

id

Copy URL
id: 

string

A SmartQueue activity's ID.

operatorCall

Copy URL
operatorCall: 

Call

|

null

The operator's Call object.

settings

Copy URL
settings: 

SmartQueueTaskSettings

A SmartQueue activity's settings.

status

Copy URL
status: 

SmartQueueTaskStatus

The status of the SmartQueue activity.

taskCall

Copy URL
taskCall: 

Call

The activity's Call object.

terminationStatus

Copy URL
terminationStatus: 

SmartQueueEndStatus

|

null

The result of the SmartQueue activity.