Built motion from commit f25620e4.|2.6.30
[motion2.git] / server / services / ami / fax / util / gs.js
index 45adfe1..9911fc8 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xa4ad=['exec','info','Exec\x20gs','\x20Error\x20:','inspect','../../../../config/logger','fax','bluebird','child_process'];(function(_0x1079b3,_0x1c3c8e){var _0x2be27e=function(_0x38d54b){while(--_0x38d54b){_0x1079b3['push'](_0x1079b3['shift']());}};_0x2be27e(++_0x1c3c8e);}(_0xa4ad,0xc2));var _0xda4a=function(_0x3bef2c,_0x5a86fd){_0x3bef2c=_0x3bef2c-0x0;var _0x331503=_0xa4ad[_0x3bef2c];return _0x331503;};'use strict';var util=require('util');var logger=require(_0xda4a('0x0'))(_0xda4a('0x1'));var BPromise=require(_0xda4a('0x2'));var exec=require(_0xda4a('0x3'))[_0xda4a('0x4')];exports['execute']=function(_0x25d81a){return new BPromise(function(_0xdac76c,_0x252c42){exec(_0x25d81a,function(_0x3b092f,_0x3e8421,_0x48d599){logger[_0xda4a('0x5')](_0xda4a('0x6'),_0x3e8421);if(_0x3b092f){logger['info'](_0xda4a('0x6'),_0xda4a('0x7'),util[_0xda4a('0x8')](_0x3b092f,{'showHidden':![],'depth':null}),_0x3e8421,_0x48d599);_0x252c42(_0x3b092f);}_0xdac76c(_0x3e8421);});});};
\ No newline at end of file
+var _0xa8f7=['Exec\x20gs','info','fax','bluebird','child_process'];(function(_0x57acf8,_0x5cc0e0){var _0x2b5a45=function(_0x490306){while(--_0x490306){_0x57acf8['push'](_0x57acf8['shift']());}};_0x2b5a45(++_0x5cc0e0);}(_0xa8f7,0x1d3));var _0x7a8f=function(_0x51a036,_0x208d6f){_0x51a036=_0x51a036-0x0;var _0x202911=_0xa8f7[_0x51a036];return _0x202911;};'use strict';var util=require('util');var logger=require('../../../../config/logger')(_0x7a8f('0x0'));var BPromise=require(_0x7a8f('0x1'));var exec=require(_0x7a8f('0x2'))['exec'];exports['execute']=function(_0x1866c5){return new BPromise(function(_0x395857,_0x141022){exec(_0x1866c5,function(_0x4fcdd4,_0x27f80b,_0x24ac32){logger['info'](_0x7a8f('0x3'),_0x27f80b);if(_0x4fcdd4){logger[_0x7a8f('0x4')](_0x7a8f('0x3'),'\x20Error\x20:',util['inspect'](_0x4fcdd4,{'showHidden':![],'depth':null}),_0x27f80b,_0x24ac32);_0x141022(_0x4fcdd4);}_0x395857(_0x27f80b);});});};
\ No newline at end of file