Index

Classes


Class SocialNetworkContext

Class Summary
Constructor Attributes Constructor Name and Description
 
SocialNetworkContext(agtCommands)
Manager for the Social network context.
Field Summary
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 SocialNetworkSession running for this context.
Method Summary
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 messages.
 
Request the search mode on the context.
 
When the context start, the agent has to choose between search mode or take a feed.
 
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
SocialNetworkContext(agtCommands)
Manager for the Social network 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 SocialNetworkSession running for this context.
Method Detail
ActionIsReady(action)
Used to know if an action is authorized on the context
    if (agentlink.SocialNetwork.ActionIsReady(ContextActionAllowed.EnableContext)) {
        //agent can start the socialnetwork 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.

{SocialNetworkSession} GetSession(sessionId)
Return the running session with the given id
Parameters:
{string} sessionId
- id of the socialnetwork session to retrieve
Returns:
{SocialNetworkSession} . Return null if the id is not found on active sessions list

IgnoreMessages(messagesArray)
Used to ignore a list of messages. 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

RequestWaiting()
When the context start, the agent has to choose between search mode or take a feed. Call this method to take a feed

StartListeningQueueForProductionStatistics(queueId, group_filter, activeQueueFilter)
Request to start receiving the production statistics informations on the context.
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

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Nov 05 2014 12:49:33 GMT+0100 (CET)