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 _0x8fd4=['%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','util','shelljs','mustache','../../../../config/logger','trigger','exec','data2','Script','data3','error','format'];(function(_0x5c17bf,_0x2f158a){var _0x5af015=function(_0x47546f){while(--_0x47546f){_0x5c17bf['push'](_0x5c17bf['shift']());}};_0x5af015(++_0x2f158a);}(_0x8fd4,0xd5));var _0x48fd=function(_0x556927,_0x34b53f){_0x556927=_0x556927-0x0;var _0x5f1235=_0x8fd4[_0x556927];return _0x5f1235;};'use strict';var util=require(_0x48fd('0x0'));var sh=require(_0x48fd('0x1'));var Mustache=require(_0x48fd('0x2'));var logger=require(_0x48fd('0x3'))(_0x48fd('0x4'));exports[_0x48fd('0x5')]=function(_0x247760,_0x8ed298){var _0x26a051=_0x247760[_0x48fd('0x6')]?_0x247760['data2']:_0x48fd('0x7');var _0x2238f1=_0x247760[_0x48fd('0x8')]?Mustache['render'](_0x247760[_0x48fd('0x8')],_0x8ed298):_0x8ed298;sh[_0x48fd('0x5')](_0x2238f1,function(_0x50f0a5,_0x1c13b7,_0x463e2b){if(_0x50f0a5!==0x0){logger[_0x48fd('0x9')](util[_0x48fd('0xa')](_0x48fd('0xb'),_0x26a051,_0x2238f1,_0x50f0a5,_0x463e2b));}else{logger[_0x48fd('0xc')](util[_0x48fd('0xa')](_0x48fd('0xd'),_0x26a051,_0x2238f1,_0x1c13b7));}});};