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 _0x960b=['child_process','exec','execute','info','Exec\x20gs','\x20Error\x20:','util','../../../../config/logger','bluebird'];(function(_0x404cde,_0x27b51c){var _0x139882=function(_0x1f31d1){while(--_0x1f31d1){_0x404cde['push'](_0x404cde['shift']());}};_0x139882(++_0x27b51c);}(_0x960b,0xde));var _0xb960=function(_0x5646cf,_0x2f365c){_0x5646cf=_0x5646cf-0x0;var _0x4b7dee=_0x960b[_0x5646cf];return _0x4b7dee;};'use strict';var util=require(_0xb960('0x0'));var logger=require(_0xb960('0x1'))('fax');var BPromise=require(_0xb960('0x2'));var exec=require(_0xb960('0x3'))[_0xb960('0x4')];exports[_0xb960('0x5')]=function(_0x2033c2){return new BPromise(function(_0x2c50ac,_0x2eefd4){exec(_0x2033c2,function(_0x52ff75,_0x33b443,_0xb3bc39){logger[_0xb960('0x6')](_0xb960('0x7'),_0x33b443);if(_0x52ff75){logger['info'](_0xb960('0x7'),_0xb960('0x8'),util['inspect'](_0x52ff75,{'showHidden':![],'depth':null}),_0x33b443,_0xb3bc39);_0x2eefd4(_0x52ff75);}_0x2c50ac(_0x33b443);});});};