Class FaxContext
Constructor Attributes | Constructor Name and Description |
---|---|
FaxContext(agtCommands)
Manager for the Fax context.
|
Field Attributes | Field Name and Description |
---|---|
- list of ContextActionAllowed for this context
|
|
- current state of this context.
|
|
- detail of the current state.
|
|
- textual representation for the ContextState
|
|
- time of the last context state change
|
|
- number of chat in the agent personal queue.
|
|
- number of chat in the agent primary queue.
|
|
- list of CQueue available on this context.
|
|
- number of chat in the agent secondary queue.
|
|
- list of ContextSectionsAllowed available on the context.
|
|
- list of FaxSession running for this context.
|
Method Attributes | Method Name and Description |
---|---|
ActionIsReady(action)
Used to know if an action is authorized on the context
|
|
Request to get the list of callbacks for the current hour on the context.
|
|
GetSession(sessionId)
Return the running session with the given id
|
|
Request the search mode on the context.
|
|
StartListeningQueueForProductionStatistics(queueId, group_filter, activeQueueFilter)
Request to start receiving the production statistics informations on the context.
|
|
Request to stop receiving the production statistics informations on the context
|
Class Detail
FaxContext(agtCommands)
Manager for the Fax context. Instanciate by the AgentLinkClass object.
- Parameters:
- agtCommands
Field Detail
{COMArray}
ActionsAllowed
- list of ContextActionAllowed for this context
{ContextStates}
ContextState
- current state of this context.
{number}
ContextStateDetail
- detail of the current state. Enum to use depends of the ContextState.
{string}
ContextStateLabel
- textual representation for the ContextState
{number}
ContextStateTime
- time of the last context state change
{number}
PersonalQueueSize
- number of chat in the agent personal queue.
{number}
PrimaryQueueSize
- number of chat in the agent primary queue.
{COMArray}
Queues
- list of CQueue available on this context.
{number}
SecondaryQueueSize
- number of chat in the agent secondary queue.
{COMArray}
SectionsAllowed
- list of ContextSectionsAllowed available on the context.
{COMArray}
Sessions
- list of FaxSession running for this context.
Method Detail
ActionIsReady(action)
Used to know if an action is authorized on the context
if (agentlink.Fax.ActionIsReady(ContextActionAllowed.EnableContext)) { //agent can start the fax context }
- Parameters:
- {ContextActionAllowed} action
- - The action to test
- Returns:
- true if the action is currently authorized
CountNextCallbacks()
Request to get the list of callbacks for the current hour on the context.
Will fire the "OnCountCallbacksComplete" event.
Will fire the "OnCountCallbacksComplete" event.
{FaxSession}
GetSession(sessionId)
Return the running session with the given id
- Parameters:
- {string} sessionId
- - id of the fax session to retrieve
- Returns:
- {FaxSession} . Return null if the id is not found on active sessions list
RequestSearchMode()
Request the search mode on the context.
Before calling this function, verify the right ContextActionAllowed.RequestSearchMode
Before calling this function, verify the right ContextActionAllowed.RequestSearchMode
StartListeningQueueForProductionStatistics(queueId, group_filter, activeQueueFilter)
Request to start receiving the production statistics informations on the context.
Will fire the event "OnSupervisionDatasReceived".
Will fire the event "OnSupervisionDatasReceived".
- Parameters:
- {number} queueId
- - queue id to monitor. "0" to monitor all queues for this context
- {string} group_filter
- - "true" to filter on agent supervising group, "false" to not filter statistics on supervising group
- {string} activeQueueFilter
- - "true" to filter on active queue, "false" to not filter statistics on active queues
StopListeningForProductionStatistics()
Request to stop receiving the production statistics informations on the context