Built motion from commit f861bcb808219e66da88ba48b61bddb35224a65e. Version 3.0.0...
[motion-next.git] / server / config / pm2 / index.js
1 'use strict';const a1019_0x5c6f=['Restarted','13XAMhQl','interpreter','restart','6gWpDUT','22UgRTiq','isProduction','229953ltzbKe','dump','saved','stop','connect','then','pm2','debug','connected','--inspect','environment','describe','vscode_debugger','15805HBnNCK','1178uSrncg','@utils/console-logger','2MHIxJh','64899ISTTlu','nodeArgs','start','415jChbpF','Stopped\x20and\x20Deleted','20646YmSwov','interpreterArgs','11gigLwG','disconnect','147996nWQXtY','interpreter_args','307052NWGBQb','delete','list','Stopped'];const a1019_0x3198=function(_0x1db8f6,_0x219ba1){_0x1db8f6=_0x1db8f6-0x1b3;let _0x5c6fc1=a1019_0x5c6f[_0x1db8f6];return _0x5c6fc1;};const a1019_0x1b127a=a1019_0x3198;(function(_0x3b669e,_0x4af82b){const _0x2cb830=a1019_0x3198;while(!![]){try{const _0x502dd8=parseInt(_0x2cb830(0x1d9))+-parseInt(_0x2cb830(0x1d5))*parseInt(_0x2cb830(0x1ca))+parseInt(_0x2cb830(0x1ba))*parseInt(_0x2cb830(0x1d7))+parseInt(_0x2cb830(0x1bb))*-parseInt(_0x2cb830(0x1d3))+parseInt(_0x2cb830(0x1cd))*-parseInt(_0x2cb830(0x1bd))+-parseInt(_0x2cb830(0x1d1))*parseInt(_0x2cb830(0x1cb))+-parseInt(_0x2cb830(0x1b7))*-parseInt(_0x2cb830(0x1ce));if(_0x502dd8===_0x4af82b)break;else _0x3b669e['push'](_0x3b669e['shift']());}catch(_0x20efa2){_0x3b669e['push'](_0x3b669e['shift']());}}}(a1019_0x5c6f,0x70c30));const pm2=require(a1019_0x1b127a(0x1c3)),{getConfig}=require('@config/get-config'),config=getConfig(),{consoleLogger}=require(a1019_0x1b127a(0x1cc));function connect(){return new Promise(function(_0x42cddd,_0x3efa4a){const _0x3a9703=a1019_0x3198;return pm2[_0x3a9703(0x1c1)](function(_0x20bb5e){const _0x5de1db=_0x3a9703;_0x20bb5e?_0x3efa4a(_0x20bb5e):_0x42cddd(_0x5de1db(0x1c5));});});}exports['start']=function(_0xb36f6c){const _0x45f774=a1019_0x1b127a;return!(config[_0x45f774(0x1bc)]||config['isTest']||config[_0x45f774(0x1c7)]===_0x45f774(0x1c9))&&(_0xb36f6c[_0x45f774(0x1b8)]='node',_0xb36f6c[_0x45f774(0x1d8)]=[_0x45f774(0x1c6)],_0xb36f6c['node_args']=['--inspect'],_0xb36f6c[_0x45f774(0x1d4)]=[_0x45f774(0x1c6)],_0xb36f6c[_0x45f774(0x1cf)]=['--inspect']),connect()[_0x45f774(0x1c2)](function(){return new Promise(function(_0x23f2d3,_0xc02f0a){const _0x1a2b65=a1019_0x3198;return pm2[_0x1a2b65(0x1d0)](_0xb36f6c,function(_0x421526,_0x5c5c6d){const _0x240d7e=_0x1a2b65;_0x421526?_0xc02f0a(_0x421526):(pm2[_0x240d7e(0x1d6)](),_0x23f2d3(_0x5c5c6d));});});});},exports[a1019_0x1b127a(0x1c0)]=function(_0x3e7c17){const _0x1d338b=a1019_0x1b127a;return connect()[_0x1d338b(0x1c2)](function(){return new Promise(function(_0x55d037,_0x3153a1){return pm2['stop'](_0x3e7c17,function(_0x42d710,_0x55c067){const _0x3c2c4a=a1019_0x3198;_0x42d710?_0x3153a1(_0x42d710):(consoleLogger[_0x3c2c4a(0x1c4)](_0x3c2c4a(0x1b5),_0x3e7c17),_0x55d037(_0x55c067));});});});},exports[a1019_0x1b127a(0x1b9)]=function(_0x4e4f15){const _0x491c6b=a1019_0x1b127a;return connect()[_0x491c6b(0x1c2)](function(){return new Promise(function(_0x4cca4a,_0x5b91a9){return pm2['restart'](_0x4e4f15,function(_0x5d95a5,_0x422b4a){const _0x1fba74=a1019_0x3198;_0x5d95a5?_0x5b91a9(_0x5d95a5):(consoleLogger[_0x1fba74(0x1c4)](_0x1fba74(0x1b6),_0x4e4f15),_0x4cca4a(_0x422b4a));});});});},exports[a1019_0x1b127a(0x1b4)]=function(){const _0x2126b1=a1019_0x1b127a;return connect()[_0x2126b1(0x1c2)](function(){return new Promise(function(_0x3a4a9b,_0x41487a){const _0x3771d3=a1019_0x3198;return pm2[_0x3771d3(0x1b4)](function(_0x17aea1,_0x1bb17f){_0x17aea1?_0x41487a(_0x17aea1):_0x3a4a9b(_0x1bb17f);});});});},exports[a1019_0x1b127a(0x1c8)]=function(_0x2ce864){return connect()['then'](function(){return new Promise(function(_0x3cd839,_0x31035e){return pm2['describe'](_0x2ce864,function(_0x2425f9,_0x464c79){_0x2425f9?_0x31035e(_0x2425f9):_0x3cd839(_0x464c79);});});});},exports[a1019_0x1b127a(0x1b3)]=function(_0x3615a7){return connect()['then'](function(){return new Promise(function(_0x4e4234,_0x47f240){return pm2['delete'](_0x3615a7,function(_0x2e03b9,_0x3b7e53){const _0x4550fb=a1019_0x3198;_0x2e03b9?_0x47f240(_0x2e03b9):(consoleLogger['debug'](_0x4550fb(0x1d2),_0x3615a7),_0x4e4234(_0x3b7e53));});});});},exports[a1019_0x1b127a(0x1be)]=function(){const _0x14138b=a1019_0x1b127a;return connect()[_0x14138b(0x1c2)](function(){return new Promise(function(_0x9e59d9,_0x2668b0){return pm2['dump'](function(_0x2440b6){const _0x1fd337=a1019_0x3198;_0x2440b6?_0x2668b0(_0x2440b6):_0x9e59d9(_0x1fd337(0x1bf));});});});};