Built motion from commit (unavailable).|2.5.26
[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 _0xcc4f=['\x20Error\x20:','util','../../../../config/logger','fax','bluebird','child_process','exec','execute','info','Exec\x20gs'];(function(_0x436bc5,_0x47b676){var _0x3795fc=function(_0x12daa5){while(--_0x12daa5){_0x436bc5['push'](_0x436bc5['shift']());}};_0x3795fc(++_0x47b676);}(_0xcc4f,0x1a5));var _0xfcc4=function(_0x50dba0,_0x919876){_0x50dba0=_0x50dba0-0x0;var _0x42eb35=_0xcc4f[_0x50dba0];return _0x42eb35;};'use strict';var util=require(_0xfcc4('0x0'));var logger=require(_0xfcc4('0x1'))(_0xfcc4('0x2'));var BPromise=require(_0xfcc4('0x3'));var exec=require(_0xfcc4('0x4'))[_0xfcc4('0x5')];exports[_0xfcc4('0x6')]=function(_0x34fccd){return new BPromise(function(_0x57c024,_0x3e6c47){exec(_0x34fccd,function(_0xcc856a,_0x5f369d,_0x4b5355){logger[_0xfcc4('0x7')]('Exec\x20gs',_0x5f369d);if(_0xcc856a){logger[_0xfcc4('0x7')](_0xfcc4('0x8'),_0xfcc4('0x9'),util['inspect'](_0xcc856a,{'showHidden':![],'depth':null}),_0x5f369d,_0x4b5355);_0x3e6c47(_0xcc856a);}_0x57c024(_0x5f369d);});});};