Built motion from commit a9fb64cc6defd8fb3a5cc199221f878e91c0e969. Version 3.0.0...
[motion-next.git] / server / config / pm2 / index.js
index ddac164..6b36584 100644 (file)
@@ -1 +1 @@
-const a849_0x66be=['Stopped','../config.service','connected','restart','--inspect','saved','dump','connect','list','interpreter','start','node','isTest','Restarted','delete','interpreter_args','isProduction','environment','describe','debug','stop','interpreterArgs','Stopped\x20and\x20Deleted','then','node_args'];(function(_0x2c0212,_0x66bee){const _0x2ee007=function(_0x36bf26){while(--_0x36bf26){_0x2c0212['push'](_0x2c0212['shift']());}};_0x2ee007(++_0x66bee);}(a849_0x66be,0x163));const a849_0x2ee0=function(_0x2c0212,_0x66bee){_0x2c0212=_0x2c0212-0x0;let _0x2ee007=a849_0x66be[_0x2c0212];return _0x2ee007;};const _0x329f49=a849_0x2ee0;'use strict';const pm2=require('pm2'),cs=require(_0x329f49('0x15'))['getConfigService']();function connect(){return new Promise(function(_0x36bf26,_0x25974a){const _0x3711d9=a849_0x2ee0;return pm2[_0x3711d9('0x2')](function(_0x3eea5e){const _0x5ecf35=_0x3711d9;_0x3eea5e?_0x25974a(_0x3eea5e):_0x36bf26(_0x5ecf35('0x16'));});});}exports[_0x329f49('0x5')]=function(_0x5804c5){const _0xeb1f49=_0x329f49;return!(cs[_0xeb1f49('0xb')]||cs[_0xeb1f49('0x7')]||cs[_0xeb1f49('0xc')]==='vscode_debugger')&&(_0x5804c5[_0xeb1f49('0x4')]=_0xeb1f49('0x6'),_0x5804c5[_0xeb1f49('0xa')]=[_0xeb1f49('0x18')],_0x5804c5[_0xeb1f49('0x13')]=[_0xeb1f49('0x18')],_0x5804c5[_0xeb1f49('0x10')]=[_0xeb1f49('0x18')],_0x5804c5['nodeArgs']=['--inspect']),connect()[_0xeb1f49('0x12')](function(){return new Promise(function(_0x38e63a,_0x4e8de5){const _0x21f3ea=a849_0x2ee0;return pm2[_0x21f3ea('0x5')](_0x5804c5,function(_0x40bf99,_0x229646){_0x40bf99?_0x4e8de5(_0x40bf99):(pm2['disconnect'](),_0x38e63a(_0x229646));});});});},exports[_0x329f49('0xf')]=function(_0x4badb2){const _0x38ab27=_0x329f49;return connect()[_0x38ab27('0x12')](function(){return new Promise(function(_0x10ce78,_0x1c7fc2){const _0x4bdaa8=a849_0x2ee0;return pm2[_0x4bdaa8('0xf')](_0x4badb2,function(_0x9889f5,_0x14db16){const _0x5954cf=_0x4bdaa8;_0x9889f5?_0x1c7fc2(_0x9889f5):(console[_0x5954cf('0xe')](_0x5954cf('0x14'),_0x4badb2),_0x10ce78(_0x14db16));});});});},exports[_0x329f49('0x17')]=function(_0x488176){const _0x5b61d3=_0x329f49;return connect()[_0x5b61d3('0x12')](function(){return new Promise(function(_0xae61d8,_0x38f66a){const _0x1e3fa0=a849_0x2ee0;return pm2[_0x1e3fa0('0x17')](_0x488176,function(_0x2b563b,_0x35e0de){const _0x371135=_0x1e3fa0;_0x2b563b?_0x38f66a(_0x2b563b):(console['debug'](_0x371135('0x8'),_0x488176),_0xae61d8(_0x35e0de));});});});},exports['list']=function(){const _0x239ac9=_0x329f49;return connect()[_0x239ac9('0x12')](function(){return new Promise(function(_0x4aa4ff,_0x1956f3){const _0x3dd540=a849_0x2ee0;return pm2[_0x3dd540('0x3')](function(_0x1e5b29,_0x12ab32){_0x1e5b29?_0x1956f3(_0x1e5b29):_0x4aa4ff(_0x12ab32);});});});},exports[_0x329f49('0xd')]=function(_0x2a4a7c){const _0x5bec78=_0x329f49;return connect()[_0x5bec78('0x12')](function(){return new Promise(function(_0x4a1e8d,_0x5aab89){const _0x371dca=a849_0x2ee0;return pm2[_0x371dca('0xd')](_0x2a4a7c,function(_0x4add67,_0xc10fc2){_0x4add67?_0x5aab89(_0x4add67):_0x4a1e8d(_0xc10fc2);});});});},exports[_0x329f49('0x9')]=function(_0x24b5b1){const _0x304916=_0x329f49;return connect()[_0x304916('0x12')](function(){return new Promise(function(_0x45ba69,_0x4b811e){const _0x3e10b0=a849_0x2ee0;return pm2[_0x3e10b0('0x9')](_0x24b5b1,function(_0x7f1b6b,_0x5690b6){const _0x3bdc2c=_0x3e10b0;_0x7f1b6b?_0x4b811e(_0x7f1b6b):(console['debug'](_0x3bdc2c('0x11'),_0x24b5b1),_0x45ba69(_0x5690b6));});});});},exports['dump']=function(){const _0x17811f=_0x329f49;return connect()[_0x17811f('0x12')](function(){return new Promise(function(_0x3b44ae,_0x2b23b1){const _0x994f80=a849_0x2ee0;return pm2[_0x994f80('0x1')](function(_0x18588c){const _0x4eca03=_0x994f80;_0x18588c?_0x2b23b1(_0x18588c):_0x3b44ae(_0x4eca03('0x0'));});});});};
\ No newline at end of file
+const a849_0x4426=['disconnect','node_args','then','Restarted','dump','restart','vscode_debugger','interpreterArgs','start','pm2','delete','isTest','saved','getConfigService','stop','../config.service','Stopped\x20and\x20Deleted','debug','list','--inspect','connect','interpreter','describe','connected'];(function(_0x2eb523,_0x442686){const _0x55ec65=function(_0x5547b3){while(--_0x5547b3){_0x2eb523['push'](_0x2eb523['shift']());}};_0x55ec65(++_0x442686);}(a849_0x4426,0x1dd));const a849_0x55ec=function(_0x2eb523,_0x442686){_0x2eb523=_0x2eb523-0x0;let _0x55ec65=a849_0x4426[_0x2eb523];return _0x55ec65;};const _0x2341ee=a849_0x55ec;'use strict';const pm2=require(_0x2341ee('0xc')),cs=require(_0x2341ee('0x12'))[_0x2341ee('0x10')]();function connect(){return new Promise(function(_0x5547b3,_0x1b24d7){const _0x32ff14=a849_0x55ec;return pm2[_0x32ff14('0x17')](function(_0x2f166a){const _0x372720=_0x32ff14;_0x2f166a?_0x1b24d7(_0x2f166a):_0x5547b3(_0x372720('0x2'));});});}exports['start']=function(_0x7504b){const _0x4c8bc3=_0x2341ee;return!(cs['isProduction']||cs[_0x4c8bc3('0xe')]||cs['environment']===_0x4c8bc3('0x9'))&&(_0x7504b[_0x4c8bc3('0x0')]='node',_0x7504b['interpreter_args']=['--inspect'],_0x7504b[_0x4c8bc3('0x4')]=[_0x4c8bc3('0x16')],_0x7504b[_0x4c8bc3('0xa')]=[_0x4c8bc3('0x16')],_0x7504b['nodeArgs']=['--inspect']),connect()[_0x4c8bc3('0x5')](function(){return new Promise(function(_0x2be292,_0x1fc3e0){const _0x3020bb=a849_0x55ec;return pm2[_0x3020bb('0xb')](_0x7504b,function(_0x47eb5f,_0x194e06){const _0x2ff0ea=_0x3020bb;_0x47eb5f?_0x1fc3e0(_0x47eb5f):(pm2[_0x2ff0ea('0x3')](),_0x2be292(_0x194e06));});});});},exports[_0x2341ee('0x11')]=function(_0x28c190){const _0x539b5c=_0x2341ee;return connect()[_0x539b5c('0x5')](function(){return new Promise(function(_0x481418,_0x1780af){const _0x31e558=a849_0x55ec;return pm2[_0x31e558('0x11')](_0x28c190,function(_0x47915b,_0x30832f){const _0x5a615f=_0x31e558;_0x47915b?_0x1780af(_0x47915b):(console[_0x5a615f('0x14')]('Stopped',_0x28c190),_0x481418(_0x30832f));});});});},exports[_0x2341ee('0x8')]=function(_0x24c06a){const _0x369cfb=_0x2341ee;return connect()[_0x369cfb('0x5')](function(){return new Promise(function(_0x34742a,_0x4ed778){const _0x275306=a849_0x55ec;return pm2[_0x275306('0x8')](_0x24c06a,function(_0x37a857,_0x133a80){const _0x204771=_0x275306;_0x37a857?_0x4ed778(_0x37a857):(console[_0x204771('0x14')](_0x204771('0x6'),_0x24c06a),_0x34742a(_0x133a80));});});});},exports[_0x2341ee('0x15')]=function(){const _0x568b4b=_0x2341ee;return connect()[_0x568b4b('0x5')](function(){return new Promise(function(_0x22e17a,_0x5302d5){const _0x384067=a849_0x55ec;return pm2[_0x384067('0x15')](function(_0x532293,_0x25bb09){_0x532293?_0x5302d5(_0x532293):_0x22e17a(_0x25bb09);});});});},exports['describe']=function(_0x41a7fc){const _0x4bcfcf=_0x2341ee;return connect()[_0x4bcfcf('0x5')](function(){return new Promise(function(_0x110d05,_0x3c69a2){const _0xc81647=a849_0x55ec;return pm2[_0xc81647('0x1')](_0x41a7fc,function(_0x52d63b,_0x494302){_0x52d63b?_0x3c69a2(_0x52d63b):_0x110d05(_0x494302);});});});},exports[_0x2341ee('0xd')]=function(_0x351bfc){const _0x8b3575=_0x2341ee;return connect()[_0x8b3575('0x5')](function(){return new Promise(function(_0x30f44d,_0x4a6ad0){return pm2['delete'](_0x351bfc,function(_0x38be31,_0x37e14e){const _0x174d43=a849_0x55ec;_0x38be31?_0x4a6ad0(_0x38be31):(console[_0x174d43('0x14')](_0x174d43('0x13'),_0x351bfc),_0x30f44d(_0x37e14e));});});});},exports[_0x2341ee('0x7')]=function(){const _0x252678=_0x2341ee;return connect()[_0x252678('0x5')](function(){return new Promise(function(_0x1c27c0,_0x5f4b66){const _0x2d8a7e=a849_0x55ec;return pm2[_0x2d8a7e('0x7')](function(_0xfb6104){const _0x17102e=_0x2d8a7e;_0xfb6104?_0x5f4b66(_0xfb6104):_0x1c27c0(_0x17102e('0xf'));});});});};
\ No newline at end of file