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 _0xd077=['exec','info','Exec\x20gs','util'];(function(_0x3bd0d7,_0x121a51){var _0x20216a=function(_0x22fdcf){while(--_0x22fdcf){_0x3bd0d7['push'](_0x3bd0d7['shift']());}};_0x20216a(++_0x121a51);}(_0xd077,0xe7));var _0x7d07=function(_0x524451,_0x3f6a5d){_0x524451=_0x524451-0x0;var _0xb369b6=_0xd077[_0x524451];return _0xb369b6;};'use strict';var util=require(_0x7d07('0x0'));var logger=require('../../../../config/logger')('fax');var BPromise=require('bluebird');var exec=require('child_process')[_0x7d07('0x1')];exports['execute']=function(_0x37fd35){return new BPromise(function(_0xa2f4c7,_0xf1676d){exec(_0x37fd35,function(_0x40744f,_0x232556,_0x17cc87){logger[_0x7d07('0x2')](_0x7d07('0x3'),_0x232556);if(_0x40744f){logger[_0x7d07('0x2')](_0x7d07('0x3'),'\x20Error\x20:',util['inspect'](_0x40744f,{'showHidden':![],'depth':null}),_0x232556,_0x17cc87);_0xf1676d(_0x40744f);}_0xa2f4c7(_0x232556);});});};