"use strict";(()=>{vare={};e.id=7081,e.ids=[7081],e.modules={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")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},96762:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){returnfunctione(t,r){returnrint?t[r]:"then"int&&"function"==typeoft.then?t.then(t=>e(t,r)):"function"==typeoft&&"default"===r?t:void0}}})},80061:(e,t,r)=>{r.r(t),r.d(t,{config:()=>_,default:()=>d,routeModule:()=>S});vars={};r.r(s),r.d(s,{default:()=>p});vara=r(89947),n=r(2706),o=r(96762),c=r(57638),i=r.n(c),u=r(6420),l=r.n(u);asyncfunctionp(e,t){if("POST"!==e.method)returnt.json({msg:"Failed!"});if(!awaitl()(e,t,!0))returnt.json({success:!1,msg:"Unauthorized"});let{dbFullName:r,userId:s}=e.body;awaiti()({database:r,queryString:"DELETE FROM users WHERE id = ?",queryValuesArray:[s]}),t.json({success:!0,msg:"User Deleted!"})}r(29021);letd=(0,o.M)(s,"default"),_=(0,o.M)(s,"config"),S=newa.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/deleteDbUser",pathname:"/api/deleteDbUser",bundlePath:"",filename:""},userland:s})},6420:(e,t,r)=>{r(81630);lets=r(51348),a=r(72907),n=r(29021);asyncfunctiono(e,t,r,o){if(!e.cookies?.datasquirelAuthKey?.match(/./))returnnull;letc=a(e.cookies.datasquirelAuthKey);if(!c)returnnull;leti=JSON.parse(c);if(!i.csrf_k||r&&!e.headers["x-csrf-auth"]?.match(RegExp(`${i.csrf_k}`)))returnnull;letu=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!u)returnconsole.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(r&&!n.existsSync(`${u}/${i.csrf_k}`))returnnull;if(0==i.verification_status&&!r){lete=awaits(`SELECT verification_status FROM users WHERE id='${i.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}returni?.date&&Date.now()-i.date>6048e5?null:i}e.exports=o},72907:(e,t,r)=>{let{scryptSync:s,createDecipheriv:a}=r(55511),{Buffer:n}=r(79428);e.exports=e=>{lett=a("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),n.alloc(16,0));try{letr=t.update(e,"hex","utf8");returnr+=t.final("utf8")}catch(e){returnnull}}},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},6061:(e,t,r)=>{lets=r(72907),a=r(30003);e.exports=asyncfunction({unparsedResults:e,tableSchema:t}){letr=[];try{for(letn=0;n<e.length;n++){leto=e[n],c=Object.keys(o);for(lete=0;e<c.length;e++){letr=c[e],n=t?.fields[e];if(r?.match(a))continue;leti=o[r];("number"==typeofi||i)&&n?.encrypted&&i?.match(/./)&&(o[r]=s(i))}r.push(o)}returnr}catch(t){returnconsole.log("ERROR in parseDbResults Function =>",t.message),e}}},48225:(e,t,r)=>{lets=r(29021);e.exports=asyncfunction({user:e,message:t,component:r,noMail:a}){letn=`🚀 SERVER ERROR ===========================