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 _0x8ac5=['../../../../config/logger','info','Exec\x20gs'];(function(_0x2dafbe,_0x5d04de){var _0x58a45a=function(_0x50ac96){while(--_0x50ac96){_0x2dafbe['push'](_0x2dafbe['shift']());}};_0x58a45a(++_0x5d04de);}(_0x8ac5,0xae));var _0x58ac=function(_0x2e74af,_0x309a4f){_0x2e74af=_0x2e74af-0x0;var _0xcd7e8f=_0x8ac5[_0x2e74af];return _0xcd7e8f;};'use strict';var util=require('util');var logger=require(_0x58ac('0x0'))('fax');var BPromise=require('bluebird');var exec=require('child_process')['exec'];exports['execute']=function(_0x3022e4){return new BPromise(function(_0x3c672b,_0x3eccdc){exec(_0x3022e4,function(_0x2b3770,_0x499153,_0x4b5cd0){logger[_0x58ac('0x1')](_0x58ac('0x2'),_0x499153);if(_0x2b3770){logger[_0x58ac('0x1')]('Exec\x20gs','\x20Error\x20:',util['inspect'](_0x2b3770,{'showHidden':![],'depth':null}),_0x499153,_0x4b5cd0);_0x3eccdc(_0x2b3770);}_0x3c672b(_0x499153);});});};