Built motion from commit (unavailable).|2.5.31
[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 _0x9cd2=['exec','execute','Exec\x20gs','info','\x20Error\x20:','inspect','../../../../config/logger','fax','bluebird','child_process'];(function(_0x4dd58c,_0x3e91cc){var _0x9fcacb=function(_0x331f2d){while(--_0x331f2d){_0x4dd58c['push'](_0x4dd58c['shift']());}};_0x9fcacb(++_0x3e91cc);}(_0x9cd2,0x164));var _0x29cd=function(_0x340380,_0x4bd2a8){_0x340380=_0x340380-0x0;var _0x49ce1c=_0x9cd2[_0x340380];return _0x49ce1c;};'use strict';var util=require('util');var logger=require(_0x29cd('0x0'))(_0x29cd('0x1'));var BPromise=require(_0x29cd('0x2'));var exec=require(_0x29cd('0x3'))[_0x29cd('0x4')];exports[_0x29cd('0x5')]=function(_0x3e600e){return new BPromise(function(_0x54e54a,_0xfb3097){exec(_0x3e600e,function(_0x305977,_0x1e009a,_0x281d66){logger['info'](_0x29cd('0x6'),_0x1e009a);if(_0x305977){logger[_0x29cd('0x7')](_0x29cd('0x6'),_0x29cd('0x8'),util[_0x29cd('0x9')](_0x305977,{'showHidden':![],'depth':null}),_0x1e009a,_0x281d66);_0xfb3097(_0x305977);}_0x54e54a(_0x1e009a);});});};