0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 18.222.111.44


Current Path : /var/www/qpms/assets/
Upload File :
Current File : /var/www/qpms/assets/UploadQpPattern-D63zyykw.js

import{v as n,E as d}from"./index-CvUjCcnC.js";const s=()=>async(p,e)=>{e();let t=localStorage.getItem("dbname");p({type:"SET_LOADER"}),await n.get("/app.php?a=getQpDeggrp&db="+t).then(o=>{p({type:"UNSET_LOADER"}),o.data.error_code===0?p({type:"GET_QP_DEGGRP",payload:o.data.data}):(p({type:"CLEAR_QP_DEGGRP",payload:[]}),d("info",o.data.data.msg))}).catch(o=>{})},R=p=>async(e,t)=>{t();let o=localStorage.getItem("dbname");e({type:"SET_LOADER"}),await n.get("/app.php?a=getQpDegree&db="+o+"&deggrp="+p).then(a=>{e({type:"UNSET_LOADER"}),a.data.error_code===0?e({type:"GET_QP_DEGREE",payload:a.data.data}):e({type:"CLEAR_QP_DEGREE",payload:[]})}).catch(a=>{d("error",a)})},S=p=>async(e,t)=>{t();let o=localStorage.getItem("dbname");e({type:"SET_LOADER"}),await n.get("/app.php?a=getQpBoard&db="+o+"&deggrp="+p).then(a=>{e({type:"UNSET_LOADER"}),a.data.error_code===0?e({type:"GET_QP_BOARD",payload:a.data.data}):e({type:"CLEAR_QP_BOARD",payload:[]})}).catch(a=>{d("error",a)})},L=(p,e)=>async(t,o)=>{o();let a=localStorage.getItem("dbname");t({type:"SET_LOADER"}),await n.get("/app.php?a=getQpcode&db="+a+"&deggrp="+p+"&board="+e).then(r=>{t({type:"UNSET_LOADER"}),r.data.error_code===0?t({type:"GET_QP_CODE",payload:r.data.data}):t({type:"CLEAR_QP_CODE",payload:[]})}).catch(r=>{d("error",r)})},u=p=>async(e,t)=>{t();let o=localStorage.getItem("dbname");e({type:"SET_LOADER"}),await n.post("/app.php?a=getUploadQpPatternDetails&db="+o,p).then(a=>{if(e({type:"UNSET_LOADER"}),a.data.error_code===0){const r=a.data.data.data.map((E,g)=>({...E,key:g,slno:g+1}));e({type:"GET_QP_PATTERN_UPD_DETAILS",payload:r});const l=a.data.data.temp.map((E,g)=>({key:g,value:E.ftempcode,label:E.ftempcode}));e({type:"GET_QP_PATTERN_TEMP_CODE",payload:l})}else e({type:"CLEAR_QP_PATTERN_UPD_DETAILS",payload:[]}),e({type:"CLEAR_QP_PATTERN_TEMP_CODE",payload:[]})}).catch(a=>{d("error",a)})},P=(p,e,t)=>async(o,a)=>{const r=a(),l=r.loginfo.userData.funivcode,E=r.loginfo.userData.fregno;let g=localStorage.getItem("dbname");o({type:"SET_LOADER"}),await n.post("/app.php?a=uploadQpPattern&db="+g+"&univcode="+l+"&userid="+E,p).then(_=>{if(o({type:"UNSET_LOADER"}),_.data.error_code===0){d("success",_.data.data.msg);const{deggrp:c,board:m,qpcode:A,sem:D,status:T}=e,y=new FormData;y.append("deggrp",c),y.append("board",m),y.append("qpcode",A),y.append("sem",D),y.append("status",T),t(y)}else{d("info",_.data.data.msg);return}}).catch(_=>{d("error",_)})},Q=p=>async(e,t)=>{t();let o=localStorage.getItem("dbname");e({type:"SET_LOADER"}),await n.get("/app.php?a=getExamName&db="+o+"&deggrp="+p).then(a=>{if(e({type:"UNSET_LOADER"}),a.data.error_code===0){let r=a.data.data.map((l,E)=>({key:E,value:l.fexamyear,label:l.fdesexam}));e({type:"EXAMNAME",payload:r})}else e({type:"EXAMNAME",payload:[]})}).catch(a=>{d("error",a)})},O=(p,e)=>async(t,o)=>{o();let a=localStorage.getItem("dbname");t({type:"SET_LOADER"}),await n.get("/app.php?a=getAvailableSubjects&db="+a+"&deggrp="+p+"&board="+e).then(r=>{t({type:"UNSET_LOADER"}),r.data.error_code===0?t({type:"GET_AVAILABLE_SUBJECTS",payload:r.data.data}):t({type:"GET_AVAILABLE_SUBJECTS",payload:[]})}).catch(r=>{d("error",r)})};export{S as a,L as b,u as c,O as d,R as e,Q as f,s as g,P as u};