import{c as m}from"./chunk-JITMAVP4.js";import{B as s,Eh as c,Y as p,aa as a,dd as n,hd as E,pf as h}from"./chunk-W6R7I2TH.js";import{i as o}from"./chunk-PTJGHD3V.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:90f1dd82a779b57eddc91ef20913c88eecaa9632bba8ac04ad50f47ae2b82df7*/
//# sourceMappingURL=chunk-ZIQRAESY.js.map
