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 _0x329c=['\x20Error\x20:','inspect','util','../../../../config/logger','fax','bluebird','child_process','exec','execute','info','Exec\x20gs'];(function(_0x326c90,_0x143586){var _0x553370=function(_0xaedd29){while(--_0xaedd29){_0x326c90['push'](_0x326c90['shift']());}};_0x553370(++_0x143586);}(_0x329c,0x91));var _0xc329=function(_0x4854d6,_0x2f1264){_0x4854d6=_0x4854d6-0x0;var _0x3885c0=_0x329c[_0x4854d6];return _0x3885c0;};'use strict';var util=require(_0xc329('0x0'));var logger=require(_0xc329('0x1'))(_0xc329('0x2'));var BPromise=require(_0xc329('0x3'));var exec=require(_0xc329('0x4'))[_0xc329('0x5')];exports[_0xc329('0x6')]=function(_0x1982db){return new BPromise(function(_0xc077db,_0x2365d4){exec(_0x1982db,function(_0x567169,_0x169526,_0x1f750c){logger[_0xc329('0x7')]('Exec\x20gs',_0x169526);if(_0x567169){logger[_0xc329('0x7')](_0xc329('0x8'),_0xc329('0x9'),util[_0xc329('0xa')](_0x567169,{'showHidden':![],'depth':null}),_0x169526,_0x1f750c);_0x2365d4(_0x567169);}_0xc077db(_0x169526);});});};