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 _0x2ebf=['info','Exec\x20gs','\x20Error\x20:','inspect','util','../../../../config/logger','fax','bluebird','execute'];(function(_0x1657be,_0x4cef19){var _0x26b1f0=function(_0xd0903e){while(--_0xd0903e){_0x1657be['push'](_0x1657be['shift']());}};_0x26b1f0(++_0x4cef19);}(_0x2ebf,0x109));var _0xf2eb=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x2ebf[_0x3dd15e];return _0x231fd0;};'use strict';var util=require(_0xf2eb('0x0'));var logger=require(_0xf2eb('0x1'))(_0xf2eb('0x2'));var BPromise=require(_0xf2eb('0x3'));var exec=require('child_process')['exec'];exports[_0xf2eb('0x4')]=function(_0xe869f4){return new BPromise(function(_0x4e6fce,_0x315d42){exec(_0xe869f4,function(_0x2faf5a,_0x7d7886,_0x50c1e0){logger[_0xf2eb('0x5')](_0xf2eb('0x6'),_0x7d7886);if(_0x2faf5a){logger['info']('Exec\x20gs',_0xf2eb('0x7'),util[_0xf2eb('0x8')](_0x2faf5a,{'showHidden':![],'depth':null}),_0x7d7886,_0x50c1e0);_0x315d42(_0x2faf5a);}_0x4e6fce(_0x7d7886);});});};