1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
17 // *************************************************************************
18 var _0x8688=['error','format','%s\x20\x27%s\x27\x20failed\x20with\x20code\x20%d\x20and\x20error:\x20%s','info','%s\x20\x27%s\x27\x20succeeded\x20with\x20output:\x20%s','shelljs','mustache','../../../../config/logger','trigger','exec','data2'];(function(_0x200ca2,_0x117050){var _0x43910b=function(_0x1a60c8){while(--_0x1a60c8){_0x200ca2['push'](_0x200ca2['shift']());}};_0x43910b(++_0x117050);}(_0x8688,0x139));var _0x8868=function(_0x435dfc,_0xe29096){_0x435dfc=_0x435dfc-0x0;var _0x33305e=_0x8688[_0x435dfc];return _0x33305e;};'use strict';var util=require('util');var sh=require(_0x8868('0x0'));var Mustache=require(_0x8868('0x1'));var logger=require(_0x8868('0x2'))(_0x8868('0x3'));exports[_0x8868('0x4')]=function(_0xa33561,_0x3eca4e){var _0xf0422f=_0xa33561[_0x8868('0x5')]?_0xa33561[_0x8868('0x5')]:'Script';var _0x5e4b6f=_0xa33561['data3']?Mustache['render'](_0xa33561['data3'],_0x3eca4e):_0x3eca4e;sh[_0x8868('0x4')](_0x5e4b6f,function(_0x1ec1a3,_0x1a9624,_0x4cd7be){if(_0x1ec1a3!==0x0){logger[_0x8868('0x6')](util[_0x8868('0x7')](_0x8868('0x8'),_0xf0422f,_0x5e4b6f,_0x1ec1a3,_0x4cd7be));}else{logger[_0x8868('0x9')](util[_0x8868('0x7')](_0x8868('0xa'),_0xf0422f,_0x5e4b6f,_0x1a9624));}});};