{"version":3,"sources":["webpack:///./src/app/common/NGXSelectDropdownConfig.ts","webpack:///./src/app/common/languages.ts","webpack:///./src/app/services/assignments/assignments.service.ts","webpack:///./src/app/services/coaches/coaches.service.ts","webpack:///./src/app/services/users/users.service.ts","webpack:///./src/app/services/videoChat/chat.service.ts"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAA;AAAO,IAAI,uBAAuB,GAAG;IACjC,yGAAyG;IACzG,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,OAAO;IACf,WAAW,EAAE,SAAS;IACtB,gBAAgB,EAAE,cAAQ,CAAC;IAC3B,OAAO,EAAE,EAAE;IACX,QAAQ,EAAE,MAAM;IAChB,cAAc,EAAE,mBAAmB;IACnC,iBAAiB,EAAE,QAAQ;IAC3B,WAAW,EAAE,MAAM;CACpB;;;;;;;;;;;;;ACXH;AAAA;AAAO,IAAI,SAAS,GAAG;IACrB,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE;IACjE,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE;IAC7D,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE;IAC/D,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE;IAC9D,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE;IAC9D,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE;IAChE,EAAE,EAAE,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,CAAC,KAAK,CAAC;wBACnC,IAAI,CAAC,UAAU,GAAG,IAAI,4DAAM,CAAC,KAAK,CAAC,CAAC;;;qBACrC,CAAC,CAAC;;;;KACJ;IAlCU,WAAW;QAHvB,gEAAU,CAAC;YACV,UAAU,EAAE,MAAM;SACnB,CAAC;+EAOkB,sDAAM;YACR,+DAAU,CAAC,oCAAoC;;OAPpD,WAAW,CAuCrB;IAAD,kBAAC;CAAA;AAvCqB","file":"common.bf0a838a66d2e61c46a4.js","sourcesContent":["export let NGXSelectDropdownConfig = {\r\n // displayKey: \"description\", //if objects array passed which key to be displayed defaults to description\r\n search: true,//true/false for the search functionlity defaults to false,\r\n height: '300px', //height of the list so that if there are more no of items it can show a scroll defaults to auto. With auto height scroll will never appear\r\n placeholder: 'Select ', // text to be displayed when no item is selected defaults to Select,\r\n customComparator: () => { }, // a custom function using which user wants to sort the items. default is undefined and Array.sort() will be used in that case,\r\n limitTo: 30, // a number thats limits the no of options displayed in the UI similar to angular's limitTo pipe\r\n moreText: 'more', // text to be displayed whenmore than one items are selected like Option 1 + 5 more\r\n noResultsFound: 'No results found!', // text to be displayed when no items are found while searching\r\n searchPlaceholder: 'Search', // label thats displayed in search input,\r\n searchOnKey: 'name', // key on which search should be performed this will be selective search. if undefined this will be extensive search on all keys\r\n }","export let Languages = [\r\n { id: 1, name: \"English\", \"iso_639-1\": \"en\", name_ar: \"انجليزي\" },\r\n { id: 2, name: \"Arabic\", \"iso_639-1\": \"ar\", name_ar: \"عربي\" },\r\n { id: 3, name: \"German\", \"iso_639-1\": \"de\", name_ar: \"ألماني\" },\r\n { id: 4, name: \"French\", \"iso_639-1\": \"fr\", name_ar: \"فرنسي\" },\r\n { id: 5, name: \"Turkish\", \"iso_639-1\": \"tr\", name_ar: \"تركي\" },\r\n { id: 6, name: \"Spanish\", \"iso_639-1\": \"es\", name_ar: \"إسباني\" },\r\n { id: 7, name: \"Russian\", \"iso_639-1\": \"ru\", name_ar: \"روسي\" },\r\n { id: 8, name: \"Italian\", \"iso_639-1\": \"it\", name_ar: \"إيطالي\" },\r\n { id: 9, name: \"Persian\", \"iso_639-1\": \"fa\", name_ar: \"فارسي\" },\r\n { id: 10, name: \"Hindi\", \"iso_639-1\": \"hi\", name_ar: \"هندي\" },\r\n];\r\n","import { Injectable } from \"@angular/core\";\r\nimport { environment } from \"src/environments/environment\";\r\nimport { HttpClient } from \"@angular/common/http\";\r\n\r\n@Injectable({\r\n providedIn: \"root\"\r\n})\r\nexport class AssignmentsService {\r\n constructor(private http: HttpClient) {}\r\n\r\n public GetAssignments(bookingId) {\r\n let targetUrl = `${environment.api_base}/private/assignments/get_assignments?booking_id=${bookingId}`;\r\n return this.http.get(targetUrl);\r\n }\r\n\r\n public Add(data: FormData) {\r\n let targetUrl = `${environment.api_base}/private/assignments/add`;\r\n return this.http.post(targetUrl, data);\r\n }\r\n\r\n public updateAssignmentStatus(id, status) {\r\n let targetUrl = `${environment.api_base}/private/assignments/change_status?assignment_id=${id}&status=${status}`;\r\n return this.http.get(targetUrl);\r\n }\r\n\r\n public getAppointmentById(id) {\r\n let targetUrl = `${environment.api_base}Appointment/${id}`;\r\n return this.http.get(targetUrl);\r\n }\r\n\r\n public getCoachAppointmentById(id) {\r\n let targetUrl = `${environment.api_base}Coach/Appointment/${id}`;\r\n return this.http.get(targetUrl);\r\n }\r\n\r\n getSharedAutoLookup = (id) => { \r\n let targetUrl = `${environment.api_base}Shared/AutoLookup?type=${id}`;\r\n return this.http.get(targetUrl);\r\n }\r\n \r\n}\r\n","import { Injectable } from \"@angular/core\";\r\nimport { CoachSort, CoachPrice } from \"src/app/common/enums\";\r\nimport { Pagenation } from \"src/app/common/pagenation\";\r\nimport { environment } from \"src/environments/environment\";\r\nimport { HttpClient } from \"@angular/common/http\";\r\nimport { SessionService } from \"../global_services/session.service\";\r\n\r\n@Injectable({\r\n providedIn: \"root\"\r\n})\r\nexport class CoachesService {\r\n constructor(\r\n private http: HttpClient,\r\n private sessionService: SessionService\r\n ) { }\r\n\r\n public GetCourseAllIncluded(id: number) {\r\n let targetUrl = `${environment.api_base}/public/courses/get?id=${id}`;\r\n return this.http.get(targetUrl);\r\n }\r\n\r\n public GetCoaches(\r\n searchTerm: string = null,\r\n tags: number[] = null,\r\n CoachPrice: CoachPrice = null,\r\n yearsOfExperience: number = null,\r\n rate: number = null,\r\n pagenation: Pagenation = null\r\n ) {\r\n // build query\r\n let query = \"\";\r\n if (searchTerm) {\r\n query += `&search=${searchTerm}`;\r\n }\r\n if (CoachPrice) {\r\n query += `&price=${CoachPrice}`;\r\n }\r\n\r\n if (yearsOfExperience) {\r\n query += `&years_of_experience=${yearsOfExperience}`;\r\n }\r\n\r\n if (rate) {\r\n query += `&rate=${rate}`;\r\n }\r\n\r\n if (tags && tags.length > 0) {\r\n query += `&tags=${tags.join(\",\")}`;\r\n }\r\n\r\n if (pagenation) {\r\n if (\r\n typeof pagenation.rows !== \"undefined\" &&\r\n typeof pagenation.page !== \"undefined\"\r\n ) {\r\n query += `&page=${pagenation.page}&page_size=${pagenation.rows}`;\r\n }\r\n }\r\n\r\n let targetUrl = `${environment.api_base}/public/coaches/all${query}`;\r\n return this.http.get(targetUrl);\r\n }\r\n\r\n public GetCoachesScrollPaging(\r\n searchTerm: string = null,\r\n certified: boolean = null,\r\n SearchTermForSpich: string = null,\r\n tags: number[] = null,\r\n CoachPrice: CoachPrice = null,\r\n yearsOfExperience: number = null,\r\n rate: number = null,\r\n pageSize = null,\r\n pageNumber = null,\r\n services = null\r\n ) { \r\n\r\n let req;\r\n\r\n if (services) {\r\n req = {\r\n searchText: searchTerm,\r\n speciality: SearchTermForSpich,\r\n rate: rate,\r\n priceRange: CoachPrice, \r\n pageSize: pageNumber,\r\n pageNumber: pageSize,\r\n servicesIds: services\r\n }\r\n }else {\r\n req = {\r\n searchText: searchTerm,\r\n speciality: SearchTermForSpich,\r\n rate: rate, \r\n priceRange: CoachPrice,\r\n pageSize: pageNumber,\r\n pageNumber: pageSize,\r\n }\r\n }\r\n\r\n if (certified) { \r\n req.certified = certified\r\n }\r\n\r\n let targetUrl = environment.baseUrl + \"CoachRequest/search\";\r\n\r\n return this.http.post(targetUrl, req);\r\n }\r\n\r\n\r\n public GetPopularCoaches() {\r\n let targetUrl = environment.baseUrl + \"CoachRequest/search\";\r\n return this.http.post(targetUrl, { pageSize: 3, pageNumber: 1 });\r\n }\r\n\r\n public GetCalendar() {\r\n let targetUrl = `${environment.api_base}/private/calendar/get_calendar`;\r\n return this.http.get(targetUrl);\r\n }\r\n\r\n\r\n public getLanguage() {\r\n return this.http.post(environment.baseUrl + \"Languages/Search\", { pageSize: 999, pageNumber: 1 }).toPromise();\r\n }\r\n public GetAuthenticatedCoach() {\r\n let targetUrl = `${environment.baseUrl}CoachRequest/GetActiveRequest`;\r\n return this.http.get(targetUrl);\r\n }\r\n\r\n public GetCoach(id) {\r\n // let targetUrl = `${environment.api_base}/public/coaches/get?id=${id}`;\r\n let targetUrl = `${environment.baseUrl}CoachRequest/${id}`;\r\n return this.http.get(targetUrl);\r\n }\r\n\r\n public GetCoachLight(id) {\r\n let targetUrl = `${environment.api_base}/public/coaches/get_light?id=${id}`;\r\n // let targetUrl = `${environment.api_base}CoachRequest/${id}`;\r\n return this.http.get(targetUrl);\r\n }\r\n\r\n public UpdateCoach(newCoachFormData) {\r\n let targetUrl = `${environment.api_base}/private/coaches/update`;\r\n return this.http.post(targetUrl, newCoachFormData);\r\n }\r\n\r\n public GetInbox() {\r\n let targetUrl = `${environment.api_base}/private/coaches/load_messages`;\r\n return this.http.get(targetUrl);\r\n }\r\n \r\n GetCoachingService = () => this.http.get(\"https://www.coachyou.io/api/api/CoachingService\"); \r\n\r\n\r\n public GetPaymentHistory() {\r\n let targetUrl = `${environment.api_base}/private/payment/get_transactions`;\r\n return this.http.get(targetUrl);\r\n }\r\n\r\n\r\n customRequest = (req: FormData) => this.http.post(environment.baseUrl + \"AppointmentManagement/create\", req);\r\n\r\n getIntersetAreas = () => this.http.get(environment.baseUrl + \"InterestArea?CoachingServiceId=1\");\r\n\r\n\r\n\r\n \r\n \r\n \r\n}\r\n","import { Injectable } from \"@angular/core\";\r\nimport { HttpClient } from \"@angular/common/http\";\r\nimport { environment } from \"src/environments/environment\";\r\n\r\n@Injectable({\r\n providedIn: \"root\"\r\n})\r\nexport class UsersService {\r\n constructor(private http: HttpClient) {}\r\n\r\n public GetInfo() {\r\n let targetUrl = `${environment.api_base}/private/users/get_info`;\r\n return this.http.get(targetUrl);\r\n }\r\n\r\n public GetUserInfo(userId) {\r\n let targetUrl = `${environment.api_base}/private/users/get_info?id=${userId}`;\r\n return this.http.get(targetUrl);\r\n }\r\n\r\n public GetActiveCoach() {\r\n let targetUrl = `${environment.api_base}/private/users/get_active_coach`;\r\n return this.http.get(targetUrl);\r\n }\r\n\r\n public GetCoachRating(coach_id) {\r\n let targetUrl = `${environment.api_base}/private/coaches/get_coach_rating?coach_id=${coach_id}`;\r\n return this.http.get(targetUrl);\r\n }\r\n\r\n public SubmitRating(data) {\r\n let targetUrl = `${environment.api_base}/private/coaches/submit_coach_rating`;\r\n return this.http.post(targetUrl, data);\r\n }\r\n\r\n public SubmitReport(data) {\r\n let targetUrl = `${environment.api_base}/private/users/submit_report`;\r\n return this.http.post(targetUrl, data);\r\n }\r\n\r\n public UpdateUser(data) {\r\n let targetUrl = `${environment.api_base}/private/users/update`;\r\n return this.http.post(targetUrl, data);\r\n }\r\n}\r\n","import { HttpClient } from \"@angular/common/http\";\r\nimport { EventEmitter, Injectable } from \"@angular/core\";\r\nimport { Client } from \"@twilio/conversations\"; \r\nimport { Util } from \"./util\";\r\nimport { Router } from \"@angular/router\";\r\nimport { environment } from \"src/environments/environment\";\r\n\r\n@Injectable({\r\n providedIn: \"root\",\r\n})\r\nexport class ChatService {\r\n public chatClient: Client; \r\n public chatConnectedEmitter: EventEmitter = new EventEmitter();\r\n public chatDisconnectedEmitter: EventEmitter = new EventEmitter();\r\n\r\n constructor(\r\n private router: Router,\r\n private http: HttpClient // private authService: AuthService,\r\n ) {\r\n // this.connectTest(\"2482\", \"c5834937-7cb7-40aa-46a4-08d9b8bd406d\");\r\n }\r\n\r\n async connect() {\r\n return \r\n }\r\n\r\n getPublicChannels() {\r\n \r\n }\r\n\r\n getChannel(sid: string) { \r\n }\r\n\r\n createChannel(friendlyName: string, isPrivate: boolean = false) { \r\n }\r\n\r\n\r\n async connectTest(appontmentId, toId) { \r\n // &ToId=${toId}\r\n this.http.post(`${environment.baseUrl}TwilioConversations/chat/CreateConversation?AppointmentId=${appontmentId}`, null).subscribe(async (res: any) => {\r\n if (!res.data) return \r\n let token: string = res.data.token;\r\n this.chatClient = new Client(token); \r\n }); \r\n }\r\n\r\n sendNotification = (ids) => this.http.post(`${environment.baseUrl}Notification/SendNotification`, ids)\r\n\r\n\r\n }\r\n"],"sourceRoot":""}