import{c as m}from"./chunk-7TPOLMSO.js";import{B as s,Fh as c,Y as p,aa as a,dd as n,hd as E,qf as h}from"./chunk-R4Z6ZI3L.js";import{i as o}from"./chunk-P6NJDXIL.js";var t=class t{authHttp=a(E);restExtractor=a(c);goLive(e){return this.authHttp.post(t.BASE_VIDEO_LIVE_URL,e).pipe(s(r=>this.restExtractor.handleError(r)))}getVideoLive(e){return this.authHttp.get(t.BASE_VIDEO_LIVE_URL+e).pipe(s(r=>this.restExtractor.handleError(r)))}listSessions(e){let r=new n().set("sort","-startDate");return this.authHttp.get(t.BASE_VIDEO_LIVE_URL+e+"/sessions",{params:r}).pipe(s(i=>this.restExtractor.handleError(i)))}findLiveSessionFromVOD(e){return this.authHttp.get(m.BASE_VIDEO_URL+"/"+e+"/live-session").pipe(s(r=>this.restExtractor.handleError(r)))}updateLive(e,r){return this.authHttp.put(t.BASE_VIDEO_LIVE_URL+e,r).pipe(s(i=>this.restExtractor.handleError(i)))}};o(t,"BASE_VIDEO_LIVE_URL",h.apiUrl+"/api/v1/videos/live/"),o(t,"\u0275fac",function(r){return new(r||t)}),o(t,"\u0275prov",p({token:t,factory:t.\u0275fac}));var u=t;export{u as a};
/**i18n:138e9aba5923606215625ab5641fbdc103d8a34cfe13ae910386f40f27aea675*/
//# sourceMappingURL=chunk-XBI4NP5I.js.map
