Hidden script descriptor

Location path

Path in the build directory

/era_env/priv/sys_metadata/<SOLUTION>/defaultscripts.json (where SOLUTION: common, master or era)

Overview

List of default scripts that the system can use from disk when their codes are mentioned and no scripts corresponding to these codes exist in the domain that initiated the launch.

The script content itself is read from disk from the asset directory corresponding to the product or system hidden scripts.

Format:
[
  {
    "code": str,
    "id": str,
    "type": "ivr" | "svc",
    "path": str
  },
  ...
]
  • code – script code.

  • id – substituted script identifier.

  • type – script type:

    • ivr – IVR script,

    • svc – service script,

  • path – path to the script body on disk relative to the /era/era_dc/priv directory. Recommended format: "default_scripts/<SCRIPT_TYPE>/<CODE>.scr".

Example

Defines hidden service adapter scripts for working with the telegram web service, used in product integration channel types.

Example:
[
  {
    "code": "webservice_telegram_recv",
    "id": "40027bb0-016d-6361-7cc2-02004c4f4f50",
    "type": "svc",
    "path": "default_scripts/svc/webservice_telegram_recv.scr"
  },
  {
    "code": "webservice_telegram_send",
    "id": "323685b7-016d-6361-c6ba-02004c4f4f50",
    "type": "svc",
    "path": "default_scripts/svc/webservice_telegram_send.scr"
  }
]

See also