"use strict";(()=>{vare={};e.id=5116,e.ids=[5116],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},21572:e=>{e.exports=require("nodemailer")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},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}}})},57646:(e,r,t)=>{t.r(r),t.d(r,{config:()=>m,default:()=>d,routeModule:()=>f});varn={};t.r(n),t.d(n,{default:()=>p});vars=t(89947),a=t(2706),i=t(96762),o=t(59474),l=t.n(o),u=t(48225),c=t.n(u);asyncfunctionp(e,r){if("GET"!==e.method)returnr.json({msg:"Failed!"});try{awaitl()({alias:"support",html:"<h1>Test Mail</h1><p>Hi there DSQL. Firing up on all systems now.</p>",subject:"Test Mail",text:"Test Mail",to:"dexomediaorg@gmail.com"}),r.json({success:!0})}catch(e){c()({component:"/api/addUserMedia/catch-error",message:e.message}),r.json({success:!1,msg:"Database Files could not be written!"})}}letd=(0,i.M)(n,"default"),m=(0,i.M)(n,"config"),f=news.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/test/mail",pathname:"/api/test/mail",bundlePath:"",filename:""},userland:n})},59474:(e,r,t)=>{letn=t(29021),s=t(21572).createTransport({host:process.env.DSQL_MAIL_HOST,port:465,secure:!0,auth:{user:process.env.DSQL_MAIL_EMAIL,pass:process.env.DSQL_MAIL_PASSWORD}});e.exports=asyncfunction({to:e,subject:r,text:t,html:a,alias:i}){leto;if(!process.env.DSQL_MAIL_HOST||!process.env.DSQL_MAIL_EMAIL||!process.env.DSQL_MAIL_PASSWORD)returnnull;letl=(i?.match(/support/i),process.env.DSQL_MAIL_EMAIL);if(!n.existsSync("./email/index.html"))return;letu=n.readFileSync("./email/index.html","utf8").replace(/{{email_body}}/,a||"").replace(/{{issue_date}}/,Date().substring(0,24));try{letn={};n.from=`"Datasquirel" <${l}>`,n.sender=l,i&&(n["replyTo "]=l),n.to=e,n.subject=r,n.text=t,n.html=u,o=awaits.sendMail(n)}catch(e){console.log("ERROR in handleNodemailer Function =>",e.message)}returno}},48225:(e,r,t)=>{letn=t(29021),{IncomingMessage:s}=t(81630);e.exports=asyncfunction({user:e,message:r,component:t,noMail:s,req:a}){leti=newDate,o=(()=>{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{lets=`🚀 SERVER ERROR ===========================