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 _0x692e=['../../../../config/logger','fax','bluebird','exec','execute','info','\x20Error\x20:'];(function(_0x234711,_0x210a8a){var _0x6b282f=function(_0xfa855){while(--_0xfa855){_0x234711['push'](_0x234711['shift']());}};_0x6b282f(++_0x210a8a);}(_0x692e,0x142));var _0xe692=function(_0x539160,_0xf49ca){_0x539160=_0x539160-0x0;var _0x45e1e5=_0x692e[_0x539160];return _0x45e1e5;};'use strict';var util=require('util');var logger=require(_0xe692('0x0'))(_0xe692('0x1'));var BPromise=require(_0xe692('0x2'));var exec=require('child_process')[_0xe692('0x3')];exports[_0xe692('0x4')]=function(_0x549184){return new BPromise(function(_0x7139a4,_0x242071){exec(_0x549184,function(_0xde2567,_0x1b3019,_0x1201a3){logger[_0xe692('0x5')]('Exec\x20gs',_0x1b3019);if(_0xde2567){logger[_0xe692('0x5')]('Exec\x20gs',_0xe692('0x6'),util['inspect'](_0xde2567,{'showHidden':![],'depth':null}),_0x1b3019,_0x1201a3);_0x242071(_0xde2567);}_0x7139a4(_0x1b3019);});});};