mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
1 line
16 KiB
JavaScript
1 line
16 KiB
JavaScript
!function(){function t(t){return function(t){if(Array.isArray(t))return e(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(!t)return;if("string"==typeof t)return e(t,n);var i=Object.prototype.toString.call(t).slice(8,-1);"Object"===i&&t.constructor&&(i=t.constructor.name);if("Map"===i||"Set"===i)return Array.from(t);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return e(t,n)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function a(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[3416,8621,5361,9492],{45896:function(t,e,i){"use strict";i.d(e,{Q:function(){return u}});var s=i(37716),r=i(35957),o=i(28621),c=i(39895),u=function(){var t=function(){function t(e,i,a){n(this,t),this.modalController=e,this.processes=i,this.router=a}return a(t,[{key:"ngOnInit",value:function(){}},{key:"close",value:function(){this.modalController.dismiss("No")}},{key:"save",value:function(){this.modalController.dismiss("Yes")}}]),t}();return t.\u0275fac=function(e){return new(e||t)(s.Y36(r.IN),s.Y36(o.$),s.Y36(c.F0))},t.\u0275cmp=s.Xpm({type:t,selectors:[["app-discart-expedient-modal"]],decls:15,vars:0,consts:[[1,"ion-no-border"],[1,"header-content","width-100"],[1,"header-title","d-flex","width-100"],[1,"header-body","width-100"],[1,"buttons","width-100"],["shape","round",1,"btn-ok-medium",3,"click"],["shape","round",1,"btn-delete-medium",3,"click"]],template:function(t,e){1&t&&(s._UZ(0,"ion-header",0),s.TgZ(1,"ion-content"),s.TgZ(2,"div",1),s.TgZ(3,"div",2),s.TgZ(4,"h3"),s._uU(5,"Deseja retirar este expediente da sua caixa de correspond\xeancia?"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(6,"div",3),s.TgZ(7,"p"),s._uU(8,"Nota: Ao Efetuar esta opera\xe7\xe3o, o tratamento deste expediente n\xe3o poder\xe1 ser realizado a partir da caixa de correspond\xeancia"),s.qZA(),s.qZA(),s.qZA(),s.TgZ(9,"ion-footer"),s.TgZ(10,"div",4),s.TgZ(11,"button",5),s.NdJ("click",function(){return e.close()}),s._uU(12,"N\xe3o"),s.qZA(),s.TgZ(13,"button",6),s.NdJ("click",function(){return e.save()}),s._uU(14,"Sim"),s.qZA(),s.qZA(),s.qZA())},directives:[r.Gu,r.W2,r.fr],styles:["ion-content[_ngcontent-%COMP%]{--padding-top:15px;--padding-start:15px;--padding-end:15px}.header-content[_ngcontent-%COMP%]{overflow:hidden;margin:0 auto;align-items:center;justify-content:center}.header-title[_ngcontent-%COMP%]{font-family:Roboto;font-size:20px;color:#000;margin:0 5px}.header-body[_ngcontent-%COMP%]{margin:0 5px}.buttons[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:15px 0}"]}),t}()},28621:function(t,e,i){"use strict";i.d(e,{$:function(){return u}});var s=i(91841),r=i(92340),o=i(37716),c=i(37556),u=function(){var t=function(){function t(e,i){n(this,t),this.http=e,this.authheader={},this.loggeduser=i.ValidatedUser,this.headers=new s.WM,this.headers=this.headers.set("Authorization",this.loggeduser.BasicAuthKey)}return a(t,[{key:"GetTasksList",value:function(t,e){var n=r.N.apiURL+"tasks/List",i=new s.LE;return i=(i=i.set("ProcessName",t)).set("OnlyCount",e.toString()),this.http.get("".concat(n),{headers:this.headers,params:i})}},{key:"GetTask",value:function(t){var e=r.N.apiURL+"Tasks/FindTask",n=new s.LE;return n=n.set("serialNumber",t),this.http.get("".concat(e),{headers:this.headers,params:n})}},{key:"SetTaskToPending",value:function(t){var e=r.N.apiURL+"Tasks/SetTaskPending",n=new s.LE;return n=n.set("serialNumber",t),this.http.post("".concat(e),"",{headers:this.headers,params:n})}},{key:"GetPendingTasks",value:function(t){var e=r.N.apiURL+"Tasks/ListPending",n=new s.LE;return n=n.set("onlyCount",t.toString()),this.http.get("".concat(e),{headers:this.headers,params:n})}},{key:"DelegateTask",value:function(t){return this.http.post(r.N.apiURL+"Tasks/DelegateTask",t,{headers:this.headers})}},{key:"GetTaskParticipants",value:function(t){var e=r.N.apiURL+"Processes/GetUsersInDispash",n=new s.LE;return n=n.set("folderId",t),this.http.get("".concat(e),{headers:this.headers,params:n})}},{key:"FindTaskDocId",value:function(t){var e=r.N.apiURL+"Tasks/FindExpedienteDocId",n=new s.LE;return n=n.set("serialNumber",t),this.http.get("".concat(e),{headers:this.headers,params:n})}},{key:"GetMDOficialTasks",value:function(){return this.http.get(r.N.apiURL+"tasks/GetMDOficialTasks",{headers:this.headers})}},{key:"GetMDPersonalTasks",value:function(){return this.http.get(r.N.apiURL+"tasks/GetMDPersonalTasks",{headers:this.headers})}},{key:"GetToApprovedEvents",value:function(t,e){var n=r.N.apiURL+"Tasks/ListByCategory",i=new s.LE;return i=(i=i.set("categoryname",t)).set("onlyCount",e),this.http.get("".concat(n),{headers:this.headers,params:i})}},{key:"PostTaskAction",value:function(t){return this.http.post(r.N.apiURL+"Tasks/Complete",t,{headers:this.headers})}},{key:"CompleteTask",value:function(t){return this.http.post(r.N.apiURL+"Tasks/CompleteTask",t,{headers:this.headers})}},{key:"CompleteParecerPrTask",value:function(t){return this.http.post(r.N.apiURL+"Tasks/CompleteTaskParecerPr",t,{headers:this.headers})}},{key:"UpdateTaskStatus",value:function(t){var e=r.N.apiURL+"Tasks/UpdateTaskStatus",n=new s.LE;return n=n.set("FolderId",t),this.http.post("".concat(e),"",{headers:this.headers,params:n})}},{key:"GetDocumentUrl",value:function(t,e){var n=r.N.apiURL+"ecm/document/viewrequestshort",i=new s.LE;return i=(i=i.set("DocId",t)).set("applicationid",e),this.http.get("".concat(n),{headers:this.headers,params:i})}},{key:"postDespatcho",value:function(t){return this.http.post(r.N.apiURL+"Processes/CreateDispatch",t,{headers:this.headers})}},{key:"postDespatchoPr",value:function(t){return this.http.post(r.N.apiURL+"Processes/CreateDispatchPR",t,{headers:this.headers})}},{key:"postParecer",value:function(t){return this.http.post(r.N.apiURL+"Processes/CreateParecer",t,{headers:this.headers})}},{key:"postParecerPr",value:function(t){return this.http.post(r.N.apiURL+"Processes/CreateParecerPR",t,{headers:this.headers})}},{key:"postDeferimento",value:function(t){return this.http.post(r.N.apiURL+"Processes/CreateDeferimento",t,{headers:this.headers})}},{key:"GetActionsList",value:function(){var t=r.N.apiURL+"presidentialActions",e={headers:this.headers};return console.log(e),this.http.get("".concat(t),e)}},{key:"GetSubjectType",value:function(){return this.http.get(r.N.apiURL+"ecm/SubjectType",{headers:this.headers})}},{key:"GetDocumentDetails",value:function(t,e){var n=r.N.apiURL+"search/documents",i=new s.LE;return i=(i=i.set("docId",t)).set("applicationId",e),this.http.get("".concat(n),{headers:this.headers,params:i})}},{key:"documentSetUpMeeting",value:function(t){var e=r.N.apiURL+"Processes/CallMeeting";return e=e.replace("/V4/","/V5/"),this.http.post("".concat(e),t,{headers:this.headers})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.LFG(s.eN),o.LFG(c.e))},t.\u0275prov=o.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t}()},17352:function(t,e,i){"use strict";i.d(e,{Y:function(){return L}});var s=i(64762),r=i(37716),o=i(44940),c=i(35957),u=i(30407),h=i(38583);function p(t,e){1&t&&r._UZ(0,"ion-progress-bar",12)}function l(t,e){if(1&t){var n=r.EpF();r.TgZ(0,"ion-item",14),r.NdJ("click",function(){r.CHM(n);var t=r.oxw().$implicit;return r.oxw().selectContact(t)}),r.TgZ(1,"div",15),r._UZ(2,"ion-icon",16),r.qZA(),r.TgZ(3,"ion-label"),r.TgZ(4,"h3"),r._uU(5),r.qZA(),r.TgZ(6,"p"),r._uU(7),r.qZA(),r.qZA(),r.TgZ(8,"div"),r._UZ(9,"ion-icon",17),r.qZA(),r.qZA()}if(2&t){var i=r.oxw().$implicit;r.xp6(5),r.Oqu(i.Name),r.xp6(2),r.Oqu(i.EmailAddress)}}function d(t,e){if(1&t&&(r.TgZ(0,"div"),r.YNc(1,l,10,2,"ion-item",13),r.qZA()),2&t){var n=e.$implicit,i=r.oxw();r.xp6(1),r.Q6J("ngIf",i.filterSearchList(n))}}function f(t,e){1&t&&(r.TgZ(0,"div",21),r._uU(1," Destinat\xe1rio"),r.qZA())}function g(t,e){if(1&t){var n=r.EpF();r.TgZ(0,"ion-item",22),r.TgZ(1,"div",15),r._UZ(2,"ion-icon",16),r.qZA(),r.TgZ(3,"ion-label"),r.TgZ(4,"h3"),r._uU(5),r.qZA(),r.TgZ(6,"p"),r._uU(7),r.qZA(),r.qZA(),r.TgZ(8,"div",14),r.NdJ("click",function(){var t=r.CHM(n).$implicit;return r.oxw(2).remove(t)}),r._UZ(9,"ion-icon",23),r.qZA(),r.qZA()}if(2&t){var i=e.$implicit;r.xp6(5),r.Oqu(i.Name),r.xp6(2),r.Oqu(i.EmailAddress)}}function m(t,e){if(1&t&&(r.TgZ(0,"ion-list",18),r.YNc(1,f,2,0,"div",19),r.TgZ(2,"ion-item-sliding",8),r.YNc(3,g,10,2,"ion-item",20),r.qZA(),r.qZA()),2&t){var n=r.oxw();r.xp6(1),r.Q6J("ngIf",n.LtaskParticipants.length>=1||n.LtaskParticipantsCc.length>=1),r.xp6(2),r.Q6J("ngForOf",n.LtaskParticipants)}}function v(t,e){1&t&&(r.TgZ(0,"div",21),r._uU(1," Destinat\xe1rio"),r.qZA())}function k(t,e){if(1&t){var n=r.EpF();r.TgZ(0,"ion-item",22),r.TgZ(1,"div",15),r._UZ(2,"ion-icon",16),r.qZA(),r.TgZ(3,"ion-label"),r.TgZ(4,"h3"),r._uU(5),r.qZA(),r.TgZ(6,"p"),r._uU(7),r.qZA(),r.qZA(),r.TgZ(8,"div",14),r.NdJ("click",function(){var t=r.CHM(n).$implicit;return r.oxw(2).remove(t)}),r._UZ(9,"ion-icon",23),r.qZA(),r.qZA()}if(2&t){var i=e.$implicit;r.xp6(5),r.Oqu(i.Name),r.xp6(2),r.Oqu(i.EmailAddress)}}function C(t,e){if(1&t&&(r.TgZ(0,"ion-list",18),r.YNc(1,v,2,0,"div",19),r.TgZ(2,"ion-item-sliding",8),r.YNc(3,k,10,2,"ion-item",20),r.qZA(),r.qZA()),2&t){var n=r.oxw();r.xp6(1),r.Q6J("ngIf",n.LtaskParticipants.length>=1||n.LtaskParticipantsCc.length>=1),r.xp6(2),r.Q6J("ngForOf",n.LtaskParticipantsCc)}}function Z(t,e){if(1&t){var n=r.EpF();r.TgZ(0,"ion-footer",24),r.TgZ(1,"ion-toolbar",25),r.TgZ(2,"ion-buttons",26),r.TgZ(3,"ion-button",27),r.NdJ("click",function(){return r.CHM(n),r.oxw().close()}),r.TgZ(4,"ion-label"),r._uU(5,"Cancelar"),r.qZA(),r._UZ(6,"ion-icon",28),r.qZA(),r.qZA(),r.TgZ(7,"ion-buttons",29),r.TgZ(8,"ion-button",30),r.NdJ("click",function(){return r.CHM(n),r.oxw().save()}),r.TgZ(9,"ion-label"),r._uU(10,"Gravar"),r.qZA(),r._UZ(11,"ion-icon",31),r.qZA(),r.qZA(),r.qZA(),r.qZA()}}var L=function(){var t=function(){function t(e,i){n(this,t),this.modalCtrl=e,this.contactsService=i,this.showLoader=!1,this.closeComponent=new r.vpe,this.setIntervenient=new r.vpe,this.setIntervenientCC=new r.vpe,this.dynamicSetIntervenient=new r.vpe,this.taskParticipants=[],this.taskParticipantsCc=[],this.LtaskParticipants=[],this.LtaskParticipantsCc=[],this.currentPath=window.location.pathname,this.LtaskParticipants=(0,o.removeDuplicate)(this.taskParticipants),this.LtaskParticipantsCc=(0,o.removeDuplicate)(this.taskParticipantsCc)}return a(t,[{key:"ngOnChanges",value:function(){this.LtaskParticipants=(0,o.removeDuplicate)(this.taskParticipants),this.LtaskParticipantsCc=(0,o.removeDuplicate)(this.taskParticipantsCc)}},{key:"ngOnInit",value:function(){this.fetchContacts(""),null!=this.LtaskParticipants&&null!=this.LtaskParticipants||(this.LtaskParticipants=[]),null!=this.LtaskParticipantsCc&&null!=this.LtaskParticipantsCc||(this.LtaskParticipantsCc=[])}},{key:"save",value:function(){this.setIntervenient.emit(this.LtaskParticipants),this.setIntervenientCC.emit(this.LtaskParticipantsCc),this.closeComponent.emit()}},{key:"setContactWithClose",value:function(){"/home/gabinete-digital"==this.currentPath&&(console.log("set!!!!! "),this.setIntervenient.emit(this.LtaskParticipants),this.setIntervenientCC.emit(this.LtaskParticipantsCc)),this.dynamicSetIntervenient.emit({taskParticipants:this.LtaskParticipants,taskParticipantsCc:this.LtaskParticipantsCc})}},{key:"selectContact",value:function(t){return(0,s.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:"intervenient"==this.adding?(t.IsRequired=!0,this.LtaskParticipants.push(t)):"CC"==this.adding&&(t.IsRequired=!1,this.LtaskParticipantsCc.push(t)),this.setContactWithClose();case 1:case"end":return e.stop()}},e,this)}))}},{key:"close",value:function(){this.closeComponent.emit()}},{key:"onChange",value:function(t){this.fetchContacts(t.detail.value)}},{key:"filterSearchList",value:function(t){return null==this.LtaskParticipants.concat(this.LtaskParticipantsCc).find(function(e,n){if(e.Name.toLowerCase()==t.Name.toLowerCase()&&e.EmailAddress.toLowerCase()==t.EmailAddress.toLowerCase())return n=n,e})&&null==this.LtaskParticipantsCc.find(function(e,n){if(e.Name.toLowerCase()==t.Name&&e.EmailAddress.toLowerCase()==t.EmailAddress.toLowerCase())return n=n,e})}},{key:"remove",value:function(t){"intervenient"==this.adding?this.LtaskParticipants=this.LtaskParticipants.filter(function(e,n){return e.Name.toLocaleLowerCase()!=t.Name.toLocaleLowerCase()&&e.EmailAddress.toLocaleLowerCase()!=t.EmailAddress.toLocaleLowerCase()&&e}):"CC"==this.adding&&(this.LtaskParticipantsCc=this.LtaskParticipantsCc.filter(function(e,n){return e.Name.toLocaleLowerCase()!=t.Name.toLocaleLowerCase()&&e.EmailAddress.toLocaleLowerCase()!=t.EmailAddress.toLocaleLowerCase()&&e})),this.setContactWithClose()}},{key:"fetchContacts",value:function(t){return(0,s.mG)(this,void 0,void 0,regeneratorRuntime.mark(function e(){var n=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.showLoader=!0,this.contactsService.getContacts(t).subscribe(function(t){null!=n.eventPersons&&n.eventPersons.forEach(function(e){var n=t.findIndex(function(t){return t.EmailAddress.toLowerCase()==e.EmailAddress.toLowerCase()});t.splice(n,1)}),n.contacts=t,n.showLoader=!1});case 1:case"end":return e.stop()}},e,this)}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Y36(c.IN),r.Y36(u.P))},t.\u0275cmp=r.Xpm({type:t,selectors:[["app-attendee-modal"]],inputs:{taskParticipants:"taskParticipants",taskParticipantsCc:"taskParticipantsCc",footer:"footer",adding:"adding"},outputs:{closeComponent:"closeComponent",setIntervenient:"setIntervenient",setIntervenientCC:"setIntervenientCC",dynamicSetIntervenient:"dynamicSetIntervenient"},features:[r.TTD],decls:15,vars:5,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"],["class","ion-no-border",4,"ngIf"],["type","indeterminate"],["class","cursor-pointer",3,"click",4,"ngIf"],[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"],["class","d-flex",4,"ngFor","ngForOf"],[1,"px-20","font-15","pt-20",2,"border-top","1px solid #ebebeb","font-weight","500"],[1,"d-flex"],["src","assets/images/icons-delete-25.svg",1,"font-35"],[1,"ion-no-border"],[1,"width-100","d-flex","justify-space-between","px-20"],["slot","start"],["fill","clear","color","#061b52",1,"btn-cancel",3,"click"],["name","close","slot","start"],["slot","end"],["fill","clear","color","#fff",1,"btn-ok",3,"click"],["name","checkmark","slot","start"]],template:function(t,e){1&t&&(r.TgZ(0,"ion-header",0),r.TgZ(1,"ion-toolbar",1),r.TgZ(2,"ion-title",2),r._uU(3,"Adicionar intervenientes"),r.qZA(),r.qZA(),r.TgZ(4,"ion-searchbar",3),r.NdJ("ionChange",function(t){return e.onChange(t)}),r.qZA(),r.YNc(5,p,1,0,"ion-progress-bar",4),r.qZA(),r.TgZ(6,"ion-content",5),r.TgZ(7,"ion-item-group",6),r.TgZ(8,"ion-list",7),r.TgZ(9,"ion-item-sliding",8),r.YNc(10,d,2,1,"div",9),r.qZA(),r.qZA(),r._UZ(11,"hr"),r.YNc(12,m,4,2,"ion-list",10),r.YNc(13,C,4,2,"ion-list",10),r.qZA(),r.qZA(),r.YNc(14,Z,12,0,"ion-footer",11)),2&t&&(r.xp6(5),r.Q6J("ngIf",e.showLoader),r.xp6(5),r.Q6J("ngForOf",e.contacts),r.xp6(2),r.Q6J("ngIf",e.LtaskParticipants.length>=1&&"intervenient"==e.adding),r.xp6(1),r.Q6J("ngIf",e.LtaskParticipantsCc.length>=1&&"CC"==e.adding),r.xp6(1),r.Q6J("ngIf",e.footer))},directives:[c.Gu,c.sr,c.wd,c.VI,c.j9,h.O5,c.W2,c.Ub,c.q_,c.td,h.sg,c.X7,c.Ie,c.gu,c.Q$,c.fr,c.Sm,c.YG],styles:["ion-searchbar[_ngcontent-%COMP%]{--border-radius:20px}.item-inner[_ngcontent-%COMP%]{border-style:unset!important}"]}),t}()},44940:function(e){e.exports={removeDuplicate:function(e){return t(new Set(e.map(JSON.stringify))).map(JSON.parse)}}}}])}(); |