trakk-js
Version:
Automatic Documentation Generation - Real-Time Code Execution Flow - Testing / Debugging - Onboarding - for Front-End Applications
1 lines • 5.27 kB
JavaScript
function _0x409b(_0x462e13,_0x56f1f9){const _0x86c42b=_0x86c4();return _0x409b=function(_0x409b1d,_0x363f7a){_0x409b1d=_0x409b1d-0xd0;let _0xd7dd23=_0x86c42b[_0x409b1d];return _0xd7dd23;},_0x409b(_0x462e13,_0x56f1f9);}const _0x39c837=_0x409b;(function(_0x15ebdc,_0x488344){const _0x28c511=_0x409b,_0x188dc9=_0x15ebdc();while(!![]){try{const _0x578473=-parseInt(_0x28c511(0xd5))/0x1+-parseInt(_0x28c511(0xe3))/0x2+parseInt(_0x28c511(0xf3))/0x3+-parseInt(_0x28c511(0xee))/0x4+parseInt(_0x28c511(0xd9))/0x5*(-parseInt(_0x28c511(0xf4))/0x6)+parseInt(_0x28c511(0xd6))/0x7*(-parseInt(_0x28c511(0xe7))/0x8)+-parseInt(_0x28c511(0xea))/0x9*(-parseInt(_0x28c511(0xec))/0xa);if(_0x578473===_0x488344)break;else _0x188dc9['push'](_0x188dc9['shift']());}catch(_0x1d1944){_0x188dc9['push'](_0x188dc9['shift']());}}}(_0x86c4,0xb2f93));import _0xeabe6f from'express';import _0x30aa6e from'get-port';import _0x345ec0 from'cors';import _0xefad17 from'./d/pl.js';import _0x420092 from'./d/il.js';import _0x274cf5 from'./d/ps.js';import _0x58b78f from'./d/gs.js';import _0x429fbf from'./d/gst.js';import _0x11b278 from'./d/gt.js';import _0x9dfe93 from'./d/cd.js';import _0x4f9784 from'./d/mini.js';import _0xb73cfd from'./vc.js';function _0x86c4(){const _0x2516f9=['ybDii','662730oxjKbX','json','delete','heodx','use','OIKwZ','Content-Disposition','then','fykhf','/local-trakk-js-api/mini','2709446AcoXah','sjeam','vrQjU','mKtKX','456CzEYkJ','log','ZJtWu','3635505gozPoQ','GET','80GlPxRP','ArnYh','22160vYSKXS','tIqSi','HHmhn','get','FRMga','2479530ClWqNt','18Felrpg','POST','fYbXP','ZHhNs','post','DYrhW','head','/local-trakk-js-api/db','/local-trakk-js-api/screenshot','DyCiv','Content-Type','/local-trakk-js-api/logs','LKIKM','kKawg','DELETE','NZVwD','820451fQxRFU','91693CDrcyu','GXaiD'];_0x86c4=function(){return _0x2516f9;};return _0x86c4();}const MAX_GB=0xa,corsOptions={'origin':'*','methods':[_0x39c837(0xeb),_0x39c837(0xf5),_0x39c837(0xd3)],'allowedHeaders':[_0x39c837(0xfe),'Content-Length',_0x39c837(0xdf)]};export default function (pathToClonedAppRootFolder){const _0x447dd1=_0x39c837,yEGGWD={'DYrhW':function(callee,param1){return callee(param1);},'QUtdj':function(callee){return callee();},'LKIKM':function(x,y){return x*y;},'fykhf':function(x,y){return x*y;},'oEmrP':_0x447dd1(0xfb),'HHmhn':_0x447dd1(0xd0),'mKtKX':function(callee,param1){return callee(param1);},'heodx':'/local-trakk-js-api/stats','OIKwZ':function(callee,param1){return callee(param1);},'ZJtWu':_0x447dd1(0xfc)};return _0x30aa6e()[_0x447dd1(0xe0)](port=>{const _0x5eb445=_0x447dd1,zvPobN={'ybDii':function(callee,param1){const _0xf38ad8=_0x409b;return yEGGWD[_0xf38ad8(0xf9)](callee,param1);},'GXaiD':function(callee){return yEGGWD['QUtdj'](callee);},'FRMga':function(x,y){const _0x546aa9=_0x409b;return yEGGWD[_0x546aa9(0xd1)](x,y);},'tIqSi':function(x,y){const _0x127edb=_0x409b;return yEGGWD[_0x127edb(0xe1)](x,y);},'DyCiv':'/local-trakk-js-api/view/code','ZHhNs':yEGGWD['oEmrP'],'sjeam':function(callee,param1){const _0x3983d9=_0x409b;return yEGGWD[_0x3983d9(0xf9)](callee,param1);},'NZVwD':yEGGWD[_0x5eb445(0xf0)],'sPaJt':_0x5eb445(0xe2),'ArnYh':function(callee,param1){const _0x23125f=_0x5eb445;return yEGGWD[_0x23125f(0xe6)](callee,param1);},'nSxCT':'/local-trakk-js-api/trakks','ilGxA':function(callee,param1){const _0x1b1383=_0x5eb445;return yEGGWD[_0x1b1383(0xe6)](callee,param1);},'fYbXP':yEGGWD[_0x5eb445(0xdc)],'AAkqh':function(callee,param1){const _0x41f3f2=_0x5eb445;return yEGGWD[_0x41f3f2(0xde)](callee,param1);},'vrQjU':yEGGWD[_0x5eb445(0xe9)]};return new Promise(async resolve=>{const _0x8eebed=_0x5eb445,xjiDPN={'kKawg':function(callee,param1){const _0x48b919=_0x409b;return zvPobN[_0x48b919(0xd8)](callee,param1);}};try{const app=zvPobN[_0x8eebed(0xd7)](_0xeabe6f);app[_0x8eebed(0xdd)](zvPobN['ybDii'](_0x345ec0,corsOptions));const limitSize=zvPobN[_0x8eebed(0xf2)](MAX_GB,0x3e8)+'mb',fixedLength=zvPobN[_0x8eebed(0xef)](0x400*0x400,0x400)*MAX_GB;app['use'](_0xeabe6f[_0x8eebed(0xda)]({'limit':limitSize,'length':fixedLength})),app['use'](_0xeabe6f['urlencoded']({'limit':limitSize,'extended':!![],'length':fixedLength})),app['get'](zvPobN[_0x8eebed(0xfd)],_0xb73cfd),app[_0x8eebed(0xdb)](zvPobN[_0x8eebed(0xf7)],zvPobN[_0x8eebed(0xe4)](_0x9dfe93,pathToClonedAppRootFolder)),app[_0x8eebed(0xfa)]('/local-trakk-js-api/ignore',_0x420092(pathToClonedAppRootFolder)),app[_0x8eebed(0xf8)](zvPobN[_0x8eebed(0xd4)],zvPobN[_0x8eebed(0xe4)](_0xefad17,pathToClonedAppRootFolder)),app[_0x8eebed(0xf1)](zvPobN['sPaJt'],zvPobN[_0x8eebed(0xed)](_0x4f9784,pathToClonedAppRootFolder)),app[_0x8eebed(0xf1)](zvPobN['nSxCT'],zvPobN['ilGxA'](_0x11b278,pathToClonedAppRootFolder)),app[_0x8eebed(0xf1)](zvPobN[_0x8eebed(0xf6)],zvPobN['AAkqh'](_0x429fbf,pathToClonedAppRootFolder)),app['post'](zvPobN[_0x8eebed(0xe5)],zvPobN[_0x8eebed(0xd8)](_0x274cf5,pathToClonedAppRootFolder)),app[_0x8eebed(0xf1)](zvPobN[_0x8eebed(0xe5)],_0x58b78f(pathToClonedAppRootFolder));const localFileServer=app['listen'](port,()=>{const _0x51130a=_0x8eebed;xjiDPN[_0x51130a(0xd2)](resolve,{'localFileServer':localFileServer,'localFileServerPort':port});});}catch(err){console[_0x8eebed(0xe8)]('\x0a\x0a[trakk.js]\x20ERROR\x20|\x20Failed\x20to\x20start\x20local\x20file\x20server\x20at\x20port\x20'+port+'\x0a\x0a');throw err;}});});}