mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
1 line
12 KiB
JavaScript
1 line
12 KiB
JavaScript
|
|
!function(){function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function n(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}(self.webpackChunkgabinete_digital=self.webpackChunkgabinete_digital||[]).push([[9984,8621,5752,5361,4747],{17690:function(e,a,i){"use strict";i.d(a,{g:function(){return s}});var o=i(37716),s=function(){var e=function(){function e(){t(this,e)}return n(e,[{key:"transform",value:function(t){var e=new Date(t.taskStartDate);e.setMonth(e.getMonth()+1);var n=e.getFullYear()+"-"+e.getMonth()+"-"+e.getDate()+" "+e.getHours()+":"+e.getMinutes()+":"+e.getSeconds();return{SerialNumber:t.serialNumber,Folio:t.workflowInstanceDataFields.Subject,Senders:t.workflowInstanceDataFields.Sender,CreateDate:n,DocumentURL:t.workflowInstanceDataFields.ViewerRequest,Remetente:t.workflowInstanceDataFields.Remetente,DocumentsQty:t.totalDocuments,DocId:t.workflowInstanceDataFields.DispatchDocId,FolderID:t.workflowInstanceDataFields.FolderID,WorkflowName:t.workflowDisplayName,activityInstanceName:t.activityInstanceName,Status:t.workflowInstanceDataFields.Status}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=o.Yjl({name:"customTask",type:e,pure:!0}),e}()},28621:function(e,a,i){"use strict";i.d(a,{$:function(){return p}});var o=i(91841),s=i(92340),r=i(37716),c=i(37556),p=function(){var e=function(){function e(n,a){t(this,e),this.http=n,this.authheader={},this.loggeduser=a.ValidatedUser,this.headers=new o.WM,this.headers=this.headers.set("Authorization",this.loggeduser.BasicAuthKey)}return n(e,[{key:"GetTasksList",value:function(t,e){var n=s.N.apiURL+"tasks/List",a=new o.LE;return a=(a=a.set("ProcessName",t)).set("OnlyCount",e.toString()),this.http.get("".concat(n),{headers:this.headers,params:a})}},{key:"GetTask",value:function(t){var e=s.N.apiURL+"Tasks/FindTask",n=new o.LE;return n=n.set("serialNumber",t),this.http.get("".concat(e),{headers:this.headers,params:n})}},{key:"SetTaskToPending",value:function(t){var e=s.N.apiURL+"Tasks/SetTaskPending",n=new o.LE;return n=n.set("serialNumber",t),this.http.post("".concat(e),"",{headers:this.headers,params:n})}},{key:"GetPendingTasks",value:function(t){var e=s.N.apiURL+"Tasks/ListPending",n=new o.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(s.N.apiURL+"Tasks/DelegateTask",t,{headers:this.headers})}},{key:"GetTaskParticipants",value:function(t){var e=s.N.apiURL+"Processes/GetUsersInDispash",n=new o.LE;return n=n.set("folderId",t),this.http.get("".concat(e),{headers:this.headers,params:n})}},{key:"FindTaskDocId",value:function(t){var e=s.N.apiURL+"Tasks/FindExpedienteDocId",n=new o.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(s.N.apiURL+"tasks/GetMDOficialTasks",{headers:this.headers})}},{key:"GetMDPersonalTasks",value:function(){return this.http.get(s.N.apiURL+"tasks/GetMDPersonalTasks",{headers:this.headers})}},{key:"GetToApprovedEvents",value:function(t,e){var n=s.N.apiURL+"Tasks/ListByCategory",a=new o.LE;return a=(a=a.set("categoryname",t)).set("onlyCount",e),this.http.get("".concat(n),{headers:this.headers,params:a})}},{key:"PostTaskAction",value:function(t){return this.http.post(s.N.apiURL+"Tasks/Complete",t,{headers:this.headers})}},{key:"CompleteTask",value:function(t){return this.http.post(s.N.apiURL+"Tasks/CompleteTask",t,{headers:this.headers})}},{key:"CompleteParecerPrTask",value:function(t){return this.http.post(s.N.apiURL+"Tasks/CompleteTaskParecerPr",t,{headers:this.headers})}},{key:"UpdateTaskStatus",value:function(t){var e=s.N.apiURL+"Tasks/UpdateTaskStatus",n=new o.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=s.
|