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 _0x37e7=['fax','bluebird','child_process','info','Exec\x20gs','\x20Error\x20:','../../../../config/logger'];(function(_0xfd564e,_0x4ed9b3){var _0x262c2c=function(_0x31061f){while(--_0x31061f){_0xfd564e['push'](_0xfd564e['shift']());}};_0x262c2c(++_0x4ed9b3);}(_0x37e7,0x109));var _0x737e=function(_0x187750,_0x45a31e){_0x187750=_0x187750-0x0;var _0x1a8a7e=_0x37e7[_0x187750];return _0x1a8a7e;};'use strict';var util=require('util');var logger=require(_0x737e('0x0'))(_0x737e('0x1'));var BPromise=require(_0x737e('0x2'));var exec=require(_0x737e('0x3'))['exec'];exports['execute']=function(_0x496fda){return new BPromise(function(_0x4098e7,_0x16222a){exec(_0x496fda,function(_0x321a01,_0x4e3ed3,_0x30e3b4){logger[_0x737e('0x4')](_0x737e('0x5'),_0x4e3ed3);if(_0x321a01){logger[_0x737e('0x4')](_0x737e('0x5'),_0x737e('0x6'),util['inspect'](_0x321a01,{'showHidden':![],'depth':null}),_0x4e3ed3,_0x30e3b4);_0x16222a(_0x321a01);}_0x4098e7(_0x4e3ed3);});});};