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A7BA,8BAA6B;AAAA;;SAA7BA,8BAA6B;EAAAf,SAA7Be,8BAA6B;EAAAd,YAF5B;AAAM;;;;;;;;;;;;;;;;;;;;;;;;ACH8D;AACpC;AACF;;;;AAQrC,IAAMoB,4BAA4B;EAEvC,sCACUC,IAAgB,EAChBC,UAA6B;IAAA7B,0HAAAA;IAD7B,SAAI,GAAJ4B,IAAI;IACJ,eAAU,GAAVC,UAAU;EAKpB;EAAC;IAAA5B;IAAAC,OAED,aAAO4B,GAAW;MAAA;MAEhB,IAAMC,OAAO,GAAG,IAAIP,6DAAW,CAAC;QAC9B;QACA;MAAA,CACD,CAAC;MAEF,IAAMpB,GAAG,GAAG,IAAI,CAACwB,IAAI,CAACvB,GAAG,CAAIyB,GAAG,EAAE;QAChCC,OAAO,EAAPA;OACD,CAAC;MAEF,OAAO3B,GAAG,CAAC4B,IAAI,CACbN,0DAAU,CAAC,aAAG,EAAG;QACf,IAAIO,GAAG,CAACC,MAAM,KAAK,GAAG,EAAE;UACtBC,KAAK,CAAC,KAAK,CAAC;UACZ;;QAEF,IAAIF,GAAG,CAACG,iBAAiB,EAAE;UACzBC,KAAI,CAACR,UAAU,CAACS,SAAS,CAACL,GAAG,CAACM,KAAK,CAACH,iBAAiB,CAAC;;QAExD,OAAOX,gDAAU,CAACQ,GAAG,CAACM,KAAK,CAACH,iBAAiB,CAAC;MAChD,CAAC,CAAC,CACH;IACH;EAAC;IAAAnC;IAAAC,OAKO,sBAAU;MAChB,IAAMsC,OAAO,GAAG,OAAO;MACvB;MACA;MACA;MACA;MACA;MAEA,OAAOA,OAAO;IAChB;EAAC;AAAA;gCAhDUb,4BAA4B;;mBAA5BA,6BAA4B;AAAA;;SAA5BA,6BAA4B;EAAArB,SAA5BqB,6BAA4B;EAAApB,YAF3B;AAAM","sources":["./src/app/shared/services/api/encrypt/get_encrypt_user_info_service.ts","./src/app/shared/services/api/exam/get_exam_answer_sheet.service.ts","./src/app/shared/services/api/exam/start_exam.service.ts","./src/app/shared/services/api/product/get_product_by_linkId.service.ts","./src/app/shared/services/api/product/get_product_item_by_sub_topic_id.service.ts","./src/app/shared/services/api/product/get_topicts_by_product_type_service.ts","./src/app/shared/services/base-http-client-encrypt.service.ts"],"sourcesContent":["import { Injectable } from \"@angular/core\";\r\nimport { BaseHttpClientService } from \"../../base-http-client.service\";\r\nimport { BaseHttpClientEncryptService } from \"../../base-http-client-encrypt.service\";\r\n\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class getEncryptUserInfoService {\r\n constructor(private baseClient: BaseHttpClientEncryptService) { }\r\n\r\n // `https://media.tikschool.ir/encrypt/${id}/${phone}`\r\n\r\n call(userInfo) {\r\n let res = this.baseClient.get(\r\n `https://media.tikschool.ir/encrypt/${userInfo}`\r\n\r\n );\r\n return res;\r\n }\r\n}","import { Injectable } from '@angular/core';\r\n\r\nimport { BaseHttpClientService } from '../../base-http-client.service';\r\nimport { AnswerSheetResponseModel } from 'src/app/shared/api-models/responses/exam/GetExamAnswerSheetResponseModel';\r\n\r\n/**\r\n * گرفتن لیست مقاطع تحصیلی\r\n */\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class GetExamAnswerSheetService {\r\n constructor(private baseClient: BaseHttpClientService) { }\r\n\r\n call(exam_id, params) {\r\n const res = this.baseClient.getWithAuthParams(\r\n `/api/v1/exam/get_exam_answer_sheet/${exam_id}`, params\r\n );\r\n\r\n return res;\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\n\r\nimport { BaseHttpClientService } from '../../base-http-client.service';\r\nimport { BuyExamRequestModel } from 'src/app/shared/api-models/requests/exam/BuyExamRequestModel';\r\nimport { BuyExamResponseModel } from 'src/app/shared/api-models/responses/exam/BuyExamResponseModel';\r\nimport { StartExamResponseModel } from 'src/app/shared/api-models/responses/exam/StartExamResponseModel';\r\n\r\n/**\r\n * گرفتن لیست مقاطع تحصیلی\r\n */\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class StartExamService {\r\n constructor(private baseClient: BaseHttpClientService) { }\r\n\r\n call(exam_id, params) {\r\n const res = this.baseClient.postWithAuthParams(\r\n `/api/v1/exam/start_exam/${exam_id}`, null, params\r\n );\r\n return res;\r\n }\r\n}\r\n","import { GetProductBylinkId } from './../../../api-models/responses/products/GetProductByLink';\r\nimport { Injectable } from '@angular/core';\r\nimport { BaseHttpClientService } from '../../base-http-client.service';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class GetProductbyIdService {\r\n constructor(private baseClient: BaseHttpClientService) { }\r\n\r\n call(id) {\r\n let res = this.baseClient.get(\r\n\r\n `/api/v1/Productitem/get_productitem_by_id/${id}`\r\n );\r\n\r\n return res;\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { GetProductItemBySubTopicsResponseModel } from 'src/app/shared/api-models/responses/products/GetProductItemBySubTopicsResponseModel';\r\nimport { BaseHttpClientService } from '../../base-http-client.service';\r\n\r\n/**\r\n * گرفتن اطلاعات کاربر\r\n */\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class GetProductItemBySubTopicsIdService {\r\n constructor(private baseClient: BaseHttpClientService) { }\r\n\r\n call(topicid, producttypeid,videoVersion) {\r\n let res = this.baseClient.getWithAuth(\r\n\r\n // `/api/v1/Productitem/get_productitems_by_topicid/${topicid}/${isjet}/${is6d}/${isDayLight}/${isConference}`\r\n `/api/v1/Productitem/get_productitems_by_topicid_and_producttypeid/${topicid}/${producttypeid}/${videoVersion}`\r\n\r\n\r\n );\r\n\r\n return res;\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { GetTopicsByLessonIdResponseModel } from 'src/app/shared/api-models/responses/products/GetTopicsByLessonIdResponseModel';\r\nimport { BaseHttpClientService } from '../../base-http-client.service';\r\n\r\n/**\r\n * گرفتن اطلاعات کاربر\r\n */\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class GetTopicsByProductTypeService {\r\n constructor(private baseClient: BaseHttpClientService) { }\r\n\r\n call(lesson_id, ProductTypeId, params) {\r\n let res = this.baseClient.getWithAuthParams(\r\n\r\n `/api/v1/topic/get_topics_by_lessonid_and_producttypeid/${lesson_id}/${ProductTypeId}`, params\r\n );\r\n\r\n return res;\r\n }\r\n}\r\n","import { Router } from '@angular/router';\r\nimport { UserNotifyService } from './../../core/notify/user-notify.service';\r\nimport { environment } from './../../../environments/environment';\r\nimport { CookieService } from 'ngx-cookie-service';\r\nimport { Injectable } from '@angular/core';\r\nimport { HttpClient, HttpErrorResponse, HttpHeaders } from '@angular/common/http';\r\nimport { Observable, throwError } from 'rxjs';\r\nimport { catchError } from 'rxjs/operators';\r\n\r\nimport { MatBottomSheet } from '@angular/material/bottom-sheet';\r\nimport { LoginBottomSheetComponent } from 'src/app/views/pages/auth/login-bottom-sheet/login-bottom-sheet.component';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class BaseHttpClientEncryptService {\r\n userAgent;\r\n constructor(\r\n private http: HttpClient,\r\n private userNotify: UserNotifyService,\r\n\r\n // mprivate errorHanling: HttpClientErrorHandlingService\r\n ) {\r\n\r\n }\r\n\r\n get(url: string): Observable {\r\n\r\n const headers = new HttpHeaders({\r\n // 'content-type': 'text/plain',\r\n // 'Access-Control-Allow-Origin': 'http://localhost:4200/'\r\n });\r\n\r\n const res = this.http.get(url, {\r\n headers\r\n });\r\n\r\n return res.pipe(\r\n catchError(err => {\r\n if (err.status === 401) {\r\n alert('401')\r\n return;\r\n }\r\n if (err.error_description) {\r\n this.userNotify.showError(err.error.error_description);\r\n }\r\n return throwError(err.error.error_description);\r\n })\r\n );\r\n }\r\n\r\n\r\n\r\n\r\n private getCulture() {\r\n const culture = 'fa-IR';\r\n // if (this.translate.currentLang == \"fa\") {\r\n // culture = \"fa-IR\";\r\n // } else if (this.translate.currentLang == \"en\") {\r\n // culture = \"en-US\";\r\n // }\r\n\r\n return culture;\r\n }\r\n\r\n\r\n\r\n\r\n}\r\n"],"names":["getEncryptUserInfoService","baseClient","_classCallCheck","key","value","userInfo","res","get","factory","providedIn","GetExamAnswerSheetService","exam_id","params","getWithAuthParams","StartExamService","postWithAuthParams","GetProductbyIdService","id","GetProductItemBySubTopicsIdService","topicid","producttypeid","videoVersion","getWithAuth","GetTopicsByProductTypeService","lesson_id","ProductTypeId","HttpHeaders","throwError","catchError","BaseHttpClientEncryptService","http","userNotify","url","headers","pipe","err","status","alert","error_description","_this","showError","error","culture"],"sourceRoot":"webpack:///","x_google_ignoreList":[]}