vcomply-workflow-engine 3.7.3 → 3.7.4

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.
@@ -26536,13 +26536,13 @@ class WorkflowComplianceComponent {
26536
26536
  ...[entrustForm?.program[0]?.category_id],
26537
26537
  ])?.toString()
26538
26538
  : '',
26539
- cc_member_email: moreOptions.OVERSEER
26539
+ cc_member_email: moreOptions?.OVERSEER
26540
26540
  ? this.returnIds(this.overseerUserList, 'employee_id').toString()
26541
26541
  : '',
26542
- checkpoint_description: moreOptions.CHECKPOINTS
26542
+ checkpoint_description: moreOptions?.CHECKPOINTS
26543
26543
  ? entrustForm.checkpointInstruction
26544
26544
  : '',
26545
- checkpoint_details: moreOptions.CHECKPOINTS
26545
+ checkpoint_details: moreOptions?.CHECKPOINTS
26546
26546
  ? JSON.stringify(this.responsibilityForm.checkpoints)
26547
26547
  : '',
26548
26548
  checkpoint_flag: 0,
@@ -26555,7 +26555,7 @@ class WorkflowComplianceComponent {
26555
26555
  created_by: entrustForm.assignors.list?.length < 1 ? 0 : this.memberId,
26556
26556
  creation_window: 0,
26557
26557
  custom_tags: JSON.stringify(entrustForm.customTags),
26558
- entity_tree: moreOptions.RC
26558
+ entity_tree: moreOptions?.RC
26559
26559
  ? this.isResponsibilityRcLinkEnabled &&
26560
26560
  this.responsibilityCenterType == 1
26561
26561
  ? []
@@ -26564,7 +26564,7 @@ class WorkflowComplianceComponent {
26564
26564
  entrust_from_risk: this.openedFrom === 'RISK_TREATMENT' ? true : false,
26565
26565
  failed_after_days: entrustForm.failed_after_days,
26566
26566
  failed_time_utc: entrustForm.failed_time_utc,
26567
- failure_cc_member_email: moreOptions.OVERSEER
26567
+ failure_cc_member_email: moreOptions?.OVERSEER
26568
26568
  ? this.returnIds(this.overseerUserNotifyList, 'employee_id').toString()
26569
26569
  : '',
26570
26570
  frequency_details: entrustForm.frequency,
@@ -26578,14 +26578,14 @@ class WorkflowComplianceComponent {
26578
26578
  allowEditDueDate: entrustForm?.allowEditDueDate ? true : false,
26579
26579
  library_report_id: 0,
26580
26580
  lifecycle_details: entrustForm.lifecycleDetails ?? '0000-00-00~~0',
26581
- link_for_details: moreOptions.FORMATE_EVIDENCE
26581
+ link_for_details: moreOptions?.FORMATE_EVIDENCE
26582
26582
  ? entrustForm.formatAndEvidence.formatLinks
26583
26583
  : [],
26584
26584
  linkages: { compliance: [] },
26585
26585
  member_id: this.returnIds(entrustForm.assignors.list, 'member_id')?.length > 0
26586
26586
  ? this.returnIds(entrustForm.assignors.list, 'member_id')[0]
26587
26587
  : this.memberId,
26588
- objective: moreOptions.OBJECTIVE ? objective : '',
26588
+ objective: moreOptions?.OBJECTIVE ? objective : '',
26589
26589
  on_completion_of: entrustForm.reportId ? [entrustForm.reportId] : [],
26590
26590
  on_completion_of_type: 1,
26591
26591
  organisation_id: this.organizationId,
@@ -26595,7 +26595,7 @@ class WorkflowComplianceComponent {
26595
26595
  private_library_id: 0,
26596
26596
  remarks: remarks,
26597
26597
  reminder_before_days: entrustForm.reminder_before_days,
26598
- report_format: moreOptions.FORMATE_EVIDENCE
26598
+ report_format: moreOptions?.FORMATE_EVIDENCE
26599
26599
  ? entrustForm.formatAndEvidence.formatFiles
26600
26600
  : [],
26601
26601
  report_format_link: '',
@@ -26603,17 +26603,17 @@ class WorkflowComplianceComponent {
26603
26603
  report_upload_flag: entrustForm.formatAndEvidence.evidenceRequired
26604
26604
  ? 1
26605
26605
  : 0,
26606
- review_after_days: moreOptions.REVIEWER
26606
+ review_after_days: moreOptions?.REVIEWER
26607
26607
  ? entrustForm.reviewers.reviewFrequency.reviewCompleteDays === ''
26608
26608
  ? 0
26609
26609
  : Number(entrustForm.reviewers.reviewFrequency.reviewCompleteDays)
26610
26610
  : 0,
26611
- review_failed_after_days: moreOptions.REVIEWER
26611
+ review_failed_after_days: moreOptions?.REVIEWER
26612
26612
  ? entrustForm.reviewers.reviewFrequency.reviewNOtCompletedDays === ''
26613
26613
  ? 0
26614
26614
  : Number(entrustForm.reviewers.reviewFrequency.reviewNOtCompletedDays)
26615
26615
  : 0,
26616
- reviewer_arr: moreOptions.REVIEWER
26616
+ reviewer_arr: moreOptions?.REVIEWER
26617
26617
  ? {
26618
26618
  level1: {
26619
26619
  reviewers: this.setReviewerPayload(this.reviewerUserList, 'list', entrustForm.reviewers.acceptedData, entrustForm.reviewers.sequentialWorkflow
@@ -26652,22 +26652,22 @@ class WorkflowComplianceComponent {
26652
26652
  reviewer_id: 0,
26653
26653
  risk_class: this.isRiskEnable ? entrustForm.riskClass : 2,
26654
26654
  risk_ids: '',
26655
- risk_matrix_data: moreOptions.RISK_CLASSIFICATION
26655
+ risk_matrix_data: moreOptions?.RISK_CLASSIFICATION
26656
26656
  ? entrustForm.riskMatrix
26657
26657
  : '0,0,0,0,0,0',
26658
26658
  sample_size: 0,
26659
26659
  start_date_utc: startDate,
26660
26660
  statutory_day: 0,
26661
- test_required_flag: moreOptions.ASSURANCE
26661
+ test_required_flag: moreOptions?.ASSURANCE
26662
26662
  ? entrustForm.assuranceList?.length > 0
26663
26663
  ? 1
26664
26664
  : 0
26665
26665
  : 0,
26666
- testplan_category_id: moreOptions.ASSURANCE
26666
+ testplan_category_id: moreOptions?.ASSURANCE
26667
26667
  ? this.returnIds(entrustForm.assuranceList, 'category_id')
26668
26668
  : [],
26669
26669
  testplan_category_manager: '',
26670
- audit_category_details: moreOptions.REQUIRES_AUDIT &&
26670
+ audit_category_details: moreOptions?.REQUIRES_AUDIT &&
26671
26671
  this.responsibilityForm?.audit_category_details?.category_id
26672
26672
  ? {
26673
26673
  category_id: this.responsibilityForm.audit_category_details.category_id,
@@ -26684,39 +26684,39 @@ class WorkflowComplianceComponent {
26684
26684
  frequency_time: '',
26685
26685
  },
26686
26686
  assessment: {
26687
- category_id: moreOptions.ASSESSMENT
26687
+ category_id: moreOptions?.ASSESSMENT
26688
26688
  ? entrustForm?.assessment?.category_id
26689
26689
  : '',
26690
- assessment_id: moreOptions.ASSESSMENT
26690
+ assessment_id: moreOptions?.ASSESSMENT
26691
26691
  ? entrustForm?.assessment?.assessment_id
26692
26692
  : '',
26693
26693
  },
26694
- assessment_checkpoint: moreOptions.CHECKPOINTS_NEW
26694
+ assessment_checkpoint: moreOptions?.CHECKPOINTS_NEW
26695
26695
  ? Object.keys(entrustForm?.new_checkpoints)?.length > 0
26696
26696
  ? entrustForm?.new_checkpoints
26697
26697
  : {}
26698
26698
  : {},
26699
- questionnaire_type: moreOptions.CHECKPOINTS_NEW
26699
+ questionnaire_type: moreOptions?.CHECKPOINTS_NEW
26700
26700
  ? Object.keys(entrustForm?.new_checkpoints)?.length > 0
26701
26701
  ? 'assessment_checkpoint'
26702
- : moreOptions.ASSESSMENT && entrustForm?.assessment?.category_id
26702
+ : moreOptions?.ASSESSMENT && entrustForm?.assessment?.category_id
26703
26703
  ? 'assessment'
26704
- : JSON.stringify(this.responsibilityForm.checkpoints) != '' &&
26705
- moreOptions.CHECKPOINTS
26704
+ : JSON.stringify(this.responsibilityForm?.checkpoints) != '' &&
26705
+ moreOptions?.CHECKPOINTS
26706
26706
  ? 'checkpoint'
26707
26707
  : ''
26708
26708
  : '',
26709
- linked_GRC_ids: moreOptions.GRC_OBJECTS
26709
+ linked_GRC_ids: moreOptions?.GRC_OBJECTS
26710
26710
  ? entrustForm.selectedGRCObjects.map((grc) => grc._id)
26711
26711
  : [],
26712
26712
  };
26713
26713
  if (this.isResponsibilityRcLinkEnabled) {
26714
26714
  payload['responsibilityCenterType'] =
26715
- this.isResponsibilityRcLinkEnabled && moreOptions.RC
26715
+ this.isResponsibilityRcLinkEnabled && moreOptions?.RC
26716
26716
  ? this.responsibilityCenterType
26717
26717
  : 0;
26718
26718
  payload['responsibilityCenterArr'] =
26719
- this.isResponsibilityRcLinkEnabled && moreOptions.RC
26719
+ this.isResponsibilityRcLinkEnabled && moreOptions?.RC
26720
26720
  ? rcDetailsIdArr
26721
26721
  : [];
26722
26722
  }