"use strict";(()=>{vare={};e.id=2896,e.ids=[2896],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){returnfunctione(r,t){returntinr?r[t]:"then"inr&&"function"==typeofr.then?r.then(r=>e(r,t)):"function"==typeofr&&"default"===t?r:void0}}})},2875:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>p,routeModule:()=>_});varn={};t.r(n),t.d(n,{default:()=>d});vars=t(89947),a=t(2706),o=t(96762),i=t(30944),l=t(67619),c=t(69842),u=t(95969);asyncfunctiond(e,r){if("POST"!==e.method)returnr.json({msg:"Failed!"});lett=await(0,c.A)(e,r);if(!t)returnr.json({success:!1,msg:"Unauthorized"});let{table:n,db:s,id:a}=e.body,o=e.body.schema;try{lete=`SELECT * FROM \`${s?.toString()||""}\`.\`${n}\` WHERE id=?`,t=[a?.toString()||""],l=await(0,i.A)({database:s?.toString()||"",queryString:e,queryValuesArray:t});if(!l||!l[0])returnr.json({success:!1,msg:"Entry not found"});letc=JSON.parse(o||"{}");try{for(lete=0;e<c.fields.length;e++){letr=c.fields[e];r.encrypted&&r.fieldName&&(l[0][r.fieldName]=(0,u.A)({encryptedString:l[0][r.fieldName]}))}}catch(e){console.log("Error in parsing and decrypting fields in 'UpdateDbEntry' API ROute =>",e.message)}r.json({success:!0,entry:l[0]})}catch(e){(0,l.A)({component:"/api/refreshEntry/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Deletion Failed!"})}}letp=(0,o.M)(n,"default"),f=(0,o.M)(n,"config"),_=news.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/refreshEntry",pathname:"/api/refreshEntry",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>a});varn=t(39908),s=t.n(n);asyncfunctiona(e,r,t){letn=s()({req:e,level:t?"deep":void0});returnconsole.log(n),n.payload}},43775:(e,r,t)=>{t.d(r,{A:()=>a});varn=t(95969);lets=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;asyncfunctiona({unparsedResults:e,tableSchema:r}){lett=[];try{for(leta=0;a<e.length;a++){leto=e[a],i=Object.keys(o);for(lete=0;e<i.length;e++){lett=i[e],a=r?.fields[e];if(t?.match(s))continue;letl=o[t];("number"==typeofl||l)&&a?.encrypted&&l?.match(/./)&&(o[t]=(0,n.A)({encryptedString:l}))}t.push(o)}returnt}catch(r){returnconsole.log("ERROR in parseDbResults Function =>",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>a});varn=t(29021),s=t.n(n);asyncfunctiona({user:e,message:r,component:t,noMail:n,req:a}){leto=newDate,i=(()=>{if(!a)returnnull;try{lete=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||a.socket.remoteAddress;if(!s)returnnull;returnString(s)}catch(e){returnnull}})();try{letn=`🚀 SERVER ERROR ===========================