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 _0xcc7b=['../../../../config/logger','fax','child_process','exec','execute','info','Exec\x20gs','\x20Error\x20:','inspect'];(function(_0x2c91e9,_0x2fb965){var _0x13f0ff=function(_0xb39edf){while(--_0xb39edf){_0x2c91e9['push'](_0x2c91e9['shift']());}};_0x13f0ff(++_0x2fb965);}(_0xcc7b,0xc6));var _0xbcc7=function(_0x3ab51d,_0x2fa01d){_0x3ab51d=_0x3ab51d-0x0;var _0x29a04e=_0xcc7b[_0x3ab51d];return _0x29a04e;};'use strict';var util=require('util');var logger=require(_0xbcc7('0x0'))(_0xbcc7('0x1'));var BPromise=require('bluebird');var exec=require(_0xbcc7('0x2'))[_0xbcc7('0x3')];exports[_0xbcc7('0x4')]=function(_0x2f2876){return new BPromise(function(_0x382e47,_0x19937f){exec(_0x2f2876,function(_0x4eb771,_0x888910,_0x1f6bc3){logger['info']('Exec\x20gs',_0x888910);if(_0x4eb771){logger[_0xbcc7('0x5')](_0xbcc7('0x6'),_0xbcc7('0x7'),util[_0xbcc7('0x8')](_0x4eb771,{'showHidden':![],'depth':null}),_0x888910,_0x1f6bc3);_0x19937f(_0x4eb771);}_0x382e47(_0x888910);});});};