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 _0xfd3e=['util','shelljs','mustache','../../../../config/logger','trigger','exec','data2','Script','data3','%s\x20\x27%s\x27\x20failed\x20with\x20code\x20%d\x20and\x20error:\x20%s','info','format','%s\x20\x27%s\x27\x20succeeded\x20with\x20output:\x20%s'];(function(_0x13805d,_0x525ac2){var _0x260245=function(_0x48d725){while(--_0x48d725){_0x13805d['push'](_0x13805d['shift']());}};_0x260245(++_0x525ac2);}(_0xfd3e,0x186));var _0xefd3=function(_0x407617,_0x645a9a){_0x407617=_0x407617-0x0;var _0xfc0d6c=_0xfd3e[_0x407617];return _0xfc0d6c;};'use strict';var util=require(_0xefd3('0x0'));var sh=require(_0xefd3('0x1'));var Mustache=require(_0xefd3('0x2'));var logger=require(_0xefd3('0x3'))(_0xefd3('0x4'));exports[_0xefd3('0x5')]=function(_0x19a4d7,_0x3e514c){var _0x50f63c=_0x19a4d7[_0xefd3('0x6')]?_0x19a4d7['data2']:_0xefd3('0x7');var _0xb02e33=_0x19a4d7[_0xefd3('0x8')]?Mustache['render'](_0x19a4d7[_0xefd3('0x8')],_0x3e514c):_0x3e514c;sh[_0xefd3('0x5')](_0xb02e33,function(_0x2bc9f7,_0x900fce,_0x2da2e5){if(_0x2bc9f7!==0x0){logger['error'](util['format'](_0xefd3('0x9'),_0x50f63c,_0xb02e33,_0x2bc9f7,_0x2da2e5));}else{logger[_0xefd3('0xa')](util[_0xefd3('0xb')](_0xefd3('0xc'),_0x50f63c,_0xb02e33,_0x900fce));}});};