(this["webpackJsonpjira-app"]=this["webpackJsonpjira-app"]||[]).push([[0],{456:function(e,t,n){},627:function(e,t){},629:function(e,t){},640:function(e,t){},642:function(e,t){},667:function(e,t){},669:function(e,t){},670:function(e,t){},675:function(e,t){},677:function(e,t){},696:function(e,t){},708:function(e,t){},711:function(e,t){},753:function(e,t,n){"use strict";n.r(t);var a=n(0),c=n.n(a),r=n(25),i=n.n(r),s=(n(456),n(383)),o=n(384),l=n(419),j=n(29),d=n(126),b=n.n(d),h=n(387),u=n(118),p=n(187),x=n(8),g=n(811),O=n(824),m=n(842),f=n(838),v=n(825),y=n(826),w=n(829),I=n(166),N=n(832),k=n(827),C=n(828),S=n(833),T=n(834),D=n(757),B=n(817),E=n(199),P=n.n(E),_=n(205),R=n.n(_),A=n(755),U=n(808),H=n(809),L=n(810),z=n(388),F=n.n(z),G=n(389),M=n.n(G),W=n(263),J=n.n(W),Y=n(3),V=Object(Y.jsxs)("div",{children:[Object(Y.jsxs)(A.a,{button:!0,style:{color:"rgb(209, 63, 143)"},component:"a",href:"./Dashboard",children:[Object(Y.jsx)(U.a,{style:{color:"rgb(209, 63, 143)"},children:Object(Y.jsx)(F.a,{})}),Object(Y.jsx)(H.a,{primary:"Dashboard"})]}),Object(Y.jsxs)(A.a,{button:!0,style:{color:"rgb(209, 63, 143)"},component:"a",href:"./Issues",children:[Object(Y.jsx)(U.a,{style:{color:"rgb(209, 63, 143)"},children:Object(Y.jsx)(M.a,{})}),Object(Y.jsx)(H.a,{primary:"Issues"})]})]}),K=Object(Y.jsxs)("div",{children:[Object(Y.jsx)(L.a,{inset:!0,children:"Third-Party Apps"}),Object(Y.jsxs)(A.a,{button:!0,style:{color:"rgb(209, 63, 143)"},component:"a",href:"https://myapps.microsoft.com/signin/Callcenter-dev-agents/f134604f-158e-4b56-9439-03a13b27c293?tenantId=4fb8ba03-f0c2-483b-bd36-67b298825edd",target:"_blank",children:[Object(Y.jsx)(U.a,{style:{color:"rgb(209, 63, 143)"},children:Object(Y.jsx)(J.a,{})}),Object(Y.jsx)(H.a,{primary:"Connect Dial"})]}),Object(Y.jsxs)(A.a,{button:!0,style:{color:"rgb(209, 63, 143)"},component:"a",href:"https://dev.callcenter.ttpsc.cloud/plugins/servlet/external-login",target:"_blank",children:[Object(Y.jsx)(U.a,{style:{color:"rgb(209, 63, 143)"},children:Object(Y.jsx)(J.a,{})}),Object(Y.jsx)(H.a,{primary:"Jira"})]})]}),X=n(70),q=n(812),$=n(813),Q=n(405),Z=n(406),ee=n(62),te=n(420),ne=Object(g.a)((function(e){return{title:{color:"rgb(123,44,133)",backgroundColor:"rgb(123,44,133)"}}}));function ae(e){var t=Object(X.a)();ne();return Object(Y.jsxs)(c.a.Fragment,{children:[Object(Y.jsx)(I.a,{component:"h1",variant:"h6",style:{color:"rgb(123, 44, 133)"},children:"Today"}),Object(Y.jsx)(q.a,{children:Object(Y.jsxs)($.a,{data:e.chartData,margin:{top:16,right:16,bottom:0,left:24},children:[Object(Y.jsx)(Q.a,{dataKey:"time",stroke:t.palette.text.secondary}),Object(Y.jsx)(Z.a,{stroke:t.palette.text.secondary,children:Object(Y.jsx)(ee.a,{angle:270,position:"left",style:{textAnchor:"middle",fill:t.palette.text.primary},children:"Issues"})}),Object(Y.jsx)(te.a,{type:"monotone",dataKey:"amount",stroke:t.palette.primary.main,dot:!1})]})})]})}n(234);var ce=Object(g.a)({depositContext:{flex:1}});function re(e){var t,n,a,r=ce();return Object(Y.jsxs)(c.a.Fragment,{children:[Object(Y.jsx)(I.a,{component:"h1",variant:"h6",style:{color:"rgb(123, 44, 133)"},children:"Task issues"}),Object(Y.jsx)(I.a,{component:"p",variant:"h4",children:null===(t=e.issues)||void 0===t?void 0:t.length}),Object(Y.jsxs)(I.a,{color:"textSecondary",className:r.depositContext,children:["Last issue: ",null===(n=e.issues.reverse()[0])||void 0===n?void 0:n.fields.created]}),Object(Y.jsx)("div",{children:Object(Y.jsx)(B.a,{color:"primary",href:"https://dev.callcenter.ttpsc.cloud/browse/".concat(null===(a=e.issues.reverse()[0])||void 0===a?void 0:a.key),target:"_blank",rel:"noreferrer",children:"Open last issue"})})]})}var ie=n(818),se=n(822),oe=n(821),le=n(819),je=n(820);function de(e){e.preventDefault()}var be=Object(g.a)((function(e){return{seeMore:{marginTop:e.spacing(3)}}}));function he(e){var t=be();return Object(Y.jsxs)(c.a.Fragment,{children:[Object(Y.jsx)(I.a,{component:"h1",variant:"h6",style:{color:"rgb(123, 44, 133)"},children:"Issues"}),Object(Y.jsxs)(ie.a,{size:"small",children:[Object(Y.jsx)(le.a,{children:Object(Y.jsxs)(je.a,{children:[Object(Y.jsx)(oe.a,{children:"Creator email"}),Object(Y.jsx)(oe.a,{children:"Issue type"}),Object(Y.jsx)(oe.a,{children:"Issue Number"}),Object(Y.jsx)(oe.a,{children:"Status"}),Object(Y.jsx)(oe.a,{align:"right",children:"Jira external link"})]})}),Object(Y.jsx)(se.a,{children:e.issues.map((function(e){var t;return Object(Y.jsxs)(je.a,{children:[Object(Y.jsx)(oe.a,{children:e.fields.creator.emailAddress}),Object(Y.jsx)(oe.a,{children:e.fields.priority.name}),Object(Y.jsx)(oe.a,{children:e.key}),Object(Y.jsx)(oe.a,{children:null===(t=e.fields.status)||void 0===t?void 0:t.name}),Object(Y.jsx)(oe.a,{align:"right",children:Object(Y.jsx)("a",{href:"https://dev.callcenter.ttpsc.cloud/browse/".concat(e.key),target:"_blank",rel:"noreferrer",children:"Open in jira"})})]},e.key)}))})]}),Object(Y.jsx)("div",{className:t.seeMore,children:Object(Y.jsx)(B.a,{color:"primary",href:"#",onClick:de,children:Object(Y.jsx)(I.a,{component:"h8",variant:"h8",style:{color:"rgb(123, 44, 133)"},children:"See more orders"})})})]})}var ue=n(77),pe=n.n(ue),xe=n(622),ge=n(417),Oe=n(200),me=n.n(Oe),fe=n(202),ve=n.n(fe),ye=n(201),we=n.n(ye),Ie=n(831),Ne=n(841),ke=n(204),Ce=n.n(ke),Se=n(830);function Te(){return Object(Y.jsxs)(I.a,{variant:"body2",color:"textSecondary",align:"center",children:["Copyright \xa9 ",Object(Y.jsx)(B.a,{color:"inherit",href:"https://ttpsc.pl/",children:"Transition Technologies"})," ",(new Date).getFullYear(),"."]})}var De=Object(g.a)((function(e){return{root:{display:"flex"},toolbar:{paddingRight:24},toolbarIcon:Object(p.a)({display:"flex",alignItems:"center",justifyContent:"flex-end",padding:"0 8px"},e.mixins.toolbar),appBar:{zIndex:e.zIndex.drawer+1,transition:e.transitions.create(["width","margin"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen})},appBarShift:{marginLeft:240,width:"calc(100% - ".concat(240,"px)"),transition:e.transitions.create(["width","margin"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen})},menuButton:{marginRight:36,color:"rgb(123, 44, 133)"},menuButtonHidden:{display:"none",color:"rgb(123, 44, 133)"},title:{flexGrow:1},icons:{color:"rgb(123, 44, 133)"},drawerPaper:{position:"relative",whiteSpace:"nowrap",width:240,transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen})},drawerPaperClose:Object(u.a)({overflowX:"hidden",transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),width:e.spacing(7)},e.breakpoints.up("sm"),{width:e.spacing(9)}),appBarSpacer:e.mixins.toolbar,content:{flexGrow:1,height:"100vh",overflow:"auto"},container:{paddingTop:e.spacing(4),paddingBottom:e.spacing(4)},paper:{padding:e.spacing(2),display:"flex",overflow:"auto",flexDirection:"column"},fixedHeight:{height:500},amazonContainer:{minWidth:"200px",height:"465px",minHeight:"400px","& iframe":{display:"block"}}}}));function Be(){var e=Object(a.useState)(null),t=Object(j.a)(e,2),n=t[0],r=t[1],i=De(),s=c.a.useState(!0),o=Object(j.a)(s,2),l=o[0],d=o[1],u=Object(a.useState)([]),p=Object(j.a)(u,2),g=p[0],B=p[1],E=Object(a.useState)(),_=Object(j.a)(E,2),A=_[0],U=_[1],H=c.a.useState(null),L=Object(j.a)(H,2),z=L[0],F=L[1],G=Boolean(z),M=function(){F(null)},W=Object(x.a)(i.paper,i.fixedHeight);function J(e,t){return{time:e,amount:t}}var X=[J("00:00",0),J("03:00",2),J("06:00",1),J("09:00",3),J("12:00",4),J("15:00",0),J("18:00",1),J("21:00",0),J("24:00",void 0)];function q(){return ge.a.currentAuthenticatedUser().then((function(e){return e})).catch((function(){return console.log("Not signed in")}))}return Object(a.useEffect)((function(){xe.a.listen("auth",(function(e){var t=e.payload,n=t.event,a=t.data;switch(n){case"signIn":case"cognitoHostedUI":q().then((function(e){return r(e)}));break;case"signOut":r(null);break;case"signIn_failure":case"cognitoHostedUI_failure":console.log("Sign in failure",a)}})),q().then((function(e){return r(e)}))}),[]),Object(a.useEffect)((function(){connect.core.initCCP(document.getElementById("connectHandler"),{ccpUrl:"https://callcenter-sso.my.connect.aws/connect/ccp-v2",loginUrl:"https://myapps.microsoft.com/signin/Callcenter-dev-agents/f134604f-158e-4b56-9439-03a13b27c293?tenantId=4fb8ba03-f0c2-483b-bd36-67b298825edd",loginPopup:!0,loginPopupAutoClose:!0,loginOptions:{autoClose:!0},softphone:{allowFramedSoftphone:!0}})}),[]),Object(a.useEffect)((function(){connect.agent((function(e){e.onStateChange((function(t){(console.log(t,e.getStatus()),"Busy"==e.getStatus().name)?function(){var e=Object(h.a)(b.a.mark((function e(){var n;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pe.a.get("https://k85c91p8zh.execute-api.eu-central-1.amazonaws.com/dev/get-issues/".concat(A));case 2:n=e.sent,B(n.data.issues),console.log(t.newState,n.data.issues);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()():"AfterCallWork"==e.getStatus().name&&B([])}))}))})),Object(a.useEffect)((function(){connect.contact((function(e){e.onAccepted(U(e.getAttributes().number.value))}))})),Object(Y.jsxs)("div",{className:i.root,children:[Object(Y.jsx)(O.a,{}),Object(Y.jsx)(v.a,{position:"absolute",className:Object(x.a)(i.appBar,l&&i.appBarShift),children:Object(Y.jsxs)(y.a,{className:i.toolbar,style:{backgroundColor:"rgb(255, 255, 255)"},children:[Object(Y.jsx)(k.a,{edge:"start",color:"inherit","aria-label":"open drawer",onClick:function(){d(!0)},className:Object(x.a)(i.menuButton,l&&i.menuButtonHidden),children:Object(Y.jsx)(P.a,{})}),Object(Y.jsx)("div",{style:{backgroundImage:"url(".concat("/logPSC.png",")"),backgroundRepeat:"no-repeat",padding:"0px, 0px, 0px, 0px",width:"250px",height:"60px",margin:"0,0,0,0"}}),Object(Y.jsxs)(I.a,{component:"h5",variant:"h9",style:{color:"rgb(123, 44, 133)",paddingLeft:"20px"},noWrap:!0,className:i.title,children:["Dashboard - ",n?JSON.stringify(n.username)+"("+JSON.stringify(n.signInUserSession.idToken.payload.email)+")":"None"]}),Object(Y.jsxs)("div",{className:i.sectionDesktop,children:[Object(Y.jsx)(k.a,{"aria-label":"show 4 new mails",color:"inherit",className:i.icons,children:Object(Y.jsx)(C.a,{badgeContent:4,color:"secondary",children:Object(Y.jsx)(me.a,{})})}),Object(Y.jsx)(k.a,{color:"inherit",className:i.icons,children:Object(Y.jsx)(we.a,{})}),Object(Y.jsx)(k.a,{color:"inherit",className:i.icons,"aria-controls":"simple-menu","aria-haspopup":"true",onClick:function(e){F(e.currentTarget)},children:Object(Y.jsx)(ve.a,{})}),Object(Y.jsxs)(Ne.a,{id:"fade-menu",anchorEl:z,keepMounted:!0,open:G,onClose:M,TransitionComponent:Se.a,children:[Object(Y.jsx)(Ie.a,{onClick:M,children:"Profile"}),Object(Y.jsx)(Ie.a,{onClick:M,children:"My account"}),Object(Y.jsx)(Ie.a,{onClick:function(){return ge.a.signOut()},children:"Logout "})]})]}),Object(Y.jsx)("div",{className:i.sectionMobile,children:Object(Y.jsx)(k.a,{className:i.icons,"aria-label":"show more","aria-haspopup":"true",color:"inherit",children:Object(Y.jsx)(Ce.a,{})})})]})}),Object(Y.jsxs)(m.a,{variant:"permanent",classes:{paper:Object(x.a)(i.drawerPaper,!l&&i.drawerPaperClose)},open:l,children:[Object(Y.jsx)("div",{className:i.toolbarIcon,children:Object(Y.jsx)(k.a,{onClick:function(){d(!1)},children:Object(Y.jsx)(R.a,{})})}),Object(Y.jsx)(N.a,{}),Object(Y.jsx)(w.a,{children:V}),Object(Y.jsx)(N.a,{}),Object(Y.jsx)(w.a,{children:K})]}),Object(Y.jsxs)("main",{className:i.content,children:[Object(Y.jsx)("div",{className:i.appBarSpacer}),Object(Y.jsxs)(S.a,{maxWidth:"lg",className:i.container,children:[Object(Y.jsxs)(T.a,{container:!0,spacing:3,children:[Object(Y.jsx)(T.a,{item:!0,xs:12,md:5,lg:5,children:Object(Y.jsx)(D.a,{className:W,children:Object(Y.jsx)(ae,{chartData:X})})}),Object(Y.jsx)(T.a,{item:!0,xs:12,md:4,lg:3,children:Object(Y.jsx)(D.a,{className:W,children:Object(Y.jsx)(re,{issues:g})})}),Object(Y.jsx)(T.a,{item:!0,xs:12,md:4,lg:4,children:Object(Y.jsx)(D.a,{className:W,children:Object(Y.jsx)("div",{class:"menu",id:"connectHandler",className:i.amazonContainer})})}),Object(Y.jsx)(T.a,{item:!0,xs:12,children:Object(Y.jsx)(D.a,{className:i.paper,children:Object(Y.jsx)(he,{issues:g})})})]}),Object(Y.jsx)(f.a,{pt:4,children:Object(Y.jsx)(Te,{})})]})]})]})}var Ee=n(843),Pe=n(835),_e=n(412),Re=n.n(_e);function Ae(){return Object(Y.jsxs)(I.a,{variant:"body2",color:"textSecondary",align:"center",children:["Login \xa9 ",Object(Y.jsx)(B.a,{color:"inherit",href:"https://material-ui.com/",children:"Your Website"})," ",(new Date).getFullYear(),"."]})}var Ue=Object(g.a)((function(e){return{root:{height:"100vh"},paper:{margin:e.spacing(8,4),display:"flex",flexDirection:"column",alignItems:"center"},avatar:{margin:e.spacing(1),backgroundColor:"rgb(209, 63, 143)"},form:{width:"100%",marginTop:e.spacing(1)},submit:{margin:e.spacing(3,0,2),backgroundColor:"rgb(123, 44, 133)",hover:{backgroundColor:"rgb(123, 44, 133)"}}}}));function He(){var e=Ue();return Object(Y.jsxs)(T.a,{container:!0,component:"main",className:e.root,children:[Object(Y.jsx)(O.a,{}),Object(Y.jsx)(T.a,{item:!0,xs:!1,sm:2,md:4}),Object(Y.jsxs)(T.a,{item:!0,xs:12,sm:8,md:4,component:D.a,elevation:6,square:!0,children:[Object(Y.jsx)("div",{style:{backgroundImage:"url(".concat("/logPSC.png",")"),backgroundRepeat:"no-repeat",width:"250px",height:"60px",margin:"20px 20px 20px 30px"}}),Object(Y.jsxs)("div",{className:e.paper,children:[Object(Y.jsx)(Ee.a,{className:e.avatar,children:Object(Y.jsx)(Re.a,{})}),Object(Y.jsx)(I.a,{component:"h1",variant:"h5",children:"Sign in"}),Object(Y.jsxs)("form",{className:e.form,noValidate:!0,children:[Object(Y.jsx)(Pe.a,{onClick:function(){return ge.a.federatedSignIn()},fullWidth:!0,variant:"contained",color:"primary",className:e.submit,style:{backgroundColor:"rgb(123, 44, 133)"},children:"Sign In"}),Object(Y.jsx)(T.a,{container:!0}),Object(Y.jsx)(f.a,{mt:5,children:Object(Y.jsx)(Ae,{})})]})]})]}),Object(Y.jsx)(T.a,{item:!0,xs:!1,sm:2,md:4})]})}var Le=n(9),ze=n(836);function Fe(){return Object(Y.jsxs)(I.a,{variant:"body2",color:"textSecondary",align:"center",children:["Copyright \xa9 ",Object(Y.jsx)(B.a,{color:"inherit",href:"https://ttpsc.pl/",children:"Transition Technologies"})," ",(new Date).getFullYear(),"."]})}var Ge=Object(g.a)((function(e){return{root:{display:"flex"},toolbar:{paddingRight:24},toolbarIcon:Object(p.a)({display:"flex",alignItems:"center",justifyContent:"flex-end",padding:"0 8px"},e.mixins.toolbar),appBar:{zIndex:e.zIndex.drawer+1,transition:e.transitions.create(["width","margin"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen})},appBarShift:{marginLeft:240,width:"calc(100% - ".concat(240,"px)"),transition:e.transitions.create(["width","margin"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen})},menuButton:{marginRight:36,color:"rgb(123, 44, 133)"},menuButtonHidden:{display:"none",color:"rgb(123, 44, 133)"},title:{flexGrow:1},icons:{color:"rgb(123, 44, 133)"},drawerPaper:{position:"relative",whiteSpace:"nowrap",width:240,transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen})},drawerPaperClose:Object(u.a)({overflowX:"hidden",transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),width:e.spacing(7)},e.breakpoints.up("sm"),{width:e.spacing(9)}),appBarSpacer:e.mixins.toolbar,content:{flexGrow:1,height:"100vh",overflow:"auto"},container:{paddingTop:e.spacing(4),paddingBottom:e.spacing(4)},paper:{padding:e.spacing(2),display:"flex",overflow:"auto",flexDirection:"column"},fixedHeight:{height:500},amazonContainer:{minWidth:"200px",height:"465px",minHeight:"400px","& iframe":{display:"block"}}}})),Me=Object(Le.a)((function(e){return{head:{backgroundColor:"rgb(123,44,133)",color:e.palette.common.white},body:{fontSize:14}}}))(oe.a),We=Object(Le.a)((function(e){return{root:{"&:nth-of-type(odd)":{backgroundColor:e.palette.action.hover}}}}))(je.a);function Je(){var e=Object(a.useState)(null),t=Object(j.a)(e,2),n=t[0],r=t[1],i=Ge(),s=c.a.useState(!0),o=Object(j.a)(s,2),l=o[0],d=o[1],b=Object(a.useState)([]),h=Object(j.a)(b,2),u=h[0],p=h[1],g=c.a.useState(null),B=Object(j.a)(g,2),E=B[0],_=B[1],A=Boolean(E),U=function(){_(null)};function H(){return ge.a.currentAuthenticatedUser().then((function(e){return e})).catch((function(){return console.log("Not signed in")}))}Object(a.useEffect)((function(){xe.a.listen("auth",(function(e){var t=e.payload,n=t.event,a=t.data;switch(n){case"signIn":case"cognitoHostedUI":H().then((function(e){return r(e)}));break;case"signOut":r(null);break;case"signIn_failure":case"cognitoHostedUI_failure":console.log("Sign in failure",a)}})),H().then((function(e){return r(e)}))}),[]);return Object(a.useEffect)((function(){fetch("https://dev.callcenter.ttpsc.cloud/rest/api/2/search",{headers:{Authorization:"Basic Y29ubmVjdEJvdDpvWjY1NmNjeEhVbjA=","Content-Type":"application/json",Accept:"application/json"}}).then((function(e){return console.log(e),e.json()})).then((function(e){console.log(e.issues),p(e.issues)}))}),[]),Object(Y.jsxs)("div",{className:i.root,children:[Object(Y.jsx)(O.a,{}),Object(Y.jsx)(v.a,{position:"absolute",className:Object(x.a)(i.appBar,l&&i.appBarShift),children:Object(Y.jsxs)(y.a,{className:i.toolbar,style:{backgroundColor:"rgb(255, 255, 255)"},children:[Object(Y.jsx)(k.a,{edge:"start",color:"inherit","aria-label":"open drawer",onClick:function(){d(!0)},className:Object(x.a)(i.menuButton,l&&i.menuButtonHidden),children:Object(Y.jsx)(P.a,{})}),Object(Y.jsx)("div",{style:{backgroundImage:"url(".concat("/logPSC.png",")"),backgroundRepeat:"no-repeat",padding:"0px, 0px, 0px, 0px",width:"250px",height:"60px",margin:"0,0,0,0"}}),Object(Y.jsxs)(I.a,{component:"h5",variant:"h9",style:{color:"rgb(123, 44, 133)",paddingLeft:"20px"},noWrap:!0,className:i.title,children:["Issues - ",n?JSON.stringify(n.username)+"("+JSON.stringify(n.signInUserSession.idToken.payload.email)+")":"None"]}),Object(Y.jsxs)("div",{className:i.sectionDesktop,children:[Object(Y.jsx)(k.a,{"aria-label":"show 4 new mails",color:"inherit",className:i.icons,children:Object(Y.jsx)(C.a,{badgeContent:4,color:"secondary",children:Object(Y.jsx)(me.a,{})})}),Object(Y.jsx)(k.a,{color:"inherit",className:i.icons,children:Object(Y.jsx)(we.a,{})}),Object(Y.jsx)(k.a,{color:"inherit",className:i.icons,"aria-controls":"simple-menu","aria-haspopup":"true",onClick:function(e){_(e.currentTarget)},children:Object(Y.jsx)(ve.a,{})}),Object(Y.jsxs)(Ne.a,{id:"fade-menu",anchorEl:E,keepMounted:!0,open:A,onClose:U,TransitionComponent:Se.a,children:[Object(Y.jsx)(Ie.a,{onClick:U,children:"Profile"}),Object(Y.jsx)(Ie.a,{onClick:U,children:"My account"}),Object(Y.jsx)(Ie.a,{onClick:function(){return ge.a.signOut()},children:"Logout "})]})]}),Object(Y.jsx)("div",{className:i.sectionMobile,children:Object(Y.jsx)(k.a,{className:i.icons,"aria-label":"show more","aria-haspopup":"true",color:"inherit",children:Object(Y.jsx)(Ce.a,{})})})]})}),Object(Y.jsxs)(m.a,{variant:"permanent",classes:{paper:Object(x.a)(i.drawerPaper,!l&&i.drawerPaperClose)},open:l,children:[Object(Y.jsx)("div",{className:i.toolbarIcon,children:Object(Y.jsx)(k.a,{onClick:function(){d(!1)},children:Object(Y.jsx)(R.a,{})})}),Object(Y.jsx)(N.a,{}),Object(Y.jsx)(w.a,{children:V}),Object(Y.jsx)(N.a,{}),Object(Y.jsx)(w.a,{children:K})]}),Object(Y.jsxs)("main",{className:i.content,children:[Object(Y.jsx)("div",{className:i.appBarSpacer}),Object(Y.jsxs)(S.a,{maxWidth:"lg",className:i.container,children:[Object(Y.jsx)(T.a,{container:!0,spacing:1,children:Object(Y.jsx)(T.a,{item:!0,xs:12,children:Object(Y.jsxs)(D.a,{className:i.paper,children:[Object(Y.jsx)(I.a,{component:"h1",variant:"h4",style:{color:"rgb(123, 44, 133)"},children:"Issues"}),Object(Y.jsx)("br",{}),Object(Y.jsx)(ze.a,{component:D.a,children:Object(Y.jsxs)(ie.a,{className:i.table,"aria-label":"customized table",children:[Object(Y.jsx)(le.a,{children:Object(Y.jsxs)(je.a,{children:[Object(Y.jsx)(Me,{children:"Creator email"}),Object(Y.jsx)(Me,{align:"center",children:"Issue type"}),Object(Y.jsx)(Me,{align:"center",children:"Issue number"}),Object(Y.jsx)(Me,{align:"center",children:"Status"}),Object(Y.jsx)(Me,{align:"center",children:"Jira external link"})]})}),Object(Y.jsx)(se.a,{children:u.map((function(e){var t;return Object(Y.jsxs)(We,{children:[Object(Y.jsx)(Me,{component:"th",scope:"row",children:e.fields.creator.emailAddress}),Object(Y.jsx)(Me,{align:"center",children:e.fields.priority.name}),Object(Y.jsx)(Me,{align:"center",children:e.key}),Object(Y.jsx)(Me,{align:"center",children:null===(t=e.fields.status)||void 0===t?void 0:t.name}),Object(Y.jsx)(Me,{align:"center",children:Object(Y.jsx)("a",{href:"https://dev.callcenter.ttpsc.cloud/browse/".concat(e.key),target:"_blank",rel:"noreferrer",children:"Open in jira"})})]},e.key)}))})]})})]})})}),Object(Y.jsx)(f.a,{pt:4,children:Object(Y.jsx)(Fe,{})})]})]})]})}var Ye=n(150),Ve={cognito:{REGION:"eu-central-1",USER_POOL_ID:"eu-central-1_jYtsh3yG0",APP_CLIENT_ID:"217a24a1f949s714tu1d5u873p",DOMAIN:"callcenter-dev-app.auth.eu-central-1.amazoncognito.com",IDENTITY_POOL_ID:"YOUR_IDENTITY_POOL_ID",REDIRECTSIGNIN:"http://localhost:3000,https://app.dev.callcenter.ttpsc.cloud",REDIRECTSIGNOUT:"http://localhost:3000,https://app.dev.callcenter.ttpsc.cloud"}},Ke=n(416),Xe=n(35),qe=Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/)),$e=Ve.cognito.REDIRECTSIGNIN.split(","),Qe=Object(j.a)($e,2),Ze=Qe[0],et=Qe[1],tt=Ve.cognito.REDIRECTSIGNOUT.split(","),nt=Object(j.a)(tt,2),at=nt[0],ct=nt[1];Ye.default.configure({Auth:{mandatorySignIn:!0,region:Ve.cognito.REGION,userPoolId:Ve.cognito.USER_POOL_ID,userPoolWebClientId:Ve.cognito.APP_CLIENT_ID},oauth:{domain:Ve.cognito.DOMAIN,scope:["email","openid"],redirectSignIn:qe?Ze:et,redirectSignOut:qe?at:ct,responseType:"token"}});var rt=pe.a.create({baseURL:"https://dev.callcenter.ttpsc.cloud/rest/api/2/search"});a.Component;var it=function(){var e=Object(a.useState)(),t=Object(j.a)(e,2),n=t[0],c=t[1];function r(){return ge.a.currentAuthenticatedUser().then((function(e){return e})).catch((function(){return console.log("Not signed in")}))}return Object(a.useEffect)((function(){xe.a.listen("auth",(function(e){var t=e.payload,n=t.event,a=t.data;switch(n){case"signIn":case"cognitoHostedUI":r().then((function(e){return c(e)}));break;case"signOut":c(null);break;case"signIn_failure":case"cognitoHostedUI_failure":console.log("Sign in failure",a)}})),r().then((function(e){return c(e)}))}),[]),n?Object(Y.jsx)(Ke.a,{children:Object(Y.jsx)("div",{children:Object(Y.jsxs)(Xe.c,{children:[Object(Y.jsx)(Xe.a,{path:"/Dashboard",children:Object(Y.jsx)(Be,{})}),Object(Y.jsx)(Xe.a,{path:"/Issues",children:Object(Y.jsx)(Je,{})}),Object(Y.jsx)(Xe.a,{path:"/",children:Object(Y.jsx)(Be,{})})]})})}):Object(Y.jsx)(He,{})},st=function(e){e&&e instanceof Function&&n.e(3).then(n.bind(null,845)).then((function(t){var n=t.getCLS,a=t.getFID,c=t.getFCP,r=t.getLCP,i=t.getTTFB;n(e),a(e),c(e),r(e),i(e)}))};i.a.render(Object(Y.jsx)(c.a.StrictMode,{children:Object(Y.jsx)(it,{})}),document.getElementById("root")),st()}},[[753,1,2]]]); //# sourceMappingURL=main.6c1751b3.chunk.js.map