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 _0x151e=['../../../../config/logger','bluebird','child_process','exec','info','Exec\x20gs','\x20Error\x20:','inspect','util'];(function(_0x1027b1,_0x27b97f){var _0x5b4fe7=function(_0x58d6be){while(--_0x58d6be){_0x1027b1['push'](_0x1027b1['shift']());}};_0x5b4fe7(++_0x27b97f);}(_0x151e,0x7d));var _0xe151=function(_0x388914,_0x3c63f9){_0x388914=_0x388914-0x0;var _0x1f9111=_0x151e[_0x388914];return _0x1f9111;};'use strict';var util=require(_0xe151('0x0'));var logger=require(_0xe151('0x1'))('fax');var BPromise=require(_0xe151('0x2'));var exec=require(_0xe151('0x3'))[_0xe151('0x4')];exports['execute']=function(_0x2fc867){return new BPromise(function(_0x1cf484,_0x4838fc){exec(_0x2fc867,function(_0x3418e6,_0x27c5e9,_0x4f8677){logger[_0xe151('0x5')]('Exec\x20gs',_0x27c5e9);if(_0x3418e6){logger['info'](_0xe151('0x6'),_0xe151('0x7'),util[_0xe151('0x8')](_0x3418e6,{'showHidden':![],'depth':null}),_0x27c5e9,_0x4f8677);_0x4838fc(_0x3418e6);}_0x1cf484(_0x27c5e9);});});};