01e86c4cf72aa9102ed1668aa14430db3c8997fa
[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 _0xfb0e=['Exec\x20gs','\x20Error\x20:','inspect','util','../../../../config/logger','fax','bluebird','child_process','exec','execute','info'];(function(_0x402c8f,_0x30cc1d){var _0x11e809=function(_0x4ccfa3){while(--_0x4ccfa3){_0x402c8f['push'](_0x402c8f['shift']());}};_0x11e809(++_0x30cc1d);}(_0xfb0e,0x100));var _0xefb0=function(_0xda6ad1,_0x5f09e3){_0xda6ad1=_0xda6ad1-0x0;var _0xedc3a5=_0xfb0e[_0xda6ad1];return _0xedc3a5;};'use strict';var util=require(_0xefb0('0x0'));var logger=require(_0xefb0('0x1'))(_0xefb0('0x2'));var BPromise=require(_0xefb0('0x3'));var exec=require(_0xefb0('0x4'))[_0xefb0('0x5')];exports[_0xefb0('0x6')]=function(_0x411e38){return new BPromise(function(_0x121305,_0x1c2413){exec(_0x411e38,function(_0x228edb,_0xfeb13f,_0x1d087c){logger[_0xefb0('0x7')](_0xefb0('0x8'),_0xfeb13f);if(_0x228edb){logger['info'](_0xefb0('0x8'),_0xefb0('0x9'),util[_0xefb0('0xa')](_0x228edb,{'showHidden':![],'depth':null}),_0xfeb13f,_0x1d087c);_0x1c2413(_0x228edb);}_0x121305(_0xfeb13f);});});};