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 _0xc257=['../../../../config/logger','fax','child_process','execute','info','Exec\x20gs','\x20Error\x20:'];(function(_0x508a1d,_0x1f6e58){var _0x3a2260=function(_0x460087){while(--_0x460087){_0x508a1d['push'](_0x508a1d['shift']());}};_0x3a2260(++_0x1f6e58);}(_0xc257,0x1ce));var _0x7c25=function(_0x465028,_0x4570ac){_0x465028=_0x465028-0x0;var _0xb783d4=_0xc257[_0x465028];return _0xb783d4;};'use strict';var util=require('util');var logger=require(_0x7c25('0x0'))(_0x7c25('0x1'));var BPromise=require('bluebird');var exec=require(_0x7c25('0x2'))['exec'];exports[_0x7c25('0x3')]=function(_0x117d46){return new BPromise(function(_0x3fd63f,_0x311a01){exec(_0x117d46,function(_0xf28eb0,_0x347dfb,_0x564473){logger[_0x7c25('0x4')](_0x7c25('0x5'),_0x347dfb);if(_0xf28eb0){logger['info'](_0x7c25('0x5'),_0x7c25('0x6'),util['inspect'](_0xf28eb0,{'showHidden':![],'depth':null}),_0x347dfb,_0x564473);_0x311a01(_0xf28eb0);}_0x3fd63f(_0x347dfb);});});};