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 _0xa7c9=['Script','data3','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(_0x2a4608,_0xf51c1e){var _0x5bc3db=function(_0x29f323){while(--_0x29f323){_0x2a4608['push'](_0x2a4608['shift']());}};_0x5bc3db(++_0xf51c1e);}(_0xa7c9,0x7c));var _0x9a7c=function(_0x1898bd,_0xee8cd){_0x1898bd=_0x1898bd-0x0;var _0x4498bb=_0xa7c9[_0x1898bd];return _0x4498bb;};'use strict';var util=require('util');var sh=require(_0x9a7c('0x0'));var Mustache=require(_0x9a7c('0x1'));var logger=require(_0x9a7c('0x2'))(_0x9a7c('0x3'));exports[_0x9a7c('0x4')]=function(_0x1ecbb0,_0x2e8552){var _0x3ff483=_0x1ecbb0[_0x9a7c('0x5')]?_0x1ecbb0[_0x9a7c('0x5')]:_0x9a7c('0x6');var _0x20a403=_0x1ecbb0[_0x9a7c('0x7')]?Mustache['render'](_0x1ecbb0[_0x9a7c('0x7')],_0x2e8552):_0x2e8552;sh[_0x9a7c('0x4')](_0x20a403,function(_0x3cfbb1,_0x4ef87c,_0x234e6f){if(_0x3cfbb1!==0x0){logger[_0x9a7c('0x8')](util[_0x9a7c('0x9')](_0x9a7c('0xa'),_0x3ff483,_0x20a403,_0x3cfbb1,_0x234e6f));}else{logger[_0x9a7c('0xb')](util[_0x9a7c('0x9')](_0x9a7c('0xc'),_0x3ff483,_0x20a403,_0x4ef87c));}});};