Built motion from commit (unavailable).|2.6.0
[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 _0x6515=['Exec\x20gs','inspect','fax','bluebird','exec','execute','info'];(function(_0x35822e,_0x51505c){var _0x2ac720=function(_0x27ed86){while(--_0x27ed86){_0x35822e['push'](_0x35822e['shift']());}};_0x2ac720(++_0x51505c);}(_0x6515,0x1ad));var _0x5651=function(_0x292dbc,_0x592dc6){_0x292dbc=_0x292dbc-0x0;var _0x40986e=_0x6515[_0x292dbc];return _0x40986e;};'use strict';var util=require('util');var logger=require('../../../../config/logger')(_0x5651('0x0'));var BPromise=require(_0x5651('0x1'));var exec=require('child_process')[_0x5651('0x2')];exports[_0x5651('0x3')]=function(_0x5b45cb){return new BPromise(function(_0x489f11,_0xc12c8a){exec(_0x5b45cb,function(_0x959054,_0xe968f5,_0x23ba4f){logger[_0x5651('0x4')](_0x5651('0x5'),_0xe968f5);if(_0x959054){logger[_0x5651('0x4')](_0x5651('0x5'),'\x20Error\x20:',util[_0x5651('0x6')](_0x959054,{'showHidden':![],'depth':null}),_0xe968f5,_0x23ba4f);_0xc12c8a(_0x959054);}_0x489f11(_0xe968f5);});});};