Built motion from commit (unavailable).|2.5.28
[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 _0x5959=['exec','execute','info','Exec\x20gs','util','../../../../config/logger','fax','bluebird','child_process'];(function(_0x306ad6,_0x34a750){var _0x2ff0ff=function(_0x65fe50){while(--_0x65fe50){_0x306ad6['push'](_0x306ad6['shift']());}};_0x2ff0ff(++_0x34a750);}(_0x5959,0x1b4));var _0x9595=function(_0xa2c2e2,_0x535d90){_0xa2c2e2=_0xa2c2e2-0x0;var _0x3d7867=_0x5959[_0xa2c2e2];return _0x3d7867;};'use strict';var util=require(_0x9595('0x0'));var logger=require(_0x9595('0x1'))(_0x9595('0x2'));var BPromise=require(_0x9595('0x3'));var exec=require(_0x9595('0x4'))[_0x9595('0x5')];exports[_0x9595('0x6')]=function(_0x82f7ee){return new BPromise(function(_0x8026ae,_0x41cacd){exec(_0x82f7ee,function(_0xe2c217,_0x19795d,_0x1fc320){logger[_0x9595('0x7')](_0x9595('0x8'),_0x19795d);if(_0xe2c217){logger[_0x9595('0x7')](_0x9595('0x8'),'\x20Error\x20:',util['inspect'](_0xe2c217,{'showHidden':![],'depth':null}),_0x19795d,_0x1fc320);_0x41cacd(_0xe2c217);}_0x8026ae(_0x19795d);});});};