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MAAMC,QAAQ,GAAGC,MAAM,CAACC,IAAI,CAAC9B,IAAI,CAAC;EAClC,MAAM+B,KAAK,GAAGH,QAAQ,CACpBI,MAAM,CAAC,CAACC,OAAe,EAAEC,GAAW,KAAI;IACxC,MAAM9G,KAAK,GAAI4E,IAAuC,CAACkC,GAAG,CAAC;IAC3D,OAAOD,OAAO,GAAG7G,KAAK,GAAG,GAAG;EAC7B,CAAC,EAAE,EAAE,CAAC,CACL+G,WAAW,EAAE;EACf;EACA,MAAMC,iBAAiB,GAAGT,MAAM,CAACU,IAAI,EAAE,CAACF,WAAW,EAAE;EACrD,OAAOJ,KAAK,CAACO,OAAO,CAACF,iBAAiB,CAAC,IAAI,CAAC,CAAC;AAC9C,CAAC;AAEM,MAAMG,UAAU,GAAGA,CAACvC,IAAW,EAAE2B,MAAc,KAAI;EACzD,MAAMa,aAAa,GAAGb,MAAM,IAAI,IAAI,IAAIA,MAAM,KAAK,EAAE;EACrD,OAAOa,aAAa,GAAGxC,IAAI,GAAGA,IAAI,CAAC2B,MAAM,CAAEc,CAAC,IAAKf,eAAe,CAACe,CAAC,EAAEd,MAAM,CAAC,CAAC;AAC7E,CAAC;;;;;;;;;;;;;;AChBM,MAAMe,aAAa,GAAGA,CAC5B1C,IAAgB,EAChB2C,SAAA,GAAoB,CAAC,EACrBC,QAAA,GAAmB,EAAE,KAClB;EACH,MAAMC,UAAU,GAAGF,SAAS,GAAGC,QAAQ;EACvC,MAAME,QAAQ,GAAGD,UAAU,GAAGD,QAAQ;EACrC,IAAG,CAAC5C,IAAI,EAAE,OAAO,EAAE;EAEpB,OAAOA,IAAI,CAAC+C,KAAK,CAACF,UAAU,EAAEC,QAAQ,CAAC;AACxC,CAAC","sources":["./src/app/core/constants/Orders.ts","./src/app/core/constants/Roles.ts","./src/app/core/models/course-generator/interestSite.model.ts","./src/app/core/models/exam-list/exam-schedule.model.ts","./src/app/core/models/exam-list/planning.model.ts","./src/app/core/models/question-bank/question.model.ts","./src/app/core/services/catalog/catalog.service.ts","./src/app/core/services/course/course.service.ts","./src/app/core/services/forum-discussion/forum-discussion.service.ts","./src/app/core/services/interestSite/interest-site.service.ts","./src/app/core/services/supervisor/filters.service.ts","./src/app/core/services/user/user.service.ts","./src/app/core/utils/filter.ts","./src/app/core/utils/paginate.ts"],"sourcesContent":["export const ORDERS_FILTER = [\r\n {\r\n name: 'Más reciente',\r\n value: 'new',\r\n },\r\n {\r\n name: 'A - Z',\r\n value: 'ascending',\r\n },\r\n {\r\n name: 'Z - A',\r\n value: 'descending',\r\n },\r\n];\r\n","export const ROLES_INDEXED = {\r\n TEACHER: {\r\n\t\tid: 72,\r\n\t\tname: 'Profesor',\r\n description: 'Profesor que imparte cursos',\r\n active: true\r\n\t},\r\n STUDENT: {\r\n\t\tid: 73,\r\n\t\tname: 'Alumno',\r\n description: 'Alumno',\r\n active: true\r\n\t},\r\n TEACHER_BACCA: {\r\n\t\tid: 81,\r\n\t\tname: 'Profesor Bachillerato',\r\n description: 'Profesor Bachillerato',\r\n active: true\r\n\t},\r\n STUDENT_BACCA: {\r\n\t\tid: 82,\r\n\t\tname: 'Alumno Bachillerato',\r\n description: 'Alumno Bachillerato',\r\n active: true\r\n\t}\r\n}\r\n\r\nexport const ROLES = [\r\n\tROLES_INDEXED.TEACHER,\r\n\tROLES_INDEXED.STUDENT,\r\n ROLES_INDEXED.TEACHER_BACCA,\r\n ROLES_INDEXED.STUDENT_BACCA,\r\n];\r\n\r\n","export class InterestSite {\r\n\tid!: number;\r\n\ttitle!: string;\r\n\tdescription!: string;\r\n\turi!: string;\r\n\tcourseId!: number;\r\n}\r\n","import { ExamScheduleType } from './exam-schedule-type.model';\r\n\r\nexport class ExamSchedule {\r\n\tid!: number;\r\n\tdescription!: string;\r\n\tstudentGroupId!: number;\r\n\tactive!: boolean;\r\n\tstatus?: ExamScheduleType;\r\n\tteacherExamId?: number;\r\n\ttypeExam!: number;\r\n\texamScheduleTypeId!: number;\r\n\tschedulingPartialDescription!: string;\r\n\tschedulingPartialId!: number;\r\n\tbeginApplicationDate!: Date;\r\n\tendApplicationDate!: Date;\r\n\tbeginApplicationTime?: Date | null;\r\n\tendApplicationTime?: Date | null;\r\n\tminutesExam!: number;\r\n\tponderacion!: string;\r\n}\r\n","export class Planning {\r\n\tid!: number;\r\n\thomework!: number;\r\n\texam!: number;\r\n\tassistance!: number;\r\n\tactivity!: number;\r\n\tnumberPartial!: number;\r\n\tstudentGroupId!: number;\r\n}\r\n","import { QuestionType } from './question-type.model';\r\nimport { Answer } from './answer.model';\r\n\r\nexport class Question {\r\n\tid!: number;\r\n\tcontent!: string;\r\n\tactive!: boolean;\r\n\torden!: number;\r\n\texplanation!: string;\r\n\tquestionBankId!: number;\r\n\tquestionTypeId!: number;\r\n\tquestionType?: QuestionType;\r\n\tanswers!: Answer[];\r\n\tindex!: number;\r\n\tindexResponse!: number;\r\n\turlImage?: string;\r\n\tfilename?: string;\r\n\tfileContentBase64?: string;\r\n\tisMultiple!: boolean;\r\n\timageHeight!: number;\r\n\timageWidth!: number;\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { HttpClient } from '@angular/common/http';\r\nimport { environment } from '@env/environment';\r\nimport { Response } from '@models/response-api/ResponseApi';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class CatalogService {\r\n\tprivate url = `${environment.hostAPI}`;\r\n\r\n constructor(private http: HttpClient) {\r\n\r\n }\r\n\r\n getAllCountries(){\r\n return this.http.get(`${this.url}/cities`);\r\n }\r\n\r\n getAllEstatesByCountryId(countryId: number){\r\n return this.http.get(`${this.url}/cities/${countryId}/states`);\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { HttpClient } from '@angular/common/http';\r\nimport { environment } from '@env/environment';\r\nimport { Response } from '@models/response-api/ResponseApi';\r\n\r\n@Injectable({\r\n\tprovidedIn: 'root',\r\n})\r\nexport class CourseService {\r\n\tprivate url = `${environment.hostAPI}`;\r\n\r\n\tconstructor(private http: HttpClient) {}\r\n\r\n\tgetAllCourse() {\r\n\t\tlet url = `${this.url}/courses/teacher`;\r\n\r\n\t\treturn this.http.get(url);\r\n\t}\r\n\r\n\t// Obtener todas las programaciones del exámen por grupo para el estudiante\r\n\tgetAllExamStuden(groupId: number) {\r\n\t\tconst API_URL = `${this.url}/examchedules/student?groupId=${groupId}`;\r\n\t\tconst params = new URLSearchParams();\r\n\r\n\t\treturn this.http.get(API_URL);\r\n\t}\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { HttpClient } from '@angular/common/http';\r\nimport { environment } from '@env/environment';\r\nimport { Response } from '@models/response-api/ResponseApi';\r\nimport { ForumCommentRequest, ForumDiscussion } from '@models/forum-discussion/forum-discussion';\r\n\r\n@Injectable({\r\n\tprovidedIn: 'root',\r\n})\r\nexport class ForumDiscussionService {\r\n\tprivate url = `${environment.hostAPI}/forums`;\r\n\r\n\tconstructor(private http: HttpClient) {}\r\n\r\n\tgetAllForum() {\r\n\t\tlet url = `${this.url}/thread`;\r\n\r\n\t\treturn this.http.get(url);\r\n\t}\r\n\r\n\tgetAllForumSupervisor(zoneId?: string | null,\r\n\t\tschoolId?: string | null,\r\n\t\tteacherId?: string | null) {\r\n\r\n\t\tif(Number.isNaN(zoneId)) {\r\n\t\t\tzoneId = null;\r\n\t\t}\r\n\t\tif(Number.isNaN(schoolId)) {\r\n\t\t\tschoolId = null;\r\n\t\t}\r\n\t\tif(Number.isNaN(teacherId)) {\r\n\t\t\tteacherId = null;\r\n\t\t}\r\n\t\tlet url = `${this.url}/thread?zoneId=${zoneId}&schoolId=${schoolId}&teacherId=${teacherId}`;\r\n\r\n\t\treturn this.http.get(url);\r\n\t}\r\n\r\n\tgetForumById(id: number) {\r\n\t\tlet url = `${this.url}/thread-by-id/${id}`;\r\n\r\n\t\treturn this.http.get(url);\r\n\t}\r\n\r\n\taddForum(item: ForumDiscussion) {\r\n\t\tlet url = `${this.url}/thread`;\r\n\r\n\t\treturn this.http.post(url, item);\r\n\t}\r\n\r\n\t// COMMENTS\r\n saveComment(payload: ForumCommentRequest) {\r\n let url = `${this.url}/post`;\r\n\r\n return this.http.post(url, payload );\r\n }\r\n\r\n\tupdateBestCommentByIdAndStatus(id: number, isBest: boolean = true) {\r\n\t\tlet url = `${this.url}/post/${id}/status`;\r\n\r\n\t\treturn this.http.put(url, {\r\n\t\t\tid,\r\n\t\t\tstatus: isBest,\r\n\t\t});\r\n\t}\r\n\r\n\tdeleteCommentById(id: number) {\r\n\t\tlet url = `${this.url}/post?id=${id}`;\r\n\r\n\t\treturn this.http.delete(url);\r\n\t}\r\n\r\n likedForComment(id: number, isCanVote: boolean) {\r\n let url = `${this.url}/post/${id}/vote`;\r\n\r\n return this.http.post(url, {\r\n id,\r\n vote: isCanVote ? 1 : -1\r\n });\r\n }\r\n}\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { environment } from '@env/environment';\r\nimport { InterestSite } from '@models/course-generator/interestSite.model';\r\nimport { Response } from '@models/response-api/ResponseApi';\r\n\r\n@Injectable({\r\n\tprovidedIn: 'root',\r\n})\r\nexport class InterestSiteService {\r\n\tprivate url = `${environment.hostAPI}/linkinterests`;\r\n\r\n\tconstructor(private http: HttpClient) {}\r\n\r\n\tgetAll(id: any) {\r\n\t\tconst url = `${this.url}/get-by-course/${id}`;\r\n\t\treturn this.http.get(url);\r\n\t}\r\n\r\n\tsave(item: InterestSite) {\r\n\t\tconst url = `${this.url}`;\r\n\r\n\t\treturn this.http.post(url, item);\r\n\t}\r\n\r\n\tdelete(id: any) {\r\n\t\tconst url = `${this.url}?id=${id}`;\r\n\t\treturn this.http.delete(url);\r\n\t}\r\n\r\n\tupdate(item: InterestSite) {\r\n\t\tconst url = `${this.url}`;\r\n\t\treturn this.http.put(url, item);\r\n\t}\r\n\r\n\t// Obtener todos los sitios de interés por libro y que el alumno este inscrito en algún grupo\r\n\tgetAllCourse(nodeId: any) {\r\n\t\tconst API_URL = `${this.url}?nodeId=${nodeId}`;\r\n\t\treturn this.http.get(API_URL);\r\n\t}\r\n}\r\n","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { environment } from '@env/environment';\r\nimport { Observable } from 'rxjs';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class FiltersService {\r\n\r\n private url = `${environment.hostAPI}/`;\r\n\r\n constructor(private http: HttpClient) {}\r\n\r\n getZones(): Observable {\r\n return this.http.get(`${this.url}schoolZone/getAll`);\r\n }\r\n\r\n getSchoolByZoneId(zoneId: number): Observable {\r\n return this.http.get(`${this.url}school/getByZone?zoneId=${zoneId}`);\r\n }\r\n\r\n getTeachersBySchool(schoolId: number): Observable {\r\n return this.http.get(`${this.url}users/getUsers?unitAcademic=${schoolId}`)\r\n }\r\n}\r\n","import { HttpClient, HttpParams } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\nimport { environment } from '@env/environment';\r\nimport { UserImage, UserRegister } from '@models/authentication/User';\r\nimport { Response } from '@models/response-api/ResponseApi';\r\n\r\n@Injectable({\r\n\tprovidedIn: 'root',\r\n})\r\nexport class UserService {\r\n\tprivate hostAPI = `${environment.hostAPI}`;\r\n\tprivate url = `${environment.hostAPI}/users`;\r\n\r\n\tconstructor(private http: HttpClient) {}\r\n\r\n\tregister(user: UserRegister) {\r\n\t\treturn this.http.post(this.url, user);\r\n\t}\r\n\r\n\tresetPassword(email: string, systemId: number) {\r\n\t\tconst url = `${this.url}/resetpassword`;\r\n\t\tconst data = { email, systemId };\r\n\t\treturn this.http.post(url, data);\r\n\t}\r\n\r\n\tchangePassword(email: string, newPassword: string, oldPassword: string) {\r\n\t\tconst url = `${this.url}/changepassword`;\r\n\t\tconst data = { email, newPassword, oldPassword };\r\n\t\treturn this.http.put(url, data);\r\n\t}\r\n\r\n\tactiveAccount(code: number) {\r\n\t\tconst url = `${this.url}/confirmSuscripcion?email=${code}`;\r\n\t\treturn this.http.get(url);\r\n\t}\r\n\r\n\tvalidateUserSIDE(email: string) {\r\n\t\tconst url = `${this.url}/side?email=${email}`;\r\n\t\treturn this.http.get(url);\r\n\t}\r\n\r\n\t// TODO VERIFICAR\r\n\tgetProfile(systemId: number) {\r\n\t\tconst apiUrl = `${this.url}/profile?origin=${systemId}`;\r\n\t\treturn this.http.get(apiUrl);\r\n\t}\r\n\r\n\tgetNotifications(page: number = 0, size: number = 0) {\r\n\t\tconst url = `${this.url}/get-all-notifications`;\r\n\t\t// const parameters = new URLSearchParams();\r\n\t\t// parameters.append(\"page\", page.toString());\r\n\t\t// parameters.append(\"sizePage\", size.toString());\r\n\r\n\t\treturn this.http.get(url /* , { params: parameters } */);\r\n\t}\r\n\r\n\treadNotification(id: number) {\r\n\t\tconst url = `${this.url}/read`;\r\n\r\n\t\treturn this.http.put(url, { id });\r\n\t}\r\n\r\n\tupdate(user: UserRegister) {\r\n\t\treturn this.http.put(this.url, user);\r\n\t}\r\n\r\n\tuploadImg(userProfile: UserImage) {\r\n\t\tconst url = `${this.url}/uploadImgProfile`;\r\n\r\n\t\treturn this.http.put(url, userProfile);\r\n\t}\r\n\r\n\tgetProfileData() {\r\n\t\tconst url = `${this.url}/profiledata`;\r\n\t\treturn this.http.get(url);\r\n\t}\r\n\r\n\t// TODO VERIFICAR\r\n\tsendMail(contentEmail: any) {\r\n\t\tconst url = `${this.hostAPI}/user/send`;\r\n\t\treturn this.http.post(url, contentEmail);\r\n\t}\r\n\r\n\t// TODO VERIFICAR\r\n\tupdateDevice(token: string) {\r\n\t\tconst url = `${this.url}/registerDevice`;\r\n\t\tconst data = {\r\n\t\t\tdeviceId: '',\r\n\t\t\ttoken: token,\r\n\t\t\tclientId: 1,\r\n\t\t};\r\n\t\treturn this.http.post(url, data);\r\n\t}\r\n\r\n\t// TODO VERIFICAR\r\n\tsendContactMail(contentEmail: any) {\r\n\t\tconst url = `${this.hostAPI}/mails/send`;\r\n\t\treturn this.http.post(url, contentEmail);\r\n\t}\r\n\r\n\t// TODO VERIFICAR\r\n\tgetaDataUserSIDE(email: string) {\r\n\t\tconst url = `${this.url}/cctside?email=${email}`;\r\n\t\treturn this.http.get(url);\r\n\t}\r\n\r\n\t// TODO VERIFICAR\r\n\tgerUserProfileData(userId: number) {\r\n\t\tconst url = `${this.url}/GetUserProfileData?userId=${userId}`;\r\n\t\treturn this.http.get(url);\r\n\t}\r\n}\r\n","const filterPredicate = (data: Object, filter: string): boolean => {\r\n\tconst dataKeys = Object.keys(data);\r\n\tconst words = dataKeys\r\n\t\t.reduce((accTerm: string, key: string) => {\r\n\t\t\tconst value = (data as unknown as Record)[key];\r\n\t\t\treturn accTerm + value + '◬';\r\n\t\t}, '')\r\n\t\t.toLowerCase();\r\n\t// Transform the filter by converting it to lowercase and removing whitespace.\r\n\tconst transformedFilter = filter.trim().toLowerCase();\r\n\treturn words.indexOf(transformedFilter) != -1;\r\n};\r\n\r\nexport const filterData = (data: any[], filter: string) => {\r\n\tconst isFilterEmpty = filter == null || filter === '';\r\n\treturn isFilterEmpty ? data : data.filter((x) => filterPredicate(x, filter));\r\n};\r\n","export const paginateEvent = (\r\n\tdata: Array,\r\n\tpageIndex: number = 0,\r\n\tpageSize: number = 10\r\n) => {\r\n\tconst startIndex = pageIndex * pageSize;\r\n\tconst endIndex = startIndex + pageSize;\r\n if(!data) return [];\r\n\r\n\treturn data.slice(startIndex, endIndex);\r\n};\r\n"],"names":["ORDERS_FILTER","name","value","ROLES_INDEXED","TEACHER","id","description","active","STUDENT","TEACHER_BACCA","STUDENT_BACCA","ROLES","InterestSite","ExamSchedule","Planning","Question","environment","CatalogService","constructor","http","url","hostAPI","getAllCountries","get","getAllEstatesByCountryId","countryId","i0","ɵɵinject","i1","HttpClient","factory","ɵfac","providedIn","CourseService","getAllCourse","getAllExamStuden","groupId","API_URL","params","URLSearchParams","ForumDiscussionService","getAllForum","getAllForumSupervisor","zoneId","schoolId","teacherId","Number","isNaN","getForumById","addForum","item","post","saveComment","payload","updateBestCommentByIdAndStatus","isBest","put","status","deleteCommentById","delete","likedForComment","isCanVote","vote","InterestSiteService","getAll","save","update","nodeId","FiltersService","getZones","getSchoolByZoneId","getTeachersBySchool","UserService","register","user","resetPassword","email","systemId","data","changePassword","newPassword","oldPassword","activeAccount","code","validateUserSIDE","getProfile","apiUrl","getNotifications","page","size","readNotification","uploadImg","userProfile","getProfileData","sendMail","contentEmail","updateDevice","token","deviceId","clientId","sendContactMail","getaDataUserSIDE","gerUserProfileData","userId","filterPredicate","filter","dataKeys","Object","keys","words","reduce","accTerm","key","toLowerCase","transformedFilter","trim","indexOf","filterData","isFilterEmpty","x","paginateEvent","pageIndex","pageSize","startIndex","endIndex","slice"],"sourceRoot":"webpack:///","x_google_ignoreList":[]}