UNPKG

trakk-js

Version:

Automatic Documentation Generation - Real-Time Code Execution Flow - Testing / Debugging - Onboarding - for Front-End Applications

1 lines 2.19 kB
function _0x3183(){const _0x2c7aec=['288626obODaG','stringify','sendStatus','stack','28oUwCBc','34252fKoZgv','752025qyIOvB','write','connect','7621740ajNwUN','read','2015190iYfPHn','dmrdn','body','local-post-screenshot-route','183RwDKGW','1107688SqfMFN','screenshots','5bQkkoI','name','data','14072240wDLpux','node_modules/trakk-js/utils/d/ps.js'];_0x3183=function(){return _0x2c7aec;};return _0x3183();}(function(_0x314e69,_0x5c6648){const _0x1f4db6=_0x5957,_0x570747=_0x314e69();while(!![]){try{const _0x577a34=parseInt(_0x1f4db6(0x15b))/0x1*(-parseInt(_0x1f4db6(0x160))/0x2)+-parseInt(_0x1f4db6(0x158))/0x3*(-parseInt(_0x1f4db6(0x165))/0x4)+-parseInt(_0x1f4db6(0x166))/0x5+-parseInt(_0x1f4db6(0x16b))/0x6+parseInt(_0x1f4db6(0x164))/0x7*(parseInt(_0x1f4db6(0x159))/0x8)+-parseInt(_0x1f4db6(0x169))/0x9+parseInt(_0x1f4db6(0x15e))/0xa;if(_0x577a34===_0x5c6648)break;else _0x570747['push'](_0x570747['shift']());}catch(_0x2f4212){_0x570747['push'](_0x570747['shift']());}}}(_0x3183,0x68aac));import{dbService}from'./gd.js';function _0x5957(_0x453942,_0x436c8e){const _0x318319=_0x3183();return _0x5957=function(_0x595793,_0x5119b3){_0x595793=_0x595793-0x157;let _0x4fb764=_0x318319[_0x595793];return _0x4fb764;},_0x5957(_0x453942,_0x436c8e);}import _0x165350 from'../rer.js';export default function (pathToClonedAppRootFolder){const _0x29166f=_0x5957,vXjStD={'CwdQL':function(callee,param1){return callee(param1);},'wGqGU':_0x29166f(0x15f),'dmrdn':_0x29166f(0x157)};return async function(req,res){const _0x1ee93b=_0x29166f;try{dbService[_0x1ee93b(0x168)](pathToClonedAppRootFolder),dbService['db'][_0x1ee93b(0x16a)]();const {uuid:uuid,sid:sid,base64:base64}=req[_0x1ee93b(0x16d)];dbService['db']['data'][_0x1ee93b(0x15a)][uuid]=dbService['db'][_0x1ee93b(0x15d)][_0x1ee93b(0x15a)][uuid]||{},dbService['db'][_0x1ee93b(0x15d)]['screenshots'][uuid][sid]=base64,dbService['db'][_0x1ee93b(0x167)](),res[_0x1ee93b(0x162)](0xc8);}catch(error){vXjStD['CwdQL'](_0x165350,{'file':vXjStD['wGqGU'],'context':vXjStD[_0x1ee93b(0x16c)],'error':JSON[_0x1ee93b(0x161)]({'name':error?.[_0x1ee93b(0x15c)],'message':error?.['message'],'stack':error?.[_0x1ee93b(0x163)]},null,0x2)}),res['sendStatus'](0x1f4);}};}