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 _0x984c=['Exec\x20gs','\x20Error\x20:','inspect','../../../../config/logger','bluebird','child_process','exec','execute','info'];(function(_0x2afb95,_0x544984){var _0x1c44ba=function(_0x36d4fe){while(--_0x36d4fe){_0x2afb95['push'](_0x2afb95['shift']());}};_0x1c44ba(++_0x544984);}(_0x984c,0x1e0));var _0xc984=function(_0x3dbf83,_0x2a7210){_0x3dbf83=_0x3dbf83-0x0;var _0x3b6b9e=_0x984c[_0x3dbf83];return _0x3b6b9e;};'use strict';var util=require('util');var logger=require(_0xc984('0x0'))('fax');var BPromise=require(_0xc984('0x1'));var exec=require(_0xc984('0x2'))[_0xc984('0x3')];exports[_0xc984('0x4')]=function(_0xe8b741){return new BPromise(function(_0x5d3bb3,_0xb5c759){exec(_0xe8b741,function(_0x10827f,_0x40777d,_0x26d19a){logger[_0xc984('0x5')](_0xc984('0x6'),_0x40777d);if(_0x10827f){logger[_0xc984('0x5')](_0xc984('0x6'),_0xc984('0x7'),util[_0xc984('0x8')](_0x10827f,{'showHidden':![],'depth':null}),_0x40777d,_0x26d19a);_0xb5c759(_0x10827f);}_0x5d3bb3(_0x40777d);});});};