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 _0x1a16=['data3','render','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','util','shelljs','mustache','../../../../config/logger','trigger','exec','data2','Script'];(function(_0xbb1dd2,_0x25f832){var _0x551936=function(_0x1e9cef){while(--_0x1e9cef){_0xbb1dd2['push'](_0xbb1dd2['shift']());}};_0x551936(++_0x25f832);}(_0x1a16,0x1b8));var _0x61a1=function(_0x46bed5,_0x141b81){_0x46bed5=_0x46bed5-0x0;var _0x1205ae=_0x1a16[_0x46bed5];return _0x1205ae;};'use strict';var util=require(_0x61a1('0x0'));var sh=require(_0x61a1('0x1'));var Mustache=require(_0x61a1('0x2'));var logger=require(_0x61a1('0x3'))(_0x61a1('0x4'));exports[_0x61a1('0x5')]=function(_0x3e2c14,_0x3785c6){var _0x504d19=_0x3e2c14[_0x61a1('0x6')]?_0x3e2c14[_0x61a1('0x6')]:_0x61a1('0x7');var _0x24002d=_0x3e2c14[_0x61a1('0x8')]?Mustache[_0x61a1('0x9')](_0x3e2c14['data3'],_0x3785c6):_0x3785c6;sh[_0x61a1('0x5')](_0x24002d,function(_0x2c09e0,_0x460cb8,_0x17395a){if(_0x2c09e0!==0x0){logger['error'](util[_0x61a1('0xa')](_0x61a1('0xb'),_0x504d19,_0x24002d,_0x2c09e0,_0x17395a));}else{logger[_0x61a1('0xc')](util[_0x61a1('0xa')](_0x61a1('0xd'),_0x504d19,_0x24002d,_0x460cb8));}});};