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 _0x90fa=['Exec\x20gs','info','\x20Error\x20:','inspect','fax','bluebird','exec'];(function(_0x421263,_0x18187d){var _0x34e4b5=function(_0x4e7978){while(--_0x4e7978){_0x421263['push'](_0x421263['shift']());}};_0x34e4b5(++_0x18187d);}(_0x90fa,0x169));var _0xa90f=function(_0x3c4de2,_0x526589){_0x3c4de2=_0x3c4de2-0x0;var _0x26009e=_0x90fa[_0x3c4de2];return _0x26009e;};'use strict';var util=require('util');var logger=require('../../../../config/logger')(_0xa90f('0x0'));var BPromise=require(_0xa90f('0x1'));var exec=require('child_process')[_0xa90f('0x2')];exports['execute']=function(_0x377a7e){return new BPromise(function(_0xee669c,_0x51e03b){exec(_0x377a7e,function(_0x32a03f,_0x38cee6,_0x15233f){logger['info'](_0xa90f('0x3'),_0x38cee6);if(_0x32a03f){logger[_0xa90f('0x4')](_0xa90f('0x3'),_0xa90f('0x5'),util[_0xa90f('0x6')](_0x32a03f,{'showHidden':![],'depth':null}),_0x38cee6,_0x15233f);_0x51e03b(_0x32a03f);}_0xee669c(_0x38cee6);});});};