Built motion from commit da617fac.|2.6.6
[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 _0x59f8=['child_process','info','Exec\x20gs','inspect','util','../../../../config/logger','fax','bluebird'];(function(_0x3b6c03,_0x5a8aa7){var _0x5ccad9=function(_0xb5d4e4){while(--_0xb5d4e4){_0x3b6c03['push'](_0x3b6c03['shift']());}};_0x5ccad9(++_0x5a8aa7);}(_0x59f8,0x164));var _0x859f=function(_0x2509f1,_0x14deca){_0x2509f1=_0x2509f1-0x0;var _0x1953cf=_0x59f8[_0x2509f1];return _0x1953cf;};'use strict';var util=require(_0x859f('0x0'));var logger=require(_0x859f('0x1'))(_0x859f('0x2'));var BPromise=require(_0x859f('0x3'));var exec=require(_0x859f('0x4'))['exec'];exports['execute']=function(_0x114a2c){return new BPromise(function(_0x3b5e7d,_0x295ee6){exec(_0x114a2c,function(_0x403152,_0x37d572,_0x19f334){logger[_0x859f('0x5')](_0x859f('0x6'),_0x37d572);if(_0x403152){logger['info']('Exec\x20gs','\x20Error\x20:',util[_0x859f('0x7')](_0x403152,{'showHidden':![],'depth':null}),_0x37d572,_0x19f334);_0x295ee6(_0x403152);}_0x3b5e7d(_0x37d572);});});};