{ "version": 3, "sources": ["src/app/providers/blog-service/blog.service.ts"], "sourcesContent": ["import { inject, Injectable } from \"@angular/core\";\nimport { HttpClient, HttpHeaders } from \"@angular/common/http\";\nimport { Observable } from \"rxjs\";\nimport { ConstantsService } from \"../constants-service/constants.service\";\nimport { AuthenticationService } from \"../authentication-service/authentication.service\";\n\n@Injectable()\nexport class BlogService {\n http = inject(HttpClient);\n private constantsService = inject(ConstantsService);\n private authenticationService = inject(AuthenticationService);\n\n sendLatestBlogPost(region: string, language: string, test: boolean): Observable {\n let url;\n if (test) {\n url = this.constantsService.getServerUrl() + \"blogs/publish/latest/test?®ion=\" + region + \"&lang=\" + language;\n } else {\n url = this.constantsService.getServerUrl() + \"blogs/publish/latest?®ion=\" + region + \"&lang=\" + language;\n }\n const body = JSON.stringify(\"\");\n return this.http.post(url, body);\n }\n\n sendLatestBlogPostEmail(region: string, language: string, test: boolean): Observable {\n let url;\n if (test) {\n url =\n this.constantsService.getServerUrl() +\n \"blogs/publish/latest/email/test?®ion=\" +\n region +\n \"&lang=\" +\n language;\n } else {\n url = this.constantsService.getServerUrl() + \"blogs/publish/latest/email?®ion=\" + region + \"&lang=\" + language;\n }\n const body = JSON.stringify(\"\");\n return this.http.post(url, body);\n }\n\n sendLatestBlogPostTelegram(region: string, language: string, test: boolean): Observable {\n let url;\n if (test) {\n url =\n this.constantsService.getServerUrl() +\n \"blogs/publish/latest/telegram/test?®ion=\" +\n region +\n \"&lang=\" +\n language;\n } else {\n url =\n this.constantsService.getServerUrl() + \"blogs/publish/latest/telegram?®ion=\" + region + \"&lang=\" + language;\n }\n const body = JSON.stringify(\"\");\n return this.http.post(url, body);\n }\n\n sendLatestBlogPostPush(region: string, language: string, test: boolean): Observable {\n let url;\n if (test) {\n url =\n this.constantsService.getServerUrl() + \"blogs/publish/latest/push/test?®ion=\" + region + \"&lang=\" + language;\n } else {\n url = this.constantsService.getServerUrl() + \"blogs/publish/latest/push?®ion=\" + region + \"&lang=\" + language;\n }\n const body = J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K,qCAAuCJ,EAAS,SAAWC,EAE1G,IAAMI,EAAOC,KAAKC,UAAU,EAAE,EAC9B,OAAO,KAAKf,KAAKgB,KAAeL,EAAKE,CAAI,CAC3C,iDA3DWf,EAAW,CAAA,iCAAXA,EAAWsB,QAAXtB,EAAWuB,SAAA,CAAA,CAAA,SAAXvB,CAAW,GAAA", "names": ["BlogService", "constructor", "http", "inject", "HttpClient", "constantsService", "ConstantsService", "authenticationService", "AuthenticationService", "sendLatestBlogPost", "region", "language", "test", "url", "getServerUrl", "body", "JSON", "stringify", "post", "sendLatestBlogPostEmail", "sendLatestBlogPostTelegram", "sendLatestBlogPostPush", "factory", "\u0275fac"] }