Built motion from commit 459747fdfe53bbf13fbede61eeaffea1f1438f86. Version 3.0.0...
[motion-next.git] / server / api / system / system.controller.js
index ce685a6..d5c747e 100644 (file)
@@ -1 +1 @@
-const a619_0x2a37=['name','Process\x20with\x20pid\x20%s\x20not\x20found!','params','send','length','getAllData','SIGINT','format','indexOf','status','util','systeminformation','pid','killProcess','then','components/import/cm','catch','exec','ps\x20-p\x20%s\x20-ww\x20-o\x20args','error','child_process','api','json'];(function(_0x2ead96,_0x2a37f9){const _0x3023af=function(_0x40fc86){while(--_0x40fc86){_0x2ead96['push'](_0x2ead96['shift']());}};_0x3023af(++_0x2a37f9);}(a619_0x2a37,0x98));const a619_0x3023=function(_0x2ead96,_0x2a37f9){_0x2ead96=_0x2ead96-0x0;let _0x3023af=a619_0x2a37[_0x2ead96];return _0x3023af;};const _0x11959b=a619_0x3023;'use strict';const info=require(_0x11959b('0x14')),exec=require(_0x11959b('0x6'))[_0x11959b('0x3')],logger=require('../../config/logger')(_0x11959b('0x7')),util=require(_0x11959b('0x13'));function handleError(_0x40fc86,_0x13f2d9,_0x444134){return _0x13f2d9=_0x13f2d9||0x1f4,function(_0xcacaaa){const _0x3f0fa5=a619_0x3023;logger[_0x3f0fa5('0x5')]('<%-\x20name\x20%>,\x20%s,\x20%s,\x20%s',_0x444134,_0x13f2d9,util['inspect'](_0xcacaaa,{'showHidden':![],'depth':null})),delete _0xcacaaa[_0x3f0fa5('0x9')],_0x40fc86['status'](_0x13f2d9)[_0x3f0fa5('0xc')](_0xcacaaa);};}exports['index']=function(_0x329599,_0x23f8f8){const _0x1bd597=_0x11959b;return info[_0x1bd597('0xe')]()[_0x1bd597('0x0')](function(_0x61d297){const _0x1e03b1=_0x1bd597;return _0x23f8f8[_0x1e03b1('0x12')](0xc8)[_0x1e03b1('0x8')](_0x61d297);})['catch'](function(_0x40d97a){const _0x47f4c1=_0x1bd597;return _0x23f8f8[_0x47f4c1('0x12')](0x1f4)[_0x47f4c1('0x8')](_0x40d97a);});},exports['killProcess']=function(_0x368e79,_0x2d95c6){const _0x3ddcb9=_0x11959b,_0x1a6c43=[_0x3ddcb9('0x1')];return new Promise(function(_0x1ac21c,_0x3f3cf7){const _0x470a99=_0x3ddcb9;return exec(util[_0x470a99('0x10')](_0x470a99('0x4'),_0x368e79['params'][_0x470a99('0x15')]),function(_0x3fc440,_0x1cd6aa){if(_0x3fc440)return _0x3f3cf7(_0x3fc440);return _0x1ac21c(_0x1cd6aa);});})[_0x3ddcb9('0x0')](function(_0x25c10b){const _0x14c218=_0x3ddcb9;let _0x59ee0e=![];for(let _0x4b3071=0x0,_0x1627cd=_0x1a6c43[_0x14c218('0xd')];_0x4b3071<_0x1627cd,_0x59ee0e===![];_0x4b3071+=0x1){_0x25c10b[_0x14c218('0x11')](_0x1a6c43[_0x4b3071])>=0x0&&(_0x59ee0e=!![]);}if(!_0x59ee0e)throw new Error(util['format'](_0x14c218('0xa'),_0x368e79[_0x14c218('0xb')]['pid']));return process['kill'](_0x368e79['params']['pid'],_0x14c218('0xf')),_0x2d95c6['status'](0xc8)[_0x14c218('0x8')]({'message':util[_0x14c218('0x10')]('Process\x20with\x20pid\x20%s\x20killed\x20correctly',_0x368e79[_0x14c218('0xb')][_0x14c218('0x15')])});})[_0x3ddcb9('0x2')](handleError(_0x2d95c6,null,_0x3ddcb9('0x16')));};
\ No newline at end of file
+const a619_0x395d=['kill','params','catch','then','killProcess','send','error','child_process','format','ps\x20-p\x20%s\x20-ww\x20-o\x20args','Process\x20with\x20pid\x20%s\x20killed\x20correctly','api','json','components/import/cm','util','name','systeminformation','status','inspect','Process\x20with\x20pid\x20%s\x20not\x20found!','getAllData','pid','indexOf','../../config/logger'];(function(_0x24678b,_0x395de4){const _0x4e4afe=function(_0x28a3c){while(--_0x28a3c){_0x24678b['push'](_0x24678b['shift']());}};_0x4e4afe(++_0x395de4);}(a619_0x395d,0x135));const a619_0x4e4a=function(_0x24678b,_0x395de4){_0x24678b=_0x24678b-0x0;let _0x4e4afe=a619_0x395d[_0x24678b];return _0x4e4afe;};const _0x55ad76=a619_0x4e4a;'use strict';const info=require(_0x55ad76('0x13')),exec=require(_0x55ad76('0xa'))['exec'],logger=require(_0x55ad76('0x2'))(_0x55ad76('0xe')),util=require(_0x55ad76('0x11'));function handleError(_0x28a3c,_0x25e57c,_0xf5ee3e){return _0x25e57c=_0x25e57c||0x1f4,function(_0x94255d){const _0x5db52a=a619_0x4e4a;logger[_0x5db52a('0x9')]('<%-\x20name\x20%>,\x20%s,\x20%s,\x20%s',_0xf5ee3e,_0x25e57c,util[_0x5db52a('0x15')](_0x94255d,{'showHidden':![],'depth':null})),delete _0x94255d[_0x5db52a('0x12')],_0x28a3c[_0x5db52a('0x14')](_0x25e57c)[_0x5db52a('0x8')](_0x94255d);};}exports['index']=function(_0x439b86,_0x4f7221){const _0x20982c=_0x55ad76;return info[_0x20982c('0x17')]()[_0x20982c('0x6')](function(_0x489b5e){const _0xf22371=_0x20982c;return _0x4f7221['status'](0xc8)[_0xf22371('0xf')](_0x489b5e);})[_0x20982c('0x5')](function(_0x3cb040){const _0x47f17a=_0x20982c;return _0x4f7221[_0x47f17a('0x14')](0x1f4)['json'](_0x3cb040);});},exports[_0x55ad76('0x7')]=function(_0x3e36b0,_0x364522){const _0x367093=_0x55ad76,_0x114d81=[_0x367093('0x10')];return new Promise(function(_0x56de9b,_0x1bc5d3){const _0x4d7dfd=_0x367093;return exec(util[_0x4d7dfd('0xb')](_0x4d7dfd('0xc'),_0x3e36b0[_0x4d7dfd('0x4')][_0x4d7dfd('0x0')]),function(_0x399f0e,_0x484287){if(_0x399f0e)return _0x1bc5d3(_0x399f0e);return _0x56de9b(_0x484287);});})[_0x367093('0x6')](function(_0xa01800){const _0x5a44e1=_0x367093;let _0x37bc34=![];for(let _0x50ed9a=0x0,_0x22916c=_0x114d81['length'];_0x50ed9a<_0x22916c,_0x37bc34===![];_0x50ed9a+=0x1){_0xa01800[_0x5a44e1('0x1')](_0x114d81[_0x50ed9a])>=0x0&&(_0x37bc34=!![]);}if(!_0x37bc34)throw new Error(util[_0x5a44e1('0xb')](_0x5a44e1('0x16'),_0x3e36b0['params']['pid']));return process[_0x5a44e1('0x3')](_0x3e36b0['params'][_0x5a44e1('0x0')],'SIGINT'),_0x364522['status'](0xc8)['json']({'message':util['format'](_0x5a44e1('0xd'),_0x3e36b0[_0x5a44e1('0x4')][_0x5a44e1('0x0')])});})[_0x367093('0x5')](handleError(_0x364522,null,_0x367093('0x7')));};
\ No newline at end of file