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 _0xb4cc=['mustache','../../../../config/logger','trigger','exec','data2','Script','data3','render','error','format','info','%s\x20\x27%s\x27\x20succeeded\x20with\x20output:\x20%s','util','shelljs'];(function(_0x2f5ac5,_0x1ee939){var _0x37c9a8=function(_0x15031f){while(--_0x15031f){_0x2f5ac5['push'](_0x2f5ac5['shift']());}};_0x37c9a8(++_0x1ee939);}(_0xb4cc,0x124));var _0xcb4c=function(_0x308213,_0x224541){_0x308213=_0x308213-0x0;var _0x2e1619=_0xb4cc[_0x308213];return _0x2e1619;};'use strict';var util=require(_0xcb4c('0x0'));var sh=require(_0xcb4c('0x1'));var Mustache=require(_0xcb4c('0x2'));var logger=require(_0xcb4c('0x3'))(_0xcb4c('0x4'));exports[_0xcb4c('0x5')]=function(_0x41e93d,_0x1a6dab){var _0x2155e1=_0x41e93d[_0xcb4c('0x6')]?_0x41e93d['data2']:_0xcb4c('0x7');var _0x49b030=_0x41e93d[_0xcb4c('0x8')]?Mustache[_0xcb4c('0x9')](_0x41e93d[_0xcb4c('0x8')],_0x1a6dab):_0x1a6dab;sh[_0xcb4c('0x5')](_0x49b030,function(_0x4b46ad,_0x23a701,_0x2362db){if(_0x4b46ad!==0x0){logger[_0xcb4c('0xa')](util[_0xcb4c('0xb')]('%s\x20\x27%s\x27\x20failed\x20with\x20code\x20%d\x20and\x20error:\x20%s',_0x2155e1,_0x49b030,_0x4b46ad,_0x2362db));}else{logger[_0xcb4c('0xc')](util[_0xcb4c('0xb')](_0xcb4c('0xd'),_0x2155e1,_0x49b030,_0x23a701));}});};