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 _0xed7f=['shelljs','../../../../config/logger','trigger','exec','data2','Script','data3','%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'];(function(_0x26462c,_0xd20a35){var _0x509a42=function(_0x1b22c9){while(--_0x1b22c9){_0x26462c['push'](_0x26462c['shift']());}};_0x509a42(++_0xd20a35);}(_0xed7f,0x13e));var _0xfed7=function(_0x1dc1bc,_0x13522c){_0x1dc1bc=_0x1dc1bc-0x0;var _0xe8656e=_0xed7f[_0x1dc1bc];return _0xe8656e;};'use strict';var util=require(_0xfed7('0x0'));var sh=require(_0xfed7('0x1'));var Mustache=require('mustache');var logger=require(_0xfed7('0x2'))(_0xfed7('0x3'));exports[_0xfed7('0x4')]=function(_0x39d9d4,_0x16ad3f){var _0x101880=_0x39d9d4[_0xfed7('0x5')]?_0x39d9d4['data2']:_0xfed7('0x6');var _0x43e461=_0x39d9d4[_0xfed7('0x7')]?Mustache['render'](_0x39d9d4[_0xfed7('0x7')],_0x16ad3f):_0x16ad3f;sh[_0xfed7('0x4')](_0x43e461,function(_0x266ff0,_0x2be4bd,_0x569de3){if(_0x266ff0!==0x0){logger['error'](util['format'](_0xfed7('0x8'),_0x101880,_0x43e461,_0x266ff0,_0x569de3));}else{logger[_0xfed7('0x9')](util['format'](_0xfed7('0xa'),_0x101880,_0x43e461,_0x2be4bd));}});};