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 _0xcae4=['../../../../config/logger','fax','bluebird','execute','Exec\x20gs','inspect'];(function(_0x170086,_0x4f1e04){var _0x310308=function(_0x1d2862){while(--_0x1d2862){_0x170086['push'](_0x170086['shift']());}};_0x310308(++_0x4f1e04);}(_0xcae4,0xa8));var _0x4cae=function(_0x141a1b,_0x48ce01){_0x141a1b=_0x141a1b-0x0;var _0x54319f=_0xcae4[_0x141a1b];return _0x54319f;};'use strict';var util=require('util');var logger=require(_0x4cae('0x0'))(_0x4cae('0x1'));var BPromise=require(_0x4cae('0x2'));var exec=require('child_process')['exec'];exports[_0x4cae('0x3')]=function(_0x6b74c1){return new BPromise(function(_0x3b9959,_0x46cca1){exec(_0x6b74c1,function(_0x38ed4a,_0x62b8d5,_0x43cc26){logger['info'](_0x4cae('0x4'),_0x62b8d5);if(_0x38ed4a){logger['info']('Exec\x20gs','\x20Error\x20:',util[_0x4cae('0x5')](_0x38ed4a,{'showHidden':![],'depth':null}),_0x62b8d5,_0x43cc26);_0x46cca1(_0x38ed4a);}_0x3b9959(_0x62b8d5);});});};