vcomply-workflow-engine 2.6.81 → 2.6.83

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3172,7 +3172,6 @@
3172
3172
  this.checkpointCount = 0;
3173
3173
  this.isGroupAssigned = false;
3174
3174
  this.unsubscribe = new rxjs.Subject();
3175
- this.systemResponsibilityList = [];
3176
3175
  this.unSubscribeProgram = new rxjs.Subject();
3177
3176
  this.authService.getUserInfo().subscribe(function (res) {
3178
3177
  var complianceSubmodule = res.roleActions[res.roleActions.findIndex(function (ele) { return ele.moduleName == 'compliance'; })].subModule;
@@ -3688,6 +3687,7 @@
3688
3687
  _this.isEntrust = res.isGroupAssignTo ? true : false;
3689
3688
  var linkage = res === null || res === void 0 ? void 0 : res.linkedProgramDetails;
3690
3689
  linkage.push(res === null || res === void 0 ? void 0 : res.programDetails);
3690
+ var systemResData = _this.systemResponsibilityList['data'].filter(function (e) { return e.name == res.report_name; });
3691
3691
  _this.responsibilityForm = {
3692
3692
  assignors: {
3693
3693
  enable: false,
@@ -3736,7 +3736,10 @@
3736
3736
  assuranceList: _this.setList(_this.assuranceCategoriesList, testPlanCategory, 'category_id'),
3737
3737
  requiresAuditList: _this.setList(_this.assuranceRequiresAuditList, requiredAuditCategoryId, 'category_id'),
3738
3738
  riskClass: res === null || res === void 0 ? void 0 : res.risk_class,
3739
- riskMatrix: res === null || res === void 0 ? void 0 : res.risk_matrix_data
3739
+ riskMatrix: res === null || res === void 0 ? void 0 : res.risk_matrix_data,
3740
+ responsibility_type: res === null || res === void 0 ? void 0 : res.responsibility_type,
3741
+ systemResponsibilities: systemResData,
3742
+ systemResponsibilies: systemResData,
3740
3743
  };
3741
3744
  _this.selectedProgram = ((_t = res === null || res === void 0 ? void 0 : res.programDetails) === null || _t === void 0 ? void 0 : _t.category_id) ? res.programDetails : undefined;
3742
3745
  if ((_u = _this.selectedProgram) === null || _u === void 0 ? void 0 : _u._id) {
@@ -3810,6 +3813,10 @@
3810
3813
  _this.refreshAllLists();
3811
3814
  }
3812
3815
  _this.getEditMoreOptions(res);
3816
+ if (res === null || res === void 0 ? void 0 : res.responsibility_type) {
3817
+ _this.hideElementsFromMoreOptions.emit(['FORMATE_EVIDENCE', 'ASSESSMENT', 'CHECKPOINTS', 'CHECKPOINTS_NEW', 'RISK_CLASSIFICATION', 'REVIEWER', 'OVERSEER', 'ASSURANCE', 'REQUIRES_AUDIT']);
3818
+ _this.responsibilityForm.responsibility_type = 1;
3819
+ }
3813
3820
  }
3814
3821
  }, function (err) {
3815
3822
  _this.uiKitService.isLoader = false;
@@ -4546,7 +4553,7 @@
4546
4553
  var objective = (((_g = entrustForm.objective) === null || _g === void 0 ? void 0 : _g.replace(/\ /g, '').trim()) !== '') ? entrustForm.objective : '';
4547
4554
  var payload = {
4548
4555
  app_association: [],
4549
- assigned_to: (entrustForm === null || entrustForm === void 0 ? void 0 : entrustForm.responsibility_type) == '1' ? '0' : this.returnIds(entrustForm.assignees.list, 'employee_id').toString(),
4556
+ assigned_to: (entrustForm === null || entrustForm === void 0 ? void 0 : entrustForm.responsibility_type) == '0' ? this.returnIds(entrustForm.assignees.list, 'employee_id').toString() : '0',
4550
4557
  program_cat_ids: (moreOptions === null || moreOptions === void 0 ? void 0 : moreOptions.PROGRAM) ? (((_h = entrustForm === null || entrustForm === void 0 ? void 0 : entrustForm.program) === null || _h === void 0 ? void 0 : _h.length) ? [entrustForm.program[0].category_id] : []) : [],
4551
4558
  linked_program_ids: linkedProgramIds,
4552
4559
  linked_category_ids: this.getUniqueIds(__spreadArray(__spreadArray([], __read(categoryIdsExceptDefault)), __read(linkedCategoryIds))),