Files
doneit-web/_platforms/browser/www/6490-es2015.ea757c4252375adae6e9.js
T

1 line
2.6 KiB
JavaScript
Raw Normal View History

2021-08-18 18:58:02 +01:00
(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[6490],{86704:function(t,e,s){"use strict";s.d(e,{H:function(){return h}});var i=s(91841),r=s(92340),n=s(40205),a=s(37716),o=s(37556);let h=(()=>{class t{constructor(t,e){this.http=t,this.authheader={},this.loggeduser=e.ValidatedUser,this.headers=new i.WM,this.headers=this.headers.set("Authorization",this.loggeduser.BasicAuthKey)}GetPublicationFolderList(){return this.http.get(r.N.apiURL+"presidentialActions",{headers:this.headers})}GetPresidentialAction(t){return this.http.get(r.N.apiURL+"presidentialActions/"+t,{headers:this.headers})}UpdatePresidentialAction(t){return this.http.put(r.N.apiURL+"presidentialActions",t,{headers:this.headers})}CreatePublicationFolder(t){return this.http.post(r.N.apiURL+"presidentialActions",t,{headers:this.headers})}UpdatePublicationFolder(t){return this.http.put(r.N.apiURL+"presidentialActions",t,{headers:this.headers}).toPromise().then(t=>{console.log(t)})}DeletePresidentialAction(t){return this.http.delete(r.N.apiURL+"presidentialActions/"+t,{headers:this.headers})}GetPublications(t){const e=r.N.apiURL+"presidentialActions/"+t+"/posts";let s=new i.LE;return s=s.set("folderId",t),this.http.get(`${e}`,{headers:this.headers,params:s})}GetPublicationById(t){const e=r.N.apiURL+"presidentialActions/posts/"+t;return new i.LE,this.http.get(`${e}`,{headers:this.headers})}CreatePublication(t,e){const s=r.N.apiURL+"presidentialActions/"+t+"/posts";let n=new i.LE;return n=n.set("folderId",t),this.http.post(`${s}`,e,{headers:this.headers})}UpdatePublication(t,e){const s=r.N.apiURL+"presidentialActions/"+t+"/posts";let n=new i.LE;return n=n.set("folderId",t),this.http.put(`${s}`,e,{headers:this.headers})}DeletePublication(t,e){const s=r.N.apiURL+"presidentialActions/"+t+"/posts/"+e;let n=new i.LE;return n=n.set("folderId",t),n=n.set("id",e),this.http.delete(`${s}`,{headers:this.headers})}handleError(t){return(0,n._)(t||"Server Error")}}return t.\u0275fac=function(e){return new(e||t)(a.LFG(i.eN),a.LFG(o.e))},t.\u0275prov=a.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},8451:function(t,e,s){"use strict";s.r(e),s.d(e,{ActionsOptionsPageModule:function(){return c}});var i=s(38583),r=s(3679),n=s(35957),a=s(39895),o=s(76451),h=s(37716);const d=[{path:"",component:o.$}];let p=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=h.oAB({type:t}),t.\u0275inj=h.cJS({imports:[[a.Bz.forChild(d)],a.Bz]}),t})(),c=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=h.oAB({type:t}),t.\u0275inj=h.cJS({imports:[[i.ez,r.u5,n.Pc,p]]}),t})()}}]);