"use strict";(()=>{var e={};e.id=1951,e.ids=[1951],e.modules={28187:e=>{e.exports=require("@moduletrace/datasquirel")},76102:e=>{e.exports=require("@moduletrace/datasquirel/dist/client")},39383:e=>{e.exports=require("@moduletrace/datasquirel/dist/package-shared/actions/users/user-auth")},65967:e=>{e.exports=require("@moduletrace/datasquirel/dist/package-shared/utils/ejson")},93726:e=>{e.exports=require("@moduletrace/datasquirel/dist/package-shared/utils/numberfy")},30889:e=>{e.exports=require("@moduletrace/datasquirel/dist/package-shared/utils/slugify")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},77734:(e,r,t)=>{t.r(r),t.d(r,{config:()=>c,default:()=>l,routeModule:()=>p});var a={};t.r(a),t.d(a,{default:()=>_});var s=t(89947),n=t(2706),u=t(96762),i=t(69842),o=t(28187),d=t.n(o);async function _(e,r){let{user:t}=await (0,i.A)(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});try{"GET"===e.method&&await d().methodCrud({method:"GET",tableName:"",query:{query:{}}})}catch(e){console.log(e.message),r.json({success:!1})}}let l=(0,u.M)(a,"default"),c=(0,u.M)(a,"config"),p=new s.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/admin/databases",pathname:"/api/admin/databases",bundlePath:"",filename:""},userland:a})},55153:(e,r,t)=>{t.d(r,{On:()=>s.a,_n:()=>u}),t(76102);var a=t(65967),s=t.n(a);t(30889);var n=t(93726);let u=t.n(n)()},69842:(e,r,t)=>{t.d(r,{A:()=>u});var a=t(39383),s=t.n(a),n=t(55153);async function u(e,r,t,a){let u=s()({req:e,level:t?"deep":void 0}),i={DSQL_REMOTE_SQL_HOST:process.env.DSQL_REMOTE_SQL_HOST,DSQL_SU_USER_ID:process.env.DSQL_SU_USER_ID,DSQL_HOST_ENV:process.env.DSQL_HOST_ENV,DSQL_HOST:process.env.DSQL_HOST,DSQL_STATIC_HOST:process.env.DSQL_STATIC_HOST,DSQL_GOOGLE_CLIENT_ID:process.env.DSQL_GOOGLE_CLIENT_ID,DSQL_TINY_MCE_API_KEY:process.env.DSQL_TINY_MCE_API_KEY};return a&&u.payload?.id&&(0,n._n)(process.env.DSQL_SU_USER_ID)!==u.payload.id?{user:null,appData:i}:{user:u.payload,appData:i}}},2706:(e,r)=>{Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}});var t=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=77734);module.exports=t})();