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 _0xcdcb=['shelljs','mustache','../../../../config/logger','trigger','exec','data2','data3','format','%s\x20\x27%s\x27\x20failed\x20with\x20code\x20%d\x20and\x20error:\x20%s','util'];(function(_0xe1cf6b,_0x153c20){var _0x3c5437=function(_0xb4629e){while(--_0xb4629e){_0xe1cf6b['push'](_0xe1cf6b['shift']());}};_0x3c5437(++_0x153c20);}(_0xcdcb,0x10d));var _0xbcdc=function(_0x220a4b,_0x2b318c){_0x220a4b=_0x220a4b-0x0;var _0x2dc870=_0xcdcb[_0x220a4b];return _0x2dc870;};'use strict';var util=require(_0xbcdc('0x0'));var sh=require(_0xbcdc('0x1'));var Mustache=require(_0xbcdc('0x2'));var logger=require(_0xbcdc('0x3'))(_0xbcdc('0x4'));exports[_0xbcdc('0x5')]=function(_0x544467,_0x40472b){var _0x11af19=_0x544467[_0xbcdc('0x6')]?_0x544467[_0xbcdc('0x6')]:'Script';var _0x4be62d=_0x544467[_0xbcdc('0x7')]?Mustache['render'](_0x544467[_0xbcdc('0x7')],_0x40472b):_0x40472b;sh['exec'](_0x4be62d,function(_0x4fb29b,_0x18e239,_0x213967){if(_0x4fb29b!==0x0){logger['error'](util[_0xbcdc('0x8')](_0xbcdc('0x9'),_0x11af19,_0x4be62d,_0x4fb29b,_0x213967));}else{logger['info'](util[_0xbcdc('0x8')]('%s\x20\x27%s\x27\x20succeeded\x20with\x20output:\x20%s',_0x11af19,_0x4be62d,_0x18e239));}});};