Built motion from commit (unavailable).|2.5.31
[motion2.git] / server / api / system / system.controller.js
index effcb9e..e1218c4 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x439c=['status','send','getAllData','then','json','catch','killProcess','components/import/cm','format','ps\x20-p\x20%s\x20-ww\x20-o\x20args','params','split','length','indexOf','Process\x20with\x20pid\x20%s\x20not\x20found!','pid','kill','Process\x20with\x20pid\x20%s\x20killed\x20correctly','systeminformation','child_process','../../config/logger','api','util','bluebird','lodash','error','<%-\x20name\x20%>,\x20%s,\x20%s,\x20%s','inspect','name'];(function(_0x25754e,_0xe3a078){var _0x4918ca=function(_0x3a4845){while(--_0x3a4845){_0x25754e['push'](_0x25754e['shift']());}};_0x4918ca(++_0xe3a078);}(_0x439c,0x86));var _0xc439=function(_0x2d1898,_0x433d66){_0x2d1898=_0x2d1898-0x0;var _0x21f268=_0x439c[_0x2d1898];return _0x21f268;};'use strict';var info=require(_0xc439('0x0'));var exec=require(_0xc439('0x1'))['exec'];var logger=require(_0xc439('0x2'))(_0xc439('0x3'));var util=require(_0xc439('0x4'));var BPromise=require(_0xc439('0x5'));var _=require(_0xc439('0x6'));function handleError(_0x26b55c,_0x124748,_0x116f4d){_0x124748=_0x124748||0x1f4;return function(_0x3c9ede){logger[_0xc439('0x7')](_0xc439('0x8'),_0x116f4d,_0x124748,util[_0xc439('0x9')](_0x3c9ede,{'showHidden':![],'depth':null}));delete _0x3c9ede[_0xc439('0xa')];_0x26b55c[_0xc439('0xb')](_0x124748)[_0xc439('0xc')](_0x3c9ede);};}exports['index']=function(_0x3a2338,_0x52c57c){return info[_0xc439('0xd')]()[_0xc439('0xe')](function(_0x1ccfdf){return _0x52c57c[_0xc439('0xb')](0xc8)[_0xc439('0xf')](_0x1ccfdf);})[_0xc439('0x10')](function(_0x17c4a5){return _0x52c57c[_0xc439('0xb')](0x1f4)[_0xc439('0xf')](_0x17c4a5);});};exports[_0xc439('0x11')]=function(_0x53cd43,_0x35b5fa){var _0x1e30b4=[_0xc439('0x12')];return new BPromise(function(_0x557159,_0x5252b5){return exec(util[_0xc439('0x13')](_0xc439('0x14'),_0x53cd43[_0xc439('0x15')]['pid']),function(_0x154cca,_0x3baac2,_0x4d850e){if(_0x154cca){return _0x5252b5(_0x154cca);}return _0x557159(_0x3baac2);});})[_0xc439('0xe')](function(_0x16d63d){var _0x5b013f=![];var _0x1b130d=_0x16d63d[_0xc439('0x16')](/\n/);for(var _0xa2f917=0x0,_0x10f058=_0x1e30b4[_0xc439('0x17')];_0xa2f917<_0x10f058,_0x5b013f===![];_0xa2f917+=0x1){if(_0x16d63d[_0xc439('0x18')](_0x1e30b4[_0xa2f917])>=0x0){_0x5b013f=!![];}}if(!_0x5b013f){throw new Error(util[_0xc439('0x13')](_0xc439('0x19'),_0x53cd43[_0xc439('0x15')][_0xc439('0x1a')]));}process[_0xc439('0x1b')](_0x53cd43[_0xc439('0x15')][_0xc439('0x1a')],'SIGINT');return _0x35b5fa['status'](0xc8)[_0xc439('0xf')]({'message':util[_0xc439('0x13')](_0xc439('0x1c'),_0x53cd43[_0xc439('0x15')][_0xc439('0x1a')])});})[_0xc439('0x10')](handleError(_0x35b5fa,null,_0xc439('0x11')));};
\ No newline at end of file
+var _0x1f33=['kill','Process\x20with\x20pid\x20%s\x20killed\x20correctly','systeminformation','child_process','../../config/logger','api','util','bluebird','lodash','error','<%-\x20name\x20%>,\x20%s,\x20%s,\x20%s','status','getAllData','then','json','catch','killProcess','components/import/cm','format','ps\x20-p\x20%s\x20-ww\x20-o\x20args','params','pid','split','length','indexOf','Process\x20with\x20pid\x20%s\x20not\x20found!'];(function(_0x556ba1,_0x27cda1){var _0x5b1f8f=function(_0x117f64){while(--_0x117f64){_0x556ba1['push'](_0x556ba1['shift']());}};_0x5b1f8f(++_0x27cda1);}(_0x1f33,0xd2));var _0x31f3=function(_0x4c12ec,_0x2e9103){_0x4c12ec=_0x4c12ec-0x0;var _0x3ae42c=_0x1f33[_0x4c12ec];return _0x3ae42c;};'use strict';var info=require(_0x31f3('0x0'));var exec=require(_0x31f3('0x1'))['exec'];var logger=require(_0x31f3('0x2'))(_0x31f3('0x3'));var util=require(_0x31f3('0x4'));var BPromise=require(_0x31f3('0x5'));var _=require(_0x31f3('0x6'));function handleError(_0x46654f,_0x4235c7,_0x5b4c8f){_0x4235c7=_0x4235c7||0x1f4;return function(_0x4787db){logger[_0x31f3('0x7')](_0x31f3('0x8'),_0x5b4c8f,_0x4235c7,util['inspect'](_0x4787db,{'showHidden':![],'depth':null}));delete _0x4787db['name'];_0x46654f[_0x31f3('0x9')](_0x4235c7)['send'](_0x4787db);};}exports['index']=function(_0x5ceb6f,_0xd87090){return info[_0x31f3('0xa')]()[_0x31f3('0xb')](function(_0x35ac05){return _0xd87090[_0x31f3('0x9')](0xc8)[_0x31f3('0xc')](_0x35ac05);})[_0x31f3('0xd')](function(_0x1f8967){return _0xd87090[_0x31f3('0x9')](0x1f4)[_0x31f3('0xc')](_0x1f8967);});};exports[_0x31f3('0xe')]=function(_0x57160e,_0x5a2847){var _0x2f29c5=[_0x31f3('0xf')];return new BPromise(function(_0xa8adc3,_0x20c553){return exec(util[_0x31f3('0x10')](_0x31f3('0x11'),_0x57160e[_0x31f3('0x12')][_0x31f3('0x13')]),function(_0x1a5132,_0x4542c5,_0x573362){if(_0x1a5132){return _0x20c553(_0x1a5132);}return _0xa8adc3(_0x4542c5);});})[_0x31f3('0xb')](function(_0x5c61cc){var _0x5cfdd9=![];var _0x4df0bd=_0x5c61cc[_0x31f3('0x14')](/\n/);for(var _0x3d3d71=0x0,_0x23d6aa=_0x2f29c5[_0x31f3('0x15')];_0x3d3d71<_0x23d6aa,_0x5cfdd9===![];_0x3d3d71+=0x1){if(_0x5c61cc[_0x31f3('0x16')](_0x2f29c5[_0x3d3d71])>=0x0){_0x5cfdd9=!![];}}if(!_0x5cfdd9){throw new Error(util[_0x31f3('0x10')](_0x31f3('0x17'),_0x57160e[_0x31f3('0x12')][_0x31f3('0x13')]));}process[_0x31f3('0x18')](_0x57160e[_0x31f3('0x12')][_0x31f3('0x13')],'SIGINT');return _0x5a2847['status'](0xc8)[_0x31f3('0xc')]({'message':util[_0x31f3('0x10')](_0x31f3('0x19'),_0x57160e[_0x31f3('0x12')][_0x31f3('0x13')])});})[_0x31f3('0xd')](handleError(_0x5a2847,null,_0x31f3('0xe')));};
\ No newline at end of file