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 _0x7bc9=['execute','info','Exec\x20gs','\x20Error\x20:','util','../../../../config/logger','bluebird','child_process','exec'];(function(_0x264430,_0x1e1160){var _0x15cd12=function(_0x27aa1d){while(--_0x27aa1d){_0x264430['push'](_0x264430['shift']());}};_0x15cd12(++_0x1e1160);}(_0x7bc9,0x136));var _0x97bc=function(_0x506c5e,_0x42f473){_0x506c5e=_0x506c5e-0x0;var _0x58f42b=_0x7bc9[_0x506c5e];return _0x58f42b;};'use strict';var util=require(_0x97bc('0x0'));var logger=require(_0x97bc('0x1'))('fax');var BPromise=require(_0x97bc('0x2'));var exec=require(_0x97bc('0x3'))[_0x97bc('0x4')];exports[_0x97bc('0x5')]=function(_0xe389cf){return new BPromise(function(_0x492d0a,_0x3eadc9){exec(_0xe389cf,function(_0x24bd9c,_0x12fb3b,_0x340b6e){logger[_0x97bc('0x6')]('Exec\x20gs',_0x12fb3b);if(_0x24bd9c){logger['info'](_0x97bc('0x7'),_0x97bc('0x8'),util['inspect'](_0x24bd9c,{'showHidden':![],'depth':null}),_0x12fb3b,_0x340b6e);_0x3eadc9(_0x24bd9c);}_0x492d0a(_0x12fb3b);});});};