348972a9cfef03b41cc4a0b210f810b899b05e6d
[motion2.git] / server / services / ami / fax / util / gs.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0xf00b=['bluebird','child_process','exec','execute','info','\x20Error\x20:','inspect','util','../../../../config/logger','fax'];(function(_0x4e99e0,_0xd87512){var _0x2378d5=function(_0x3abd12){while(--_0x3abd12){_0x4e99e0['push'](_0x4e99e0['shift']());}};_0x2378d5(++_0xd87512);}(_0xf00b,0xa7));var _0xbf00=function(_0x33d379,_0x2db393){_0x33d379=_0x33d379-0x0;var _0x456999=_0xf00b[_0x33d379];return _0x456999;};'use strict';var util=require(_0xbf00('0x0'));var logger=require(_0xbf00('0x1'))(_0xbf00('0x2'));var BPromise=require(_0xbf00('0x3'));var exec=require(_0xbf00('0x4'))[_0xbf00('0x5')];exports[_0xbf00('0x6')]=function(_0x35b846){return new BPromise(function(_0x237ec3,_0x2b538c){exec(_0x35b846,function(_0x3d62ba,_0x211845,_0x1b77ea){logger[_0xbf00('0x7')]('Exec\x20gs',_0x211845);if(_0x3d62ba){logger[_0xbf00('0x7')]('Exec\x20gs',_0xbf00('0x8'),util[_0xbf00('0x9')](_0x3d62ba,{'showHidden':![],'depth':null}),_0x211845,_0x1b77ea);_0x2b538c(_0x3d62ba);}_0x237ec3(_0x211845);});});};