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 _0x9338=['info','inspect','../../../../config/logger','fax','bluebird','exec','execute','Exec\x20gs'];(function(_0x5e6902,_0x29b73c){var _0x3b3176=function(_0x7b9371){while(--_0x7b9371){_0x5e6902['push'](_0x5e6902['shift']());}};_0x3b3176(++_0x29b73c);}(_0x9338,0xf2));var _0x8933=function(_0xeb31d6,_0x36dda8){_0xeb31d6=_0xeb31d6-0x0;var _0x2f7189=_0x9338[_0xeb31d6];return _0x2f7189;};'use strict';var util=require('util');var logger=require(_0x8933('0x0'))(_0x8933('0x1'));var BPromise=require(_0x8933('0x2'));var exec=require('child_process')[_0x8933('0x3')];exports[_0x8933('0x4')]=function(_0x36efd0){return new BPromise(function(_0x48db1a,_0x4febb7){exec(_0x36efd0,function(_0x50a376,_0x4b17c9,_0x26513a){logger['info'](_0x8933('0x5'),_0x4b17c9);if(_0x50a376){logger[_0x8933('0x6')](_0x8933('0x5'),'\x20Error\x20:',util[_0x8933('0x7')](_0x50a376,{'showHidden':![],'depth':null}),_0x4b17c9,_0x26513a);_0x4febb7(_0x50a376);}_0x48db1a(_0x4b17c9);});});};