import{b as m}from"./chunk-44IJDNPI.js";import{D as i,G as c,e as o}from"./chunk-AZDFANJY.js";var x=(()=>{class a{constructor(r){this.http=r}getBoardList(){return o(this,null,function*(){return yield this.http.GET({path:"boards"})})}getBoardById(j){return o(this,arguments,function*(r,t="",p=[],e,s,d=0,u=10,n=0){let $=`userIds=${p.map(Y=>`${Y}`).join(",")}`,I=e?`&startDate=${e.format("YYYY-MM-DD")}`:"",f=s?`&endDate=${s.format("YYYY-MM-DD")}`:"",h=t?`&searchText=${encodeURIComponent(t)}`:"",l=`&offset=${d}`,y=`&count=${u}`,P=n?`&columnId=${n}`:"";return yield this.http.GET({path:`boards/${r}?${$}${I}${f}${h}${l}${y}${P}`})})}getEmployees(){return o(this,null,function*(){return yield this.http.GET({path:"employees"})})}updateItemPosition(r,t){return o(this,null,function*(){return yield this.http.PUT({path:`boards/${r}/items/${t.item.id}`,body:{currentColumnId:t.currentColumnId,currentIndex:t.currentIndex,previousColumnId:t.previousColumnId,previousIndex:t.previousIndex}})})}getBoardConfig(r){return o(this,null,function*(){return yield this.http.GET({path:`boards/${r}/config`})})}static{this.\u0275fac=function(t){return new(t||a)(c(m))}}static{this.\u0275prov=i({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();export{x as a};
