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AAOgB,EAAErC,YAAYqB,MAC9B,EAGF,GAGQ,cAAbrC,EAEU,SAAUoD,EAAGC,GACzB,OAAID,EAAEE,UAAUjB,KAAOgB,EAAEC,UAAUjB,KAC1B,EAELe,EAAEE,UAAUjB,KAAOgB,EAAEC,UAAUjB,MAC1B,EAGF,GAKK,SAAUe,EAAGC,GACzB,OAAID,EAAEzB,MAAQ0B,EAAE1B,MACP,EAELyB,EAAEzB,MAAQ0B,EAAE1B,OACP,EAGF,kDArLFjB,GAAclF,oDAAdkF,EAAcD,QAAdC,EAAc,qBAFb,SAEDA,GAAb","names":["i0","ctx_r2","oxw","PopoverListarInscricoesComponent","constructor","popoverController","ngOnInit","find","idInscricao","this","dismiss","selectors","ctx_r3","ctx_r5","HeaderGcComponent","storageService","functionsService","inscricaoService","dataSharingService","usuarioLogado","getUsuarioLogado","location","pathname","indexOf","showNotificacaoNovosDocsEnviados","getMostRecentUpdated","source","interval","subscription","subscribe","val","unsubscribe","tipoDocumentos","findByUltimosDocsInscricaoEnviados","next","resp","inscricoesRecentementeAtualizadas","error","console","log","findByUltimosDocsMatriculaEnviados","ngOnDestroy","hideSubmenu","event","idSubmenu","element","document","getElementById","style","visibility","showSubmenu","showingSubmenu","showHideSubmenu","goToPath","path","logoff","setUsuarioLogado","openPopoverListarInscricoes","popover","create","component","componentProps","inscricoes","translucent","showBackdrop","backdropDismiss","trigger","present","onDidDismiss","then","data","idInscricaoSelecionada","i","length","id","dataUltimaVisualizacaoDocumentacaoInscricao","Date","dataUltimaVisualizacaoDocumentacaoMatricula","update","DataSharingService","BehaviorSubject","factory","UsuarioService","http","router","insert","usuarioDTO","post","funcionario","API_CONFIG","observe","notificarUsuario","put","changePass","oldPass","newPass","resetPass","iu","sendResetPassLink","login","get","_platformLocation","origin","sendValidationCode","email","codigoValidacao","findAll","findByFilters","tipo","nome","perfil","findByFilter","filtro","findFuncionarios","status","findByUsername","findByLoginAndSenha","senha","doLogin","delete","sortArray","usuarios","field","sort","a","b","candidato"],"sources":["./src/app/components/header-gc/components/popover-listar-inscricoes/popover-listar-inscricoes.component.html","./src/app/components/header-gc/components/popover-listar-inscricoes/popover-listar-inscricoes.component.ts","./src/app/components/header-gc/header-gc.component.html","./src/app/components/header-gc/header-gc.component.ts","./src/app/models/controle-acesso/usuarioDTO.ts","./src/app/services/common/data-sharing.service.ts","./src/app/services/usuario/usuario.service.ts"],"sourcesContent":["
\n\n
\n \n {{inscricao.candidato.nome}} {{inscricao.candidato.sobrenome}}, inscrição {{inscricao.id}}, enviou nova documentação.\n \n
\n\n
","import { PopoverController } from '@ionic/angular';\nimport { InscricaoDTO } from '../../../../models/vestibular/inscricaoDTO';\nimport { Component, OnInit } from '@angular/core';\n\n@Component({\n selector: 'app-popover-listar-inscricoes',\n templateUrl: './popover-listar-inscricoes.component.html',\n styleUrls: ['./popover-listar-inscricoes.component.scss'],\n})\nexport class PopoverListarInscricoesComponent implements OnInit {\n\n constructor( private popoverController: PopoverController ) { }\n\n inscricoes: InscricaoDTO[];\n\n ngOnInit() {}\n\n\n find(idInscricao: number){\n\n //fecha o popover e indica o id da inscrição para disparar o método find do componente header-gc\n this.popoverController.dismiss(idInscricao);\n }\n}\n"," \n\n \n \"logo\"\n\n \n\n 0\">\n {{inscricoesRecentementeAtualizadas.length}}\n \n \n\n \n \n \n \n \n \n \n \n \n\n\n \n \n\n \n\n \n\n\n\n\n\n","import { DataSharingService } from './../../services/common/data-sharing.service';\nimport { PopoverListarInscricoesComponent } from './components/popover-listar-inscricoes/popover-listar-inscricoes.component';\nimport { PopoverController } from '@ionic/angular';\nimport { InscricaoDTO } from '../../models/vestibular/inscricaoDTO';\nimport { InscricaoService } from './../../services/inscricao/inscricao.service';\nimport { UsuarioDTO } from '../../models/controle-acesso/usuarioDTO';\nimport { StorageService } from './../../services/storage/storage.service';\nimport { FunctionsService } from './../../services/common/functions.service';\nimport { Component, OnInit, ViewChild } from '@angular/core';\nimport { interval, Subscription } from 'rxjs';\n\n@Component({\n selector: 'app-header-gc',\n templateUrl: './header-gc.component.html',\n styleUrls: ['./header-gc.component.scss'],\n})\nexport class HeaderGcComponent implements OnInit {\n\n \n\n showingSubmenu = '';\n menuGCItems = [];\n usuarioLogado: UsuarioDTO = null;\n\n showNotificacaoNovosDocsEnviados: boolean = false;\n inscricoesRecentementeAtualizadas: InscricaoDTO[] = [];\n\n subscription: Subscription;\n\n constructor( private storageService : StorageService\n , private functionsService: FunctionsService\n , private inscricaoService: InscricaoService\n , private popoverController: PopoverController\n , private dataSharingService: DataSharingService ) { \n\n this.usuarioLogado = this.storageService.getUsuarioLogado(); \n \n if(location.pathname.indexOf('modulo-gc/gc-analisar-documentacao-inscricao')>-1){\n this.showNotificacaoNovosDocsEnviados = true;\n \n this.getMostRecentUpdated('inscrição');\n\n //repetir a consulta de inscrições recentemente atualizadas a cada 60 segundos\n const source = interval(60000);\n this.subscription = source.subscribe(val => this.getMostRecentUpdated('inscrição'));\n\n }else if(location.pathname.indexOf('modulo-gc/gc-analisar-documentacao-matricula')>-1){\n \n this.showNotificacaoNovosDocsEnviados = true;\n this.getMostRecentUpdated('matrícula');\n\n //repetir a consulta de inscrições recentemente atualizadas a cada 60 segundos\n const source = interval(60000);\n this.subscription = source.subscribe(val => this.getMostRecentUpdated('matrícula'));\n }else {\n // Cancelar a execução de this.getMostRecentUpdated\n this.showNotificacaoNovosDocsEnviados = false;\n if (this.subscription) {\n this.subscription.unsubscribe();\n }\n }\n }\n\n getMostRecentUpdated(tipoDocumentos: string){\n\n if(tipoDocumentos=='inscrição'){\n this.inscricaoService.findByUltimosDocsInscricaoEnviados().subscribe({\n next:(resp)=>{\n this.inscricoesRecentementeAtualizadas = resp;\n \n },\n error:(error)=>{\n console.log(error);\n }\n });\n \n }else if(tipoDocumentos == 'matrícula'){\n\n this.inscricaoService.findByUltimosDocsMatriculaEnviados().subscribe({\n next:(resp)=>{\n this.inscricoesRecentementeAtualizadas = resp;\n \n },\n error:(error)=>{\n console.log(error);\n }\n });\n\n }\n \n\n }\n\n ngOnInit() {\n \n }\n\n ngOnDestroy() {\n \n //mata a repetição das consultas de atualização da tela\n if(this.subscription){\n this.subscription.unsubscribe();\n }\n \n }\n\n /**\n * método disparado pelo evento mouseout \n */\n hideSubmenu(event, idSubmenu: string) { \n \n let element = document.getElementById(idSubmenu);\n //this.showingSubmenu = idSubmenu; \n if(element){\n element.style.visibility = 'hidden';\n }\n \n \n }\n\n /**\n * método disparado pelo evento mouseenter \n */\n showSubmenu(idSubmenu: string){\n \n this.showingSubmenu = idSubmenu;\n\n let element = document.getElementById(idSubmenu);\n \n if(element){\n element.style.visibility = 'visible';\n }\n \n\n }\n\n\n /*\n método usado para tablets, disparado através do click no menu, pois em tablet não tem cursor do mouse\n */\n showHideSubmenu(idSubmenu: string){\n \n this.showingSubmenu = idSubmenu;\n\n let element = document.getElementById(idSubmenu);\n \n if(element){\n\n if(element.style.visibility === 'visible'){\n element.style.visibility = 'hidden';\n }else{\n element.style.visibility = 'visible';\n }\n }\n \n }\n\n\n \n goToPath(path:string){\n\n if(path){\n this.functionsService.goToPath(path);\n }\n }\n \n\n logoff(){\n this.storageService.setUsuarioLogado(null);\n this.functionsService.goToPath('modulo-gc/gc-login');\n\n }\n\n\n async openPopoverListarInscricoes(event) {\n \n let tipoDocumentos = 'inscrição';\n if(location.pathname.indexOf('modulo-gc/gc-analisar-documentacao-matricula')>-1){\n tipoDocumentos = 'matrícula'\n }\n const popover = await this.popoverController.create({\n component: PopoverListarInscricoesComponent,\n componentProps: { 'inscricoes': this.inscricoesRecentementeAtualizadas\n , 'tipoDocumentos': tipoDocumentos},\n translucent: false,\n showBackdrop: true,\n backdropDismiss: true,\n event: event,\n trigger: event,\n //cssClass: 'popover-listar-inscricoes', //definido no global.css \n \n });\n\n await popover.present();\n \n //quando fechar o popover\n await popover.onDidDismiss().then((data)=>{\n\n //se tiver selecionado uma inscrição o campo data.data estará preenchido do contrário será null\n if(data && data.data){\n\n //informa ao serviço de notificação/compartilhamento de dados entre componentes o id da inscrição selecionada\n //este id será utilizado para preencher a tela de análise de docs com a inscrição selecionada\n this.dataSharingService.idInscricaoSelecionada.next( data.data ); \n\n //atualiza a inscrição selecionada para ela sair da lista\n for(var i=0; i{\n\n //atualizar o contador no ícone de notificações\n this.getMostRecentUpdated(tipoDocumentos);\n\n },\n error:(error)=>{\n console.log(error);\n }\n });\n\n }\n }\n \n }\n \n });\n \n }\n}\n","import { CandidatoDTO } from '../vestibular/candidatoDTO';\r\nimport { FuncionarioDTO } from './funcionarioDTO';\r\nexport class UsuarioDTO{\r\n\r\n id!: number;\r\n login!: string;\r\n senha!: string;\r\n nome!:string;\r\n status!: string;\r\n perfil!:string;\r\n ultimoAcesso!: Date;\r\n funcionario!: FuncionarioDTO;\r\n candidato!: CandidatoDTO;\r\n dataAceiteCookies!: Date;\r\n \r\n}","import { Injectable } from '@angular/core';\nimport { BehaviorSubject } from 'rxjs';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class DataSharingService {\n\n //serviço usado para emitir a mensagem para outros componentes que precisem saber quando o usuário está logado ou não\n public isUserLoggedIn: BehaviorSubject = new BehaviorSubject(false);\n \n //serviço usado para emitir a mensagem do header para a página gc-analisar-documentacao\n public idInscricaoSelecionada: BehaviorSubject = new BehaviorSubject(0);\n \n \n constructor() { }\n\n}\n","import { Router } from '@angular/router';\nimport { UsuarioDTO } from '../../models/controle-acesso/usuarioDTO';\nimport { HttpClient } from '@angular/common/http';\nimport { API_CONFIG } from './../../config/api.config';\nimport { Observable } from 'rxjs/internal/Observable';\nimport { Injectable } from '@angular/core';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class UsuarioService {\n\n constructor( private http: HttpClient\n , private router: Router ) { }\n\n\n\n insert(usuarioDTO: UsuarioDTO) : Observable {\n\n if(usuarioDTO.funcionario !== null && usuarioDTO.funcionario !== undefined){\n \n return this.http.post( API_CONFIG.apiURL+'/usuarios'\n , usuarioDTO\n , { observe: 'response' });\n \n }else{\n\n return this.http.post( API_CONFIG.apiURL+'/usuarios/candidato'\n , usuarioDTO\n , { observe: 'response' });\n\n }\n\n }\n\n\n update(usuarioDTO: UsuarioDTO, notificarUsuario: boolean = true) : Observable {\n\n if(usuarioDTO.funcionario !== null && usuarioDTO.funcionario !== undefined){\n \n return this.http.put( API_CONFIG.apiURL+'/usuarios/' + usuarioDTO.id + '/' + notificarUsuario\n , usuarioDTO\n , { observe: 'response' });\n \n }else{\n\n return this.http.put( API_CONFIG.apiURL+'/usuarios/updateCandidato/' + usuarioDTO.id + '/' + notificarUsuario\n , usuarioDTO\n , { observe: 'response' });\n\n } \n\n }\n\n \n\n changePass(id: number, oldPass: string, newPass: string) : Observable{\n\n return this.http.put( API_CONFIG.apiURL+'/usuarios/changePass?id=' + id + '&oldPass='+ oldPass + '&newPass=' + newPass\n , null\n , { observe: 'response' });\n\n }\n\n resetPass(iu: string,newPass: string) : Observable{\n\n return this.http.put( API_CONFIG.apiURL+'/usuarios/resetPass?iu=' + iu + '&newPass=' + newPass\n , null\n , { observe: 'response' });\n\n }\n\n sendResetPassLink(login: string) : Observable{\n\n //console.log(this.router['location']._platformLocation.location.origin);\n const sitePath: string = this.router['location']._platformLocation.location.origin;\n const routeResetPath: string = '/modulo-gc/gc-alterar-senha';\n\n return this.http.get( API_CONFIG.apiURL+'/usuarios/sendResetPassLink?login=' + login + '&urlResetSenha='+ sitePath + routeResetPath);\n\n }\n\n sendValidationCode(email: string, codigoValidacao: string) : Observable{\n\n return this.http.get( API_CONFIG.apiURL+'/usuarios/sendValidationCode?email=' + email + '&codigoValidacao='+ codigoValidacao);\n\n }\n\n findAll() : Observable {\n\n return this.http.get( API_CONFIG.apiURL+'/usuarios');\n\n }\n\n findByFilters(tipo: string, login: string, email: string, nome: string, perfil: string) : Observable {\n\n const filtro = 'tipo='+tipo+'&login='+login+'&email='+email+'&nome='+nome+'&perfil='+perfil;\n return this.http.get( API_CONFIG.apiURL+'/usuarios/filtros?'+filtro);\n\n }\n\n findByFilter(filtro: string, tipo: string) : Observable {\n\n return this.http.get( API_CONFIG.apiURL+'/usuarios/filtro?'+ 'tipo='+tipo+'&filtro='+filtro);\n\n }\n\n findFuncionarios(status: string) : Observable {\n\n return this.http.get( API_CONFIG.apiURL+'/usuarios/findFuncionarios?status='+status);\n\n }\n \n\n findByUsername(login: string) : Observable {\n \n return this.http.get( API_CONFIG.apiURL+'/usuarios/findByLogin?login='+login);\n\n }\n\n\n findByLoginAndSenha(login: string, senha: string) : Observable {\n \n return this.http.get( API_CONFIG.apiURL+'/usuarios/findByLoginAndSenha?login='+login+'&senha='+senha);\n\n }\n\n\n\n find(id: number) : Observable {\n\n return this.http.get( API_CONFIG.apiURL+'/usuarios/' + id);\n\n }\n\n \n doLogin(login: string, senha: string) : Observable {\n \n return this.http.post( API_CONFIG.apiURL+'/login'\n , {'login': login, 'senha': senha}\n , { observe: 'response' });\n\n \n \n }\n\n delete(id: number) : Observable {\n\n return this.http.delete( API_CONFIG.apiURL + '/usuarios/' + id);\n\n }\n\n\n sortArray(usuarios: UsuarioDTO[], field: string){\n\n if(field === 'Funcionário'){\n\n usuarios.sort(function (a, b) {\n if (a.funcionario.nome > b.funcionario.nome) {\n return 1;\n }\n if (a.funcionario.nome < b.funcionario.nome) {\n return -1;\n }\n // a must be equal to b\n return 0;\n });\n\n }else if(field === 'Candidato'){\n\n usuarios.sort(function (a, b) {\n if (a.candidato.nome > b.candidato.nome) {\n return 1;\n }\n if (a.candidato.nome < b.candidato.nome) {\n return -1;\n }\n // a must be equal to b\n return 0;\n });\n\n }else{\n\n usuarios.sort(function (a, b) {\n if (a.login > b.login) {\n return 1;\n }\n if (a.login < b.login) {\n return -1;\n }\n // a must be equal to b\n return 0;\n });\n }\n \n }\n}\n"],"sourceRoot":"webpack:///","file":"2891.1f4315025248b801.js"}