Jump to: navigation, search

模板函数库

知道如何使用公式后,您可以使用此函数库进行参考以创建其他自定义内容。


以下是 Genesys Pulse 标准模板的函数库,在 Genesys Pulse 发行版 8.5.102.02 中自动生成。

GetAgentNonVoiceStatus(state, media) → {string}

获取语音之外的媒体的座席状态名称。

参数:

名称类型说明
state AgentCurrentState 座席的当前状态(通常为相应统计项的)。
media string 媒体名称。

返回:

状态名称(如果 state and media 可用)、空字符串(如果给定媒体的相关信息在给定的当前状态下不可用)、null(如果 state 为 null 或不是座席状态,或者 media 为 null 而不是指定值或空。

Type = string

GetAgentVoiceStatus(state) → {string}

获取语音媒体的座席状态名称。

参数:

名称类型说明
state AgentCurrentState 座席的当前状态(通常为相应统计项的)。

返回:

状态名称(如果 state 可用),null(如果 state 为空而不是座席状态)。

Type = string

GetANI(state, switchID) → {string}

获取处于给定座席状态的第一个可用的 ANI 属性。

参数:

名称类型自变量说明
state AgentCurrentState   座席的当前状态(通常为相应统计项的)。
switchID string <optional> 用于限制搜索的可选交换机名称。

返回:

ANI 值(如果找到)、空字符串(如果未找到)、null(如果 state 为 null 而不是座席状态。

Type = string

GetBusinessResult(state)

获取"业务结果"用户数据值。

参数:

名称类型说明
state AgentCurrentState 座席的当前状态(通常为相应统计项的)。

返回:

业务结果值(如果可用)、空字符串(如果所需用户数据不可用)、null(如果 state 为 null 或者不是座席状态)。

GetCustomerSegment(state)

获取 "CustomerSegment" 用户数据值。

参数:

名称类型说明
state AgentCurrentState 座席的当前状态(通常为相应统计项的)。

返回:

CustomerSegment 值(如果可用)、空字符串(如果所需用户数据不可用)、null(如果 state 为 null 或者不是座席状态)。

GetDNIS(state, switchID) → {string}

获取处于给定座席状态的第一个可用的 DNIS 属性。

参数:

名称类型自变量说明
state AgentCurrentState   座席的当前状态(通常为相应统计项的)。
switchID string <optional> 用于限制搜索的可选交换机名称。

返回:

DNIS 值(如果找到)、空字符串(如果未找到)、null(如果 state 为 null 而不是座席状态。

Type = string

GetEmployeeId(state) → {string}

获取在给定座席状态下指定的座席员工 ID。

参数:

名称类型说明
state AgentCurrentState 座席的当前状态(通常为相应统计项的

返回:

座席的员工 ID(如果可用)、空字符串(如果不可用,通常在座席注销时)、 null(如果 state 为 null 或者不是座席状态)。

Type = string

GetExtension(state) → {string}

获取在给定座席状态下指定的座席扩展。

参数:

名称类型说明
state AgentCurrentState 座席的当前状态(通常为相应统计项的

返回:

座席的扩展(如果可用)、空字符串(如果不可用,通常在座席注销时)、 null(如果 state 为 null 或者不是座席状态)。

Type = string

GetLoginId(state) → {string}

获取在给定座席状态下指定的座席登录 ID。

参数:

名称类型说明
state AgentCurrentState 座席的当前状态(通常为相应统计项的

返回:

座席的登录 ID(如果可用)、空字符串(如果不可用,通常在座席注销时)、 null(如果 state 为 null 或者不是座席状态)。

Type = string

GetPlace(state) → {string}

获取在给定座席状态下指定的座席位置。

参数:

名称类型说明
state AgentCurrentState 座席的当前状态(通常为相应统计项的)。

返回:

座席位置名称(如果可用)、空字符串(如果不可用,通常在座席注销时)、 null(如果 state 为 null 或者不是座席状态)。

Type = string

GetPosition(state) → {string}

获取在给定座席状态下指定的座席 ACD 位置。

参数:

名称类型说明
state AgentCurrentState 座席的当前状态(通常为相应统计项的

返回:

座席的 ACD 位置(如果可用)、空字符串(如果不可用,通常在座席注销时)、 null(如果 state 为 null 或者不是座席状态)。

Type = string

GetReasonCodes(state) → {string}

获取对应于所有媒体类型中座席的当前状态的原因代码。只能为以下座席状态获取原因代码:LoggedIn、AfterCallWork、NotReadyForNextCall、WaitForNextCall。

参数:

名称类型说明
state AgentCurrentState 座席的当前状态(通常为相应统计项的)。

返回:

以“,”分隔的原因代码(如果可用)、空字符串(如果原因代码不可用)、null(如果 state 为 null 或者不是座席状态)。

Type = string

GetServiceSubType(state)

获取 "ServiceSubType" 用户数据值。

参数:

名称类型说明
state AgentCurrentState 座席的当前状态(通常为相应统计项的)。

返回:

ServiceSubType 值(如果可用)、空字符串(如果所需用户数据不可用)、null(如果 state 为 null 或者不是座席状态)。

GetServiceType(state)

获取 "ServiceType" 用户数据值。

参数:

名称类型说明
state AgentCurrentState 座席的当前状态(通常为相应统计项的)。

返回:

ServiceType 值(如果可用)、空字符串(如果所需用户数据不可用)、null(如果 state 为 null 或者不是座席状态)。

GetStatusDuration(state) → {Number}

获取座席的当前状态的持续时间。

参数:

名称说明
state 座席、座席组、DN 或活动的当前状态(通常为相应统计项的)。

返回:

以秒为单位的持续时间(如果 state 可用)、null(如果 state 为 null)。

Type = Number

GetSwitches(state, sep)

获取座席登录的交换机的列表。

参数:

名称类型说明
state AgentCurrentState 座席的当前状态(通常为相应统计项的)。
sep string 要使用的分隔符。默认值为“;”

返回:

交换机列表(如果可用)、空字符串(如果座席已完全注销)、 null(如果 state 为 null 或者不是座席状态)。

GetUserDataValue(state, key)

获取找到的第一个具有给定键的用户数据的值。

参数:

名称类型说明
state AgentCurrentState 座席的当前状态(通常为相应统计项的)。
key string 用户数据键

返回:

用户数据值(如果可用)、空字符串(如果所需用户数据不可用)、null(如果 statenull 或不是座席状态,或者 key 为 null)。
This page was last edited on March 28, 2017, at 17:29.
Comments or questions about this documentation? Contact us for support!