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 _0x5b65=['Exec\x20gs','../../../../config/logger','fax','child_process','execute','info'];(function(_0x1f2764,_0x159224){var _0x3e3b7f=function(_0x2457ab){while(--_0x2457ab){_0x1f2764['push'](_0x1f2764['shift']());}};_0x3e3b7f(++_0x159224);}(_0x5b65,0x1a5));var _0x55b6=function(_0x25a408,_0x1c7773){_0x25a408=_0x25a408-0x0;var _0x9835f3=_0x5b65[_0x25a408];return _0x9835f3;};'use strict';var util=require('util');var logger=require(_0x55b6('0x0'))(_0x55b6('0x1'));var BPromise=require('bluebird');var exec=require(_0x55b6('0x2'))['exec'];exports[_0x55b6('0x3')]=function(_0x549bd6){return new BPromise(function(_0x4856fb,_0x3d203e){exec(_0x549bd6,function(_0x9ee346,_0x1a42b5,_0x231aed){logger[_0x55b6('0x4')](_0x55b6('0x5'),_0x1a42b5);if(_0x9ee346){logger['info']('Exec\x20gs','\x20Error\x20:',util['inspect'](_0x9ee346,{'showHidden':![],'depth':null}),_0x1a42b5,_0x231aed);_0x3d203e(_0x9ee346);}_0x4856fb(_0x1a42b5);});});};