mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
1 line
2.6 KiB
JavaScript
1 line
2.6 KiB
JavaScript
(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[910],{82316:function(t,e,s){"use strict";s.d(e,{E:function(){return i}});class i{}},45470:function(t,e,s){"use strict";s.d(e,{S:function(){return i}});class i{}},61957:function(t,e,s){"use strict";s.d(e,{T:function(){return a}});var i=s(64762),r=s(37716),n=s(35957);let a=(()=>{class t{constructor(t){this.photos=[],this.PHOTO_STORAGE="photos",this.platform=t}takePicture(){return(0,i.mG)(this,void 0,void 0,function*(){})}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(n.t4))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},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})()}}]); |