mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
1 line
20 KiB
JavaScript
1 line
20 KiB
JavaScript
!function(){function e(e,t){for(var a=0;a<t.length;a++){var r=t[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function t(t,a,r){return a&&e(t.prototype,a),r&&e(t,r),t}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[2783,5199],{18119:function(e,t,r){"use strict";r.d(t,{j:function(){return n}});var n=function e(){a(this,e)}},55199:function(e,r,n){"use strict";n.d(r,{V:function(){return C}});var s=n(64762),i=n(37716),o=n(35957),c=n(30407),l=n(38583);function d(e,t){1&e&&i._UZ(0,"ion-progress-bar",19)}function h(e,t){if(1&e){var a=i.EpF();i.TgZ(0,"ion-item",21),i.NdJ("click",function(){i.CHM(a);var e=i.oxw().$implicit;return i.oxw().selectContact(e)}),i.TgZ(1,"div",22),i._UZ(2,"ion-icon",23),i.qZA(),i.TgZ(3,"ion-label"),i.TgZ(4,"h3"),i._uU(5),i.qZA(),i.TgZ(6,"p"),i._uU(7),i.qZA(),i.qZA(),i.TgZ(8,"div"),i._UZ(9,"ion-icon",24),i.qZA(),i.qZA()}if(2&e){var r=i.oxw().$implicit;i.xp6(5),i.Oqu(r.Name),i.xp6(2),i.Oqu(r.EmailAddress)}}function u(e,t){if(1&e&&(i.TgZ(0,"div"),i.YNc(1,h,10,2,"ion-item",20),i.qZA()),2&e){var a=t.$implicit,r=i.oxw();i.xp6(1),i.Q6J("ngIf",r.filterSearchList(a))}}function f(e,t){1&e&&(i.TgZ(0,"div",28),i._uU(1," Destinat\xe1rio"),i.qZA())}function p(e,t){if(1&e){var a=i.EpF();i.TgZ(0,"ion-item",29),i.TgZ(1,"div",22),i._UZ(2,"ion-icon",23),i.qZA(),i.TgZ(3,"ion-label"),i.TgZ(4,"h3"),i._uU(5),i.qZA(),i.TgZ(6,"p"),i._uU(7),i.qZA(),i.qZA(),i.TgZ(8,"div",30),i.NdJ("click",function(){var e=i.CHM(a).$implicit;return i.oxw(2).remove(e)}),i._UZ(9,"ion-icon",31),i.qZA(),i.qZA()}if(2&e){var r=t.$implicit;i.xp6(5),i.Oqu(r.Name),i.xp6(2),i.Oqu(r.EmailAddress)}}function g(e,t){if(1&e&&(i.TgZ(0,"ion-list",25),i.YNc(1,f,2,0,"div",26),i.TgZ(2,"ion-item-sliding",8),i.YNc(3,p,10,2,"ion-item",27),i.qZA(),i.qZA()),2&e){var a=i.oxw();i.xp6(1),i.Q6J("ngIf",a.taskParticipants.length>=1||a.taskParticipantsCc.length>=1),i.xp6(2),i.Q6J("ngForOf",a.taskParticipants)}}function v(e,t){1&e&&(i.TgZ(0,"div",28),i._uU(1," Destinat\xe1rio"),i.qZA())}function m(e,t){if(1&e){var a=i.EpF();i.TgZ(0,"ion-item",29),i.TgZ(1,"div",22),i._UZ(2,"ion-icon",23),i.qZA(),i.TgZ(3,"ion-label"),i.TgZ(4,"h3"),i._uU(5),i.qZA(),i.TgZ(6,"p"),i._uU(7),i.qZA(),i.qZA(),i.TgZ(8,"div",30),i.NdJ("click",function(){var e=i.CHM(a).$implicit;return i.oxw(2).remove(e)}),i._UZ(9,"ion-icon",31),i.qZA(),i.qZA()}if(2&e){var r=t.$implicit;i.xp6(5),i.Oqu(r.Name),i.xp6(2),i.Oqu(r.EmailAddress)}}function P(e,t){if(1&e&&(i.TgZ(0,"ion-list",25),i.YNc(1,v,2,0,"div",26),i.TgZ(2,"ion-item-sliding",8),i.YNc(3,m,10,2,"ion-item",27),i.qZA(),i.qZA()),2&e){var a=i.oxw();i.xp6(1),i.Q6J("ngIf",a.taskParticipants.length>=1||a.taskParticipantsCc.length>=1),i.xp6(2),i.Q6J("ngForOf",a.taskParticipantsCc)}}var C=function(){var e=function(){function e(t,r,n,s){a(this,e),this.modalCtrl=t,this.contactsService=r,this.navParams=n,this.modalController=s,this.showLoader=!1,this.selectedContact=[],this.currentPath=window.location.pathname,this.taskParticipants=[],this.taskParticipantsCc=[],this.adding=this.navParams.get("adding"),this.taskParticipants=this.navParams.get("taskParticipants"),this.taskParticipantsCc=this.navParams.get("taskParticipantsCc")}return t(e,[{key:"ngOnInit",value:function(){this.fetchContacts(""),null!=this.taskParticipants&&null!=this.taskParticipants||(this.taskParticipants=[]),null!=this.taskParticipantsCc&&null!=this.taskParticipantsCc||(this.taskParticipantsCc=[])}},{key:"ngOnChanges",value:function(e){}},{key:"save",value:function(){this.modalController.dismiss({taskParticipants:this.taskParticipants,taskParticipantsCc:this.taskParticipantsCc})}},{key:"close",value:function(){this.modalController.dismiss(!1)}},{key:"onChange",value:function(e){this.fetchContacts(e.detail.value)}},{key:"filterSearchList",value:function(e){return null==this.taskParticipants.concat(this.taskParticipantsCc).find(function(t,a){if(t.Name.toLocaleLowerCase()==e.Name.toLocaleLowerCase()&&t.EmailAddress.toLocaleLowerCase()==e.EmailAddress.toLocaleLowerCase())return a=a,t})}},{key:"remove",value:function(e){"intervenient"==this.adding?this.taskParticipants=this.taskParticipants.filter(function(t,a){return t.Name.toLocaleLowerCase()!=e.Name.toLocaleLowerCase()&&t.EmailAddress.toLocaleLowerCase()!=e.EmailAddress.toLocaleLowerCase()&&t}):"CC"==this.adding&&(this.taskParticipantsCc=this.taskParticipantsCc.filter(function(t,a){return t.Name.toLocaleLowerCase()!=e.Name.toLocaleLowerCase()&&t.EmailAddress.toLocaleLowerCase()!=e.EmailAddress.toLocaleLowerCase()&&t}))}},{key:"selectContact",value:function(e){return(0,s.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:"intervenient"==this.adding?(e.IsRequired=!0,this.taskParticipants.push(e)):"CC"==this.adding&&(e.IsRequired=!1,this.taskParticipantsCc.push(e));case 1:case"end":return t.stop()}},t,this)}))}},{key:"fetchContacts",value:function(e){return(0,s.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){var a=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.showLoader=!0,this.contactsService.getContacts(e).subscribe(function(e){null!=a.eventPersons&&a.eventPersons.forEach(function(t){var a=e.findIndex(function(e){return e.EmailAddress.toLocaleLowerCase()==t.EmailAddress.toLocaleLowerCase()});e.splice(a,1)}),a.contacts=e,a.showLoader=!1});case 1:case"end":return t.stop()}},t,this)}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(i.Y36(o.IN),i.Y36(c.P),i.Y36(o.X1),i.Y36(o.IN))},e.\u0275cmp=i.Xpm({type:e,selectors:[["app-attendees"]],features:[i.TTD],decls:26,vars:4,consts:[[1,"ion-no-border","px-20"],[1,"px-10"],[1,"pa-0"],["placeholder","Insira email para adicionar destinat\xe1rio",1,"attendee-search-bar",3,"ionChange"],["type","indeterminate",4,"ngIf"],[1,"height-100","overflow-y-auto"],[1,"d-flex","flex-column","height-100"],["lines","none",1,"flex-grow-1","overflow-y-auto","height-100"],[1,"px-20"],[4,"ngFor","ngForOf"],["lines","none","class","flex-grow-1 overflow-y-auto height-100 pb-0",4,"ngIf"],[1,"ion-no-border"],[1,"d-flex"],["slot","start",1,"flex-grow-1"],["fill","clear","color","#061b52",1,"btn-cancel",3,"click"],["name","close","slot","start"],["slot","end",1,"flex-grow-1"],["fill","clear","color","#fff",1,"btn-ok",3,"click"],["name","checkmark","slot","start"],["type","indeterminate"],["class","cursor-pointer","lines","none",3,"click",4,"ngIf"],["lines","none",1,"cursor-pointer",3,"click"],[1,"pr-10"],["src","assets/images/icons-userprofile.svg",1,"font-35"],["src","assets/images/icons-add-25.svg",1,"font-35"],["lines","none",1,"flex-grow-1","overflow-y-auto","height-100","pb-0"],["class","px-20 font-15 pt-20","style","border-top:1px solid #ebebeb;font-weight: 500;",4,"ngIf"],["lines","none","class","d-flex",4,"ngFor","ngForOf"],[1,"px-20","font-15","pt-20",2,"border-top","1px solid #ebebeb","font-weight","500"],["lines","none",1,"d-flex"],[1,"cursor-pointer",3,"click"],["src","assets/images/icons-delete-25.svg",1,"font-35"]],template:function(e,t){1&e&&(i.TgZ(0,"ion-header",0),i.TgZ(1,"ion-toolbar",1),i.TgZ(2,"ion-title",2),i._uU(3,"Adicionar intervenientes"),i.qZA(),i.qZA(),i.TgZ(4,"ion-searchbar",3),i.NdJ("ionChange",function(e){return t.onChange(e)}),i.qZA(),i.YNc(5,d,1,0,"ion-progress-bar",4),i.qZA(),i.TgZ(6,"ion-content",5),i.TgZ(7,"ion-item-group",6),i.TgZ(8,"ion-list",7),i.TgZ(9,"ion-item-sliding",8),i.YNc(10,u,2,1,"div",9),i.qZA(),i.qZA(),i._UZ(11,"hr"),i.YNc(12,g,4,2,"ion-list",10),i.YNc(13,P,4,2,"ion-list",10),i.qZA(),i.qZA(),i.TgZ(14,"ion-footer",11),i.TgZ(15,"ion-toolbar",12),i.TgZ(16,"ion-buttons",13),i.TgZ(17,"ion-button",14),i.NdJ("click",function(){return t.close()}),i.TgZ(18,"ion-label"),i._uU(19,"Cancelar"),i.qZA(),i._UZ(20,"ion-icon",15),i.qZA(),i.qZA(),i.TgZ(21,"ion-buttons",16),i.TgZ(22,"ion-button",17),i.NdJ("click",function(){return t.save()}),i.TgZ(23,"ion-label"),i._uU(24,"Gravar"),i.qZA(),i._UZ(25,"ion-icon",18),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(5),i.Q6J("ngIf",t.showLoader),i.xp6(5),i.Q6J("ngForOf",t.contacts),i.xp6(2),i.Q6J("ngIf",(null==t.taskParticipants?null:t.taskParticipants.length)>=1&&"intervenient"==t.adding),i.xp6(1),i.Q6J("ngIf",(null==t.taskParticipantsCc?null:t.taskParticipantsCc.length)>=1&&"CC"==t.adding))},directives:[o.Gu,o.sr,o.wd,o.VI,o.j9,l.O5,o.W2,o.Ub,o.q_,o.td,l.sg,o.fr,o.Sm,o.YG,o.Q$,o.gu,o.X7,o.Ie],styles:["ion-item[_ngcontent-%COMP%]{border-bottom:1px solid #ccc}"]}),e}()},25970:function(e,r,n){"use strict";n.d(r,{c:function(){return c}});var s=n(64762),i=n(37716),o=n(35957),c=function(){var e=function(){function e(t,r){a(this,e),this.alertController=t,this.animationController=r}return t(e,[{key:"presentAlert",value:function(e){return(0,s.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){var a;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.alertController.create({cssClass:"my-custom-class",header:"Mensagem do sistema",message:e,buttons:["OK"]});case 2:return a=t.sent,t.next=5,a.present();case 5:case"end":return t.stop()}},t,this)}))}},{key:"presentErrorMessage",value:function(e){return(0,s.mG)(this,void 0,void 0,regeneratorRuntime.mark(function t(){var a;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.alertController.create({cssClass:"my-custom-class",header:"Mensagem de erro",message:e});case 2:return a=t.sent,t.next=5,a.present();case 5:setTimeout(function(){a.dismiss()},2500);case 6:case"end":return t.stop()}},t,this)}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(i.LFG(o.Br),i.LFG(o.vB))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e}()},20985:function(e,r,n){"use strict";n.d(r,{o:function(){return l}});var s=n(91841),i=n(92340),o=n(37716),c=n(37556),l=function(){var e=function(){function e(t,r){a(this,e),this.http=t,this.loggeduser=r.ValidatedUser,this.headers=new s.WM,this.headers=this.headers.set("Authorization",this.loggeduser.BasicAuthKey)}return t(e,[{key:"getAttachmentsBySerial",value:function(e){var t=i.N.apiURL+"attachments/GetAttachments",a=new s.LE;return a=a.set("SerialNumber",e),this.http.get("".concat(t),{headers:this.headers,params:a})}},{key:"getAttachments",value:function(e,t){var a=i.N.apiURL+"attachments/GetSourceName",r=new s.LE;return r=r.set("Source",e.toString()),this.http.get("".concat(a),{headers:this.headers,params:r})}},{key:"getAttachmentsById",value:function(e){var t=i.N.apiURL+"attachments/GetAttachmentsByEventId",a=new s.LE;return a=a.set("ParentId",e),this.http.get("".concat(t),{headers:this.headers,params:a})}},{key:"setEventAttachmentById",value:function(e){return this.http.post(i.N.apiURL+"Attachments/Create",e,{headers:this.headers})}},{key:"deleteEventAttachmentById",value:function(e){var t=i.N.apiURL+"Attachments/Delete?attachmentId=".concat(e),a=new s.LE;return a=a.set("attachmentId",e),this.http.delete("".concat(t),{headers:this.headers,params:a})}},{key:"AddAttachment",value:function(e){return this.http.post(i.N.apiURL+"Attachments/CreateAttachmentProcess",e,{headers:this.headers})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.LFG(s.eN),o.LFG(c.e))},e.\u0275prov=o.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e}()},30407:function(e,r,n){"use strict";n.d(r,{P:function(){return l}});var s=n(91841),i=n(92340),o=n(37716),c=n(37556),l=function(){var e=function(){function e(t,r){a(this,e),this.http=t,this.authheader={},this.loggeduser=r.ValidatedUser,this.headers=new s.WM,this.headers=this.headers.set("Authorization",this.loggeduser.BasicAuthKey)}return t(e,[{key:"getContacts",value:function(e){var t=i.N.apiURL+"contacts/get",a=new s.LE;return a=(a=a.set("namefilter",e)).set("domain",i.N.domain),this.http.get("".concat(t),{headers:this.headers,params:a})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(o.LFG(s.eN),o.LFG(c.e))},e.\u0275prov=o.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e}()},80106:function(e,r,n){"use strict";n.d(r,{n:function(){return d}});var s=n(64762),i=n(91841),o=n(92340),c=n(37716),l=n(37556),d=function(){var e=function(){function e(t,r){var n=this;a(this,e),this.http=t,this.authheader={},this.loggeduser=r.ValidatedUser,this.headersMdOficial=new i.WM,this.headersMdPessoal=new i.WM,this.headersPrOficial=new i.WM,this.headersPrPessoal=new i.WM,this.headersSharedOficial=new i.WM,this.headersSharedPessoal=new i.WM,this.loggeduser&&("MDGPR"==this.loggeduser.Profile?(this.loggeduser.OwnerCalendars.forEach(function(e){"Oficial"==e.CalendarName?(n.headersMdOficial=n.headersMdOficial.set("Authorization",n.loggeduser.BasicAuthKey),n.headersMdOficial=n.headersMdOficial.set("CalendarId",e.CalendarId),n.headersMdOficial=n.headersMdOficial.set("CalendarRoleId",e.CalendarRoleId)):"Pessoal"==e.CalendarName&&(n.headersMdPessoal=n.headersMdPessoal.set("Authorization",n.loggeduser.BasicAuthKey),n.headersMdPessoal=n.headersMdPessoal.set("CalendarId",e.CalendarId),n.headersMdPessoal=n.headersMdPessoal.set("CalendarRoleId",e.CalendarRoleId))}),this.loggeduser.SharedCalendars.forEach(function(e){"Oficial"==e.CalendarName?(n.headersSharedOficial=n.headersSharedOficial.set("Authorization",n.loggeduser.BasicAuthKey),n.headersSharedOficial=n.headersSharedOficial.set("CalendarId",e.CalendarId),n.headersSharedOficial=n.headersSharedOficial.set("CalendarRoleId",e.CalendarRoleId)):"Pessoal"==e.CalendarName&&(n.headersSharedPessoal=n.headersSharedPessoal.set("Authorization",n.loggeduser.BasicAuthKey),n.headersSharedPessoal=n.headersSharedPessoal.set("CalendarId",e.CalendarId),n.headersSharedPessoal=n.headersSharedPessoal.set("CalendarRoleId",e.CalendarRoleId))})):"PR"==this.loggeduser.Profile&&this.loggeduser.OwnerCalendars.forEach(function(e){"Oficial"==e.CalendarName?(n.headersPrOficial=n.headersPrOficial.set("Authorization",n.loggeduser.BasicAuthKey),n.headersPrOficial=n.headersPrOficial.set("CalendarId",e.CalendarId),n.headersPrOficial=n.headersPrOficial.set("CalendarRoleId",e.CalendarRoleId)):"Pessoal"==e.CalendarName&&(n.headersPrPessoal=n.headersPrPessoal.set("Authorization",n.loggeduser.BasicAuthKey),n.headersPrPessoal=n.headersPrPessoal.set("CalendarId",e.CalendarId),n.headersPrPessoal=n.headersPrPessoal.set("CalendarRoleId",e.CalendarRoleId))}),this.headers=new i.WM,this.headers=this.headers.set("Authorization",this.loggeduser.BasicAuthKey))}return t(e,[{key:"getAllPrOficialEvents",value:function(e,t){var a=o.N.apiURL+"calendar/pr";a=a.replace("/V4/","/V5/");var r=new i.LE;return r=(r=r.set("Start",e)).set("End",t),this.http.get("".concat(a),{headers:this.headersPrOficial,params:r})}},{key:"getAllPrPessoalEvents",value:function(e,t){var a=o.N.apiURL+"calendar/pr";a=a.replace("/V4/","/V5/");var r=new i.LE;return r=(r=r.set("Start",e)).set("End",t),this.http.get("".concat(a),{headers:this.headersPrPessoal,params:r})}},{key:"getAllPrEvents",value:function(e,t){return(0,s.mG)(this,void 0,void 0,regeneratorRuntime.mark(function a(){var r,n,s;return regeneratorRuntime.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,this.getAllPrOficialEvents(e,t).toPromise();case 2:return r=a.sent,a.next=5,this.getAllPrPessoalEvents(e,t).toPromise();case 5:return n=a.sent,s=r.concat(n),a.abrupt("return",new Promise(function(e){return e(s)}));case 8:case"end":return a.stop()}},a,this)}))}},{key:"getAllMdOficialEvents",value:function(e,t){var a=o.N.apiURL+"calendar/md";a=a.replace("/V4/","/V5/");var r=new i.LE;return r=(r=r.set("Start",e)).set("End",t),this.http.get("".concat(a),{headers:this.headersMdOficial,params:r})}},{key:"getAllMdPessoalEvents",value:function(e,t){var a=o.N.apiURL+"calendar/md";a=a.replace("/V4/","/V5/");var r=new i.LE;return r=(r=r.set("Start",e)).set("End",t),this.http.get("".concat(a),{headers:this.headersMdPessoal,params:r})}},{key:"getAllMdEvents",value:function(e,t){return(0,s.mG)(this,void 0,void 0,regeneratorRuntime.mark(function a(){var r,n,s;return regeneratorRuntime.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,this.getAllMdOficialEvents(e,t).toPromise();case 2:return r=a.sent,a.next=5,this.getAllMdPessoalEvents(e,t).toPromise();case 5:return n=a.sent,s=r.concat(n),a.abrupt("return",new Promise(function(e){return e(s)}));case 8:case"end":return a.stop()}},a,this)}))}},{key:"getAllSharedEvents",value:function(e,t){return(0,s.mG)(this,void 0,void 0,regeneratorRuntime.mark(function a(){var r,n,s;return regeneratorRuntime.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,this.getAllSharedOficialEvents(e,t).toPromise();case 2:return r=a.sent,a.next=5,this.getAllSharedPessoalEvents(e,t).toPromise();case 5:return n=a.sent,s=r.concat(n),a.abrupt("return",new Promise(function(e){return e(s)}));case 8:case"end":return a.stop()}},a,this)}))}},{key:"getAllSharedOficialEvents",value:function(e,t){var a=o.N.apiURL+"calendar/pr";a=a.replace("/V4/","/V5/");var r=new i.LE;r=(r=r.set("Start",e)).set("End",t);var n={headers:this.headersSharedOficial,params:r};return console.log(n),this.http.get("".concat(a),n)}},{key:"getAllSharedPessoalEvents",value:function(e,t){var a=o.N.apiURL+"calendar/pr";a=a.replace("/V4/","/V5/");var r=new i.LE;return r=(r=r.set("Start",e)).set("End",t),this.http.get("".concat(a),{headers:this.headersSharedPessoal,params:r})}},{key:"getRecurrenceTypes",value:function(){return this.http.get(o.N.apiURL+"Calendar/RecurrenceTypes",{headers:this.headers})}},{key:"getEvents",value:function(e,t,a){var r=o.N.apiURL+"calendar/GetEvents",n=new i.LE;return n=(n=(n=n.set("CalendarName",e)).set("StartDate",t)).set("EndDate",a),this.http.get("".concat(r),{headers:this.headers,params:n})}},{key:"getEvent",value:function(e){var t=o.N.apiURL+"calendar/GetEvent",a=new i.LE;return a=a.set("EventId",e),this.http.get("".concat(t),{headers:this.headers,params:a})}},{key:"putEvent",value:function(e,t,a,r){var n=o.N.apiURL+"calendar/"+(""!=r?r:"PutEvent"),s=new i.LE;return s=(s=s.set("conflictResolutionMode",t.toString())).set("sendInvitationsOrCancellationsMode",a.toString()),this.http.put("".concat(n),e,{headers:this.headers,params:s})}},{key:"editEvent",value:function(e,t,a){var r=o.N.apiURL+"calendar/PutEvent",n=new i.LE;return n=(n=n.set("conflictResolutionMode",t.toString())).set("sendInvitationsOrCancellationsMode",a.toString()),this.http.put("".concat(r),e,{headers:this.headers,params:n})}},{key:"changeAgenda",value:function(e){return this.http.post(o.N.apiURL+"Calendar/MoveEvent",e,{headers:this.headers})}},{key:"postEventMd",value:function(e,t){var a,r=o.N.apiURL+"calendar/md",n=new i.LE;switch(n=n.set("CalendarName",t),t){case"Oficial":console.log(t),a={headers:this.headersMdOficial,params:n};break;case"Pessoal":console.log(t),a={headers:this.headersMdPessoal,params:n}}return console.log(a),this.http.post("".concat(r),e,a)}},{key:"postEventPr",value:function(e,t){var a,r=o.N.apiURL+"calendar/pr",n=new i.LE;switch(n=n.set("CalendarName",t),t){case"Oficial":console.log(t),a={headers:this.headersPrOficial,params:n};break;case"Pessoal":console.log(t),a={headers:this.headersPrPessoal,params:n}}return this.http.post("".concat(r),e,a)}},{key:"deleteEvent",value:function(e,t){var a=o.N.apiURL+"calendar/DeleteEvent",r=new i.LE;return r=(r=r.set("EventId",e)).set("eventDeleteType",t.toString()),this.http.delete("".concat(a),{headers:this.headers,params:r})}},{key:"postExpedientEvent",value:function(e,t,a,r,n){var s,c=o.N.apiURL+"calendar/"+(""!=a?a:"CreateEventExpediente")+"/event",l=new i.LE;switch(l=(l=(l=l.set("DocId",e)).set("SerialNumber",r)).set("applicationID",n),this.loggeduser.Profile){case"MDGPR":"Pessoal"==t.CalendarName?s={headers:this.headersMdPessoal,params:l}:"Oficial"==t.CalendarName&&(s={headers:this.headersMdOficial,params:l});break;case"PR":"Pessoal"==t.CalendarName?s={headers:this.headersPrPessoal,params:l}:"Oficial"==t.CalendarName&&(s={headers:this.headersPrOficial,params:l})}return this.http.post("".concat(c),t,s)}},{key:"createTaskEvent",value:function(e,t,a,r,n){var s,c=o.N.apiURL+"calendar/"+(""!=a?a:"CreateEventExpediente")+"/dispatch",l=new i.LE;switch(l=(l=(l=l.set("FolderId",e)).set("SerialNumber",r)).set("applicationID",n),this.loggeduser.Profile){case"MDGPR":"Pessoal"==t.CalendarName?s={headers:this.headersMdPessoal,params:l}:"Oficial"==t.CalendarName&&(s={headers:this.headersMdOficial,params:l});break;case"PR":"Pessoal"==t.CalendarName?s={headers:this.headersPrPessoal,params:l}:"Oficial"==t.CalendarName&&(s={headers:this.headersPrOficial,params:l})}return this.http.post("".concat(c),t,s)}},{key:"postEventToApproveEdit",value:function(e){return this.http.post(o.N.apiURL+"Tasks/EditEventTask",e,{headers:this.headers})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(c.LFG(i.eN),c.LFG(l.e))},e.\u0275prov=c.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e}()}}])}(); |