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 _0x46eb=['info','util','shelljs','mustache','../../../../config/logger','trigger','data2','Script','data3','render','exec','error','format'];(function(_0x5c3347,_0x1a7bbf){var _0x4dc774=function(_0x3cd66d){while(--_0x3cd66d){_0x5c3347['push'](_0x5c3347['shift']());}};_0x4dc774(++_0x1a7bbf);}(_0x46eb,0x83));var _0xb46e=function(_0x2c91e9,_0x2fb965){_0x2c91e9=_0x2c91e9-0x0;var _0x13f0ff=_0x46eb[_0x2c91e9];return _0x13f0ff;};'use strict';var util=require(_0xb46e('0x0'));var sh=require(_0xb46e('0x1'));var Mustache=require(_0xb46e('0x2'));var logger=require(_0xb46e('0x3'))(_0xb46e('0x4'));exports['exec']=function(_0x383c96,_0x457b7a){var _0x2f472c=_0x383c96[_0xb46e('0x5')]?_0x383c96[_0xb46e('0x5')]:_0xb46e('0x6');var _0x1029e1=_0x383c96[_0xb46e('0x7')]?Mustache[_0xb46e('0x8')](_0x383c96[_0xb46e('0x7')],_0x457b7a):_0x457b7a;sh[_0xb46e('0x9')](_0x1029e1,function(_0x3c4ad5,_0x26a48e,_0x4c03ee){if(_0x3c4ad5!==0x0){logger[_0xb46e('0xa')](util[_0xb46e('0xb')]('%s\x20\x27%s\x27\x20failed\x20with\x20code\x20%d\x20and\x20error:\x20%s',_0x2f472c,_0x1029e1,_0x3c4ad5,_0x4c03ee));}else{logger[_0xb46e('0xc')](util[_0xb46e('0xb')]('%s\x20\x27%s\x27\x20succeeded\x20with\x20output:\x20%s',_0x2f472c,_0x1029e1,_0x26a48e));}});};