{"ast":null,"code":"import { HttpClient, HttpHeaders } from '@angular/common/http';\nimport { environment } from 'src/environments/environment';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"@angular/common/http\";\nexport let TrackingService = /*#__PURE__*/(() => {\n  class TrackingService {\n    constructor(http) {\n      this.http = http;\n      this._apiUrl = environment.apiUrl;\n      this._getResourceEndPoint = 'awb';\n    }\n\n    GetByAwbNumber(awbnumber, accesstoken) {\n      const url = `${this._apiUrl}${this._getResourceEndPoint}/tracking?awbnumber=${awbnumber}`;\n      const headers = new HttpHeaders({\n        Authorization: `Bearer ${accesstoken}`\n      });\n      return this.http.get(url, {\n        headers\n      });\n    }\n\n    GetProgressByAwbNumber(awbnumber, accesstoken) {\n      const url = `${this._apiUrl}${this._getResourceEndPoint}/tracking/progress?awbnumber=${awbnumber}`;\n      const headers = new HttpHeaders({\n        Authorization: `Bearer ${accesstoken}`\n      });\n      return this.http.get(url, {\n        headers\n      });\n    }\n\n  }\n\n  TrackingService.ɵfac = function TrackingService_Factory(t) {\n    return new (t || TrackingService)(i0.ɵɵinject(HttpClient));\n  };\n\n  TrackingService.ɵprov = /*@__PURE__*/i0.ɵɵdefineInjectable({\n    token: TrackingService,\n    factory: TrackingService.ɵfac,\n    providedIn: 'root'\n  });\n  return TrackingService;\n})();","map":null,"metadata":{},"sourceType":"module"}