API Docs for:
Show:

queue_recalling_manager Class

Module: astproxy

Provides the support to check if a user is still recalling a number that is an entry into the queue recall table of the call center phone bar service.

Methods

analizeQueueRecallingStatus

(
  • results
  • num
  • cb
)
private

Analize the channel list to understand if the number has already in a conversation.

Parameters:

  • results Object

    The channel list

  • num String

    The number to be checked for the presence in the list

  • cb Function

    The callback function

checkQueueRecallingStatus

(
  • num
  • cb
)

Request the list of the asterisk channels to be analized to understand if the number has already in a conversation.

Parameters:

  • num String

    The number to be checked for the call

  • cb Function

    The callback function

getQueueRecallData

(
  • hours
  • queues
  • cb
)

Returns the recall data about the queue.

Parameters:

  • hours String

    The amount of hours of the current day to be searched

  • queues Array

    The queue identifiers

  • cb Function

    The callback function

getQueueRecallInfo

(
  • hours
  • cid
  • qid
  • cb
)

Returns the details about the queue recall of the caller id.

Parameters:

  • hours String

    The amount of hours of the current day to be searched

  • cid String

    The caller identifier

  • qid String

    The queue identifier

  • cb Function

    The callback function

setCompAstProxy

(
  • comp
)

Sets the asterisk proxy component.

Parameters:

  • comp Object

    The asterisk proxy component.

setCompDbconn

(
  • comp
)

Sets the database architect component.

Parameters:

  • comp Object

    The database architect component.

setLogger

(
  • log
)
static

Sets the logger to be used.

Parameters:

  • log Object

    The logger object. It must have at least three methods: info, warn and error as console object.

Properties

compAstProxy

Object private

The asterisk component.

compDbconn

Object private

The database component.

IDLOG

String private final

The module identifier used by the logger.

Default: [queue_recalling_manager]

logger

Object private

The logger. It must have at least three methods: info, warn and error.

Default: console