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AAa,aAAa,aAAa,aAAa,aAAa,aAAa,aAAa,MAAM,KAAK,YAAY,aAAa,aAAa,MAAM,QAAQ,YAAY,aAAa,aAAa,aAAa,gCAAgC,gCAAgC,KAAK,SAAS,kDAAkD,KAAK,eAAe,gCAAgC,oDAAoD,gCAAgC,+BAA+B,0CAA0C,mCAAmC,qCAAqC,2CAA2C,OAAO,YAAY,8DAA8D,4EAA4E,oEAAoE,eAAe,yJAAyJ,6CAA6C,uDAAuD,wDAAwD,SAAS,mBAAmB;AAC34C;AACA;;;;;;;;;;;ACpCA;AACA,4CAA4C,mBAAO,CAAC,2EAAgE;AACpH,kCAAkC,mBAAO,CAAC,oEAAyD;AACnG;AACA;AACA,iDAAiD,kEAAkE;AACnH;AACA;;;;;;;;;;;ACPA;AACA,4CAA4C,mBAAO,CAAC,2EAAgE;AACpH,kCAAkC,mBAAO,CAAC,oEAAyD;AACnG;AACA;AACA,iDAAiD,kEAAkE;AACnH;AACA","sources":["./src/app/admin/admin/admin.service.ts","./src/app/admin/not-found/not-found.component.ts","./src/app/app-routing.module.ts","./src/app/app.component.ts","./src/app/app.module.ts","./src/app/authentication/authentication.service.ts","./src/app/authentication/findschool/findschool.component.ts","./src/app/authentication/findschool/institutionprofile.service.ts","./src/app/authentication/forgetpassword/forgetpassword.component.ts","./src/app/authentication/guards/auth.guard.ts","./src/app/authentication/guards/institution.guard.ts","./src/app/authentication/guards/random.guard.ts","./src/app/authentication/login/login.component.ts","./src/app/authentication/login/login.service.ts","./src/app/authentication/token.interceptor.ts","./src/app/institution.interceptor.ts","./src/app/shared/loader-interceptor.service.ts","./src/app/shared/loader.service.ts","./src/app/shared/loader/loader.component.ts","./src/app/shared/loading/loading.component.ts","./src/app/shared/model/admissionType.ts","./src/app/shared/model/fineConditionType.ts","./src/app/shared/model/issueStatus.ts","./src/app/shared/model/maintenanceType.ts","./src/app/shared/model/penaltyType.ts","./src/app/shared/model/preFineConditionType.ts","./src/app/shared/model/purchaseStatus.ts","./src/app/shared/model/returnBookStatus.ts","./src/app/shared/model/status.ts","./src/app/shared/model/stopType.ts","./src/app/shared/pipes/filter.pipe.ts","./src/app/shared/shared.module.ts","./src/app/shared/shared.service.ts","./src/environments/environment.ts","./src/main.ts","./src/app/admin/not-found/not-found.component.css","./src/app/app.component.css","./src/app/authentication/findschool/findschool.component.css","./src/app/authentication/forgetpassword/forgetpassword.component.css","./src/app/authentication/login/login.component.css","./src/app/shared/loader/loader.component.css","./src/app/shared/loading/loading.component.css"],"sourcesContent":["import { Injectable } from '@angular/core';\r\nimport { HttpClient, HttpErrorResponse, HttpHeaders } from '@angular/common/http';\r\nimport { environment } from '../../../environments/environment';\r\nimport { throwError, Observable, of } from 'rxjs'\r\nimport { catchError, mapTo, tap } from 'rxjs/operators';\r\nimport { Institution} from './institution.model';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class AdminService {\r\n\r\n httpOptions = {\r\n headers: new HttpHeaders({\r\n 'Content-Type': 'application/json'\r\n })\r\n };\r\n\r\n\r\n constructor(private httpClient: HttpClient) { }\r\n\r\n getByCode(code: string): Observable {\r\n console.log(code);\r\n //this.httpOptions.headers.delete(\"InstitutionCode\");\r\n return this.httpClient.get(environment.apiUrl + '/institution/GetInstitutionDetailsByCode/' + code, this.httpOptions)\r\n .pipe(\r\n catchError(this.errorHandler)\r\n );\r\n }\r\n \r\n errorHandler(error) {\r\n console.log(error.error.message);\r\n let errorMessage = '';\r\n if (error.error instanceof ErrorEvent) {\r\n // Get client-side error\r\n errorMessage = error.error.message;\r\n } else {\r\n // Get server-side error\r\n errorMessage = `Error Code: ${error.status}\\nMessage: ${error.message}`;\r\n }\r\n console.log(errorMessage);\r\n return throwError(errorMessage);\r\n }\r\n\r\n\r\n}\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { AuthenticationService } from '../../authentication/authentication.service';\r\nimport { ActivatedRoute, Router } from '@angular/router';\r\nimport { SharedService } from '../../shared/shared.service';\r\nimport { Institution } from '../admin/institution.model';\r\n\r\n@Component({\r\n selector: 'app-not-found',\r\n templateUrl: './not-found.component.html',\r\n styleUrls: ['./not-found.component.css']\r\n})\r\nexport class NotFoundComponent implements OnInit {\r\n inst: Institution;\r\n\r\n constructor(private sharedService:SharedService,\r\n private router: Router,\r\n private activatedRoute: ActivatedRoute\r\n ) { }\r\n\r\n ngOnInit(): void {\r\n // debugger;\r\n // this.inst=JSON.parse(localStorage.getItem('Institution'));\r\n // if(this.inst.institutionCode!=''){\r\n // this.router.navigate([this.inst.institutionCode + '/login'], { relativeTo: this.activatedRoute.root });\r\n // }else{\r\n // this.router.navigate(['/login']);\r\n // }\r\n }\r\n\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { Routes, RouterModule } from '@angular/router';\r\nimport { LoginComponent } from './authentication/login/login.component';\r\nimport{ FindschoolComponent } from './authentication/findschool/findschool.component';\r\nimport { IloginComponent } from './authentication/ilogin/ilogin.component';\r\nimport { AuthGuard } from './authentication/guards/auth.guard';\r\nimport {ForgetpasswordComponent} from './authentication/forgetpassword/forgetpassword.component';\r\nimport { InstitutionGuard } from './authentication/guards/institution.guard';\r\nimport { RandomGuard } from './authentication/guards/random.guard';\r\n\r\n\r\nconst routes: Routes = [\r\n {\r\n path: 'findschool', component: FindschoolComponent\r\n },\r\n {\r\n path: 'forgetpassword', component: ForgetpasswordComponent\r\n },\r\n {path: ':edumaq', component: LoginComponent},\r\n {\r\n path: ':edumaq/login',\r\n component: LoginComponent,\r\n canActivate: [AuthGuard], \r\n },\r\n {path: '', component: FindschoolComponent},\r\n\r\n {\r\n path: '', loadChildren: () => import('./admin/admin.module').then(m => m.AdminModule),\r\n canActivate: [InstitutionGuard],\r\n \r\n },\r\n {\r\n path: '', loadChildren: () => import('./edumaq/edumaq.module').then(m => m.EdumaqModule),\r\n canActivate: [RandomGuard],\r\n \r\n },\r\n {\r\n path: '', loadChildren: () => import('./superadmin/superadmin.module').then(m => m.SuperadminModule),\r\n canActivate: [InstitutionGuard],\r\n \r\n },\r\n {\r\n path: '', loadChildren: () => import('./parentchild/parentchild.module').then(m => m.ParentchildModule),\r\n canActivate: [InstitutionGuard],\r\n \r\n },\r\n {\r\n path: '', loadChildren: () => import('./teacher/teacher.module').then(m => m.TeacherModule),\r\n canActivate: [InstitutionGuard],\r\n \r\n },\r\n {\r\n path: '', loadChildren: () => import('./institution/institution.module').then(m => m.InstitutionModule),\r\n canActivate: [InstitutionGuard],\r\n \r\n }\r\n\r\n\r\n\r\n\r\n // {path: '**', redirectTo: ''}\r\n];\r\n\r\n@NgModule({\r\n imports: [RouterModule.forRoot(routes)],\r\n exports: [RouterModule]\r\n})\r\nexport class AppRoutingModule { }\r\n","import { Component, HostListener,ViewChild,ElementRef } from '@angular/core';\r\nimport { Idle, DEFAULT_INTERRUPTSOURCES } from '@ng-idle/core';\r\n//import { AuthenticationService } from '../../../../../../authentication/authentication.service';\r\nimport { AuthenticationService } from './authentication/authentication.service';\r\nimport {AdminComponent} from './admin/admin/admin.component';\r\nimport { Router } from '@angular/router';\r\n\r\n\r\n@Component({\r\n selector: 'app-root',\r\n templateUrl: './app.component.html',\r\n styleUrls: ['./app.component.css'],\r\n \r\n})\r\n\r\n\r\nexport class AppComponent {\r\n title = 'edumaq';\r\n sessionExpiryTime: number;\r\n idleState = 'Not started.';\r\n timedOut = false;\r\n tokenExpirySecond: number = 0;\r\n @ViewChild('OpenPopow', { static: false }) OpenPopow: ElementRef;\r\n //@ViewChild('AdminComponent', { static: false }) adminComp: AdminComponent;\r\n\r\n //@ViewChild(AdminComponent) adminComp:AdminComponent;\r\n \r\n @HostListener('window:onbeforeunload', ['$event'])\r\n clearLocalStorage(event) {\r\n localStorage.clear();\r\n }\r\n constructor(\r\n router:Router\r\n \r\n\r\n ){\r\n //this.getSessionExpiryTime();\r\n //this.idleTimeSetting();\r\n // this.idle.watch(); \r\n }\r\n \r\n}\r\n","import { BrowserModule } from '@angular/platform-browser';\r\nimport { BrowserAnimationsModule } from '@angular/platform-browser/animations';\r\n\r\nimport { CUSTOM_ELEMENTS_SCHEMA, Injectable, NgModule } from '@angular/core';\r\nimport { DatePipe, TitleCasePipe } from '@angular/common';\r\n/* import { ToastrModule } from 'ngx-toastr'; */\r\n\r\nimport {AdminModule} from './admin/admin.module';\r\nimport { AppRoutingModule } from './app-routing.module';\r\nimport { AppComponent } from './app.component';\r\n\r\n\r\nimport { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';\r\nimport { BsDatepickerModule } from 'ngx-bootstrap/datepicker';\r\nimport { LoaderService } from './shared/loader.service';\r\nimport { LoaderInterceptor } from './shared/loader-interceptor.service';\r\nimport { TokenInterceptor } from './authentication/token.interceptor';\r\nimport { InstitutionInterceptor } from './institution.interceptor';\r\nimport { LoaderComponent } from './shared/loader/loader.component';\r\n\r\nimport { SharedService } from './shared/shared.service';\r\nimport {EdumaqModule} from './edumaq/edumaq.module';\r\nimport { AuthenticationModule } from './authentication/authentication.module';\r\nimport { SuperadminModule } from './superadmin/superadmin.module';\r\nimport { ParentchildModule } from './parentchild/parentchild.module';\r\nimport { TeacherModule } from './teacher/teacher.module';\r\nimport { InstitutionModule } from './institution/institution.module';\r\nimport { SharedModule } from './shared/shared.module';\r\n// import { EvalutiontypeComponent } from './admin/academic/academicsettings/evalutiontype/evalutiontype.component';//\r\n//import { NgIdleModule} from '@ng-idle/core';\r\nimport { NotFoundComponent } from './admin/not-found/not-found.component';\r\nimport { CommonModule } from '@angular/common';\r\n/* import { AgmDirectionModule } from 'agm-direction'; */\r\n//import { AgmCoreModule } from '@agm/core';\r\nimport { RouterModule, Routes } from '@angular/router';\r\nimport { FormsModule,ReactiveFormsModule } from '@angular/forms';\r\nimport { LoginComponent } from './authentication/login/login.component';\r\nimport { AuthGuard } from './authentication/guards/auth.guard';\r\nimport { AcademicModule } from './admin/academic/academic.module';\r\nimport { NgIdleModule } from '@ng-idle/core';\r\nimport { FindschoolComponent } from './authentication/findschool/findschool.component';\r\nimport {ForgetpasswordComponent} from './authentication/forgetpassword/forgetpassword.component';\r\n\r\n\r\n\r\n\r\n//import { VoucherEntryComponent } from './admin/OperationActivity/financeaccount/voucher-entry/voucher-entry.component';\r\nimport {AgmCoreModule} from '@agm/core';\r\nimport { ToastrModule } from 'ngx-toastr';\r\n\r\nimport { ModalModule } from 'ngx-bootstrap/modal';\r\nimport { InstitutionprofileService } from './authentication/findschool/institutionprofile.service';\r\n\r\n//import {AgmDirectionModule} from 'agm-direction';\r\n//import {Select2Directive} from './shared/controls/select-2-directive';\r\n\r\n// const routes: Routes = [\r\n// {path: 'findschool', component: FindschoolComponent},\r\n// {path: 'forgetpassword', component: ForgetpasswordComponent},\r\n// {path: ':edumaq', component: LoginComponent},\r\n// {\r\n// path: ':edumaq/login',\r\n// component: LoginComponent,\r\n// canActivate: [AuthGuard]\r\n// },\r\n// {path: '', component: FindschoolComponent}\r\n// // {path: '**', redirectTo: ''}\r\n// ];\r\n@NgModule({\r\n declarations: [\r\n AppComponent,\r\n FindschoolComponent,\r\n LoginComponent,\r\n NotFoundComponent,\r\n //VoucherEntryComponent,\r\n ],\r\n imports: [\r\n BrowserModule,\r\n BrowserAnimationsModule,\r\n //BsDatepickerModule.forRoot(),\r\n ToastrModule.forRoot(),\r\n NgIdleModule.forRoot(),\r\n \r\n AppRoutingModule,\r\n HttpClientModule,\r\n SharedModule,\r\n CommonModule,\r\n // AdminModule,\r\n /* AgmCoreModule.forRoot({\r\n apiKey: 'AlzaSyCPDBxeJLf94uBjB1m2P7PP0XNI86fTMgM'\r\n }),\r\n AgmDirectionModule, */\r\n FormsModule,\r\n ReactiveFormsModule\r\n /* ModalModule.forRoot() */\r\n ],\r\n exports: [ \r\n //BsDatepickerModule,\r\n // LoaderComponent\r\n // RouterModule,\r\n /* ModalModule.forRoot() */\r\n ],\r\n providers: [\r\n LoaderService,\r\n DatePipe,\r\n //TitleCasePipe, \r\n { provide: HTTP_INTERCEPTORS, useClass: LoaderInterceptor, multi: true },\r\n { provide: HTTP_INTERCEPTORS, useClass: TokenInterceptor, multi: true },\r\n { provide: HTTP_INTERCEPTORS, useClass: InstitutionInterceptor, multi: true },\r\n SharedService,\r\n ],\r\n bootstrap: [AppComponent],\r\n schemas: [\r\n CUSTOM_ELEMENTS_SCHEMA\r\n ]\r\n})\r\nexport class AppModule { }\r\n","import { Injectable } from '@angular/core';\r\nimport { HttpClient, HttpErrorResponse, HttpHeaders, HttpParams } from '@angular/common/http';\r\nimport { environment } from '../../environments/environment';\r\nimport { throwError, Observable, of } from 'rxjs';\r\nimport { catchError, mapTo, tap } from 'rxjs/operators';\r\nimport { Tokens } from './models/tokens';\r\nimport { Authentication } from './authentication.model';\r\nimport { ForgetPasswordModel } from './models/forget-model';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class AuthenticationService {\r\n \r\n httpOptions = {\r\n headers: new HttpHeaders({\r\n 'Content-Type': 'application/json'\r\n })\r\n };\r\n\r\n private readonly JWT_TOKEN = 'JWT_TOKEN';\r\n private readonly REFRESH_TOKEN = 'REFRESH_TOKEN';\r\n private loggedUser: string;\r\n public userType: string;\r\n public institutionCode: string;\r\n\r\n constructor(private httpClient: HttpClient) { }\r\n\r\n // login(username: any, password: any): Observable {\r\n // return this.httpClient.get(environment.apiUrl + '/membership/login/' + username + '/' + password)\r\n // // .map(res => res.json())\r\n // // .catch(this.handleError);\r\n // .pipe(\r\n // tap(tokens => this.doLoginUser(username, tokens)),\r\n // mapTo(true),\r\n // catchError(this.errorHandler)\r\n // );\r\n // }\r\n\r\n login(username: any, password: any): Observable {\r\n return this.httpClient.get(environment.apiUrl + '/membership/login/' + username + '/' + password)\r\n .pipe(\r\n \r\n catchError(this.errorHandler)\r\n \r\n );\r\n }\r\n studentlogin(username: any, password: any, instcode: any): Observable {\r\n const headers = new HttpHeaders()\r\n .set('InstitutionCode', instcode);\r\n let queryParams = new HttpParams();\r\n queryParams = queryParams.append(\"username\",username);\r\n queryParams = queryParams.append(\"password\",password);\r\n /*return this.httpClient.get(environment.apiUrl + '/membership/schoollogin/' + username + '/' + password)*/\r\n return this.httpClient.get(environment.apiUrl + '/membership/schoollogin',{ 'headers': headers,'params':queryParams })\r\n .pipe(\r\n catchError(this.errorHandler)\r\n );\r\n }\r\n teacherlogin(username: any, password: any, instcode: any): Observable { \r\n const headers = new HttpHeaders()\r\n .set('InstitutionCode', instcode);\r\n let queryParams = new HttpParams();\r\n queryParams = queryParams.append(\"username\",username);\r\n queryParams = queryParams.append(\"password\",password);\r\n //queryParams = queryParams.append(\"instcode\",instcode);\r\n return this.httpClient.get(environment.apiUrl + '/membership/teacherlogin/' + username + '/' + password ,{ 'headers': headers })\r\n // return this.httpClient.get(environment.apiUrl + '/membership/teacherlogin',{ 'headers': headers ,'params':queryParams})\r\n // .pipe(\r\n // catchError(this.errorHandler)\r\n // );\r\n }\r\n teacherloginToERP(username: any, password: any, instcode: any): Observable {\r\n \r\n const headers = new HttpHeaders()\r\n .set('InstitutionCode', instcode);\r\n let queryParams = new HttpParams();\r\n queryParams = queryParams.append(\"username\",username);\r\n queryParams = queryParams.append(\"password\",password);\r\n //queryParams = queryParams.append(\"instcode\",instcode);\r\n return this.httpClient.get(environment.apiUrl + '/membership/teacherlogintoerp/' + username + '/' + password ,{ 'headers': headers })\r\n return this.httpClient.get(environment.apiUrl + '/membership/teacherlogintoerp',{ 'headers': headers ,'params':queryParams})\r\n .pipe(\r\n catchError(this.errorHandler)\r\n );\r\n }\r\n\r\n ilogin(username: any, password: any, instcode: any, usertype: any): Observable {\r\n\r\n return this.httpClient.get(environment.apiUrl + '/membership/institutionlogin/' + username + '/' + password + '/' + instcode + '/' + usertype )\r\n .pipe(\r\n catchError(this.errorHandler)\r\n );\r\n }\r\n\r\n\r\n logout() {\r\n return this.httpClient.post(`${environment.apiUrl}/logout`, {\r\n refreshToken: this.getRefreshToken()\r\n }).pipe(\r\n tap(() => this.doLogoutUser()),\r\n mapTo(true),\r\n catchError(error => {\r\n alert(error.error);\r\n return of(false);\r\n }));\r\n }\r\n\r\n isLoggedIn() {\r\n return !!this.getJwtToken();\r\n }\r\n\r\n refreshToken() {\r\n return this.httpClient.post(`${environment.apiUrl}/refresh`, {\r\n refreshToken: this.getRefreshToken()\r\n }).pipe(tap((tokens: Tokens) => {\r\n this.storeJwtToken(tokens.jwt);\r\n }));\r\n }\r\n\r\n newToken(username, sessionExpiryTime) {\r\n \r\n return this.httpClient.get(`${environment.apiUrl}/membership/newtoken/${username}?sessionExpiryTime=${sessionExpiryTime}`)\r\n .pipe(\r\n tap((token: Tokens) => {\r\n this.storeJwtToken(token.jwt);\r\n })\r\n )\r\n }\r\n\r\n forgetPassword(form : ForgetPasswordModel){\r\n console.log('forgetPassword', form)\r\n let params = new HttpParams();\r\n params.append('username', form.username);\r\n params.append('usertype', form.usertype);\r\n params.append('instcode', form.schoolcode);\r\n\r\n return this.httpClient.get(`${environment.apiUrl}/membership/ValidateUser/${form.username}/${form.usertype}/${form.schoolcode}`)\r\n .pipe(\r\n catchError(this.errorHandler)\r\n );\r\n }\r\n\r\n isInstituteExist(instCode: string) {\r\n console.log('forgetPassword', instCode)\r\n return this.httpClient.get(`${environment.apiUrl}/membership/IsInstituteExists/${instCode}`)\r\n .pipe(\r\n catchError(this.errorHandler)\r\n );\r\n }\r\n \r\n\r\n getJwtToken() {\r\n return localStorage.getItem(this.JWT_TOKEN);\r\n }\r\n\r\n private doLoginUser(username: string, tokens: Tokens) {\r\n this.loggedUser = username;\r\n this.storeTokens(tokens);\r\n }\r\n\r\n private doLogoutUser() {\r\n this.loggedUser = null;\r\n this.removeTokens();\r\n }\r\n\r\n private getRefreshToken() {\r\n return localStorage.getItem(this.REFRESH_TOKEN);\r\n }\r\n\r\n private storeJwtToken(jwt: string) {\r\n window.localStorage.setItem(this.JWT_TOKEN, jwt);\r\n console.log(localStorage.getItem(this.JWT_TOKEN));\r\n }\r\n\r\n private storeTokens(tokens: Tokens) {\r\n localStorage.setItem(this.JWT_TOKEN, tokens.jwt);\r\n localStorage.setItem(this.REFRESH_TOKEN, tokens.refreshToken);\r\n }\r\n\r\n private removeTokens() {\r\n localStorage.removeItem(this.JWT_TOKEN);\r\n localStorage.removeItem(this.REFRESH_TOKEN);\r\n\r\n }\r\n\r\n errorHandler(error) {\r\n // console.log('error',error);\r\n let errorMessage = '';\r\n if (error.error instanceof ErrorEvent) {\r\n // Get client-side error\r\n errorMessage = error.error.message;\r\n } else {\r\n // Get server-side error\r\n errorMessage = `Error Code: ${error.status}\\nMessage: ${error.message}`;\r\n }\r\n return throwError(errorMessage);\r\n console.log(errorMessage);\r\n }\r\n\r\n\r\n}\r\n","import { Component, OnInit, OnDestroy } from '@angular/core';\r\nimport { Router, ActivatedRoute } from '@angular/router';\r\nimport { ToastrService } from 'ngx-toastr';\r\nimport { AuthenticationService } from '../authentication.service';\r\nimport { Authentication } from '../authentication.model';\r\nimport { SharedService } from '../../shared/shared.service';\r\nimport { LoginPageConfig } from '../../edumaq/configuration/loginpageconfig/loginpageconfig.model';\r\nimport { LoginService } from '../login/login.service'; \r\nimport { duration } from 'moment';\r\nimport { InstitutionprofileService } from './institutionprofile.service';\r\nimport { environment } from 'src/environments/environment';\r\nimport { Institution } from 'src/app/admin/admin/institution.model';\r\nimport { AdminService } from 'src/app/admin/admin/admin.service';\r\nimport { InstitutionProfile } from 'src/app/admin/academic/institutionprofile/institutionprofile.model';\r\nimport { InstitutionVerificationModel } from './institutionverificationmodel';\r\nimport Swal from 'sweetalert2/dist/sweetalert2.js';\r\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { Subscription } from 'rxjs';\r\n\r\n@Component({\r\n selector: 'app-findschool',\r\n templateUrl: './findschool.component.html',\r\n styleUrls: ['./findschool.component.css']\r\n})\r\n\r\nexport class FindschoolComponent implements OnInit, OnDestroy {\r\n form: FormGroup;\r\n userName = '';\r\n password = '';\r\n iserror = false;\r\n imageSrc = '../assets/images/Logbanner/8.png';\r\n instCode = '';\r\n logoUrl = environment.imageUrl;\r\n institution: Institution;\r\n loader: any = false;\r\n schoolcode: string = '';\r\n schoolNotFoundErrorMessage:string = '';\r\n verifySchoolSuscription$: any;\r\n constructor(private formBuilder: FormBuilder,\r\n private authService: AuthenticationService,\r\n private sharedService: SharedService,\r\n private loginService: LoginService,\r\n private toastr: ToastrService,\r\n private router: Router,\r\n private activatedRoute: ActivatedRoute,\r\n private profileService: InstitutionprofileService,\r\n private adminService: AdminService,\r\n ) { }\r\n\r\n btnContinue() {\r\n try {\r\n if (this.form.valid) {\r\n this.schoolcode = this.form.get('schoolCode').value;\r\n // console.log('this.schoolcode',this.schoolcode)\r\n this.verifySchoolSuscription$ = this.profileService.verifyInstitution(this.schoolcode).subscribe(data=>{\r\n // console.log('this.schoolcode data',data)\r\n if(data?.isVerified == false){\r\n let invalidErrorMessage = 'School Not Found!';\r\n this.toastr.error(invalidErrorMessage);\r\n }else{\r\n const instProfile = data as InstitutionVerificationModel;\r\n // console.log('instProfile.detail.institutionCode',instProfile.detail.institutionCode)\r\n if(instProfile && instProfile.isVerified === true && instProfile?.detail?.institutionCode === this.schoolcode){\r\n this.router.navigateByUrl(instProfile.detail.institutionCode)\r\n // this.router.navigateByUrl(this.schoolcode)\r\n // console.log('abc')\r\n\r\n }\r\n else{\r\n this.showErrorMessage();\r\n }\r\n }\r\n \r\n \r\n \r\n }, (error)=> {\r\n console.log(error);\r\n // this.showErrorMessage();\r\n }\r\n )\r\n } else {\r\n // Form is invalid\r\n // You can mark fields as touched to show validation messages\r\n this.markFormGroupTouched(this.form);\r\n } \r\n }\r\n catch(error){\r\n console.log(error);\r\n }\r\n } \r\n\r\n ngOnDestroy(): void {\r\n this.verifySchoolSuscription$.unsubscribe();\r\n }\r\n\r\n markFormGroupTouched(formGroup: FormGroup) {\r\n Object.values(formGroup.controls).forEach(control => {\r\n control.markAsTouched();\r\n });\r\n }\r\n \r\n showErrorMessage(){\r\n this.schoolNotFoundErrorMessage = 'School Not Found';\r\n this.toastr.error('School Not Found',\"ERROR!!\",{timeOut: 5000});\r\n // Swal.fire('School not found', 'ERROR!', 'error');\r\n // this.toastr.error(this.schoolNotFoundErrorMessage);\r\n // setTimeout(()=>{\r\n // this.schoolNotFoundErrorMessage = '';\r\n // },10000)\r\n }\r\n\r\n ngOnInit(): void {\r\n this.form = this.formBuilder.group({\r\n schoolCode: ['', Validators.required]\r\n });\r\n }\r\n\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { HttpClient, HttpErrorResponse, HttpHeaders } from '@angular/common/http';\r\nimport { environment } from 'src/environments/environment';\r\nimport { throwError, Observable } from 'rxjs';\r\nimport { catchError } from 'rxjs/operators';\r\nimport { InstitutionProfile } from './institutionprofile.model';\r\nimport { InstitutionVerificationModel } from './institutionverificationmodel';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n })\r\n export class InstitutionprofileService {\r\n\r\n httpOptions = {\r\n headers: new HttpHeaders({\r\n 'Content-Type': 'application/json'\r\n })\r\n };\r\n constructor(private httpClient: HttpClient) { }\r\n // Academic Year start\r\n getAll(): Observable {\r\n return this.httpClient.get(environment.apiUrl + '/EventCalendar/')\r\n .pipe(\r\n catchError(this.errorHandler)\r\n );\r\n }\r\n getProfile(): Observable {\r\n return this.httpClient.get(environment.apiUrl + '/Institution/GetInstitutionProfileForInstitution')\r\n .pipe(\r\n catchError(this.errorHandler)\r\n );\r\n }\r\n getInstaLogo(instaCode:any): Observable {\r\n return this.httpClient.get(environment.apiUrl + '/Institution/GetInstitutionLogo/'+instaCode)\r\n .pipe(\r\n catchError(this.errorHandler)\r\n );\r\n }\r\n\r\n verifyInstitution(instaCode:any): Observable {\r\n return this.httpClient.get(environment.apiUrl + '/Institution/VerifyInstitution/'+instaCode)\r\n .pipe(\r\n catchError(this.errorHandler)\r\n );\r\n }\r\n\r\n\r\n // create(eventcalendar): Observable {\r\n // return this.httpClient.post(environment.apiUrl + '/EventCalendar/', JSON.stringify(eventcalendar), this.httpOptions)\r\n // .pipe(\r\n // catchError(this.errorHandler)\r\n // );\r\n // }\r\n\r\n update(id, eventcalendar): Observable {\r\n // tslint:disable-next-line:max-line-length\r\n return this.httpClient.post(environment.apiUrl + '/Institution/UpdateInstitutionProfile', JSON.stringify(eventcalendar), this.httpOptions)\r\n .pipe(\r\n catchError(this.errorHandler)\r\n );\r\n }\r\n\r\n // delete(id) {\r\n // return this.httpClient.delete(environment.apiUrl + '/EventCalendar/' + id)\r\n // .pipe(\r\n // catchError(this.errorHandler)\r\n // );\r\n // }\r\n errorHandler(error) {\r\n let errorMessage = '';\r\n if (error.error instanceof ErrorEvent) {\r\n // Get client-side error\r\n errorMessage = error.error.message;\r\n } else {\r\n // Get server-side error\r\n errorMessage = `Error Code: ${error.status}\\nMessage: ${error.message}`;\r\n }\r\n console.log(errorMessage);\r\n return throwError(errorMessage);\r\n }\r\n}\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';\r\nimport { AuthenticationService } from '../authentication.service';\r\nimport { UserInfo } from '../models/user-model';\r\nimport { ToastrService } from 'ngx-toastr';\r\nimport { debounceTime, distinctUntilChanged } from 'rxjs/operators';\r\nimport Swal from 'sweetalert2/dist/sweetalert2.js';\r\nimport { Subscription } from 'rxjs';\r\n\r\n\r\n@Component({\r\n selector: 'app-forgetpassword',\r\n templateUrl: './forgetpassword.component.html',\r\n styleUrls: ['./forgetpassword.component.css']\r\n})\r\nexport class ForgetpasswordComponent implements OnInit{\r\n forgetPasswordForm: FormGroup;\r\n isLoading = false;\r\n isSchoolExist = false;\r\n userTypes = [\r\n {value: 'super-admin', viewValue: 'Super Admin'},\r\n {value: 'admin', viewValue: 'Admin'},\r\n {value: 'employee', viewValue: 'Employee'},\r\n {value: 'student', viewValue: 'Student'}\r\n ];\r\n schoolNotFoundErrorMessage: string;\r\n private subscription: Subscription;\r\n private forgotPasswordSubscription: Subscription;\r\n\r\n constructor(private fb: FormBuilder,\r\n private authService: AuthenticationService,\r\n private toastr: ToastrService) { }\r\n\r\n ngOnInit() {\r\n this.schoolNotFoundErrorMessage = '';\r\n this.forgetPasswordForm = this.fb.group({\r\n schoolcode: ['', Validators.required],\r\n username: ['', Validators.required],\r\n usertype: ['', Validators.required]\r\n });\r\n\r\n this.onSchoolcodeChanges();\r\n }\r\n\r\n resetForm() {\r\n this.isLoading = false;\r\n this.forgetPasswordForm = this.fb.group({\r\n schoolcode: ['', Validators.required],\r\n username: ['', Validators.required],\r\n usertype: ['', Validators.required]\r\n });\r\n }\r\n\r\n onSchoolcodeChanges(): void {\r\n this.subscription = this.forgetPasswordForm.get('schoolcode').valueChanges\r\n .pipe(\r\n debounceTime(500), // Wait 500ms after last keystroke\r\n distinctUntilChanged())\r\n .subscribe(instCode => {\r\n if (instCode.length === 5) {\r\n this.authService.isInstituteExist(instCode).subscribe(\r\n res => {\r\n console.log('isSchool', res)\r\n this.isSchoolExist = true;\r\n },\r\n err => {\r\n this.forgetPasswordForm.get('schoolcode').setErrors({ notFound: true });\r\n this.isSchoolExist = false;\r\n }\r\n );\r\n console.log(instCode);\r\n // call API here with the new form values\r\n }\r\n });\r\n }\r\n\r\n onSubmit() {\r\n //this.formSubmitAttempt = true;\r\n this.forgetPasswordForm.markAllAsTouched();\r\n if(this.forgetPasswordForm.invalid){\r\n return false;\r\n }\r\n console.log(this.forgetPasswordForm.value);\r\n this.isLoading = true;\r\n this.forgotPasswordSubscription = this.authService.forgetPassword(this.forgetPasswordForm.value).subscribe(\r\n (res)=> {\r\n const userProfile = res as UserInfo;\r\n if(userProfile.status == 502){\r\n this.toastr.success(userProfile.message);\r\n this.resetForm();\r\n }\r\n else{\r\n this.showErrorMessage(userProfile);\r\n // this.toastr.error(userProfile.message);\r\n }\r\n console.log('response forget password', res);\r\n },\r\n (error)=> {\r\n console.log('error forget password', error);\r\n this.isLoading = false;\r\n }\r\n );\r\n\r\n }\r\n\r\n showErrorMessage(userInfo){\r\n this.schoolNotFoundErrorMessage = userInfo.errorMessage || userInfo.message ; \r\n this.toastr.error(this.schoolNotFoundErrorMessage);\r\n this.isLoading = false;\r\n setTimeout(()=>{\r\n this.schoolNotFoundErrorMessage = '';\r\n },10000)\r\n }\r\n\r\n ngOnDestroy() {\r\n if (this.subscription) {\r\n this.subscription.unsubscribe();\r\n }\r\n if (this.forgotPasswordSubscription) {\r\n this.forgotPasswordSubscription.unsubscribe();\r\n }\r\n }\r\n \r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { Router } from '@angular/router';\r\nimport { AuthenticationService } from '../authentication.service';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class AuthGuard {\r\n\r\n constructor(private authService: AuthenticationService, private router: Router) { }\r\n\r\n canActivate() {\r\n if (this.authService.isLoggedIn()) {\r\n // debugger;\r\n this.router.navigate(['/login']);\r\n }\r\n return !this.authService.isLoggedIn();\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { ActivatedRoute, ActivatedRouteSnapshot, Router, RouterStateSnapshot, UrlTree } from '@angular/router';\r\nimport { AuthenticationService } from '../authentication.service';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class InstitutionGuard {\r\n\r\n constructor(\r\n private authService: AuthenticationService,\r\n private router: Router,\r\n private activatedRoute: ActivatedRoute) { }\r\n\r\n canActivate(route: ActivatedRouteSnapshot) {\r\n return this.canLoad(route);\r\n }\r\n\r\n canLoad(instco) {\r\n // console.log('instco',instco)\r\n //debugger;\r\n // this.authService.userType = instco.data.role;\r\n if (instco.params.instcode !== undefined) {\r\n this.authService.institutionCode = instco.params.instcode;\r\n }\r\n\r\n // console.log(\"route hicham : \"+instco.params.instcode);\r\n if (!this.authService.isLoggedIn()) {\r\n this.router.navigate([instco.params.instcode + '/login'], { relativeTo: this.activatedRoute });\r\n\r\n }\r\n\r\n if(this.router.url === '/' && instco.params.instcode==='edumaq'){\r\n //debugger;\r\n \r\n this.router.navigate(['/'+this.authService.institutionCode], { relativeTo: this.activatedRoute });\r\n }\r\n if(this.activatedRoute.snapshot.params.edumaq==='404'){\r\n // debugger;\r\n this.router.navigate(['/'+this.authService.institutionCode], { relativeTo: this.activatedRoute });\r\n }\r\n\r\n const paths = JSON.parse(localStorage.getItem('disAllowedPaths'));\r\n const startIndex = instco._routerState.url.indexOf(this.authService.institutionCode);\r\n const endIndex = instco._routerState.url.indexOf('/', startIndex);\r\n const url = instco._routerState.url.substring(endIndex);\r\n if(paths && paths.length > 0 && paths.includes(url) && !this.allowedPaths.includes(url)){\r\n // debugger;\r\n this.router.navigate(['/' + this.authService.institutionCode + '/admin/not-found'], { relativeTo: this.activatedRoute });\r\n }\r\n return this.authService.isLoggedIn();\r\n }\r\n\r\n canActivateChild(croute: ActivatedRouteSnapshot): boolean | UrlTree {\r\n // console.log(croute);\r\n return this.canLoad(croute);\r\n }\r\n\r\n allowedPaths: any[] = [\r\n \"/admin/frontoffice/enquiry\",\r\n \"/admin/academic/registration\",\r\n \"/admin/academic/student/studentsummary\",\r\n \"/admin/academic/feemanagement/feecollection\",\r\n \"/admin/academic/feemanagement/feecollectionnew\",\r\n \"/admin/academic/feemanagement/report/feetransactionreport\",\r\n \"/admin/academic/feemanagement/report/feecollection\",\r\n \"/admin/operation/hrmspayroll/payroll/employeeattendance/attendanceregister\",\r\n \"/admin/operation/inventory/saleinvoice\",\r\n ];\r\n\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { ActivatedRouteSnapshot, Router } from '@angular/router';\r\nimport { AuthenticationService } from '../authentication.service';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class RandomGuard {\r\n test: string;\r\n\r\n constructor(private authService: AuthenticationService, private router: Router) { }\r\n\r\n canActivate(route: ActivatedRouteSnapshot) {\r\n return this.canLoad(route);\r\n }\r\n\r\n canLoad(route) { \r\n console.log(route.url);\r\n\r\n this.test=route.url;\r\n // this.test=this.getResolvedUrl(route);\r\n console.log(\"router :\"+this.router);\r\n console.log(\"route :\"+this.authService.institutionCode);\r\n this.authService.userType = route.data.role;\r\n if (!this.authService.isLoggedIn()) {\r\n this.router.navigate(['edumaq/login']);\r\n }\r\n /*if (route.params.edumaq!='edumaq'){\r\n this.router.navigate([route.params.edumaq]);\r\n //this.router.navigateByUrl(this.test);\r\n }*/\r\n return this.authService.isLoggedIn();\r\n }\r\n\r\n getResolvedUrl(route: ActivatedRouteSnapshot): string {\r\n return route.pathFromRoot\r\n .map(v => v.url.map(segment => segment.toString()).join('/'))\r\n .join('/');\r\n}\r\n}\r\n","import { ChangeDetectionStrategy, Component, OnInit, inject } from '@angular/core';\r\nimport { Router, ActivatedRoute } from '@angular/router';\r\nimport { ToastrService } from 'ngx-toastr';\r\nimport { AuthenticationService } from '../authentication.service';\r\nimport { Authentication } from '../authentication.model';\r\nimport { SharedService } from '../../shared/shared.service';\r\nimport { LoginService } from './login.service';\r\nimport { LoginPageConfig } from '../../edumaq/configuration/loginpageconfig/loginpageconfig.model';\r\nimport { duration, invalid } from 'moment';\r\nimport { InstitutionprofileService } from '../findschool/institutionprofile.service';\r\nimport { environment } from 'src/environments/environment';\r\nimport { Institution } from 'src/app/admin/admin/institution.model';\r\nimport { AdminService } from 'src/app/admin/admin/admin.service';\r\nimport { InstitutionProfile } from '../findschool/institutionprofile.model';\r\nimport { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';\r\nimport Swal from 'sweetalert2/dist/sweetalert2.js';\r\nimport { Subscription } from 'rxjs';\r\nimport { LoaderService } from 'src/app/shared/loader.service';\r\nimport { profile } from 'console';\r\nimport { catchError, map, switchMap, tap } from 'rxjs/operators';\r\nimport { parseMarker } from '@fullcalendar/core/internal';\r\n\r\n@Component({\r\n selector: 'app-login',\r\n templateUrl: './login.component.html',\r\n styleUrls: ['./login.component.css'],\r\n // changeDetection:ChangeDetectionStrategy.OnPush\r\n})\r\nexport class LoginComponent implements OnInit {\r\n form: FormGroup;\r\n userName = new FormControl('', Validators.required);\r\n password = new FormControl('', Validators.required);\r\n imageSrc = '../assets/images/Logbanner/8.png';\r\n instCode = '';\r\n logoUrl = environment.imageUrl;\r\n instituteName: string = \"\";\r\n institution: Institution;\r\n loader: any = false;\r\n institutionProfile: InstitutionProfile;\r\n invalidErrorMessage: string = '';\r\n _iserror = false;\r\n private subscriptions: Subscription[];\r\n userIdChecked: boolean = false\r\n \r\n get iserror(): boolean {\r\n return this._iserror;\r\n }\r\n\r\n set iserror(value: boolean) {\r\n // console.log('setiserror', value);\r\n this._iserror = value;\r\n this.handleErrorMessage()\r\n }\r\n\r\n readonly loaderService=inject(LoaderService);\r\n constructor(\r\n private formBuilder: FormBuilder,\r\n private authService: AuthenticationService,\r\n private sharedService: SharedService,\r\n private loginService: LoginService,\r\n private toastr: ToastrService,\r\n private router: Router,\r\n private activatedRoute: ActivatedRoute,\r\n private profileService: InstitutionprofileService,\r\n private adminService: AdminService,\r\n ) { \r\n this.subscriptions = new Array();\r\n this.instCode = this.activatedRoute.snapshot.params.edumaq;\r\n // console.log(' this.instCode', this.instCode)\r\n this.loaderService.isLoading.next(false);\r\n }\r\n\r\n\r\n private handleErrorMessage() {\r\n if (this._iserror) {\r\n this.invalidErrorMessage = 'Username or Password is incorrect !';\r\n this.toastr.error(this.invalidErrorMessage);\r\n // this._iserror = false\r\n setTimeout(() => {\r\n this.invalidErrorMessage = '';\r\n }, 5000);\r\n }\r\n }\r\n\r\n // ListLoginPages() {\r\n // this.loginService.getAll().subscribe((data: LoginPageConfig[]) => {\r\n // if (data != null && data.length > 0) {\r\n // this.imageSrc = data[0].image;\r\n // console.log(data[0].image);\r\n // }\r\n // });\r\n // }\r\n\r\n login() {\r\n // debugger\r\n if (this.form.valid) {\r\n this.loader = true;\r\n // const userName = this.userName.value;\r\n // const password = this.password.value;\r\n const userName = this.form.get('userName').value;\r\n const password = this.form.get('password').value;\r\n localStorage.setItem('uname', userName);\r\n if (this.instCode === undefined) {\r\n this.toastr.warning('URL Not full', 'WARNING!!', {\r\n timeOut: 3000\r\n });\r\n console.log('URL not fiull if condition failded');\r\n return;\r\n }\r\n\r\n if (userName !== '' && password !== '') {\r\n\r\n if (this.instCode === 'edumaq') {\r\n // console.log('abcd')\r\n try {\r\n var sub = this.authService.login(userName, password).subscribe((response: any) => {\r\n const token = response.token;\r\n \r\n if (token != null) {\r\n \r\n localStorage.setItem('JWT_TOKEN', token);\r\n \r\n \r\n this.authService.institutionCode = this.instCode;\r\n this.router.navigate([this.instCode + '/edumaq']);\r\n return;\r\n } else {\r\n this.iserror = true;\r\n }\r\n }, (err) => {\r\n this.iserror = true;\r\n }); \r\n } catch (error) {\r\n console.log(error, 'error..')\r\n }\r\n this.subscriptions.push(sub);\r\n this.loader = false;\r\n }\r\n\r\n else {\r\n\r\n if (userName.indexOf('EMP') != -1) {\r\n if (userName.indexOf('ERP') != -1) {\r\n var teacherLoginERPSub = this.authService.teacherloginToERP(userName, password, this.instCode).subscribe((response: any) => {\r\n const token = response.token;\r\n // console.log(response.user);\r\n if (token != null) {\r\n // console.log(response.user.userType);\r\n if (response.user.userType === 'Employee') {\r\n localStorage.setItem('JWT_TOKEN', token);\r\n //store the user information\r\n localStorage.setItem('user_' + this.instCode, JSON.stringify(response.user));\r\n ///\r\n this.authService.institutionCode = this.instCode;\r\n localStorage.setItem('Institution_' + this.instCode, JSON.stringify(response.institution));\r\n ;\r\n this.router.navigate([this.instCode + '/admin']);\r\n /*if(userName.indexOf('ERP') != -1){\r\n this.router.navigate([this.instCode + '/admin']);\r\n }else{\r\n this.router.navigate([this.instCode + '/teacher']);\r\n }*/\r\n\r\n } else {\r\n this.toastr.warning('Authorization Failed', 'WARNING!!', {\r\n timeOut: 3000\r\n });\r\n }\r\n } else {\r\n this.iserror = true;\r\n }\r\n }, (err) => {\r\n this.iserror = true;\r\n });\r\n this.subscriptions.push(teacherLoginERPSub);\r\n this.loader = false;\r\n } else {\r\n var teacherSub = this.authService.teacherlogin(userName, password, this.instCode).subscribe((response: any) => {\r\n const token = response.token;\r\n // console.log(response.user);\r\n if (token != null) {\r\n // console.log(response.user.userType);\r\n if (response.user.userType === 'Employee') {\r\n localStorage.setItem('JWT_TOKEN', token);\r\n //store the user information\r\n localStorage.setItem('user_' + this.instCode, JSON.stringify(response.user));\r\n ///\r\n this.authService.institutionCode = this.instCode;\r\n localStorage.setItem('Institution_' + this.instCode, JSON.stringify(response.institution));\r\n ;\r\n this.router.navigate([this.instCode + '/teacher']);\r\n /*if(userName.indexOf('ERP') != -1){\r\n this.router.navigate([this.instCode + '/admin']);\r\n }else{\r\n this.router.navigate([this.instCode + '/teacher']);\r\n }*/\r\n\r\n } else {\r\n this.toastr.warning('Authorization Failed', 'WARNING!!', {\r\n timeOut: 3000\r\n });\r\n }\r\n } else {\r\n this.iserror = true;\r\n }\r\n }, (err) => {\r\n this.iserror = true;\r\n });\r\n this.subscriptions.push(teacherSub);\r\n }\r\n } else {\r\n if (userName.indexOf('admin') != -1) {\r\n // console.log('login')\r\n var authSub = this.authService.ilogin(userName, password, this.instCode, 'admin').subscribe(\r\n (response: any) => {\r\n // console.log('test login',response);\r\n this.iserror = false;\r\n const token = response.token;\r\n // console.log(token);\r\n // this.invalidLogin = false;\r\n if (response.user != null) {\r\n //this.authService.userType = response.user.userType;\r\n }\r\n // console.log(response.user.userType);\r\n if (token != null) {\r\n this.sharedService.institutionCode = this.instCode;\r\n // console.log(response.user);\r\n localStorage.setItem('Institution_' + this.instCode, JSON.stringify(response.user));\r\n localStorage.setItem('JWT_TOKEN', token);\r\n localStorage.setItem('user_' + this.instCode, JSON.stringify(response.user));\r\n //dont remove this- Check with Santhosh - It will impact report\r\n localStorage.setItem('Institution', JSON.stringify(response.user));\r\n // sessionStorage.setItem('JWT_TOKEN', token);\r\n this.authService.institutionCode = this.instCode;\r\n\r\n\r\n switch (response.user.userType) {\r\n case 'Super Admin':\r\n this.router.navigate([this.instCode + '/superadmin']);\r\n break;\r\n\r\n case 'Admin':\r\n this.router.navigate([this.instCode + '/admin']);\r\n break;\r\n\r\n }\r\n\r\n } else {\r\n this.iserror = true;\r\n }\r\n },\r\n (err) => {\r\n this.iserror = true;\r\n });\r\n // console.log('log',authSub)\r\n \r\n this.subscriptions.push(authSub);\r\n this.userIdChecked = true\r\n setTimeout(()=>{\r\n if(this.iserror !== false){\r\n this.iserror = true;\r\n this.userIdChecked = false\r\n\r\n }\r\n },2000)\r\n } \r\n else if (userName.length === 5) \r\n {\r\n // console.log('test login');\r\n \r\n var authSubs = this.authService.ilogin(userName, password, this.instCode, 'super admin').subscribe(\r\n (response: any) => {\r\n // console.log('test login',response);\r\n const token = response.token;\r\n // console.log(token);\r\n // this.invalidLogin = false;\r\n if (response.user != null) {\r\n //this.authService.userType = response.user.userType;\r\n }\r\n // console.log(response.user.userType);\r\n if (token != null) {\r\n this.sharedService.institutionCode = this.instCode;\r\n // console.log(response.user);\r\n localStorage.setItem('Institution_' + this.instCode, JSON.stringify(response.user));\r\n localStorage.setItem('JWT_TOKEN', token);\r\n localStorage.setItem('user_' + this.instCode, JSON.stringify(response.user));\r\n //dont remove this- Check with Santhosh - It will impact report\r\n localStorage.setItem('Institution', JSON.stringify(response.user));\r\n // sessionStorage.setItem('JWT_TOKEN', token);\r\n this.authService.institutionCode = this.instCode;\r\n\r\n\r\n switch (response.user.userType) {\r\n case 'Super Admin':\r\n this.router.navigate([this.instCode + '/superadmin']);\r\n break;\r\n\r\n case 'Admin':\r\n this.router.navigate([this.instCode + '/admin']);\r\n break;\r\n\r\n }\r\n\r\n } else {\r\n this.iserror = true;\r\n }\r\n },\r\n (err) => {\r\n this.iserror = true;\r\n });\r\n this.subscriptions.push(authSubs);\r\n }\r\n else {\r\n var studentsub = this.authService.studentlogin(userName, password, this.instCode).subscribe((response: any) => {\r\n const token = response.token;\r\n // console.log(response.user);\r\n if (token != null) {\r\n // console.log(response.user.userType);\r\n if (response.user.userType === 'Student') {\r\n localStorage.setItem('JWT_TOKEN', token);\r\n this.authService.institutionCode = this.instCode;\r\n //store the user information\r\n localStorage.setItem('user_' + this.instCode, response.user);\r\n ///\r\n this.router.navigate([this.instCode + '/parentchild']);\r\n } else {\r\n this.toastr.warning('Authorization Failed', 'WARNING!!', {\r\n timeOut: 3000\r\n });\r\n }\r\n } else {\r\n this.iserror = true;\r\n }\r\n }, (err) => {\r\n this.iserror = true;\r\n });\r\n this.subscriptions.push(studentsub);\r\n }\r\n }\r\n }\r\n\r\n // }\r\n } else {\r\n this.iserror = true;\r\n }\r\n }\r\n else {\r\n this.markFormGroupTouched(this.form);\r\n }\r\n }\r\n\r\n markFormGroupTouched(formGroup: FormGroup) {\r\n Object.values(formGroup.controls).forEach(control => {\r\n control.markAsTouched();\r\n\r\n if (control instanceof FormGroup) {\r\n this.markFormGroupTouched(control);\r\n }\r\n });\r\n }\r\n\r\n logout() {\r\n console.log('running');\r\n localStorage.removeItem('JWT_TOKEN');\r\n localStorage.removeItem('Institution_' + this.instCode);\r\n localStorage.removeItem('user_' + this.instCode);\r\n localStorage.clear();\r\n this.router.navigate(['/'], { relativeTo: this.activatedRoute });\r\n }\r\n\r\n ngOnInit(): void {\r\n this.loaderService.isLoading.next(true);\r\n this.form = this.formBuilder.group({\r\n userName: ['', Validators.required],\r\n password: ['', Validators.required]\r\n });\r\n localStorage.removeItem('uname');\r\n localStorage.removeItem('JWT_TOKEN');\r\n localStorage.removeItem('disAllowedPaths');\r\n \r\n // this.ListLoginPages();\r\n //this.instCode = this.activatedRoute.snapshot.params.edumaq;\r\n\r\n /* var profileSub = this.profileService.getInstaLogo(this.instCode).subscribe((data) => {\r\n console.log('profileService', data);\r\n if(data.institutionname === null && this.instCode != 'edumaq') {\r\n this.router.navigate(['/findschool']);\r\n } else {\r\n if(this.instCode == 'edumaq') {\r\n this.logoUrl = '../../../assets/images/Logo-00.png';\r\n } else {\r\n this.logoUrl += data.logoUrl || '../../../assets/images/Logo-00.png';\r\n }\r\n this.institutionProfile = data as InstitutionProfile;\r\n console.log('profileService', this.institutionProfile);\r\n this.instituteName = this.institutionProfile.institutionname;\r\n }\r\n });\r\n this.subscriptions.push(profileSub); */\r\n // console.log(this.instCode);\r\n // console.log(this.logoUrl);\r\n\r\n //this.logoUrl = '../../../assets/images/Logo-00.png';\r\n }\r\n\r\n/* readonly dataSource$=this.profileService.getInstaLogo(this.activatedRoute.snapshot.params.edumaq).pipe(\r\n tap(e=>this.loaderService.isLoading.next(false)),\r\n map(data=>{\r\n if(data.institutionname === null && this.instCode != 'edumaq') {\r\n this.router.navigate(['/findschool']);\r\n } else {\r\n if(this.instCode == 'edumaq') {\r\n this.logoUrl = '../../../assets/images/Logo-00.png';\r\n } else {\r\n //this.logoUrl += data.logoUrl || '../../../assets/images/Logo-00.png';\r\n //this.logoUrl += data.logoUrl;\r\n data.logoUrl=this.logoUrl+data.logoUrl || '../../../assets/images/Logo-00.png';\r\n }\r\n this.institutionProfile = data as InstitutionProfile;\r\n console.log('profileService', this.institutionProfile);\r\n this.instituteName = this.institutionProfile.institutionname;\r\n return data;\r\n }\r\n }),\r\n tap(e=>this.loaderService.isLoading.next(false)),\r\n tap(e=>console.log('test pipe'+e))\r\n); */\r\n\r\nreadonly dataSource$=this.activatedRoute.paramMap.pipe(\r\n switchMap((params)=>\r\n this.profileService.getInstaLogo(params.get('edumaq')).pipe(\r\n tap(e=>this.loaderService.isLoading.next(false)),\r\n map(data=>{\r\n if(data.institutionname === null && this.instCode != 'edumaq') {\r\n this.router.navigate(['/findschool']);\r\n } else {\r\n if(this.instCode == 'edumaq') {\r\n this.logoUrl = '../../../assets/images/Logo-00.png';\r\n } else {\r\n //this.logoUrl += data.logoUrl || '../../../assets/images/Logo-00.png';\r\n //this.logoUrl += data.logoUrl;\r\n data.logoUrl=this.logoUrl+data.logoUrl || '../../../assets/images/Logo-00.png';\r\n }\r\n this.institutionProfile = data as InstitutionProfile;\r\n // console.log('profileService', this.institutionProfile);\r\n this.instituteName = this.institutionProfile.institutionname;\r\n return data;\r\n }\r\n }),\r\n tap(e=>this.loaderService.isLoading.next(false)),\r\n tap(e=>console.log('test pipe'+e))\r\n )\r\n )\r\n);\r\n\r\n ngOnDestroy() {\r\n console.log('unsubscribe');\r\n this.subscriptions.map(subscription => {\r\n subscription.unsubscribe()\r\n });\r\n }\r\n\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { HttpClient, HttpErrorResponse, HttpHeaders } from '@angular/common/http';\r\nimport { environment } from '../../../environments/environment';\r\nimport { throwError, Observable } from 'rxjs';\r\nimport { catchError } from 'rxjs/operators';\r\nimport { LoginPageConfig } from '../../edumaq/configuration/loginpageconfig/loginpageconfig.model';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n })\r\n export class LoginService {\r\n\r\n httpOptions = {\r\n headers: new HttpHeaders({\r\n 'Content-Type': 'application/json',\r\n enctype: 'multipart/form-data'\r\n })\r\n };\r\n\r\n httpNOptions = {\r\n headers: new HttpHeaders({\r\n 'Content-Type': 'application/json',\r\n reqfrom: 'sendmessage'\r\n })\r\n };\r\n constructor(private httpClient: HttpClient) { }\r\n // Academic Year start\r\n getAll(): Observable {\r\n return this.httpClient.get(environment.apiUrl + '/LoginPageConfiguration/', this.httpNOptions)\r\n .pipe(\r\n catchError(this.errorHandler)\r\n );\r\n }\r\n\r\n errorHandler(error) {\r\n let errorMessage = '';\r\n if (error.error instanceof ErrorEvent) {\r\n // Get client-side error\r\n errorMessage = error.error.message;\r\n } else {\r\n // Get server-side error\r\n errorMessage = `Error Code: ${error.status}\\nMessage: ${error.message}`;\r\n }\r\n console.log(errorMessage);\r\n return throwError(errorMessage);\r\n }\r\n\r\n }\r\n","import { Injectable } from '@angular/core';\r\nimport { HttpRequest, HttpHandler, HttpEvent, HttpInterceptor, HttpErrorResponse } from '@angular/common/http';\r\nimport { AuthenticationService } from './authentication.service';\r\nimport { Observable, throwError, BehaviorSubject } from 'rxjs';\r\nimport { catchError, filter, take, switchMap } from 'rxjs/operators';\r\nimport { Router } from '@angular/router';\r\n\r\n@Injectable()\r\nexport class TokenInterceptor implements HttpInterceptor {\r\n\r\n private isRefreshing = false;\r\n private refreshTokenSubject: BehaviorSubject = new BehaviorSubject(null);\r\n\r\n constructor(public authService: AuthenticationService, public router: Router) { }\r\n\r\n intercept(request: HttpRequest, next: HttpHandler): Observable> {\r\n\r\n if (this.authService.getJwtToken()) {\r\n request = this.addToken(request, this.authService.getJwtToken());\r\n }\r\n\r\n return next.handle(request).pipe(catchError(error => {\r\n console.log(error);\r\n console.log(error.error);\r\n if (error instanceof HttpErrorResponse && error.status === 401) {\r\n debugger;\r\n // return this.handle401Error(request, next);\r\n this.router.navigate(['Login']);\r\n } else {\r\n return throwError(error);\r\n }\r\n }));\r\n }\r\n\r\n private addToken(request: HttpRequest, token: string) {\r\n return request.clone({\r\n setHeaders: {\r\n Authorization: 'Bearer ' + token\r\n }\r\n });\r\n }\r\n\r\n private handle401Error(request: HttpRequest, next: HttpHandler) {\r\n if (!this.isRefreshing) {\r\n this.isRefreshing = true;\r\n this.refreshTokenSubject.next(null);\r\n\r\n return this.authService.refreshToken().pipe(\r\n switchMap((token: any) => {\r\n this.isRefreshing = false;\r\n this.refreshTokenSubject.next(token.jwt);\r\n return next.handle(this.addToken(request, token.jwt));\r\n }));\r\n\r\n } else {\r\n return this.refreshTokenSubject.pipe(\r\n filter(token => token != null),\r\n take(1),\r\n switchMap(jwt => {\r\n return next.handle(this.addToken(request, jwt));\r\n }));\r\n }\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { HttpRequest, HttpHandler, HttpEvent, HttpInterceptor, HttpErrorResponse } from '@angular/common/http';\r\nimport { AuthenticationService } from './authentication/authentication.service';\r\nimport { Observable, throwError, BehaviorSubject } from 'rxjs';\r\nimport { catchError, filter, take, switchMap } from 'rxjs/operators';\r\n\r\n@Injectable()\r\nexport class InstitutionInterceptor implements HttpInterceptor {\r\n\r\n private isRefreshing = false;\r\n private refreshTokenSubject: BehaviorSubject = new BehaviorSubject(null);\r\n\r\n constructor(public authService: AuthenticationService) { }\r\n\r\n intercept(request: HttpRequest, next: HttpHandler): Observable> {\r\n\r\n if (this.authService.getJwtToken()) {\r\n request = this.addToken(request, this.authService.getJwtToken());\r\n }\r\n\r\n return next.handle(request).pipe(catchError(error => {\r\n if (error instanceof HttpErrorResponse && error.status === 401) {\r\n return this.handle401Error(request, next);\r\n } else {\r\n return throwError(error);\r\n }\r\n }));\r\n }\r\n\r\n\r\n private addToken(request: HttpRequest, token: string) { \r\n if(this.authService.userType !== 'Edumaq' && !this.isInstitutionApi(request)) {\r\n return request.clone({\r\n setHeaders: {\r\n Authorization: 'Bearer ' + token,\r\n InstitutionCode: this.authService.institutionCode\r\n }\r\n });\r\n } else {\r\n return request.clone({\r\n setHeaders: {\r\n Authorization: 'Bearer ' + token,\r\n }\r\n });\r\n }\r\n }\r\n\r\n private handle401Error(request: HttpRequest, next: HttpHandler) {\r\n if (!this.isRefreshing) {\r\n this.isRefreshing = true;\r\n this.refreshTokenSubject.next(null);\r\n\r\n return this.authService.refreshToken().pipe(\r\n switchMap((token: any) => {\r\n this.isRefreshing = false;\r\n this.refreshTokenSubject.next(token.jwt);\r\n return next.handle(this.addToken(request, token.jwt));\r\n }));\r\n\r\n } else {\r\n return this.refreshTokenSubject.pipe(\r\n filter(token => token != null),\r\n take(1),\r\n switchMap(jwt => {\r\n return next.handle(this.addToken(request, jwt));\r\n }));\r\n }\r\n }\r\n\r\n isInstitutionApi(request: HttpRequest){\r\n return request.url.includes('GetInstitutionDetailByCode') ||\r\n request.url.includes('MenuMainModule') ||\r\n request.url.includes('GetAllSubscription')\r\n }\r\n}\r\n","// loader-interceptor.service.ts\r\nimport { Injectable } from '@angular/core';\r\nimport { AuthenticationService } from '../authentication/authentication.service';\r\nimport {\r\n HttpResponse,\r\n HttpRequest,\r\n HttpHandler,\r\n HttpEvent,\r\n HttpInterceptor,\r\n HttpErrorResponse\r\n} from '@angular/common/http';\r\nimport { Observable, throwError, BehaviorSubject } from 'rxjs';\r\nimport { LoaderService } from './loader.service';\r\nimport { ToastrService } from 'ngx-toastr';\r\nimport { catchError, filter, take, switchMap } from 'rxjs/operators';\r\n\r\n@Injectable()\r\nexport class LoaderInterceptor implements HttpInterceptor {\r\n private requests: HttpRequest[] = [];\r\n private isRefreshing = false;\r\n private refreshTokenSubject: BehaviorSubject = new BehaviorSubject(null);\r\n // timer: NodeJS.Timeout;\r\n constructor(\r\n private loaderService: LoaderService,\r\n private toastr: ToastrService,\r\n public authService: AuthenticationService) { }\r\n\r\n removeRequest(req: HttpRequest) {\r\n const i = this.requests.indexOf(req);\r\n if (i >= 0) {\r\n this.requests.splice(i, 1);\r\n }\r\n this.loaderService.isLoading.next(this.requests.length > 0);\r\n //this.loaderService.isLoading.next(true);\r\n }\r\n private addToken(request: HttpRequest, token: string) {\r\n return request.clone({\r\n setHeaders: {\r\n Authorization: 'Bearer ' + token,\r\n 'Content-Type':'application/json'\r\n //'Content-Type':'*/*'\r\n }\r\n });\r\n }\r\n private handle401Error(request: HttpRequest, next: HttpHandler) {\r\n // console.log('sagar')\r\n if (!this.isRefreshing) {\r\n this.isRefreshing = true;\r\n this.refreshTokenSubject.next(null);\r\n\r\n return this.authService.refreshToken().pipe(\r\n switchMap((token: any) => {\r\n this.isRefreshing = false;\r\n this.refreshTokenSubject.next(token.jwt);\r\n return next.handle(this.addToken(request, token.jwt));\r\n }));\r\n\r\n } else {\r\n return this.refreshTokenSubject.pipe(\r\n filter(token => token != null),\r\n take(1),\r\n switchMap(jwt => {\r\n return next.handle(this.addToken(request, jwt));\r\n }));\r\n }\r\n }\r\n intercept(req: HttpRequest, next: HttpHandler): Observable> {\r\n if (this.authService.getJwtToken()) {\r\n req = this.addToken(req, this.authService.getJwtToken());\r\n }\r\n\r\n if (req.headers.get('skip')) {\r\n return next.handle(req);\r\n }\r\n\r\n this.requests.push(req);\r\n\r\n this.loaderService.isLoading.next(true);\r\n\r\n if (req.headers.get('broadcast')) {\r\n setTimeout(() => {\r\n this.removeRequest(req);\r\n }, 3000);\r\n }\r\n\r\n return new Observable((observer: any) => {\r\n // console.log('observer',observer)\r\n // let isStopped = false\r\n \r\n const subscription = next.handle(req)\r\n .subscribe(\r\n event => {\r\n // console.log('abcdef',event)\r\n if (event instanceof HttpResponse) {\r\n this.loaderService.isLoading.next(false);\r\n this.removeRequest(req);\r\n observer.next(event);\r\n }\r\n },\r\n err => {\r\n // alert('inter error' + err);\r\n // console.log(err);\r\n if (err != null) {\r\n // console.log('err',err)\r\n //debugger;\r\n if (err.status === 409) {\r\n this.toastr.warning(err.error, 'WARNING!!', {\r\n timeOut: 5000\r\n });\r\n } \r\n else if (err.status === 400) {\r\n this.toastr.error(err.error.Message, 'WARNING!!', {\r\n timeOut: 5000\r\n });\r\n } \r\n else {\r\n if(err.statusText) {\r\n this.toastr.error(err.statusText, 'ERROR!!', {\r\n timeOut: 5000\r\n });\r\n }\r\n }\r\n this.removeRequest(req);\r\n observer.error(err);\r\n }\r\n },\r\n () => {\r\n this.removeRequest(req);\r\n observer.complete();\r\n });\r\n // remove request from queue when cancelled\r\n return () => {\r\n this.removeRequest(req);\r\n subscription.unsubscribe();\r\n };\r\n });\r\n }\r\n}\r\n\r\n","import { Injectable } from '@angular/core';\r\nimport { BehaviorSubject } from 'rxjs';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class LoaderService {\r\n public isLoading = new BehaviorSubject(false);\r\n constructor() { }\r\n}\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { LoaderService } from '../loader.service';\r\nimport { map } from 'rxjs/operators';\r\n\r\n@Component({\r\n selector: 'app-loader',\r\n templateUrl: './loader.component.html',\r\n styleUrls: ['./loader.component.css']\r\n})\r\nexport class LoaderComponent implements OnInit {\r\n\r\n loading: boolean;\r\n\r\n constructor(private loaderService: LoaderService) {\r\n\r\n\r\n\r\n }\r\n readonly loader$=this.loaderService.isLoading.pipe(\r\n map(v=>{\r\n return v;\r\n })\r\n \r\n );\r\n\r\n\r\n\r\n ngOnInit(): void {\r\n }\r\n\r\n\r\n}\r\n","import { Component, OnInit } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'app-loading',\r\n templateUrl: './loading.component.html',\r\n styleUrls: ['./loading.component.css']\r\n})\r\nexport class LoadingComponent implements OnInit {\r\n\r\n constructor() { }\r\n\r\n ngOnInit(): void {\r\n }\r\n\r\n}\r\n","export interface IAdmissionType {\r\n id: number,\r\n name: string\r\n}\r\n\r\nexport enum AdmissionType {\r\n Student = 1,\r\n Employee = 2\r\n}","export interface IFineConditionType {\r\n id: number,\r\n name: string\r\n}\r\n\r\nexport enum FineConditionType {\r\n OneTime = 1,\r\n Repeat = 2\r\n}","export interface IIssueStatus {\r\n id: number,\r\n name: string\r\n}\r\n\r\nexport enum IssueStatus {\r\n Active = 0,\r\n Dimage = 1,\r\n Allotted = 2,\r\n}","export interface IMaintenanceType {\r\n id: number,\r\n name: string\r\n}\r\n\r\nexport enum MaintenanceType {\r\n Damage = 1,\r\n Document = 2\r\n}","export interface IPenaltyType {\r\n id: number,\r\n name: string\r\n}\r\n\r\nexport enum PenaltyType {\r\n PerDay = 1,\r\n PerMonth = 2\r\n}","export interface IPreFineConditionType {\r\n id: number,\r\n name: string\r\n}\r\n\r\nexport enum PreFineConditionType {\r\n 'OneTime' = 1,\r\n 'Repeat (with max fine)' = 2,\r\n 'Repeat (without max fine)' = 3,\r\n 'Repeat With Conditions(with max fine)' = 4,\r\n 'Repeat With Conditions(without max fine)' = 5\r\n}","export interface IPurchaseStatus {\r\n id: number,\r\n name: string\r\n}\r\n\r\nexport enum PurchaseStatus {\r\n Active = 1,\r\n Returned = 2\r\n}","export interface IReturnBookStatus {\r\n id: number,\r\n name: string\r\n}\r\n\r\nexport enum ReturnBookStatus {\r\n Hold = 1,\r\n Submitted = 2\r\n}","export interface IStatus {\r\n id: number,\r\n name: string\r\n}\r\n\r\nexport enum Status {\r\n Active = 1,\r\n Deactive = 0\r\n}","export interface IStopType {\r\n id: number,\r\n name: string\r\n}\r\n\r\nexport enum StopType {\r\n PickUp = 1,\r\n Drop = 2,\r\n 'PickUp & Drop' = 3\r\n}","import { Pipe, PipeTransform } from '@angular/core';\r\nimport { Status } from '../model/status';\r\n\r\n@Pipe({\r\n name: 'filter'\r\n})\r\nexport class FilterPipe implements PipeTransform {\r\n\r\n transform(value: any, input: any, keys: any[]): any {\r\n if (input) {\r\n return value.filter(val => {\r\n val.statusName = Status[val.status];\r\n return keys.filter(key => {\r\n if (val[key]) {\r\n return val[key].toString().toLowerCase().indexOf(input.toLowerCase()) >= 0\r\n }\r\n }).length > 0\r\n });\r\n }\r\n else {\r\n return value;\r\n }\r\n }\r\n\r\n}\r\n","\r\nimport { NgModule } from '@angular/core';\r\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\r\nimport { SharedService } from './shared.service';\r\nimport { FilterPipe } from './pipes/filter.pipe';\r\nimport { LoaderComponent } from './loader/loader.component';\r\nimport { LoadingComponent } from './loading/loading.component';\r\n//import {Select2Module} from 'ng2-select2';\r\n// import {Select2Module} from 'ng2-select2';\r\n@NgModule({\r\n providers: [SharedService],\r\n imports: [\r\n FormsModule,\r\n ReactiveFormsModule\r\n ],\r\n exports: [\r\n FormsModule,\r\n ReactiveFormsModule,\r\n FilterPipe,\r\n LoaderComponent,\r\n //Select2Module\r\n // Select2Module\r\n LoadingComponent\r\n ],\r\n declarations: [FilterPipe, LoaderComponent\r\n , LoadingComponent\r\n ]\r\n})\r\nexport class SharedModule { }\r\n","import { Injectable } from '@angular/core';\r\nimport { AdmissionType, IAdmissionType } from './model/admissionType';\r\nimport { FineConditionType, IFineConditionType } from './model/fineConditionType';\r\nimport { IIssueStatus, IssueStatus } from './model/issueStatus';\r\nimport { IMaintenanceType, MaintenanceType } from './model/maintenanceType';\r\nimport { IPenaltyType, PenaltyType } from './model/penaltyType';\r\nimport { IPreFineConditionType, PreFineConditionType } from './model/preFineConditionType';\r\nimport { IPurchaseStatus, PurchaseStatus } from './model/purchaseStatus';\r\nimport { IReturnBookStatus, ReturnBookStatus } from './model/returnBookStatus';\r\nimport { IStatus, Status } from './model/status';\r\nimport { IStopType, StopType } from './model/stopType';\r\n\r\n@Injectable()\r\nexport class SharedService {\r\n public currentAcademicYearID = 10;\r\n public currentInstitution: any;\r\n public institutionCode = '';\r\n constructor() { }\r\n\r\n // getBasePath() {\r\n\r\n // return data['default']['BasePath'];\r\n // }\r\n\r\n\r\n getStatusList(): IStatus[] {\r\n const keys = Object.keys(Status)\r\n .map(key => Status[key])\r\n .filter(value => typeof value !== 'string');\r\n let result = [];\r\n for (let i = 0; i < keys.length; i++) {\r\n let key = keys[i];\r\n let status = {} as IStatus;\r\n status.id = key;\r\n status.name = Status[key];\r\n result.push(status);\r\n };\r\n return result;\r\n }\r\n\r\n getIssueStatusList() : IIssueStatus[] {\r\n const keys = Object.keys(IssueStatus)\r\n .map(key => IssueStatus[key])\r\n .filter(value => typeof value !== 'string');\r\n let result = [];\r\n for (let i = 0; i < keys.length; i++) {\r\n let key = keys[i];\r\n let status = {} as IIssueStatus;\r\n status.id = key;\r\n status.name = IssueStatus[key];\r\n result.push(status);\r\n };\r\n return result;\r\n }\r\n\r\n getAdmissionType() : IAdmissionType[] {\r\n const keys = Object.keys(AdmissionType)\r\n .map(key => AdmissionType[key])\r\n .filter(value => typeof value !== 'string');\r\n let result = [];\r\n for (let i = 0; i < keys.length; i++) {\r\n let key = keys[i];\r\n let status = {} as IAdmissionType;\r\n status.id = key;\r\n status.name = AdmissionType[key];\r\n result.push(status);\r\n };\r\n return result;\r\n }\r\n\r\n \r\n getPenaltyType() : IPenaltyType[] {\r\n const keys = Object.keys(PenaltyType)\r\n .map(key => PenaltyType[key])\r\n .filter(value => typeof value !== 'string');\r\n let result = [];\r\n for (let i = 0; i < keys.length; i++) {\r\n let key = keys[i];\r\n let status = {} as IPenaltyType;\r\n status.id = key;\r\n status.name = PenaltyType[key];\r\n result.push(status);\r\n };\r\n return result;\r\n }\r\n\r\n getReturnBookStatusList() : IReturnBookStatus[] {\r\n const keys = Object.keys(ReturnBookStatus)\r\n .map(key => ReturnBookStatus[key])\r\n .filter(value => typeof value !== 'string');\r\n let result = [];\r\n for (let i = 0; i < keys.length; i++) {\r\n let key = keys[i];\r\n let status = {} as IReturnBookStatus;\r\n status.id = key;\r\n status.name = ReturnBookStatus[key];\r\n result.push(status);\r\n };\r\n return result;\r\n }\r\n\r\n getPurchaseStatusList() : IPurchaseStatus[] {\r\n const keys = Object.keys(PurchaseStatus)\r\n .map(key => PurchaseStatus[key])\r\n .filter(value => typeof value !== 'string');\r\n let result = [];\r\n for (let i = 0; i < keys.length; i++) {\r\n let key = keys[i];\r\n let status = {} as IPurchaseStatus;\r\n status.id = key;\r\n status.name = PurchaseStatus[key];\r\n result.push(status);\r\n };\r\n return result;\r\n }\r\n\r\n getMaintenanceTypeList() : IMaintenanceType[] {\r\n const keys = Object.keys(MaintenanceType)\r\n .map(key => MaintenanceType[key])\r\n .filter(value => typeof value !== 'string');\r\n let result = [];\r\n for (let i = 0; i < keys.length; i++) {\r\n let key = keys[i];\r\n let status = {} as IMaintenanceType;\r\n status.id = key;\r\n status.name = MaintenanceType[key];\r\n result.push(status);\r\n };\r\n return result;\r\n }\r\n\r\n getFineConditionTypeList() : IFineConditionType[] {\r\n const keys = Object.keys(FineConditionType)\r\n .map(key => FineConditionType[key])\r\n .filter(value => typeof value !== 'string');\r\n let result = [];\r\n for (let i = 0; i < keys.length; i++) {\r\n let key = keys[i];\r\n let status = {} as IFineConditionType;\r\n status.id = key;\r\n status.name = FineConditionType[key];\r\n result.push(status);\r\n };\r\n return result;\r\n }\r\n\r\n getPreFineConditionTypeList() : IPreFineConditionType[] {\r\n const keys = Object.keys(PreFineConditionType)\r\n .map(key => PreFineConditionType[key])\r\n .filter(value => typeof value !== 'string');\r\n let result = [];\r\n for (let i = 0; i < keys.length; i++) {\r\n let key = keys[i];\r\n let status = {} as IPreFineConditionType;\r\n status.id = key;\r\n status.name = PreFineConditionType[key];\r\n result.push(status);\r\n };\r\n return result;\r\n }\r\n\r\n getStopTypeList() : IStopType[] {\r\n const keys = Object.keys(StopType)\r\n .map(key =>StopType[key])\r\n .filter(value => typeof value !== 'string');\r\n let result = [];\r\n for (let i = 0; i < keys.length; i++) {\r\n let key = keys[i];\r\n let status = {} as IStopType;\r\n status.id = key;\r\n status.name = StopType[key];\r\n result.push(status);\r\n };\r\n return result;\r\n }\r\n\r\n}\r\n","// This file can be replaced during build by using the `fileReplacements` array.\r\n// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.\r\n// The list of file replacements can be found in `angular.json`.\r\n// apiUrl: \"https://edumaqapi.azurewebsites.net/api\"\r\n// apiUrl: \"http://localhost:5000/api\"\r\n// apiUrl: \"New\"\r\nexport const environment = {\r\n production: true,\r\n\r\n //========LOCAL=============\r\n // apiUrl: 'http://localhost:5001/api',\r\n // imageUrl: 'http://localhost:5001',\r\n // localUrl: 'http://localhost:4200/'\r\n\r\n //==================HTTP STAGING========================\r\n// apiUrl: 'http://stagingapi.edumaq.in/api',\r\n// imageUrl: 'http://stagingapi.edumaq.in'\r\n\r\n //========HTTPS STAGING=============\r\n// apiUrl: 'https://stagingapi.edumaq.in/api',\r\n// imageUrl: 'https://stagingapi.edumaq.in'\r\n\r\n// ==================HTTP PRODUCTION======================\r\n// apiUrl: 'http://api.edumaq.in/api',\r\n// imageUrl: 'http://api.edumaq.in'\r\n\r\n //========HTTPS PRODUCTION=============\r\n apiUrl: 'https://api.edumaq.in/api',\r\n imageUrl: 'https://api.edumaq.in'\r\n\r\n\r\n};\r\n\r\n/*\r\n * For easier debugging in development mode, you can import the following file\r\n * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.\r\n *\r\n * This import should be commented out in production mode because it will have a negative impact\r\n * on performance if an error is thrown.\r\n */\r\n// import 'zone.js/dist/zone-error'; // Included with Angular CLI.\r\n","import { enableProdMode } from '@angular/core';\r\nimport { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\r\n\r\nimport { AppModule } from './app/app.module';\r\nimport { environment } from './environments/environment';\r\n\r\nif (environment.production) {\r\n enableProdMode();\r\n}\r\n\r\nplatformBrowserDynamic().bootstrapModule(AppModule)\r\n .catch(err => console.error(err));\r\n","// Imports\nvar ___CSS_LOADER_API_SOURCEMAP_IMPORT___ = require(\"../../../../node_modules/css-loader/dist/runtime/sourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `body{\r\n font-family: 'Lato', sans-serif;\r\n color: #888;\r\n margin: 0;\r\n}\r\n\r\n#main{\r\n display: table;\r\n width: 100%;\r\n height: 100vh;\r\n text-align: center;\r\n}\r\n\r\n.fof{\r\n\t display: table-cell;\r\n\t vertical-align: middle;\r\n}\r\n\r\n.fof h1{\r\n\t font-size: 50px;\r\n\t display: inline-block;\r\n\t padding-right: 12px;\r\n\t animation: type .5s alternate infinite;\r\n}\r\n\r\n@keyframes type{\r\n\t from{box-shadow: inset -3px 0px 0px #888;}\r\n\t to{box-shadow: inset -3px 0px 0px transparent;}\r\n}`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/app/admin/not-found/not-found.component.css\"],\"names\":[],\"mappings\":\"AAAA;IACI,+BAA+B;IAC/B,WAAW;IACX,SAAS;AACb;;AAEA;IACI,cAAc;IACd,WAAW;IACX,aAAa;IACb,kBAAkB;AACtB;;AAEA;GACG,mBAAmB;GACnB,sBAAsB;AACzB;;AAEA;GACG,eAAe;GACf,qBAAqB;GACrB,mBAAmB;GACnB,sCAAsC;AACzC;;AAEA;GACG,KAAK,mCAAmC,CAAC;GACzC,GAAG,0CAA0C,CAAC;AACjD\",\"sourcesContent\":[\"body{\\r\\n font-family: 'Lato', sans-serif;\\r\\n color: #888;\\r\\n margin: 0;\\r\\n}\\r\\n\\r\\n#main{\\r\\n display: table;\\r\\n width: 100%;\\r\\n height: 100vh;\\r\\n text-align: center;\\r\\n}\\r\\n\\r\\n.fof{\\r\\n\\t display: table-cell;\\r\\n\\t vertical-align: middle;\\r\\n}\\r\\n\\r\\n.fof h1{\\r\\n\\t font-size: 50px;\\r\\n\\t display: inline-block;\\r\\n\\t padding-right: 12px;\\r\\n\\t animation: type .5s alternate infinite;\\r\\n}\\r\\n\\r\\n@keyframes type{\\r\\n\\t from{box-shadow: inset -3px 0px 0px #888;}\\r\\n\\t to{box-shadow: inset -3px 0px 0px transparent;}\\r\\n}\"],\"sourceRoot\":\"\"}]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___.toString();\n","// Imports\nvar ___CSS_LOADER_API_SOURCEMAP_IMPORT___ = require(\"../../node_modules/css-loader/dist/runtime/sourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `\r\n li.mm-active a {\r\n color: #fff !important;\r\n }`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/app/app.component.css\"],\"names\":[],\"mappings\":\";IACI;QACI,sBAAsB;IAC1B\",\"sourcesContent\":[\"\\r\\n li.mm-active a {\\r\\n color: #fff !important;\\r\\n }\"],\"sourceRoot\":\"\"}]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___.toString();\n","// Imports\nvar ___CSS_LOADER_API_SOURCEMAP_IMPORT___ = require(\"../../../../node_modules/css-loader/dist/runtime/sourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.text-box {\r\n border: none !important;\r\n border-bottom: 0.09em solid #ccc !important;\r\n padding: 5px !important;\r\n width: 100% !important;\r\n box-sizing: border-box !important;\r\n font-size: 16px !important;\r\n border-radius: 0% !important;\r\n background-color: #ffff !important;\r\n }\r\n body {\r\n --body-background-color: #ffffff !important;\r\n background-color: var(--body-background-color) !important;\r\n transition: background-color 0.5s ease !important;\r\n }\r\n input:-webkit-autofill,\r\n input:-webkit-autofill:hover, \r\n input:-webkit-autofill:focus, \r\n input:-webkit-autofill:active {\r\n -webkit-transition: background-color 5000s;\r\n transition: background-color 5000s;\r\n /* -webkit-text-fill-color: #fff !important; */\r\n -webkit-text-fill-color: #000000 !important;\r\n }`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/app/authentication/findschool/findschool.component.css\"],\"names\":[],\"mappings\":\"AAAA;IACI,uBAAuB;IACvB,2CAA2C;IAC3C,uBAAuB;IACvB,sBAAsB;IACtB,iCAAiC;IACjC,0BAA0B;IAC1B,4BAA4B;IAC5B,kCAAkC;EACpC;EACA;cACY,2CAA2C;cAC3C,yDAAyD;cACzD,iDAAiD;UACrD;UACA;;;;MAIJ,0CAAkC;MAAlC,kCAAkC;MAClC,8CAA8C;MAC9C,2CAA2C;IAC7C\",\"sourcesContent\":[\".text-box {\\r\\n border: none !important;\\r\\n border-bottom: 0.09em solid #ccc !important;\\r\\n padding: 5px !important;\\r\\n width: 100% !important;\\r\\n box-sizing: border-box !important;\\r\\n font-size: 16px !important;\\r\\n border-radius: 0% !important;\\r\\n background-color: #ffff !important;\\r\\n }\\r\\n body {\\r\\n --body-background-color: #ffffff !important;\\r\\n background-color: var(--body-background-color) !important;\\r\\n transition: background-color 0.5s ease !important;\\r\\n }\\r\\n input:-webkit-autofill,\\r\\n input:-webkit-autofill:hover, \\r\\n input:-webkit-autofill:focus, \\r\\n input:-webkit-autofill:active {\\r\\n transition: background-color 5000s;\\r\\n /* -webkit-text-fill-color: #fff !important; */\\r\\n -webkit-text-fill-color: #000000 !important;\\r\\n }\"],\"sourceRoot\":\"\"}]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___.toString();\n","// Imports\nvar ___CSS_LOADER_API_SOURCEMAP_IMPORT___ = require(\"../../../../node_modules/css-loader/dist/runtime/sourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.alert-error {\r\n color: #ff1414 !important;\r\n border: 1px solid transparent;\r\n border-radius: 0.25rem;\r\n}`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/app/authentication/forgetpassword/forgetpassword.component.css\"],\"names\":[],\"mappings\":\"AAAA;IACI,yBAAyB;IACzB,6BAA6B;IAC7B,sBAAsB;AAC1B\",\"sourcesContent\":[\".alert-error {\\r\\n color: #ff1414 !important;\\r\\n border: 1px solid transparent;\\r\\n border-radius: 0.25rem;\\r\\n}\"],\"sourceRoot\":\"\"}]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___.toString();\n","// Imports\nvar ___CSS_LOADER_API_SOURCEMAP_IMPORT___ = require(\"../../../../node_modules/css-loader/dist/runtime/sourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `#body{\r\n background-color: white;\r\n}\r\nbody{\r\n --body-background-color: #ffffff !important;\r\n}\r\n.text-box {\r\n border: none !important;\r\n border-bottom: 0.09em solid #ccc !important;\r\n padding: 5px !important;\r\n width: 100% !important;\r\n box-sizing: border-box !important;\r\n font-size: 16px !important;\r\n border-radius: 0% !important;\r\n background-color: #ffff !important;\r\n }\r\n body {\r\n --body-background-color: #ffffff !important;\r\n background-color: var(--body-background-color) !important;\r\n transition: background-color 0.5s ease !important;\r\n }\r\n input:-webkit-autofill,\r\n input:-webkit-autofill:hover, \r\n input:-webkit-autofill:focus, \r\n input:-webkit-autofill:active {\r\n -webkit-transition: background-color 5000s;\r\n transition: background-color 5000s;\r\n /* -webkit-text-fill-color: #fff !important; */\r\n -webkit-text-fill-color: #000000 !important;\r\n }`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/app/authentication/login/login.component.css\"],\"names\":[],\"mappings\":\"AAAA;IACI,uBAAuB;AAC3B;AACA;EACE,2CAA2C;AAC7C;AACA;IACI,uBAAuB;IACvB,2CAA2C;IAC3C,uBAAuB;IACvB,sBAAsB;IACtB,iCAAiC;IACjC,0BAA0B;IAC1B,4BAA4B;IAC5B,kCAAkC;EACpC;EACA;cACY,2CAA2C;cAC3C,yDAAyD;cACzD,iDAAiD;UACrD;UACA;;;;MAIJ,0CAAkC;MAAlC,kCAAkC;MAClC,8CAA8C;MAC9C,2CAA2C;IAC7C\",\"sourcesContent\":[\"#body{\\r\\n background-color: white;\\r\\n}\\r\\nbody{\\r\\n --body-background-color: #ffffff !important;\\r\\n}\\r\\n.text-box {\\r\\n border: none !important;\\r\\n border-bottom: 0.09em solid #ccc !important;\\r\\n padding: 5px !important;\\r\\n width: 100% !important;\\r\\n box-sizing: border-box !important;\\r\\n font-size: 16px !important;\\r\\n border-radius: 0% !important;\\r\\n background-color: #ffff !important;\\r\\n }\\r\\n body {\\r\\n --body-background-color: #ffffff !important;\\r\\n background-color: var(--body-background-color) !important;\\r\\n transition: background-color 0.5s ease !important;\\r\\n }\\r\\n input:-webkit-autofill,\\r\\n input:-webkit-autofill:hover, \\r\\n input:-webkit-autofill:focus, \\r\\n input:-webkit-autofill:active {\\r\\n transition: background-color 5000s;\\r\\n /* -webkit-text-fill-color: #fff !important; */\\r\\n -webkit-text-fill-color: #000000 !important;\\r\\n }\"],\"sourceRoot\":\"\"}]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___.toString();\n","// Imports\nvar ___CSS_LOADER_API_SOURCEMAP_IMPORT___ = require(\"../../../../node_modules/css-loader/dist/runtime/sourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, ``, \"\",{\"version\":3,\"sources\":[],\"names\":[],\"mappings\":\"\",\"sourceRoot\":\"\"}]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___.toString();\n","// Imports\nvar ___CSS_LOADER_API_SOURCEMAP_IMPORT___ = require(\"../../../../node_modules/css-loader/dist/runtime/sourceMaps.js\");\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../node_modules/css-loader/dist/runtime/api.js\");\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, ``, \"\",{\"version\":3,\"sources\":[],\"names\":[],\"mappings\":\"\",\"sourceRoot\":\"\"}]);\n// Exports\nmodule.exports = ___CSS_LOADER_EXPORT___.toString();\n"],"names":["Injectable","HttpClient","HttpHeaders","environment","throwError","catchError","AdminService","constructor","httpClient","httpOptions","headers","getByCode","code","console","log","get","apiUrl","pipe","errorHandler","error","message","errorMessage","ErrorEvent","status","_","__decorate","providedIn","Component","ActivatedRoute","Router","SharedService","NotFoundComponent","sharedService","router","activatedRoute","ngOnInit","selector","template","__NG_CLI_RESOURCE__0","NgModule","RouterModule","LoginComponent","FindschoolComponent","AuthGuard","ForgetpasswordComponent","InstitutionGuard","RandomGuard","routes","path","component","canActivate","loadChildren","then","m","AdminModule","EdumaqModule","SuperadminModule","ParentchildModule","TeacherModule","InstitutionModule","AppRoutingModule","imports","forRoot","exports","HostListener","ViewChild","AppComponent","clearLocalStorage","event","localStorage","clear","title","idleState","timedOut","tokenExpirySecond","args","static","BrowserModule","BrowserAnimationsModule","CUSTOM_ELEMENTS_SCHEMA","DatePipe","HttpClientModule","HTTP_INTERCEPTORS","LoaderService","LoaderInterceptor","TokenInterceptor","InstitutionInterceptor","SharedModule","CommonModule","FormsModule","ReactiveFormsModule","NgIdleModule","ToastrModule","AppModule","declarations","providers","provide","useClass","multi","bootstrap","schemas","HttpParams","of","mapTo","tap","AuthenticationService","JWT_TOKEN","REFRESH_TOKEN","login","username","password","studentlogin","instcode","set","queryParams","append","teacherlogin","teacherloginToERP","ilogin","usertype","logout","post","refreshToken","getRefreshToken","doLogoutUser","alert","isLoggedIn","getJwtToken","tokens","storeJwtToken","jwt","newToken","sessionExpiryTime","token","forgetPassword","form","params","schoolcode","isInstituteExist","instCode","getItem","doLoginUser","loggedUser","storeTokens","removeTokens","window","setItem","removeItem","ToastrService","LoginService","InstitutionprofileService","FormBuilder","Validators","formBuilder","authService","loginService","toastr","profileService","adminService","userName","iserror","imageSrc","logoUrl","imageUrl","loader","schoolNotFoundErrorMessage","btnContinue","valid","value","verifySchoolSuscription$","verifyInstitution","subscribe","data","isVerified","invalidErrorMessage","instProfile","detail","institutionCode","navigateByUrl","showErrorMessage","markFormGroupTouched","ngOnDestroy","unsubscribe","formGroup","Object","values","controls","forEach","control","markAsTouched","timeOut","group","schoolCode","required","getAll","getProfile","getInstaLogo","instaCode","update","id","eventcalendar","JSON","stringify","debounceTime","distinctUntilChanged","fb","isLoading","isSchoolExist","userTypes","viewValue","forgetPasswordForm","onSchoolcodeChanges","resetForm","subscription","valueChanges","length","res","err","setErrors","notFound","onSubmit","markAllAsTouched","invalid","forgotPasswordSubscription","userProfile","success","userInfo","setTimeout","navigate","allowedPaths","route","canLoad","instco","undefined","relativeTo","url","snapshot","edumaq","paths","parse","startIndex","_routerState","indexOf","endIndex","substring","includes","canActivateChild","croute","test","userType","role","getResolvedUrl","pathFromRoot","map","v","segment","toString","join","inject","FormControl","FormGroup","switchMap","_iserror","handleErrorMessage","instituteName","userIdChecked","loaderService","dataSource$","paramMap","e","next","institutionname","institutionProfile","subscriptions","Array","warning","sub","response","push","teacherLoginERPSub","user","institution","teacherSub","authSub","authSubs","studentsub","enctype","httpNOptions","reqfrom","HttpErrorResponse","BehaviorSubject","filter","take","isRefreshing","refreshTokenSubject","intercept","request","addToken","handle","clone","setHeaders","Authorization","handle401Error","isInstitutionApi","InstitutionCode","HttpResponse","Observable","requests","removeRequest","req","i","splice","observer","Message","statusText","complete","LoaderComponent","loader$","LoadingComponent","AdmissionType","FineConditionType","IssueStatus","MaintenanceType","PenaltyType","PreFineConditionType","PurchaseStatus","ReturnBookStatus","Status","StopType","Pipe","FilterPipe","transform","input","keys","val","statusName","key","toLowerCase","name","currentAcademicYearID","getStatusList","result","getIssueStatusList","getAdmissionType","getPenaltyType","getReturnBookStatusList","getPurchaseStatusList","getMaintenanceTypeList","getFineConditionTypeList","getPreFineConditionTypeList","getStopTypeList","production","enableProdMode","platformBrowserDynamic","bootstrapModule","catch"],"sourceRoot":"webpack:///","x_google_ignoreList":[]}