m (1 révision importée : Milengo test upload)
m (1 révision importée)
Ligne 1 : Ligne 1 :
= Bibliothèque de fonctions de modèles=
+
= Template Function Library=
{{#anc: Template Function Library}}
+
Once you know how to [[RTRFormulas|use formulas]], you can use this function library as reference for additional customization.
Une fois que vous savez comment [[RTRFormulas|utiliser des formules]], vous pouvez utiliser cette bibliothèque de fonctions comme référence pour une personnalisation avancée.
 
  
  
Voici une bibliothèque de fonctions pour les modèles standard de Genesys Pulse, automatiquement créés à partir de la version 8.5.102.02 de Genesys Pulse.
+
Below is a function library for Genesys Pulse standard templates as automatically generated from Genesys Pulse release 8.5.102.02.
 
__TOC__
 
__TOC__
 
+
 
<h2>GetAgentNonVoiceStatus(state, media) &rarr; {string}</h2>
 
<h2>GetAgentNonVoiceStatus(state, media) &rarr; {string}</h2>
 
+
 
<div>Obtenez le nom de l'état de l'agent pour le média autre que la voix.</div>
+
<div>Get agent's status name for the media other than Voice.</div>
<h3>Paramètres :</h3>
+
<h3>Parameters:</h3>
 
<table>
 
<table>
 
+
<tr><td>Nom</td><td>Type</td><td>Description</td></tr>
+
<tr><td>Name</td><td>Type</td><td>Description</td></tr>
 
+
 
 
<tr>
 
<tr>
 
<td><tt>state</tt></td>
 
<td><tt>state</tt></td>
 
<td>AgentCurrentState</td>
 
<td>AgentCurrentState</td>
<td>État actuel de l'agent (en général, la <strong>valeur</strong> de la statistique appropriée).</td>
+
<td>Current state of the agent (typically, <strong>Value</strong> of the appropriate statistic).</td>
 
</tr>
 
</tr>
 
<tr>
 
<tr>
<td><tt>média</tt></td>
+
<td><tt>media</tt></td>
<td>chaîne</td>
+
<td>string</td>
<td>Nom du média.</td>
+
<td>Media name.</td>
 
</tr>
 
</tr>
 
+
 
</table>
 
</table>
<h3>Renvoie :</h3>
+
<h3>Returns:</h3>
<div><em>Status name</em>, si <strong>state</strong> et <strong>media</strong> sont disponibles, <em>empty string</em> si des informations sur un média défini ne sont pas disponibles dans l'état actuel donné, <em>null</em> si <strong>state</strong> est null ou n’est pas un état d'agent, ou si <strong>media</strong> est null, non spécifié ou vide.</div>
+
<div><em>Status name</em>, if <strong>state</strong> and <strong>media</strong> are available, <em>empty string</em> if information about given media is not available in the given current state, <em>null</em> if <strong>state</strong> is null or not an agent state, or <strong>media</strong> is null, not specified or empty.</div>
 
+
Type = chaîne
+
Type = string
 
+
 
 
<h2>GetAgentVoiceStatus(state) &rarr; {string}</h2>
 
<h2>GetAgentVoiceStatus(state) &rarr; {string}</h2>
 
+
 
<div>Obtenez le nom de l'état de l'agent pour le média voix.</div>
+
<div>Get agent's status name for the Voice media.</div>
<h3>Paramètres :</h3>
+
<h3>Parameters:</h3>
 
<table>
 
<table>
 
+
<tr><td>Nom</td><td>Type</td><td>Description</td></tr>
+
<tr><td>Name</td><td>Type</td><td>Description</td></tr>
 
+
 
 
<tr>
 
<tr>
 
<td><tt>state</tt></td>
 
<td><tt>state</tt></td>
 
<td>AgentCurrentState</td>
 
<td>AgentCurrentState</td>
<td>État actuel de l'agent (en général, la <strong>valeur</strong> de la statistique appropriée).</td>
+
<td>Current state of the agent (typically, <strong>Value</strong> of the appropriate statistic).</td>
 
</tr>
 
</tr>
 
+
 
</table>
 
</table>
<h3>Renvoie :</h3>
+
<h3>Returns:</h3>
<div><em>Status name</em>, si <strong>state</strong> est disponible, <em>null</em> si <strong>state</strong> est null ou n’est pas un état d'agent.</div>
+
<div><em>Status name</em>, if <strong>state</strong> is available, <em>null</em> if <strong>state</strong> is null or not an agent state.</div>
 
+
Type = chaîne
+
Type = string
 
+
 
 
<h2>GetANI(state, switchID) &rarr; {string}</h2>
 
<h2>GetANI(state, switchID) &rarr; {string}</h2>
 
+
 
<div>Obtenez un premier attribut ANI disponible dans l'état de l'agent donné.</div>
+
<div>Get a first available ANI attribute in the given agent state.</div>
<h3>Paramètres :</h3>
+
<h3>Parameters:</h3>
 
<table>
 
<table>
 
+
<tr><td>Nom</td><td>Type</td><td>Argument</td><td>Description</td></tr>
+
<tr><td>Name</td><td>Type</td><td>Argument</td><td>Description</td></tr>
 
+
 
 
<tr>
 
<tr>
 
<td><tt>state</tt></td>
 
<td><tt>state</tt></td>
 
<td>AgentCurrentState</td>
 
<td>AgentCurrentState</td>
 
<td>&nbsp;</td>
 
<td>&nbsp;</td>
<td>État actuel de l'agent (en général, la <strong>valeur</strong> de la statistique appropriée).</td>
+
<td>Current state of the agent (typically, <strong>Value</strong> of the appropriate statistic).</td>
 
</tr>
 
</tr>
 
<tr>
 
<tr>
 
<td><tt>switchID</tt></td>
 
<td><tt>switchID</tt></td>
<td>chaîne</td>
+
<td>string</td>
<td>&lt;facultatif&gt;</td>
+
<td>&lt;optional&gt;</td>
<td>Nom du commutateur facultatif pour limiter la recherche.</td>
+
<td>Optional switch name to limit the search.</td>
 
</tr>
 
</tr>
 
+
 
</table>
 
</table>
<h3>Renvoie :</h3>
+
<h3>Returns:</h3>
<div><em>valeur ANI</em>, si détectée, <em>empty string</em> si non détectée, <em>null</em> si <strong>state</strong> est null ou n’est pas un état d'agent.</div>
+
<div><em>ANI value</em>, if found, <em>empty string</em> if not found, <em>null</em> if <strong>state</strong> is null or not an agent state.</div>
 
+
Type = chaîne
+
Type = string
 
+
 
<h2>GetBusinessResult(state)</h2>
 
<h2>GetBusinessResult(state)</h2>
 
+
<div>Obtenez la valeur des données utilisateur du "résultat métier".</div>
+
<div>Get "Business Result" user data value.</div>
<h3>Paramètres :</h3>
+
<h3>Parameters:</h3>
 
<table>
 
<table>
 
+
<tr><td>Nom</td><td>Type</td><td>Description</td></tr>
+
<tr><td>Name</td><td>Type</td><td>Description</td></tr>
  
 
<tr>
 
<tr>
 
<td><tt>state</tt></td>
 
<td><tt>state</tt></td>
 
<td>AgentCurrentState</td>
 
<td>AgentCurrentState</td>
<td>État actuel de l'agent (en général, la <strong>valeur</strong> de la statistique appropriée).</td>
+
<td>Current state of the agent (typically, <strong>Value</strong> of the appropriate statistic).</td>
 
</tr>
 
</tr>
 
+
 
</table>
 
</table>
<h3>Renvoie :</h3>
+
<h3>Returns:</h3>
<div><em>valeur du résultat métier</em>, si disponible, <em>empty string</em>, si les données utilisateur obligatoires ne sont pas disponibles, <em>null</em> si <strong>state</strong> est null ou n’est pas un état d'agent.</div>
+
<div><em>Business Result value</em>, if available, <em>empty string</em>, if required user data is not available, <em>null</em> if <strong>state</strong> is null or not an agent state.</div>
 
+
 
 
<h2>GetCustomerSegment(state)</h2>
 
<h2>GetCustomerSegment(state)</h2>
 
+
 
<div>Obtenez la valeur des données utilisateur de "SegmentClientèle".</div>
+
<div>Get "CustomerSegment" user data value.</div>
<h3>Paramètres :</h3>
+
<h3>Parameters:</h3>
 
<table>
 
<table>
 
+
<tr><td>Nom</td><td>Type</td><td>Description</td></tr>
+
<tr><td>Name</td><td>Type</td><td>Description</td></tr>
 
+
 
 
<tr>
 
<tr>
 
<td><tt>state</tt></td>
 
<td><tt>state</tt></td>
 
<td>AgentCurrentState</td>
 
<td>AgentCurrentState</td>
<td>État actuel de l'agent (en général, la <strong>valeur</strong> de la statistique appropriée).</td>
+
<td>Current state of the agent (typically, <strong>Value</strong> of the appropriate statistic).</td>
 
</tr>
 
</tr>
 
+
 
</table>
 
</table>
<h3>Renvoie :</h3>
+
<h3>Returns:</h3>
<div><em>valeur du SegmentClientèle</em>, si disponible, <em>empty string</em>, si les données utilisateur obligatoires ne sont pas disponibles, <em>null</em> si <strong>state</strong> est null ou n’est pas un état d'agent.</div>
+
<div><em>CustomerSegment value</em>, if available, <em>empty string</em>, if required user data is not available, <em>null</em> if <strong>state</strong> is null or not an agent state.</div>
 
+
 
 
<h2>GetDNIS(state, switchID) &rarr; {string}</h2>
 
<h2>GetDNIS(state, switchID) &rarr; {string}</h2>
 
+
 
<div>Obtenez un premier attribut DNIS disponible dans l'état de l'agent donné.</div>
+
<div>Get a first available DNIS attribute in the given agent state.</div>
<h3>Paramètres :</h3>
+
<h3>Parameters:</h3>
 
<table>
 
<table>
 
+
<tr><td>Nom</td><td>Type</td><td>Argument</td><td>Description</td></tr>
+
<tr><td>Name</td><td>Type</td><td>Argument</td><td>Description</td></tr>
 
+
 
 
<tr>
 
<tr>
 
<td><tt>state</tt></td>
 
<td><tt>state</tt></td>
 
<td>AgentCurrentState</td>
 
<td>AgentCurrentState</td>
 
<td>&nbsp;</td>
 
<td>&nbsp;</td>
<td>État actuel de l'agent (en général, la <strong>valeur</strong> de la statistique appropriée).</td>
+
<td>Current state of the agent (typically, <strong>Value</strong> of the appropriate statistic).</td>
 
</tr>
 
</tr>
 
<tr>
 
<tr>
 
<td><tt>switchID</tt></td>
 
<td><tt>switchID</tt></td>
<td>chaîne</td>
+
<td>string</td>
<td>&lt;facultatif&gt;</td>
+
<td>&lt;optional&gt;</td>
<td>Nom du commutateur facultatif pour limiter la recherche.</td>
+
<td>Optional switch name to limit the search.</td>
 
</tr>
 
</tr>
 
+
 
</table>
 
</table>
<h3>Renvoie :</h3>
+
<h3>Returns:</h3>
<div><em>valeur DNIS</em>, si détectée, <em>empty string</em> si non détectée, <em>null</em> si <strong>state</strong> est null ou n’est pas un état d'agent.</div>
+
<div><em>DNIS value</em>, if found, <em>empty string</em> if not found, <em>null</em> if <strong>state</strong> is null or not an agent state.</div>
 
+
Type = chaîne
+
Type = string
 
+
 
<h2>GetEmployeeId(state) &rarr; {string}</h2>
 
<h2>GetEmployeeId(state) &rarr; {string}</h2>
 
+
 
<div>Obtenez les ID d’employé des agent désignés dans l'état d'agent donné.</div>
+
<div>Get agent's Employee ID designated in the given agent state.</div>
<h3>Paramètres :</h3>
+
<h3>Parameters:</h3>
 
<table>
 
<table>
 
+
<tr><td>Nom</td><td>Type</td><td>Description</td></tr>
+
<tr><td>Name</td><td>Type</td><td>Description</td></tr>
 
+
 
 
<tr>
 
<tr>
 
<td><tt>state</tt></td>
 
<td><tt>state</tt></td>
 
<td>AgentCurrentState</td>
 
<td>AgentCurrentState</td>
<td>État actuel de l'agent (en général, la <strong>valeur</strong> de la statistique appropriée)</td>
+
<td>Current state of the agent (typically, <strong>Value</strong> of the appropriate statistic)</td>
 
</tr>
 
</tr>
 
+
 
</table>
 
</table>
<h3>Renvoie :</h3>
+
<h3>Returns:</h3>
<div><em>ID employé de l'agent</em>, si disponible, <em>empty string</em> si non disponible (en général, lorsque l’agent est déconnecté), <em>null</em> si <strong>state</strong> est null ou n’est pas un état de l'agent.</div>
+
<div><em>Agent's Employee ID</em>, if available, <em>empty string</em> if not available (typically, when agent is logged out), <em>null</em> if <strong>state</strong> is null or not an agent state.</div>
 
+
Type = chaîne
+
Type = string
 
+
 
<h2>GetExtension(state) &rarr; {string}</h2>
 
<h2>GetExtension(state) &rarr; {string}</h2>
 
+
 
<div>Obtenez l’extension des agent désignés dans l'état d'agent donné.</div>
+
<div>Get agent's Extension designated in the given agent state.</div>
<h3>Paramètres :</h3>
+
<h3>Parameters:</h3>
 
<table>
 
<table>
 
+
<tr><td>Nom</td><td>Type</td><td>Description</td></tr>
+
<tr><td>Name</td><td>Type</td><td>Description</td></tr>
 
+
 
 
<tr>
 
<tr>
 
<td><tt>state</tt></td>
 
<td><tt>state</tt></td>
 
<td>AgentCurrentState</td>
 
<td>AgentCurrentState</td>
<td>État actuel de l'agent (en général, la <strong>valeur</strong> de la statistique appropriée)</td>
+
<td>Current state of the agent (typically, <strong>Value</strong> of the appropriate statistic)</td>
 
</tr>
 
</tr>
 
+
 
</table>
 
</table>
<h3>Renvoie :</h3>
+
<h3>Returns:</h3>
<div><em>Extension de l'agent</em>, si disponible, <em>empty string</em> si non disponible (en général, lorsque l’agent est déconnecté), <em>null</em> si <strong>state</strong> est null ou n’est pas un état de l'agent.</div>
+
<div><em>Agent's Extension</em>, if available, <em>empty string</em> if not available (typically, when agent is logged out), <em>null</em> if <strong>state</strong> is null or not an agent state.</div>
 
+
Type = chaîne
+
Type = string
 
+
 
<h2>GetLoginId(state) &rarr; {string}</h2>
 
<h2>GetLoginId(state) &rarr; {string}</h2>
 
+
 
<div>Obtenez les ID de connexion des agent désignés dans l'état d'agent donné.</div>
+
<div>Get agent's Login ID designated in the given agent state.</div>
<h3>Paramètres :</h3>
+
<h3>Parameters:</h3>
 
<table>
 
<table>
 
+
<tr><td>Nom</td><td>Type</td><td>Description</td></tr>
+
<tr><td>Name</td><td>Type</td><td>Description</td></tr>
 
+
 
 
<tr>
 
<tr>
 
<td><tt>state</tt></td>
 
<td><tt>state</tt></td>
 
<td>AgentCurrentState</td>
 
<td>AgentCurrentState</td>
<td>État actuel de l'agent (en général, la <strong>valeur</strong> de la statistique appropriée)</td>
+
<td>Current state of the agent (typically, <strong>Value</strong> of the appropriate statistic)</td>
 
</tr>
 
</tr>
 
+
 
</table>
 
</table>
<h3>Renvoie :</h3>
+
<h3>Returns:</h3>
<div><em>ID de connexion de l'agent</em>, si disponible, <em>empty string</em> si non disponible (en général, lorsque l’agent est déconnecté), <em>null</em> si <strong>state</strong> est null ou n’est pas un état de l'agent.</div>
+
<div><em>Agent's Login ID</em>, if available, <em>empty string</em> if not available (typically, when agent is logged out), <em>null</em> if <strong>state</strong> is null or not an agent state.</div>
 
+
Type = chaîne
+
Type = string
 
+
 
<h2>GetPlace(state) &rarr; {string}</h2>
 
<h2>GetPlace(state) &rarr; {string}</h2>
 
+
<div>Obtenez les places des agent désignés dans l'état d'agent donné.</div>
+
<div>Get agent's place designated in the given agent state.</div>
<h3>Paramètres :</h3>
+
<h3>Parameters:</h3>
 
<table>
 
<table>
 
+
<tr><td>Nom</td><td>Type</td><td>Description</td></tr>
+
<tr><td>Name</td><td>Type</td><td>Description</td></tr>
 
+
 
 
<tr>
 
<tr>
 
<td><tt>state</tt></td>
 
<td><tt>state</tt></td>
 
<td>AgentCurrentState</td>
 
<td>AgentCurrentState</td>
<td>État actuel de l'agent (en général, la <strong>valeur</strong> de la statistique appropriée).</td>
+
<td>Current state of the agent (typically, <strong>Value</strong> of the appropriate statistic).</td>
 
</tr>
 
</tr>
 
+
 
</table>
 
</table>
<h3>Renvoie :</h3>
+
<h3>Returns:</h3>
<div><em>Nom de la place de l'agent</em>, si disponible, <em>empty string</em> si non disponible (en général, lorsque l’agent est déconnecté), <em>null</em> si <strong>state</strong> est null ou n’est pas un état de l'agent.</div>
+
<div><em>Agent's Place name</em>, if available, <em>empty string</em> if not available (typically, when agent is logged out), <em>null</em> if <strong>state</strong> is null or not an agent state.</div>
 
+
Type = chaîne
+
Type = string
  
 
<h2>GetPosition(state) &rarr; {string}</h2>
 
<h2>GetPosition(state) &rarr; {string}</h2>
 
+
 
<div>Obtenez la position ACD des agent désignés dans l'état d'agent donné.</div>
+
<div>Get agent's ACD Position designated in the given agent state.</div>
<h3>Paramètres :</h3>
+
<h3>Parameters:</h3>
 
<table>
 
<table>
 
+
<tr><td>Nom</td><td>Type</td><td>Description</td></tr>
+
<tr><td>Name</td><td>Type</td><td>Description</td></tr>
 
+
 
 
<tr>
 
<tr>
 
<td><tt>state</tt></td>
 
<td><tt>state</tt></td>
 
<td>AgentCurrentState</td>
 
<td>AgentCurrentState</td>
<td>État actuel de l'agent (en général, la <strong>valeur</strong> de la statistique appropriée)</td>
+
<td>Current state of the agent (typically, <strong>Value</strong> of the appropriate statistic)</td>
 
</tr>
 
</tr>
 
+
 
</table>
 
</table>
<h3>Renvoie :</h3>
+
<h3>Returns:</h3>
<div><em>Position ACD de l'agent</em>, si disponible, <em>empty string</em> si non disponible (en général, lorsque l’agent est déconnecté), <em>null</em> si <strong>state</strong> est null ou n’est pas un état de l'agent.</div>
+
<div><em>Agent's ACD Position</em>, if available, <em>empty string</em> if not available (typically, when agent is logged out), <em>null</em> if <strong>state</strong> is null or not an agent state.</div>
 
+
Type = chaîne
+
Type = string
  
 
<h2>GetReasonCodes(state) &rarr; {string}</h2>
 
<h2>GetReasonCodes(state) &rarr; {string}</h2>
 
+
 
<div>Obtenez les codes de raison correspondant à l'état actuel de l'agent à partir de tous les types de média. Les codes de raison peuvent être obtenus uniquement pour les états d’agent suivants : LoggedIn, AfterCallWork, NotReadyForNextCall, WaitForNextCall.</div>
+
<div>Get reason codes corresponding to the current status of the agent from all media types. Reason codes can be obtained only for the following agent statuses: LoggedIn, AfterCallWork, NotReadyForNextCall, WaitForNextCall.</div>
<h3>Paramètres :</h3>
+
<h3>Parameters:</h3>
 
<table>
 
<table>
 
+
<tr><td>Nom</td><td>Type</td><td>Description</td></tr>
+
<tr><td>Name</td><td>Type</td><td>Description</td></tr>
 
+
 
 
<tr>
 
<tr>
 
<td><tt>state</tt></td>
 
<td><tt>state</tt></td>
 
<td>AgentCurrentState</td>
 
<td>AgentCurrentState</td>
<td>État actuel de l'agent (en général, la <strong>valeur</strong> de la statistique appropriée).</td>
+
<td>Current state of the agent (typically, <strong>Value</strong> of the appropriate statistic).</td>
 
</tr>
 
</tr>
 
+
 
</table>
 
</table>
<h3>Renvoie :</h3>
+
<h3>Returns:</h3>
<div><em>codes de raison</em>, séparés par « ; », si disponibles, <em>empty string</em>, si le code de raison n’est pas disponible, <em>null</em> si <strong>state</strong> est null ou n’est pas un état d'agent.</div>
+
<div><em>Reason codes</em>, splitted by '; ', if available, <em>empty string</em> if reason code is not available, <em>null</em> if <strong>state</strong> is null or not an agent state.</div>
 
+
Type = chaîne
+
Type = string
 
+
 
<h2>GetServiceSubType(state)</h2>
 
<h2>GetServiceSubType(state)</h2>
 
+
<div>Obtenez la valeur des données utilisateur du "ServiceSubType".</div>
+
<div>Get "ServiceSubType" user data value.</div>
<h3>Paramètres :</h3>
+
<h3>Parameters:</h3>
 
<table>
 
<table>
 
+
<tr><td>Nom</td><td>Type</td><td>Description</td></tr>
+
<tr><td>Name</td><td>Type</td><td>Description</td></tr>
 
+
 
 
<tr>
 
<tr>
 
<td><tt>state</tt></td>
 
<td><tt>state</tt></td>
 
<td>AgentCurrentState</td>
 
<td>AgentCurrentState</td>
<td>État actuel de l'agent (en général, la <strong>valeur</strong> de la statistique appropriée).</td>
+
<td>Current state of the agent (typically, <strong>Value</strong> of the appropriate statistic).</td>
 
</tr>
 
</tr>
 
+
 
</table>
 
</table>
<h3>Renvoie :</h3>
+
<h3>Returns:</h3>
<div><em>valeur du ServiceSubType</em>, si disponible, <em>empty string</em>, si les données utilisateur obligatoires ne sont pas disponibles, <em>null</em> si <strong>state</strong> est null ou n’est pas un état d'agent.</div>
+
<div><em>ServiceSubType value</em>, if available, <em>empty string</em>, if required user data is not available, <em>null</em> if <strong>state</strong> is null or not an agent state.</div>
 
+
 
 
<h2>GetServiceType(state)</h2>
 
<h2>GetServiceType(state)</h2>
 
+
 
<div>Obtenez la valeur des données utilisateur du "TypeService".</div>
+
<div>Get "ServiceType" user data value.</div>
<h3>Paramètres :</h3>
+
<h3>Parameters:</h3>
 
<table>
 
<table>
 
+
<tr><td>Nom</td><td>Type</td><td>Description</td></tr>
+
<tr><td>Name</td><td>Type</td><td>Description</td></tr>
 
+
 
 
<tr>
 
<tr>
 
<td><tt>state</tt></td>
 
<td><tt>state</tt></td>
 
<td>AgentCurrentState</td>
 
<td>AgentCurrentState</td>
<td>État actuel de l'agent (en général, la <strong>valeur</strong> de la statistique appropriée).</td>
+
<td>Current state of the agent (typically, <strong>Value</strong> of the appropriate statistic).</td>
 
</tr>
 
</tr>
 
+
 
</table>
 
</table>
<h3>Renvoie :</h3>
+
<h3>Returns:</h3>
<div><em>valeur du TypeService</em>, si disponible, <em>empty string</em>, si les données utilisateur obligatoires ne sont pas disponibles, <em>null</em> si <strong>state</strong> est null ou n’est pas un état d'agent.</div>
+
<div><em>ServiceType value</em>, if available, <em>empty string</em>, if required user data is not available, <em>null</em> if <strong>state</strong> is null or not an agent state.</div>
 
+
 
<h2>GetStatusDuration(state) &rarr; {nombre}</h2>
+
<h2>GetStatusDuration(state) &rarr; {Number}</h2>
 
+
 
<div>Obtenez la durée de l'état actuel de l'agent.</div>
+
<div>Get duration of the current status of the agent.</div>
<h3>Paramètres :</h3>
+
<h3>Parameters:</h3>
 
<table>
 
<table>
 
+
<tr><td>Nom</td><td>Description</td></tr>
+
<tr><td>Name</td><td>Description</td></tr>
 
+
 
 
<tr>
 
<tr>
 
<td><tt>state</tt></td>
 
<td><tt>state</tt></td>
<td>État actuel de l'agent, du groupe d’agent, du DN ou de la campagne (en général, la <strong>valeur</strong> de la statistique appropriée).</td>
+
<td>Current state of the agent, agent group, DN or campaign (typically, <strong>Value</strong> of the appropriate statistic).</td>
 
</tr>
 
</tr>
 
+
 
</table>
 
</table>
<h3>Renvoie :</h3>
+
<h3>Returns:</h3>
<div><em>Durée</em>, en secondes, si <strong>state</strong> est disponible, <em>null</em> si <strong>state</strong> est null.</div>
+
<div><em>Duration</em>, in seconds, if <strong>state</strong> is available, <em>null</em> if <strong>state</strong> is null.</div>
 
+
Type = nombre
+
Type = Number
 
+
 
<h2>GetSwitches (state, sep)</h2>
+
<h2>GetSwitches(state, sep)</h2>
 
+
<div>Obtenez la liste des commutateurs sur lesquels l'agent est connecté.</div>
+
<div>Get list of switches where agent is logged in.</div>
<h3>Paramètres :</h3>
+
<h3>Parameters:</h3>
 
<table>
 
<table>
 
+
<tr><td>Nom</td><td>Type</td><td>Description</td></tr>
+
<tr><td>Name</td><td>Type</td><td>Description</td></tr>
 
+
 
 
<tr>
 
<tr>
 
<td><tt>state</tt></td>
 
<td><tt>state</tt></td>
 
<td>AgentCurrentState</td>
 
<td>AgentCurrentState</td>
<td>État actuel de l'agent (en général, la <strong>valeur</strong> de la statistique appropriée).</td>
+
<td>Current state of the agent (typically, <strong>Value</strong> of the appropriate statistic).</td>
 
</tr>
 
</tr>
 
<tr>
 
<tr>
<td><tt>sép</tt></td>
+
<td><tt>sep</tt></td>
<td>chaîne</td>
+
<td>string</td>
<td>Séparateur à utiliser. La valeur par défaut est <em>« ; »</em>.</td>
+
<td>Separator to use. Default is <em>';'</em>.</td>
 
</tr>
 
</tr>
 
+
 
</table>
 
</table>
<h3>Renvoie :</h3>
+
<h3>Returns:</h3>
<div><em>liste des commutateurs</em>, si disponible, <em>empty string</em> si l’agent est complètement déconnecté, <em>null</em> si <strong>state</strong> est null ou n’est pas un état de l'agent.</div>
+
<div><em>List of switches</em>, if available, <em>empty string</em>, if agent is completely logged out, <em>null</em> if <strong>state</strong> is null or not an agent state.</div>
 
+
 
 
<h2>GetUserDataValue(state, key)</h2>
 
<h2>GetUserDataValue(state, key)</h2>
 
+
 
<div>Obtenez la valeur des premières données utilisateur trouvées avec une clé donnée.</div>
+
<div>Get value of the first found user data with given key.</div>
<h3>Paramètres :</h3>
+
<h3>Parameters:</h3>
 
<table>
 
<table>
 
+
<tr><td>Nom</td><td>Type</td><td>Description</td></tr>
+
<tr><td>Name</td><td>Type</td><td>Description</td></tr>
 
+
 
 
<tr>
 
<tr>
 
<td><tt>state</tt></td>
 
<td><tt>state</tt></td>
 
<td>AgentCurrentState</td>
 
<td>AgentCurrentState</td>
<td>État actuel de l'agent (en général, la <strong>valeur</strong> de la statistique appropriée).</td>
+
<td>Current state of the agent (typically, <strong>Value</strong> of the appropriate statistic).</td>
 
</tr>
 
</tr>
 
<tr>
 
<tr>
<td><tt>clé</tt></td>
+
<td><tt>key</tt></td>
<td>chaîne</td>
+
<td>string</td>
<td>Clé données utilisateur</td>
+
<td>User data key</td>
 
</tr>
 
</tr>
 
+
 
</table>
 
</table>
<h3>Renvoie :</h3>
+
<h3>Returns:</h3>
<div><em>valeurs des données utilisateur</em>, si disponibles, <em>empty string</em>, si les données utilisateur obligatoires ne sont pas disponibles, <em>null</em> si <strong>state</strong> est null ou n’est pas un état d'agent ou si <strong>clé</strong> est null.</div>
+
<div><em>User data value</em>, if available, <em>empty string</em>, if required user data is not available, <em>null</em> if <strong>state</strong> is null or not an agent state or <strong>key</strong> is null.</div>
  
 
[[Category:V:EZP:DRAFT]]
 
[[Category:V:EZP:DRAFT]]

Version du juin 21, 2017 à 23:48

Template Function Library

Once you know how to use formulas, you can use this function library as reference for additional customization.


Below is a function library for Genesys Pulse standard templates as automatically generated from Genesys Pulse release 8.5.102.02.

GetAgentNonVoiceStatus(state, media) → {string}

Get agent's status name for the media other than Voice.

Parameters:

NameTypeDescription
state AgentCurrentState Current state of the agent (typically, Value of the appropriate statistic).
media string Media name.

Returns:

Status name, if state and media are available, empty string if information about given media is not available in the given current state, null if state is null or not an agent state, or media is null, not specified or empty.

Type = string

GetAgentVoiceStatus(state) → {string}

Get agent's status name for the Voice media.

Parameters:

NameTypeDescription
state AgentCurrentState Current state of the agent (typically, Value of the appropriate statistic).

Returns:

Status name, if state is available, null if state is null or not an agent state.

Type = string

GetANI(state, switchID) → {string}

Get a first available ANI attribute in the given agent state.

Parameters:

NameTypeArgumentDescription
state AgentCurrentState   Current state of the agent (typically, Value of the appropriate statistic).
switchID string <optional> Optional switch name to limit the search.

Returns:

ANI value, if found, empty string if not found, null if state is null or not an agent state.

Type = string

GetBusinessResult(state)

Get "Business Result" user data value.

Parameters:

NameTypeDescription
state AgentCurrentState Current state of the agent (typically, Value of the appropriate statistic).

Returns:

Business Result value, if available, empty string, if required user data is not available, null if state is null or not an agent state.

GetCustomerSegment(state)

Get "CustomerSegment" user data value.

Parameters:

NameTypeDescription
state AgentCurrentState Current state of the agent (typically, Value of the appropriate statistic).

Returns:

CustomerSegment value, if available, empty string, if required user data is not available, null if state is null or not an agent state.

GetDNIS(state, switchID) → {string}

Get a first available DNIS attribute in the given agent state.

Parameters:

NameTypeArgumentDescription
state AgentCurrentState   Current state of the agent (typically, Value of the appropriate statistic).
switchID string <optional> Optional switch name to limit the search.

Returns:

DNIS value, if found, empty string if not found, null if state is null or not an agent state.

Type = string

GetEmployeeId(state) → {string}

Get agent's Employee ID designated in the given agent state.

Parameters:

NameTypeDescription
state AgentCurrentState Current state of the agent (typically, Value of the appropriate statistic)

Returns:

Agent's Employee ID, if available, empty string if not available (typically, when agent is logged out), null if state is null or not an agent state.

Type = string

GetExtension(state) → {string}

Get agent's Extension designated in the given agent state.

Parameters:

NameTypeDescription
state AgentCurrentState Current state of the agent (typically, Value of the appropriate statistic)

Returns:

Agent's Extension, if available, empty string if not available (typically, when agent is logged out), null if state is null or not an agent state.

Type = string

GetLoginId(state) → {string}

Get agent's Login ID designated in the given agent state.

Parameters:

NameTypeDescription
state AgentCurrentState Current state of the agent (typically, Value of the appropriate statistic)

Returns:

Agent's Login ID, if available, empty string if not available (typically, when agent is logged out), null if state is null or not an agent state.

Type = string

GetPlace(state) → {string}

Get agent's place designated in the given agent state.

Parameters:

NameTypeDescription
state AgentCurrentState Current state of the agent (typically, Value of the appropriate statistic).

Returns:

Agent's Place name, if available, empty string if not available (typically, when agent is logged out), null if state is null or not an agent state.

Type = string

GetPosition(state) → {string}

Get agent's ACD Position designated in the given agent state.

Parameters:

NameTypeDescription
state AgentCurrentState Current state of the agent (typically, Value of the appropriate statistic)

Returns:

Agent's ACD Position, if available, empty string if not available (typically, when agent is logged out), null if state is null or not an agent state.

Type = string

GetReasonCodes(state) → {string}

Get reason codes corresponding to the current status of the agent from all media types. Reason codes can be obtained only for the following agent statuses: LoggedIn, AfterCallWork, NotReadyForNextCall, WaitForNextCall.

Parameters:

NameTypeDescription
state AgentCurrentState Current state of the agent (typically, Value of the appropriate statistic).

Returns:

Reason codes, splitted by '; ', if available, empty string if reason code is not available, null if state is null or not an agent state.

Type = string

GetServiceSubType(state)

Get "ServiceSubType" user data value.

Parameters:

NameTypeDescription
state AgentCurrentState Current state of the agent (typically, Value of the appropriate statistic).

Returns:

ServiceSubType value, if available, empty string, if required user data is not available, null if state is null or not an agent state.

GetServiceType(state)

Get "ServiceType" user data value.

Parameters:

NameTypeDescription
state AgentCurrentState Current state of the agent (typically, Value of the appropriate statistic).

Returns:

ServiceType value, if available, empty string, if required user data is not available, null if state is null or not an agent state.

GetStatusDuration(state) → {Number}

Get duration of the current status of the agent.

Parameters:

NameDescription
state Current state of the agent, agent group, DN or campaign (typically, Value of the appropriate statistic).

Returns:

Duration, in seconds, if state is available, null if state is null.

Type = Number

GetSwitches(state, sep)

Get list of switches where agent is logged in.

Parameters:

NameTypeDescription
state AgentCurrentState Current state of the agent (typically, Value of the appropriate statistic).
sep string Separator to use. Default is ';'.

Returns:

List of switches, if available, empty string, if agent is completely logged out, null if state is null or not an agent state.

GetUserDataValue(state, key)

Get value of the first found user data with given key.

Parameters:

NameTypeDescription
state AgentCurrentState Current state of the agent (typically, Value of the appropriate statistic).
key string User data key

Returns:

User data value, if available, empty string, if required user data is not available, null if state is null or not an agent state or key is null.
Comments or questions about this documentation? Contact us for support!