Rate this page:

SmartQueueEvents

Add the following line to your scenario code to use the events:

require(Modules.SmartQueue);

Constants

ClientDisconnected

Copy URL

The client disconnected.

When you process the ClientDisconnected event, call the e.cancel() method inside the event manually to cancel the task.

Parameters

  • cancel:

    Cancels the pending request and removes it from the queue

  • A SmartQueue task

EnqueueSuccess

Copy URL

The task has been enqueued successfully.

Parameters

Error

Copy URL

An error occurred.

Parameters

OperatorReached

Copy URL

An agent connected to the task.

Parameters

TaskCanceled

Copy URL

The task is cancelled.

Parameters

TaskDistributed

Copy URL

SmartQueue starts the task distribution.

Parameters

  • operatorId:

    number

    The ID of the task's responsible agent

  • operatorName:

    string

    The name of the task's responsible agent

  • A SmartQueue task

Waiting

Copy URL

The task is waiting for an agent.

Parameters

  • The task's waiting code

  • ewt:

    number

    Estimated time of agent's response in milliseconds

  • message:

    string

    The task's waiting status

  • position:

    number

    The task's position in the queue

  • A SmartQueue task