Class MailContext
Constructor Attributes | Constructor Name and Description |
---|---|
MailContext(agtCommands)
Manager for the Email 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 MailSession 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
|
|
IgnoreMessages(messagesArray)
Used to ignore a list of email.
|
|
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
MailContext(agtCommands)
Manager for the Email 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 MailSession running for this context.
Method Detail
ActionIsReady(action)
Used to know if an action is authorized on the context
if (agentlink.Mail.ActionIsReady(ContextActionAllowed.EnableContext)) { //agent can start the email 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.
{MailSession}
GetSession(sessionId)
Return the running session with the given id
- Parameters:
- {string} sessionId
- - id of the Email session to retrieve
- Returns:
- {MailSession} . Return null if the id is not found on active sessions list
IgnoreMessages(messagesArray)
Used to ignore a list of email.
They will be qualified automaticaly with the 102 code
- Parameters:
- messagesArray
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