vcomply-workflow-engine 2.6.163 → 2.6.165

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.
@@ -29208,7 +29208,7 @@ class AddMultipleResponsibilityWithTabComponent {
29208
29208
  let responsibilityBulkUpload = (_c = (_b = (_a = this.bulkUpload) === null || _a === void 0 ? void 0 : _a.frequency) === null || _b === void 0 ? void 0 : _b.reports) === null || _c === void 0 ? void 0 : _c.concat((_e = (_d = this.bulkUpload) === null || _d === void 0 ? void 0 : _d.ongoing) === null || _e === void 0 ? void 0 : _e.reports, (_g = (_f = this.bulkUpload) === null || _f === void 0 ? void 0 : _f.onCompletion) === null || _g === void 0 ? void 0 : _g.reports);
29209
29209
  // this.responsibilityBulkUpload.reports.forEach((report: any) => {
29210
29210
  responsibilityBulkUpload.forEach((report) => {
29211
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
29211
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2;
29212
29212
  if (report.isValid) {
29213
29213
  if ((report === null || report === void 0 ? void 0 : report.responsibilityCategory) === null) {
29214
29214
  report.responsibilityCategory = '';
@@ -29256,13 +29256,13 @@ class AddMultipleResponsibilityWithTabComponent {
29256
29256
  created_by: (assignorDetails) ? this.memberId : 0,
29257
29257
  report_name: (_g = report === null || report === void 0 ? void 0 : report.responsibilityName) !== null && _g !== void 0 ? _g : '',
29258
29258
  entrusted_to: (_j = (_h = report === null || report === void 0 ? void 0 : report.assignee) === null || _h === void 0 ? void 0 : _h.split(' (')[0]) !== null && _j !== void 0 ? _j : '',
29259
- entrusted_to_id: this.isGroupSelected(report === null || report === void 0 ? void 0 : report.assignee) ? this.getEmployeeIdFromGroup(report === null || report === void 0 ? void 0 : report.assignee) : this.returnIds(report === null || report === void 0 ? void 0 : report.assignee, 'entrusted_to'),
29260
- email_address: !this.isGroupSelected(report === null || report === void 0 ? void 0 : report.assignee) ? ((_m = (_l = (_k = report === null || report === void 0 ? void 0 : report.assignee) === null || _k === void 0 ? void 0 : _k.split(' (')[1]) === null || _l === void 0 ? void 0 : _l.replace(')', '')) !== null && _m !== void 0 ? _m : '') : '',
29261
- isGroupAssignTo: ((_o = report === null || report === void 0 ? void 0 : report.assigneeType) === null || _o === void 0 ? void 0 : _o.includes('Any')) ? 1 : 0,
29259
+ entrusted_to_id: this.isGroupSelected(report === null || report === void 0 ? void 0 : report.assignee) ? this.getEmployeeIdFromGroup(report === null || report === void 0 ? void 0 : report.assignee) : (_l = (_k = this.returnIds(report === null || report === void 0 ? void 0 : report.assignee, 'entrusted_to')) === null || _k === void 0 ? void 0 : _k.toString()) !== null && _l !== void 0 ? _l : '',
29260
+ email_address: !this.isGroupSelected(report === null || report === void 0 ? void 0 : report.assignee) ? ((_p = (_o = (_m = report === null || report === void 0 ? void 0 : report.assignee) === null || _m === void 0 ? void 0 : _m.split(' (')[1]) === null || _o === void 0 ? void 0 : _o.replace(')', '')) !== null && _p !== void 0 ? _p : '') : '',
29261
+ isGroupAssignTo: ((_q = report === null || report === void 0 ? void 0 : report.assigneeType) === null || _q === void 0 ? void 0 : _q.includes('Any')) ? 1 : 0,
29262
29262
  // category_name: categoryName,
29263
29263
  category_name_with_tree: '',
29264
- category_id: (_q = (_p = this.getProgramId(report === null || report === void 0 ? void 0 : report.program, report === null || report === void 0 ? void 0 : report.programCategory).categoryId) === null || _p === void 0 ? void 0 : _p.toString()) !== null && _q !== void 0 ? _q : '',
29265
- program_cat_ids: ((_r = this.getProgramId(report === null || report === void 0 ? void 0 : report.program, report === null || report === void 0 ? void 0 : report.programCategory)) === null || _r === void 0 ? void 0 : _r.childProgramId) ? [(_s = this.getProgramId(report === null || report === void 0 ? void 0 : report.program, report === null || report === void 0 ? void 0 : report.programCategory)) === null || _s === void 0 ? void 0 : _s.childProgramId] : [],
29264
+ category_id: (_s = (_r = this.getProgramId(report === null || report === void 0 ? void 0 : report.program, report === null || report === void 0 ? void 0 : report.programCategory).categoryId) === null || _r === void 0 ? void 0 : _r.toString()) !== null && _s !== void 0 ? _s : '',
29265
+ program_cat_ids: ((_t = this.getProgramId(report === null || report === void 0 ? void 0 : report.program, report === null || report === void 0 ? void 0 : report.programCategory)) === null || _t === void 0 ? void 0 : _t.childProgramId) ? [(_u = this.getProgramId(report === null || report === void 0 ? void 0 : report.program, report === null || report === void 0 ? void 0 : report.programCategory)) === null || _u === void 0 ? void 0 : _u.childProgramId] : [],
29266
29266
  rc_name: rcDetails ? rcDetails === null || rcDetails === void 0 ? void 0 : rcDetails.name : '',
29267
29267
  rc_id: rcDetails ? rcDetails === null || rcDetails === void 0 ? void 0 : rcDetails.rcId : 0,
29268
29268
  entity_tree: (rcDetails && (rcDetails === null || rcDetails === void 0 ? void 0 : rcDetails.rcId)) ? [{
@@ -29270,8 +29270,8 @@ class AddMultipleResponsibilityWithTabComponent {
29270
29270
  rc_id: rcDetails ? rcDetails === null || rcDetails === void 0 ? void 0 : rcDetails.rcId : 0
29271
29271
  }] : [],
29272
29272
  userGroupIds: {
29273
- assigneeAllGroupIds: (!((_t = report === null || report === void 0 ? void 0 : report.assigneeType) === null || _t === void 0 ? void 0 : _t.includes('Any')) && this.isGroupSelected(report === null || report === void 0 ? void 0 : report.assignee)) ? [this.returnIds(report === null || report === void 0 ? void 0 : report.assignee, 'entrusted_to')] : [],
29274
- assigneeAnyoneGroupIds: (((_u = report === null || report === void 0 ? void 0 : report.assigneeType) === null || _u === void 0 ? void 0 : _u.includes('Any')) && this.isGroupSelected(report === null || report === void 0 ? void 0 : report.assignee)) ? [this.returnIds(report === null || report === void 0 ? void 0 : report.assignee, 'entrusted_to')] : [],
29273
+ assigneeAllGroupIds: (!((_v = report === null || report === void 0 ? void 0 : report.assigneeType) === null || _v === void 0 ? void 0 : _v.includes('Any')) && this.isGroupSelected(report === null || report === void 0 ? void 0 : report.assignee)) ? [this.returnIds(report === null || report === void 0 ? void 0 : report.assignee, 'entrusted_to')] : [],
29274
+ assigneeAnyoneGroupIds: (((_w = report === null || report === void 0 ? void 0 : report.assigneeType) === null || _w === void 0 ? void 0 : _w.includes('Any')) && this.isGroupSelected(report === null || report === void 0 ? void 0 : report.assignee)) ? [this.returnIds(report === null || report === void 0 ? void 0 : report.assignee, 'entrusted_to')] : [],
29275
29275
  ccEmailGroupIds: [],
29276
29276
  failureCCEmailGroupIds: [],
29277
29277
  reviewerGroupIds: []
@@ -29280,10 +29280,10 @@ class AddMultipleResponsibilityWithTabComponent {
29280
29280
  compliance_type: frequencyValue === null || frequencyValue === void 0 ? void 0 : frequencyValue.split('~')[0],
29281
29281
  frequency_description: report === null || report === void 0 ? void 0 : report.frequency,
29282
29282
  start_date: (report === null || report === void 0 ? void 0 : report.day) ? startDate : currentDate + ' 00:00:00',
29283
- risk_class: (_v = report === null || report === void 0 ? void 0 : report.reportClass) !== null && _v !== void 0 ? _v : '',
29283
+ risk_class: (_x = report === null || report === void 0 ? void 0 : report.reportClass) !== null && _x !== void 0 ? _x : '',
29284
29284
  risk_classId: (report === null || report === void 0 ? void 0 : report.reportClass) ? this.returnIds(report === null || report === void 0 ? void 0 : report.reportClass, 'risk_class') : ((this.riskClassEnabled) ? 1 : 2),
29285
29285
  doc_utc: 0,
29286
- comment: (_w = report === null || report === void 0 ? void 0 : report.notes) !== null && _w !== void 0 ? _w : '',
29286
+ comment: (_y = report === null || report === void 0 ? void 0 : report.notes) !== null && _y !== void 0 ? _y : '',
29287
29287
  cc_mail: ccDetails ? ccDetails === null || ccDetails === void 0 ? void 0 : ccDetails.email : '',
29288
29288
  cc_mail_id: ccDetails ? ccDetails === null || ccDetails === void 0 ? void 0 : ccDetails.employeeId : '',
29289
29289
  cc_failed_mail: ccFailureDetails ? ccFailureDetails === null || ccFailureDetails === void 0 ? void 0 : ccFailureDetails.email : '',
@@ -29292,7 +29292,7 @@ class AddMultipleResponsibilityWithTabComponent {
29292
29292
  responsibilityWindow: (frequencyType === '1') ? 0 : completeDays,
29293
29293
  failed_after: notCompleteDays,
29294
29294
  excel_sheet_name: "",
29295
- report_upload_flag: (((report === null || report === void 0 ? void 0 : report.isFormat) === 'Yes') && ((_x = report === null || report === void 0 ? void 0 : report.formatForResponsibility) === null || _x === void 0 ? void 0 : _x.length)) ? 1 : 0,
29295
+ report_upload_flag: (((report === null || report === void 0 ? void 0 : report.isFormat) === 'Yes') && ((_z = report === null || report === void 0 ? void 0 : report.formatForResponsibility) === null || _z === void 0 ? void 0 : _z.length)) ? 1 : 0,
29296
29296
  report_id: 0,
29297
29297
  is_assigned_flag: 0,
29298
29298
  private_library_id: 0,
@@ -29312,14 +29312,14 @@ class AddMultipleResponsibilityWithTabComponent {
29312
29312
  reviewerFailure: ((report === null || report === void 0 ? void 0 : report.reviewWillBeFailedAfter) && (report === null || report === void 0 ? void 0 : report.reviewWillBeFailedAfter) !== '') ? report === null || report === void 0 ? void 0 : report.reviewWillBeFailedAfter : 2,
29313
29313
  reviewer_email: reviewerDetails ? reviewerDetails === null || reviewerDetails === void 0 ? void 0 : reviewerDetails.email : '',
29314
29314
  formatForResponsibility: (report === null || report === void 0 ? void 0 : report.formatForResponsibility) ? report.formatForResponsibility : '',
29315
- documentaryEvidence: (_y = report === null || report === void 0 ? void 0 : report.evidenceNotes) !== null && _y !== void 0 ? _y : '',
29315
+ documentaryEvidence: (_0 = report === null || report === void 0 ? void 0 : report.evidenceNotes) !== null && _0 !== void 0 ? _0 : '',
29316
29316
  isdocumentaryEvidence: (report.documentEvidenceRequired === 'Yes') ? 1 : 0,
29317
- objective: (_z = report.objective) !== null && _z !== void 0 ? _z : '',
29317
+ objective: (_1 = report.objective) !== null && _1 !== void 0 ? _1 : '',
29318
29318
  excel_sheet_info: this.fileResponse,
29319
29319
  showList: false,
29320
29320
  custom_tags: '[]',
29321
29321
  questionnaire_type: '',
29322
- on_completion_of_type: ((report === null || report === void 0 ? void 0 : report.frequency) === 'On Completion of' || ((_0 = report === null || report === void 0 ? void 0 : report.frequency) === null || _0 === void 0 ? void 0 : _0.toLowerCase()) === 'ongoing') ? 1 : 0,
29322
+ on_completion_of_type: ((report === null || report === void 0 ? void 0 : report.frequency) === 'On Completion of' || ((_2 = report === null || report === void 0 ? void 0 : report.frequency) === null || _2 === void 0 ? void 0 : _2.toLowerCase()) === 'ongoing') ? 1 : 0,
29323
29323
  on_completion_of: this.returnIds(report === null || report === void 0 ? void 0 : report.parentResponsibility, 'parentResponsibility') ? [this.returnIds(report === null || report === void 0 ? void 0 : report.parentResponsibility, 'parentResponsibility')] : [],
29324
29324
  };
29325
29325
  payload.push(obj);
@@ -29661,7 +29661,6 @@ class AddMultipleResponsibilityWithTabComponent {
29661
29661
  let childCategory = [];
29662
29662
  /* Creating a list of child categories. */
29663
29663
  for (let j = 1; true; j++) {
29664
- console.log("tempList[j]tempList[j]", tempList[j], index);
29665
29664
  if (tempList[j] && tempList[j][index]) {
29666
29665
  const category = {
29667
29666
  name: tempList[j][index - 1],