import{c as m}from"./chunk-NBZO6GJA.js";import{Bf as h,C as s,Z as p,ba as a,ih as c,nd as n,qd as E}from"./chunk-L6W7X4TF.js";import{i as o}from"./chunk-WH5WJFMZ.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:ae7e6707fc51a9e1f6f015929aece8afe43a92a094f09f07f0463afe6c89573f*/
//# sourceMappingURL=chunk-YIBXLWLX.js.map
