Hidden scripts

Location path

Path in the build directory Purpose

/era_dc/priv/default_scripts/…​

Common directory with arbitrary internal structure.

/era_dc/priv/default_scripts/<SCRIPT_TYPE>/<SCRIPT_CODE>.scr

Recommended hidden script location path.

Overview

Hidden script content located in files.

Applied if a script code reference exists in the domain, but no script with that code exists either in the domain itself or in any of its root domains up to the master.

Script types: ivr, svc.

The format is identical to the JSON value of the scriptdata field of ivrscript and svcscript entities. A hidden script file can be created by the following algorithm:

  1. In the script editor web application create a script and save it to the domain.

  2. Extract the script body from the domain via API requests.

  3. Save the scriptdata field value to a file with UTF-8 encoding.

  4. Name the file and place it in the CI process build directory.

Format:
{
  "objects": array<object>,
  "variables": array<object>,
  "scriptVersion": 170105
}
  • objects – list of script components with populated fields.

  • variables – list of used script variables.

  • scriptVersion – file format version.

Application variants

  • For integration channel types installed in the webservices.json asset file.

  • To hide business logic.