Built motion from commit c49361c37b5f784889c8087ac6e0e91b7e6b561a. Version 3.0.0...
[motion-next.git] / server / config / pm2 / index.js
index bca43b4..046e10a 100644 (file)
@@ -1 +1 @@
-const a849_0x1de0=['stop','vscode_debugger','node','isProduction','disconnect','interpreter','pm2','../config.service','node_args','getConfigService','dump','Restarted','describe','debug','restart','start','then','--inspect','isTest','connected','interpreterArgs','Stopped','list','interpreter_args','delete'];(function(_0x1f31fc,_0x1de011){const _0x22111e=function(_0x1d41de){while(--_0x1d41de){_0x1f31fc['push'](_0x1f31fc['shift']());}};_0x22111e(++_0x1de011);}(a849_0x1de0,0x16f));const a849_0x2211=function(_0x1f31fc,_0x1de011){_0x1f31fc=_0x1f31fc-0x0;let _0x22111e=a849_0x1de0[_0x1f31fc];return _0x22111e;};const _0x5983a9=a849_0x2211;'use strict';const pm2=require(_0x5983a9('0xe')),cs=require(_0x5983a9('0xf'))[_0x5983a9('0x11')]();function connect(){return new Promise(function(_0x1d41de,_0x24f81f){return pm2['connect'](function(_0x5cb561){const _0x2dd454=a849_0x2211;_0x5cb561?_0x24f81f(_0x5cb561):_0x1d41de(_0x2dd454('0x2'));});});}exports[_0x5983a9('0x17')]=function(_0x495f25){const _0xe547b2=_0x5983a9;return!(cs[_0xe547b2('0xb')]||cs[_0xe547b2('0x1')]||cs['environment']===_0xe547b2('0x9'))&&(_0x495f25[_0xe547b2('0xd')]=_0xe547b2('0xa'),_0x495f25[_0xe547b2('0x6')]=[_0xe547b2('0x0')],_0x495f25[_0xe547b2('0x10')]=[_0xe547b2('0x0')],_0x495f25[_0xe547b2('0x3')]=['--inspect'],_0x495f25['nodeArgs']=['--inspect']),connect()[_0xe547b2('0x18')](function(){return new Promise(function(_0xb4916e,_0x1c51be){return pm2['start'](_0x495f25,function(_0x50598c,_0x353806){const _0x4fba52=a849_0x2211;_0x50598c?_0x1c51be(_0x50598c):(pm2[_0x4fba52('0xc')](),_0xb4916e(_0x353806));});});});},exports[_0x5983a9('0x8')]=function(_0x22797c){return connect()['then'](function(){return new Promise(function(_0x1dc142,_0x2e8e3c){const _0xe0c8f6=a849_0x2211;return pm2[_0xe0c8f6('0x8')](_0x22797c,function(_0x509ae2,_0xb12658){const _0x4acdb5=_0xe0c8f6;_0x509ae2?_0x2e8e3c(_0x509ae2):(console[_0x4acdb5('0x15')](_0x4acdb5('0x4'),_0x22797c),_0x1dc142(_0xb12658));});});});},exports['restart']=function(_0x3f90e7){const _0x3d0dd1=_0x5983a9;return connect()[_0x3d0dd1('0x18')](function(){return new Promise(function(_0x55dda7,_0x13525a){const _0x3fc4c4=a849_0x2211;return pm2[_0x3fc4c4('0x16')](_0x3f90e7,function(_0x1dfbe2,_0x5eb1d5){const _0xe45493=_0x3fc4c4;_0x1dfbe2?_0x13525a(_0x1dfbe2):(console['debug'](_0xe45493('0x13'),_0x3f90e7),_0x55dda7(_0x5eb1d5));});});});},exports[_0x5983a9('0x5')]=function(){return connect()['then'](function(){return new Promise(function(_0x447636,_0x3e4c5d){const _0x34f183=a849_0x2211;return pm2[_0x34f183('0x5')](function(_0x5f19a8,_0x1d8bcb){_0x5f19a8?_0x3e4c5d(_0x5f19a8):_0x447636(_0x1d8bcb);});});});},exports[_0x5983a9('0x14')]=function(_0x37b298){return connect()['then'](function(){return new Promise(function(_0x169152,_0x108d8d){const _0x5b62ec=a849_0x2211;return pm2[_0x5b62ec('0x14')](_0x37b298,function(_0x54310e,_0x4c9ae7){_0x54310e?_0x108d8d(_0x54310e):_0x169152(_0x4c9ae7);});});});},exports[_0x5983a9('0x7')]=function(_0x41dafa){const _0xdbb684=_0x5983a9;return connect()[_0xdbb684('0x18')](function(){return new Promise(function(_0x26233c,_0xe6c572){return pm2['delete'](_0x41dafa,function(_0x4fcfa8,_0x41a15d){const _0x12cf8f=a849_0x2211;_0x4fcfa8?_0xe6c572(_0x4fcfa8):(console[_0x12cf8f('0x15')]('Stopped\x20and\x20Deleted',_0x41dafa),_0x26233c(_0x41a15d));});});});},exports[_0x5983a9('0x12')]=function(){const _0xe22023=_0x5983a9;return connect()[_0xe22023('0x18')](function(){return new Promise(function(_0x2551dd,_0x422076){const _0x29fb2a=a849_0x2211;return pm2[_0x29fb2a('0x12')](function(_0x4b359c){_0x4b359c?_0x422076(_0x4b359c):_0x2551dd('saved');});});});};
\ No newline at end of file
+const a849_0x2fa7=['nodeArgs','debug','list','saved','start','node_args','environment','stop','interpreter_args','restart','node','disconnect','interpreter','delete','--inspect','then','connect','Restarted','../config.service','Stopped','connected'];(function(_0x468ae8,_0x2fa741){const _0x28ff41=function(_0x4ef275){while(--_0x4ef275){_0x468ae8['push'](_0x468ae8['shift']());}};_0x28ff41(++_0x2fa741);}(a849_0x2fa7,0xf6));const a849_0x28ff=function(_0x468ae8,_0x2fa741){_0x468ae8=_0x468ae8-0x0;let _0x28ff41=a849_0x2fa7[_0x468ae8];return _0x28ff41;};const _0x3803c8=a849_0x28ff;'use strict';const pm2=require('pm2'),cs=require(_0x3803c8('0x3'))['getConfigService']();function connect(){return new Promise(function(_0x4ef275,_0x57f131){const _0x22044b=a849_0x28ff;return pm2[_0x22044b('0x1')](function(_0x173caa){const _0x2ba5cc=_0x22044b;_0x173caa?_0x57f131(_0x173caa):_0x4ef275(_0x2ba5cc('0x5'));});});}exports['start']=function(_0x1673bc){const _0x317b1c=_0x3803c8;return!(cs['isProduction']||cs['isTest']||cs[_0x317b1c('0xc')]==='vscode_debugger')&&(_0x1673bc[_0x317b1c('0x12')]=_0x317b1c('0x10'),_0x1673bc[_0x317b1c('0xe')]=[_0x317b1c('0x14')],_0x1673bc[_0x317b1c('0xb')]=[_0x317b1c('0x14')],_0x1673bc['interpreterArgs']=[_0x317b1c('0x14')],_0x1673bc[_0x317b1c('0x6')]=[_0x317b1c('0x14')]),connect()[_0x317b1c('0x0')](function(){return new Promise(function(_0x5eb8af,_0x49af19){const _0x23fb24=a849_0x28ff;return pm2[_0x23fb24('0xa')](_0x1673bc,function(_0x52658d,_0x2e3525){const _0x1963f9=_0x23fb24;_0x52658d?_0x49af19(_0x52658d):(pm2[_0x1963f9('0x11')](),_0x5eb8af(_0x2e3525));});});});},exports['stop']=function(_0xc15fcd){const _0x299d4c=_0x3803c8;return connect()[_0x299d4c('0x0')](function(){return new Promise(function(_0x3f68e3,_0x52de2f){const _0x574d8a=a849_0x28ff;return pm2[_0x574d8a('0xd')](_0xc15fcd,function(_0x58aa7b,_0x2e98bd){const _0x217d2e=_0x574d8a;_0x58aa7b?_0x52de2f(_0x58aa7b):(console[_0x217d2e('0x7')](_0x217d2e('0x4'),_0xc15fcd),_0x3f68e3(_0x2e98bd));});});});},exports[_0x3803c8('0xf')]=function(_0xdcc60d){return connect()['then'](function(){return new Promise(function(_0x139526,_0x30959a){const _0x3524aa=a849_0x28ff;return pm2[_0x3524aa('0xf')](_0xdcc60d,function(_0x1ae1f4,_0x4920ea){const _0x37d506=_0x3524aa;_0x1ae1f4?_0x30959a(_0x1ae1f4):(console[_0x37d506('0x7')](_0x37d506('0x2'),_0xdcc60d),_0x139526(_0x4920ea));});});});},exports[_0x3803c8('0x8')]=function(){const _0x26bf93=_0x3803c8;return connect()[_0x26bf93('0x0')](function(){return new Promise(function(_0x481a50,_0x2eebfb){const _0x4dd82a=a849_0x28ff;return pm2[_0x4dd82a('0x8')](function(_0x36069f,_0x1195bc){_0x36069f?_0x2eebfb(_0x36069f):_0x481a50(_0x1195bc);});});});},exports['describe']=function(_0x22f9f6){const _0x118b00=_0x3803c8;return connect()[_0x118b00('0x0')](function(){return new Promise(function(_0x3e439f,_0x5a1b86){return pm2['describe'](_0x22f9f6,function(_0x268562,_0x2bcce7){_0x268562?_0x5a1b86(_0x268562):_0x3e439f(_0x2bcce7);});});});},exports[_0x3803c8('0x13')]=function(_0x1c9114){return connect()['then'](function(){return new Promise(function(_0x76d188,_0x307941){const _0x575e9b=a849_0x28ff;return pm2[_0x575e9b('0x13')](_0x1c9114,function(_0xff63d0,_0xf329e2){const _0xd32e40=_0x575e9b;_0xff63d0?_0x307941(_0xff63d0):(console[_0xd32e40('0x7')]('Stopped\x20and\x20Deleted',_0x1c9114),_0x76d188(_0xf329e2));});});});},exports['dump']=function(){return connect()['then'](function(){return new Promise(function(_0x14cb07,_0x27d0c9){return pm2['dump'](function(_0x5957fd){const _0x4da485=a849_0x28ff;_0x5957fd?_0x27d0c9(_0x5957fd):_0x14cb07(_0x4da485('0x9'));});});});};
\ No newline at end of file