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 _0xb4c3=['trigger','exec','data2','Script','data3','error','format','%s\x20\x27%s\x27\x20failed\x20with\x20code\x20%d\x20and\x20error:\x20%s','%s\x20\x27%s\x27\x20succeeded\x20with\x20output:\x20%s','util','shelljs','../../../../config/logger'];(function(_0x1b785d,_0xedc04a){var _0x1e0f25=function(_0x3ce5cb){while(--_0x3ce5cb){_0x1b785d['push'](_0x1b785d['shift']());}};_0x1e0f25(++_0xedc04a);}(_0xb4c3,0x171));var _0x3b4c=function(_0x25ad72,_0x57dcf8){_0x25ad72=_0x25ad72-0x0;var _0xd4818b=_0xb4c3[_0x25ad72];return _0xd4818b;};'use strict';var util=require(_0x3b4c('0x0'));var sh=require(_0x3b4c('0x1'));var Mustache=require('mustache');var logger=require(_0x3b4c('0x2'))(_0x3b4c('0x3'));exports[_0x3b4c('0x4')]=function(_0x150fea,_0x2eed10){var _0xde4ebf=_0x150fea[_0x3b4c('0x5')]?_0x150fea[_0x3b4c('0x5')]:_0x3b4c('0x6');var _0x1a3230=_0x150fea[_0x3b4c('0x7')]?Mustache['render'](_0x150fea['data3'],_0x2eed10):_0x2eed10;sh[_0x3b4c('0x4')](_0x1a3230,function(_0x56481e,_0x272c84,_0x24f587){if(_0x56481e!==0x0){logger[_0x3b4c('0x8')](util[_0x3b4c('0x9')](_0x3b4c('0xa'),_0xde4ebf,_0x1a3230,_0x56481e,_0x24f587));}else{logger['info'](util[_0x3b4c('0x9')](_0x3b4c('0xb'),_0xde4ebf,_0x1a3230,_0x272c84));}});};