eScript - Nixxis_eScript.js

eScript - Nixxis_eScript.js



Description

Compatible with eScript 4.X and 10.X

Works with Webview2 only.
Be sure that the key is in http.config

Go to ..\eScriptRun\Script\Nixxis
Make a backup of existing Nixxis_eScript.js file.

Download latest js:
Github Repository : GitHub - repo-nio/escriptjs
..\eScriptRun\Script\Nixxis

Make a backup of existing Nixxis_eScript.js
Edit the Nixxis_eScript.js; replace with AppServer IP or FQDN:

    KEY_PLUGIN: null,
    appURI: "10.0.0.1:8088",
    dataURI: "http://10.0.0.1:8088/data",
    host: "10.0.0.1",

#Features


Nixxis global variables

Agent name: v_NixxisVar_AgentName

Available from 2.4f or later.
ActivityId: v_NixxisVar_Activity
Agent description: v_NixxisVar_AgentDescription
ContactId: v_NixxisVar_ContactId
Activity description: v_NixxisVar_Context
Agent extension: v_NixxisVar_Extension
From: v_NixxisVar_From
Media: v_NixxisVar_Media
Direction: v_NixxisVar_Direction
Queue: v_NixxisVar_Queue
State: v_NixxisVar_State
StateDescription: v_NixxisVar_StateDescription
To: v_NixxisVar_To
UserAccount: v_NixxisVar_UserAccount
UserName: v_NixxisVar_UserName
UUI: v_NixxisVar_UUI
ContactListId: v_NixxisVar_ContactListId
CustomerId: v_NixxisVar_CustomerId

Available from 2.5 or later.
Language: v_NixxisVar_Language

Inbound call example:


Copy to clipboard

Available from 2.5 or later.
  1. NixxisScript.Utilities.copyTextToClipboard(text)

Example, copy to clipboard value of tb_kp (_sp_26):

Action on event "ON CLICK" button _sp_27.

Javascript code

  1. var kp = _sn_tb_kp.val();
  2. NixxisScript.Utilities.copyTextToClipboard(kp);

Split date and time for DateTime text

‚ÄčAvailable from 2.5 or later.
  1. NixxisScript.Utilities.SplitDateTime(datetime, type)

Example, split tb_DateTime (_sp_28) date to tb_date (_sp_30) and time tb_time (_sp_31):



Action on event "ON BLUR" tb_DateTime (_sp_28).

Javascript code

  1. var datetime = _sn_tb_DateTime.text();
  2. var dd = NixxisScript.Utilities.SplitDateTime(datetime, 'date');
  3. var tt = NixxisScript.Utilities.SplitDateTime(datetime, 'time');
  4. _sn_tb_date.setVal(dd);
  5. _sn_tb_time.setVal(tt);
Result:

Format DateTime object value to SQL DateTime

‚ÄčAvailable from 2.5 or later.
  1. NixxisScript.Utilities.ToSqlDateTime(datetime)

Example, format DateTime object value tb_DateTimeSQL (_sp_39) and display in tb_dateSQL (sp_41)



Action on event "ON BLUR" tb_DateTimeSQL (_sp_39).

Javascript code

  1. var dt = _sn_tb_DateTimeSQL.val();
  2. var dtd = NixxisScript.Utilities.ToSqlDateTime(dt);
  3. _sn_tb_dateSQL.setVal(dtd);
Result:

    • Related Articles

    • eScript–Fonctionnalités

      eScript–Fonctionnalités Contenu Préambule ...............................................1 Composition d’un script eScript .........2 L’écran d’accueil .....................................3 Les menus de l’éditeur ..........................4 Menu « ...
    • Nixxis 2.4.x eScript Setup

      Introduction  This article provides information on the required steps to setup eScript for Nixxis 2.4x  1.    Deploy API dependencies  Extract the 2.4 API dependencies DLLs in CrAppserver folder  API Dependencies: ...
    • Nixxis Contact Suite - First steps guideline V3.0

      1.    Introduction  The purpose of this article is to provide the information you need to connect and configure a basic NCS environment via Nixxis Clients Desktop.  2.    Download Nixxis Client Desktop  Nixxis Client Desktop 3.0 is available ...
    • Gestion des qualification escript

      Introduction Cet article a pour but de fournir les informations nécessaires afin de pouvoir gérer les qualifications via eScript. 1.1 Affichage des qualifications Les qualifications sont dynamiques. Si la qualification n'est pas active au niveau de ...
    • Configuration de Nixxis v3.x eScript

      Introduction Cet article fournit des informations sur les étapes requises pour configurer eScript pour Nixxis V3.x 1. Modifier http.config. Dans l'en-tête http "host" du domaine, les adresses IP locales et publiques doivent être définies sans les ...