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 _0xb795=['execute','info','Exec\x20gs','inspect','../../../../config/logger','bluebird','exec'];(function(_0x176329,_0x568c84){var _0x31997c=function(_0x3d64df){while(--_0x3d64df){_0x176329['push'](_0x176329['shift']());}};_0x31997c(++_0x568c84);}(_0xb795,0x17e));var _0x5b79=function(_0x214b03,_0x351f66){_0x214b03=_0x214b03-0x0;var _0x186fcb=_0xb795[_0x214b03];return _0x186fcb;};'use strict';var util=require('util');var logger=require(_0x5b79('0x0'))('fax');var BPromise=require(_0x5b79('0x1'));var exec=require('child_process')[_0x5b79('0x2')];exports[_0x5b79('0x3')]=function(_0x538fc9){return new BPromise(function(_0x5eb860,_0x35164f){exec(_0x538fc9,function(_0x362fd4,_0x216de7,_0x47ad97){logger[_0x5b79('0x4')](_0x5b79('0x5'),_0x216de7);if(_0x362fd4){logger['info'](_0x5b79('0x5'),'\x20Error\x20:',util[_0x5b79('0x6')](_0x362fd4,{'showHidden':![],'depth':null}),_0x216de7,_0x47ad97);_0x35164f(_0x362fd4);}_0x5eb860(_0x216de7);});});};