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

    • Prérequis - eScriptX

      Introduction Cet article vise à répertorier les prérequis pour eScriptX. Architecture eScriptX Architecture Poste Agent Installer Microsoft Edge WebView2 sur les PC des agents via le lien: ...
    • 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 ...
    • NixxisDirectLink API

      Introduction  This article gives an overview on how to use the NixxisDirectLink javascript.  The NixxisDirectLink is subject to changes without prior announcement.  This article is based on NixxisDirectLink build 8.  1.    Integration  1.1.  ...
    • How to configure Chat in Nixxis

      1.    Introduction The purpose of this article is to give an overview on how to setup the chat using Nixxis Contact Suite.     See article How to Configure Chat on Client Side to setup the chat WebPages.    There are 2 main actions to take to create ...