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 : 3.141.32.252
(window.webpackJsonp=window.webpackJsonp||[]).push([[152,307],{1326:function(e,t,r){"use strict";r.r(t);var n=r(68),a=r(100),o=r(101),i=r(103),c=r(102),l=r(104),u=r(2),s=r.n(u),p=r(105),h=r(941),f=r(267),d=r(1377),y=r(949),v=r(1343),m=r(272),g=r(1335),E=r(1337),w=r(1157),b=r(1338),x=r(557);function O(){O=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var o=t&&t.prototype instanceof m?t:m,i=Object.create(o.prototype),c=new _(n||[]);return a(i,"_invoke",{value:A(e,r,c)}),i}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var h="suspendedStart",f="suspendedYield",d="executing",y="completed",v={};function m(){}function g(){}function E(){}var w={};u(w,i,function(){return this});var b=Object.getPrototypeOf,x=b&&b(b(N([])));x&&x!==r&&n.call(x,i)&&(w=x);var k=E.prototype=m.prototype=Object.create(w);function S(e){["next","throw","return"].forEach(function(t){u(e,t,function(e){return this._invoke(t,e)})})}function j(e,t){function r(a,o,i,c){var l=p(e[a],e,o);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==typeof s&&n.call(s,"__await")?t.resolve(s.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(s).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t(function(t,a){r(e,n,t,a)})}return o=o?o.then(a,a):a()}})}function A(t,r,n){var a=h;return function(o,i){if(a===d)throw new Error("Generator is already running");if(a===y){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var c=n.delegate;if(c){var l=T(c,n);if(l){if(l===v)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===h)throw a=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=d;var u=p(t,r,n);if("normal"===u.type){if(a=n.done?y:f,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(a=y,n.method="throw",n.arg=u.arg)}}}function T(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,T(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var o=p(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function N(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return g.prototype=E,a(k,"constructor",{value:E,configurable:!0}),a(E,"constructor",{value:g,configurable:!0}),g.displayName=u(E,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,u(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},S(j.prototype),u(j.prototype,c,function(){return this}),t.AsyncIterator=j,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new j(s(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then(function(e){return e.done?e.value:i.next()})},S(k),u(k,l,"Generator"),u(k,i,function(){return this}),u(k,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=N,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return c.type="throw",c.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;C(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}var k=function(e){function t(){var e,r;Object(a.a)(this,t);for(var o=arguments.length,l=new Array(o),u=0;u<o;u++)l[u]=arguments[u];return(r=Object(i.a)(this,(e=Object(c.a)(t)).call.apply(e,[this].concat(l)))).state={type:"view",slno:"",client:"",module:"",priority:"",option:"",subject:"",remarks:"",file:null,frmsubmit:!1,frmview:!0},r.componentDidMount=Object(n.a)(O().mark(function e(){return O().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.props.loaduniversities();case 2:r.setState({frmsubmit:!1});case 3:case"end":return e.stop()}},e)})),r.getviewpage=Object(n.a)(O().mark(function e(){return O().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.props.loadtickets(r.props.univcode,r.props.userid,r.props.collcode,r.props.usertype,r.state.type);case 2:r.setState({frmsubmit:!0,frmview:!1});case 3:case"end":return e.stop()}},e)})),r.handleChangeClient=function(){var e=Object(n.a)(O().mark(function e(t,n){return O().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r.setState({client:n.value});case 1:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.handleChangeModule=function(){var e=Object(n.a)(O().mark(function e(t,n){return O().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r.setState({module:n.value});case 1:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.handleChangePriority=function(){var e=Object(n.a)(O().mark(function e(t,n){return O().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r.setState({priority:n.value});case 1:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.handleChangeOption=function(){var e=Object(n.a)(O().mark(function e(t,n){return O().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r.setState({option:n.value});case 1:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.handleChangeSubject=function(){var e=Object(n.a)(O().mark(function e(t,n){return O().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r.setState({subject:n.value});case 1:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.handleChangeRemarks=function(){var e=Object(n.a)(O().mark(function e(t,n){return O().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r.setState({remarks:n.value});case 1:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.handleFileChange=function(){var e=Object(n.a)(O().mark(function e(t){var n;return O().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=t.target.files[0],r.setState({file:n});case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),r.handleRaiseTicket=Object(n.a)(O().mark(function e(){var t,n,a,o,i,c,l,u,s,p,h,f,d,y,v,m,g;return O().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(""!==r.state.client){e.next=4;break}return t={header:"Error",content:"Select client"},r.props.showError(t),e.abrupt("return");case 4:if(""!==r.state.module){e.next=8;break}return n={header:"Error",content:"Select Module"},r.props.showError(n),e.abrupt("return");case 8:if(""!==r.state.priority){e.next=12;break}return a={header:"Error",content:"Select Priority"},r.props.showError(a),e.abrupt("return");case 12:if(""!==r.state.option){e.next=16;break}return o={header:"Error",content:"Select Option Type"},r.props.showError(o),e.abrupt("return");case 16:if(""!==r.state.subject){e.next=20;break}return i={header:"Error",content:"Mention Subject"},r.props.showError(i),e.abrupt("return");case 20:if(""!==r.state.remarks){e.next=24;break}return c={header:"Error",content:"Mention Remarks"},r.props.showError(c),e.abrupt("return");case 24:if(null!==r.state.file){e.next=28;break}return l={header:"Error",content:"Select file to Upload"},r.props.showError(l),e.abrupt("return");case 28:return u=r.state,s=u.slno,p=u.client,h=u.module,f=u.priority,d=u.option,y=u.subject,v=u.remarks,m=u.file,(g=new FormData).append("univcode",r.props.univcode),g.append("userid",r.props.userid),g.append("collcode",r.props.collcode),g.append("usertype",r.props.usertype),g.append("slno",s),g.append("client",p),g.append("module",h),g.append("priority",f),g.append("option",d),g.append("subject",y),g.append("remarks",v),g.append("file",m),e.next=44,r.props.raiseTicket(g);case 44:window.location.reload();case 45:case"end":return e.stop()}},e)})),r.handleClear=function(){r.setState({slno:"",client:"",module:"",priority:"",option:"",subject:"",remarks:"",file:null,frmsubmit:!1,frmview:!0})},r.editTickets=function(e){r.setState({slno:e.FSLNO,client:e.FCLIENT,module:e.FMODULE,priority:e.FPRIORITY,option:e.FOPTIONTYP,subject:e.FSUBJECT,remarks:e.FREMARKS,frmsubmit:!1,frmview:!0})},r}return Object(l.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){var e=this,t=this.props.universties.map(function(e){return{key:e.funivcode,value:e.funivcode,text:e.funivcode+" - "+e.funivname}});return s.a.createElement("div",null,s.a.createElement(d.a,{fluid:!0},s.a.createElement(y.a,null,s.a.createElement(d.a.Header,{style:{display:"flex"}},s.a.createElement("h4",null,"Raise Tickets"),s.a.createElement("div",{className:"ml-auto"},s.a.createElement(v.a,{size:"mini",basic:!0,color:"yellow",icon:"eye",content:"View",onClick:this.getviewpage}),s.a.createElement(v.a,{size:"mini",basic:!0,color:"blue",icon:"ban",content:"Clear",onClick:this.handleClear}),s.a.createElement(h.a,{to:"/dashboard"},s.a.createElement(v.a,{size:"mini",basic:!0,color:"red",content:"Exit",icon:"home"})))),s.a.createElement(m.a,null),s.a.createElement(d.a.Description,{style:{height:"auto"}},this.state.frmview?s.a.createElement(g.a,null,s.a.createElement(g.a.Group,null,s.a.createElement(g.a.Field,{width:5},s.a.createElement("label",null,"Client"),s.a.createElement(E.a,{fluid:!0,selection:!0,search:!0,value:this.state.client,options:t,name:"deggrp",placeholder:"Select Client",onChange:this.handleChangeClient})),s.a.createElement(g.a.Field,{width:5},s.a.createElement("label",null,"Module"),s.a.createElement(E.a,{fluid:!0,selection:!0,search:!0,value:this.state.module,options:[{key:"Takshila",text:"Takshila",value:"Takshila"},{key:"Takshila - Digital Valuation System",text:"Takshila - Digital Valuation System",value:"Takshila - Digital Valuation System"},{key:"College Portal",text:"College Portal",value:"College Portal"},{key:"Student Portal",text:"Student Portal",value:"Student Portal"},{key:"Uniclare App",text:"Uniclare App",value:"Uniclare App"},{key:"EGOV",text:"EGOV",value:"EGOV"},{key:"Convocation",text:"Convocation",value:"Convocation"},{key:"Others",text:"Others...",value:"Others"}],name:"degree",placeholder:"Select Module",onChange:this.handleChangeModule})),s.a.createElement(g.a.Field,{width:5},s.a.createElement("label",null,"Priority"),s.a.createElement(E.a,{fluid:!0,selection:!0,search:!0,value:this.state.priority,options:[{key:"High",text:"High",value:"High"},{key:"Moderate",text:"Moderate",value:"Moderate"},{key:"Low",text:"Low",value:"Low"}],name:"sem",placeholder:"Select Priority",onChange:this.handleChangePriority}))),s.a.createElement(g.a.Group,null,s.a.createElement(g.a.Field,{width:5},s.a.createElement("label",null,"Module Type"),s.a.createElement(E.a,{fluid:!0,selection:!0,search:!0,value:this.state.option,options:[{key:"New Module",text:"New Module",value:"New Module"},{key:"Existing",text:"Existing",value:"Existing"}],name:"qppacket",placeholder:"Select Option Type",onChange:this.handleChangeOption})),s.a.createElement(g.a.Input,{placeholder:"Subject",name:"subject",onChange:this.handleChangeSubject,value:this.state.subject,width:10,label:"Subject"})),s.a.createElement(g.a.Group,null,s.a.createElement(g.a.Field,{width:8},s.a.createElement("label",null,"Remarks"),s.a.createElement(w.a,{value:this.state.remarks,onChange:this.handleChangeRemarks,name:"remarks",placeholder:"Detailed Remarks"})),s.a.createElement(g.a.Field,{width:7},s.a.createElement("label",null,"Upload Documents"),s.a.createElement("div",null,s.a.createElement("input",{type:"file",onChange:function(t){return e.handleFileChange(t)}}),this.state.file&&s.a.createElement("a",{href:this.state.fileUrl},s.a.createElement("p",null,"File Selected Name : ",this.state.file.name))))),s.a.createElement(g.a.Group,null,s.a.createElement(g.a.Field,null,s.a.createElement(v.a,{style:{marginTop:"23px"},basic:!0,color:"blue",icon:"fo-fo ticket",onClick:this.handleRaiseTicket,content:"Raise"})))):null,this.state.frmsubmit?s.a.createElement("div",null,s.a.createElement(b.a,{celled:!0,style:{fontSize:"1.1em"}},s.a.createElement(b.a.Header,null,s.a.createElement(b.a.Row,{style:{fontSize:"small"}},s.a.createElement(b.a.HeaderCell,{style:{textAlign:"center",width:"5px"}},"Sl.No"),s.a.createElement(b.a.HeaderCell,{style:{textAlign:"center",width:"20px"}},"Ticket Raised On"),s.a.createElement(b.a.HeaderCell,{style:{textAlign:"center",width:"130px"}},"Client Code"),s.a.createElement(b.a.HeaderCell,{style:{textAlign:"center",width:"70px"}},"Module"),s.a.createElement(b.a.HeaderCell,{style:{textAlign:"center",width:"50px"}},"Priority"),s.a.createElement(b.a.HeaderCell,{style:{textAlign:"center",width:"30px"}},"Option Type"),s.a.createElement(b.a.HeaderCell,{style:{textAlign:"center",width:"30px"}},"Subject"),s.a.createElement(b.a.HeaderCell,{style:{textAlign:"center",width:"30px"}},"Assingned To"),s.a.createElement(b.a.HeaderCell,{style:{textAlign:"center",width:"30px"}},"Assingned Date"),s.a.createElement(b.a.HeaderCell,{style:{textAlign:"center",width:"40px"}},"Status"),s.a.createElement(b.a.HeaderCell,{style:{textAlign:"center",width:"20px"}},"Actions"))),s.a.createElement(b.a.Body,null,this.props.table.map(function(t,r){t.FUPLOADS;return s.a.createElement(b.a.Row,{key:r,style:{fontSize:"smaller"}},s.a.createElement(b.a.Cell,{textAlign:"center"},t.FSLNO),s.a.createElement(b.a.Cell,{textAlign:"center"},t.FUPDDATE),s.a.createElement(b.a.Cell,{textAlign:"left"},t.FCLIENT," - ",t.funivname),s.a.createElement(b.a.Cell,{textAlign:"center"},t.FMODULE),s.a.createElement(b.a.Cell,{textAlign:"center"},t.FPRIORITY),s.a.createElement(b.a.Cell,{textAlign:"center"},t.FOPTIONTYP),s.a.createElement(b.a.Cell,{textAlign:"left"},t.FSUBJECT),s.a.createElement(b.a.Cell,{textAlign:"center"},t.FASSINGDUSER),s.a.createElement(b.a.Cell,{textAlign:"center"},t.FASSINGDDATE),s.a.createElement(b.a.Cell,{textAlign:"center"},t.FSTATUS),s.a.createElement(b.a.Cell,{textAlign:"center"},s.a.createElement(v.a,{size:"mini",basic:!0,color:"blue",icon:"edit",content:"Edit",onClick:function(){return e.editTickets(t)}})))})))):null))))}}]),t}(u.Component);t.default=Object(p.b)(function(e){return{collcode:e.user.fuserid,univcode:e.univ.funivcode,userid:e.user.fuserid,usertype:e.user.fcurtype,universties:e.loaduniversities,table:e.loadtickets}},{showError:f.A,loaduniversities:x.e,raiseTicket:x.f,loadtickets:x.d})(k)},272:function(e,t,r){"use strict";var n=r(270),a=r.n(n),o=r(268),i=r.n(o),c=r(2),l=r.n(c),u=r(349),s=r(613),p=r(611),h=r(269);function f(e){var t=e.children,r=e.className,n=e.clearing,o=e.content,c=e.fitted,d=e.hidden,y=e.horizontal,v=e.inverted,m=e.section,g=e.vertical,E=i()("ui",Object(u.a)(n,"clearing"),Object(u.a)(c,"fitted"),Object(u.a)(d,"hidden"),Object(u.a)(y,"horizontal"),Object(u.a)(v,"inverted"),Object(u.a)(m,"section"),Object(u.a)(g,"vertical"),"divider",r),w=Object(s.a)(f,e),b=Object(p.a)(f,e);return l.a.createElement(b,a()({},w,{className:E}),h.a.isNil(t)?o:t)}f.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],f.propTypes={},t.a=f},557:function(e,t,r){"use strict";r.d(t,"e",function(){return c}),r.d(t,"f",function(){return l}),r.d(t,"d",function(){return u}),r.d(t,"c",function(){return s}),r.d(t,"a",function(){return p}),r.d(t,"b",function(){return h});var n=r(68),a=r(271),o=r(267);function i(){i=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},c=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),c=new _(n||[]);return a(i,"_invoke",{value:A(e,r,c)}),i}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var f="suspendedStart",d="suspendedYield",y="executing",v="completed",m={};function g(){}function E(){}function w(){}var b={};s(b,c,function(){return this});var x=Object.getPrototypeOf,O=x&&x(x(N([])));O&&O!==r&&n.call(O,c)&&(b=O);var k=w.prototype=g.prototype=Object.create(b);function S(e){["next","throw","return"].forEach(function(t){s(e,t,function(e){return this._invoke(t,e)})})}function j(e,t){function r(a,o,i,c){var l=h(e[a],e,o);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==typeof s&&n.call(s,"__await")?t.resolve(s.__await).then(function(e){r("next",e,i,c)},function(e){r("throw",e,i,c)}):t.resolve(s).then(function(e){u.value=e,i(u)},function(e){return r("throw",e,i,c)})}c(l.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new t(function(t,a){r(e,n,t,a)})}return o=o?o.then(a,a):a()}})}function A(t,r,n){var a=f;return function(o,i){if(a===y)throw new Error("Generator is already running");if(a===v){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var c=n.delegate;if(c){var l=T(c,n);if(l){if(l===m)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===f)throw a=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=y;var u=h(t,r,n);if("normal"===u.type){if(a=n.done?v:d,u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(a=v,n.method="throw",n.arg=u.arg)}}}function T(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,T(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var o=h(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,m;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function N(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return E.prototype=w,a(k,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:E,configurable:!0}),E.displayName=s(w,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,s(e,u,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},S(j.prototype),s(j.prototype,l,function(){return this}),t.AsyncIterator=j,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new j(p(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then(function(e){return e.done?e.value:i.next()})},S(k),s(k,u,"Generator"),s(k,c,function(){return this}),s(k,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=N,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return c.type="throw",c.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;C(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}var c=function(){return function(){var e=Object(n.a)(i().mark(function e(t,r){var n,c,l,u;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=r(),t({type:"SET_LOADER"}),e.next=4,a.a.get("/app.php?a=loaduniversities&univcode="+n.univ.funivcode);case 4:c=e.sent,t({type:"UNSET_LOADER"}),"object"!==typeof c.data?(l={header:"Error",content:"Something went wrong"},t(Object(o.A)(l))):-1==c.data.error_code?(u={header:"Error",content:c.data.data.msg},t(Object(o.A)(u))):t({type:"GET_UNIVERSITY_DATA",payload:c.data});case 7:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()},l=function(e){return function(){var t=Object(n.a)(i().mark(function t(r,n){var c,l,u,s;return i().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n(),r({type:"SET_LOADER"}),t.next=4,a.a.post("/app.php?a=raiseTicket",e,{headers:{"Content-Type":"multipart/formdata"}});case 4:if(c=t.sent,r({type:"UNSET_LOADER"}),"object"===typeof c.data){t.next=11;break}l={header:"Error",content:"Something went wrong"},r(Object(o.A)(l)),t.next=20;break;case 11:if(0!==c.data.error_code){t.next=17;break}return u={header:"Success",content:c.data.data.msg},r(Object(o.A)(u)),t.abrupt("return");case 17:return s={header:"Error",content:c.data.data.msg},r(Object(o.A)(s)),t.abrupt("return");case 20:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()},u=function(e,t,r,c,l,u,s,p){return function(){var e=Object(n.a)(i().mark(function e(n,h){var f,d,y,v;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return f=h(),n({type:"SET_LOADER"}),e.next=4,a.a.get("/app.php?a=loadtickets&univcode="+f.univ.funivcode+"&userid="+t+"&collcode="+r+"&usertype="+c+"&type="+l+"&client="+u+"&status="+s+"&date="+p);case 4:d=e.sent,n({type:"UNSET_LOADER"}),"object"!==typeof d.data?(y={header:"Error",content:"Something went wrong"},n(Object(o.A)(y))):-1==d.data.error_code?(n({type:"CLEAR_TICKETS_DATA",payload:[]}),n({type:"CLEAR_EMPL_DATA",payload:[]}),v={header:"Error",content:"Tickets data found"},n(Object(o.A)(v))):(n({type:"GET_TICKETS_DATA",payload:d.data.data.tickets}),n({type:"GET_TICKETS_DATA_EMPL",payload:d.data.data.employe}));case 7:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()},s=function(){return function(){var e=Object(n.a)(i().mark(function e(t,r){var n,c,l,u;return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=r(),t({type:"SET_LOADER"}),e.next=4,a.a.get("/app.php?a=loademploye&univcode="+n.univ.funivcode);case 4:c=e.sent,t({type:"UNSET_LOADER"}),"object"!==typeof c.data?(l={header:"Error",content:"Something went wrong"},t(Object(o.A)(l))):-1==c.data.error_code?(u={header:"Error",content:c.data.data.msg},t(Object(o.A)(u))):-1==c.data.error_code?t({type:"CLEAR_TICKET_ASSIGN_DATA",payload:[]}):t({type:"GET_TICKET_ASSIGN_DATA",payload:c.data});case 7:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}()},p=function(e){return function(){var t=Object(n.a)(i().mark(function t(r,n){var c,l,u,s,p;return i().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return c=n(),r({type:"SET_LOADER"}),t.next=4,a.a.post("/app.php?a=AssignTicketto&univcode="+c.univ.funivcode+"&changedItems="+JSON.stringify(e));case 4:if(l=t.sent,r({type:"UNSET_LOADER"}),console.log(l,"reposnse"),"object"===typeof l.data){t.next=12;break}u={header:"Error",content:"Something went wrong"},r(Object(o.A)(u)),t.next=21;break;case 12:if(-1!=l.data.error_code){t.next=17;break}s={header:"Error",content:l.data.data.msg},r(Object(o.A)(s)),t.next=21;break;case 17:if(0!==l.data.error_code){t.next=21;break}return p={header:"Success",content:l.data.data.msg},r(Object(o.A)(p)),t.abrupt("return");case 21:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()},h=function(e){return function(){var t=Object(n.a)(i().mark(function t(r,n){var c,l,u,s;return i().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return c=n(),r({type:"SET_LOADER"}),t.next=4,a.a.get("/app.php?a=getTicketStatus&univcode="+c.univ.funivcode+"&client="+e);case 4:l=t.sent,r({type:"UNSET_LOADER"}),"object"!==typeof l.data?(u={header:"Error",content:"Something went wrong"},r(Object(o.A)(u))):-1==l.data.error_code?(s={header:"Error",content:l.data.data.msg},r(Object(o.A)(s))):r({type:"GET_UNIVERSITY_DATA",payload:l.data});case 7:case"end":return t.stop()}},t)}));return function(e,r){return t.apply(this,arguments)}}()}}}]);
//# sourceMappingURL=152.daa9c476.chunk.js.map
|