@csmart/ngc-smart-victim 1.18.7 → 1.18.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. package/karma.conf.js +32 -0
  2. package/ng-package.json +7 -0
  3. package/package.json +6 -22
  4. package/src/lib/caseNote/caseNote.component.css +22 -0
  5. package/src/lib/caseNote/caseNote.component.html +188 -0
  6. package/src/lib/caseNote/caseNote.component.ts +265 -0
  7. package/src/lib/common-dialog/common-dialog.component.css +10 -0
  8. package/src/lib/common-dialog/common-dialog.component.html +23 -0
  9. package/src/lib/common-dialog/common-dialog.component.spec.ts +25 -0
  10. package/src/lib/common-dialog/common-dialog.component.ts +21 -0
  11. package/src/lib/common-dialog/common-dialog.module.ts +22 -0
  12. package/src/lib/common-dialog/common-dialog.service.ts +35 -0
  13. package/src/lib/contact/contact.component.css +22 -0
  14. package/src/lib/contact/contact.component.html +124 -0
  15. package/src/lib/contact/contact.component.ts +176 -0
  16. package/src/lib/email-notification.service.ts +42 -0
  17. package/src/lib/email.services.ts +51 -0
  18. package/src/lib/http.service.ts +34 -0
  19. package/src/lib/intake.service.ts +82 -0
  20. package/src/lib/loader.service.ts +11 -0
  21. package/src/lib/safetyPlan/serviceProvider.component.ts +94 -0
  22. package/src/lib/safetyPlan/victimSafetyPlan.component.css +27 -0
  23. package/src/lib/safetyPlan/victimSafetyPlan.component.html +85 -0
  24. package/src/lib/safetyPlan/victimSafetyPlan.component.ts +178 -0
  25. package/src/lib/safetyPlan/victimSafetyPlanDetail.component.html +234 -0
  26. package/src/lib/safetyPlan/victimSafetyPlanDetail.component.ts +492 -0
  27. package/src/lib/shared/app.shared.module.ts +111 -0
  28. package/src/lib/shared/validators/date.validator.ts +73 -0
  29. package/src/lib/shared/validators/index.ts +1 -0
  30. package/src/lib/smart-victim-delete-confirm.component.ts +35 -0
  31. package/src/lib/smart-victim-detail/smart-victim-detail.component.css +43 -0
  32. package/src/lib/smart-victim-detail/smart-victim-detail.component.html +869 -0
  33. package/src/lib/smart-victim-detail/smart-victim-detail.component.spec.ts +25 -0
  34. package/src/lib/smart-victim-detail/smart-victim-detail.component.ts +1387 -0
  35. package/src/lib/smart-victim.component.css +245 -0
  36. package/src/lib/smart-victim.component.html +132 -0
  37. package/src/lib/smart-victim.component.spec.ts +25 -0
  38. package/src/lib/smart-victim.component.ts +333 -0
  39. package/src/lib/smart-victim.model.ts +301 -0
  40. package/src/lib/smart-victim.module.ts +110 -0
  41. package/src/lib/smart-victim.service.spec.ts +12 -0
  42. package/src/lib/smart-victim.service.ts +557 -0
  43. package/src/lib/victim-routing.module.ts +35 -0
  44. package/{lib/victimSearch/VictimSearchFilter.d.ts → src/lib/victimSearch/VictimSearchFilter.ts} +9 -7
  45. package/src/lib/victimSearch/victimSearchForm.component.html +35 -0
  46. package/src/lib/victimSearch/victimSearchForm.component.ts +41 -0
  47. package/{public-api.d.ts → src/public-api.ts} +12 -7
  48. package/src/test.ts +16 -0
  49. package/tsconfig.lib.json +36 -0
  50. package/tsconfig.spec.json +17 -0
  51. package/tslint.json +17 -0
  52. package/esm2022/csmart-ngc-smart-victim.mjs +0 -5
  53. package/esm2022/lib/caseNote/caseNote.component.mjs +0 -194
  54. package/esm2022/lib/common-dialog/common-dialog.component.mjs +0 -23
  55. package/esm2022/lib/common-dialog/common-dialog.module.mjs +0 -34
  56. package/esm2022/lib/common-dialog/common-dialog.service.mjs +0 -33
  57. package/esm2022/lib/contact/contact.component.mjs +0 -140
  58. package/esm2022/lib/email.services.mjs +0 -42
  59. package/esm2022/lib/intake.service.mjs +0 -57
  60. package/esm2022/lib/safetyPlan/serviceProvider.component.mjs +0 -99
  61. package/esm2022/lib/safetyPlan/victimSafetyPlan.component.mjs +0 -116
  62. package/esm2022/lib/safetyPlan/victimSafetyPlanDetail.component.mjs +0 -340
  63. package/esm2022/lib/shared/app.shared.module.mjs +0 -215
  64. package/esm2022/lib/shared/validators/date.validator.mjs +0 -59
  65. package/esm2022/lib/shared/validators/index.mjs +0 -2
  66. package/esm2022/lib/smart-victim-delete-confirm.component.mjs +0 -44
  67. package/esm2022/lib/smart-victim-detail/smart-victim-detail.component.mjs +0 -1104
  68. package/esm2022/lib/smart-victim.component.mjs +0 -316
  69. package/esm2022/lib/smart-victim.model.mjs +0 -133
  70. package/esm2022/lib/smart-victim.module.mjs +0 -128
  71. package/esm2022/lib/smart-victim.service.mjs +0 -352
  72. package/esm2022/lib/victim-routing.module.mjs +0 -41
  73. package/esm2022/lib/victimSearch/VictimSearchFilter.mjs +0 -3
  74. package/esm2022/lib/victimSearch/victimSearchForm.component.mjs +0 -38
  75. package/esm2022/public-api.mjs +0 -11
  76. package/fesm2022/csmart-ngc-smart-victim.mjs +0 -3263
  77. package/fesm2022/csmart-ngc-smart-victim.mjs.map +0 -1
  78. package/index.d.ts +0 -5
  79. package/lib/caseNote/caseNote.component.d.ts +0 -51
  80. package/lib/common-dialog/common-dialog.component.d.ts +0 -14
  81. package/lib/common-dialog/common-dialog.module.d.ts +0 -8
  82. package/lib/common-dialog/common-dialog.service.d.ts +0 -11
  83. package/lib/contact/contact.component.d.ts +0 -40
  84. package/lib/email.services.d.ts +0 -11
  85. package/lib/intake.service.d.ts +0 -57
  86. package/lib/safetyPlan/serviceProvider.component.d.ts +0 -19
  87. package/lib/safetyPlan/victimSafetyPlan.component.d.ts +0 -54
  88. package/lib/safetyPlan/victimSafetyPlanDetail.component.d.ts +0 -62
  89. package/lib/shared/app.shared.module.d.ts +0 -33
  90. package/lib/shared/validators/date.validator.d.ts +0 -9
  91. package/lib/shared/validators/index.d.ts +0 -1
  92. package/lib/smart-victim-delete-confirm.component.d.ts +0 -12
  93. package/lib/smart-victim-detail/smart-victim-detail.component.d.ts +0 -129
  94. package/lib/smart-victim.component.d.ts +0 -69
  95. package/lib/smart-victim.model.d.ts +0 -205
  96. package/lib/smart-victim.module.d.ts +0 -49
  97. package/lib/smart-victim.service.d.ts +0 -71
  98. package/lib/victim-routing.module.d.ts +0 -7
  99. package/lib/victimSearch/victimSearchForm.component.d.ts +0 -14
@@ -1,128 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { CommonModule } from '@angular/common';
3
- import { ReactiveFormsModule, FormsModule } from '@angular/forms';
4
- // import {
5
- // MatMenuModule, MatProgressBarModule,
6
- // MatSidenavModule,
7
- // MatPaginatorModule,
8
- // } from '@angular/material';
9
- import { MatButtonModule } from '@angular/material/button';
10
- import { MatCheckboxModule } from '@angular/material/checkbox';
11
- import { MatCardModule } from '@angular/material/card';
12
- import { MatSliderModule } from '@angular/material/slider';
13
- import { MatListModule } from '@angular/material/list';
14
- import { MatIconModule } from '@angular/material/icon';
15
- import { MatButtonToggleModule } from '@angular/material/button-toggle';
16
- import { MatToolbarModule } from '@angular/material/toolbar';
17
- import { MatRadioModule } from '@angular/material/radio';
18
- import { MatInputModule } from '@angular/material/input';
19
- import { MatSlideToggleModule } from '@angular/material/slide-toggle';
20
- import { MatDatepickerModule } from '@angular/material/datepicker';
21
- import { MatNativeDateModule } from '@angular/material/core';
22
- import { MatDialogModule } from '@angular/material/dialog';
23
- import { MatExpansionModule } from '@angular/material/expansion';
24
- import { MatSelectModule } from '@angular/material/select';
25
- import { MatTableModule } from '@angular/material/table';
26
- import { MatSortModule } from '@angular/material/sort';
27
- import { MatGridListModule } from '@angular/material/grid-list';
28
- import { MatTabsModule } from '@angular/material/tabs';
29
- import { CdkTableModule } from '@angular/cdk/table';
30
- import { LayoutModule } from '@angular/cdk/layout';
31
- import { SmartAddressModule } from '@csmart/ngc-smart-address';
32
- import { NgcSmartVictimComponent } from './smart-victim.component';
33
- import { NgcSmartVictimService } from './smart-victim.service';
34
- import { SmartVictimDetailComponent } from './smart-victim-detail/smart-victim-detail.component';
35
- import { SmartVictimDeleteConfirmComponent } from './smart-victim-delete-confirm.component';
36
- import { CommonDialogModule } from './common-dialog/common-dialog.module';
37
- import { VictimRoutingModule } from './victim-routing.module';
38
- import { CaseNoteComponent } from './caseNote/caseNote.component';
39
- import { ContactComponent } from './contact/contact.component';
40
- import { VictimSafetyPlanComponent } from './safetyPlan/victimSafetyPlan.component';
41
- import { VictimSafetyPlanDetailComponent } from './safetyPlan/victimSafetyPlanDetail.component';
42
- import { VictimSearchFormComponent } from './victimSearch/victimSearchForm.component';
43
- import { ApolloModule } from 'apollo-angular';
44
- import { SeriveProviderComponent } from './safetyPlan/serviceProvider.component';
45
- import { NgcSmartCoreModule } from '@csmart/ngc-smart-core';
46
- import { MatMenuModule } from '@angular/material/menu';
47
- import { MatProgressBarModule } from '@angular/material/progress-bar';
48
- import { MatPaginatorModule } from '@angular/material/paginator';
49
- import { MatSidenavModule } from '@angular/material/sidenav';
50
- import { SmartUiModule } from '@csmart/smart-ui';
51
- import * as i0 from "@angular/core";
52
- const COMPONENTS = [
53
- NgcSmartVictimComponent,
54
- SmartVictimDetailComponent,
55
- SmartVictimDeleteConfirmComponent,
56
- ];
57
- const ENTRY_COMPONENTS = [
58
- SmartVictimDeleteConfirmComponent,
59
- ];
60
- const BASE_MODULES = [
61
- CommonModule,
62
- ReactiveFormsModule
63
- ];
64
- const CORE_MODULES = [NgcSmartCoreModule, SmartAddressModule, SmartUiModule,];
65
- const MATERIAL_MODULES = [
66
- MatButtonModule, MatCheckboxModule, MatRadioModule, MatSliderModule,
67
- MatCardModule, MatSlideToggleModule,
68
- MatListModule, MatIconModule, MatButtonToggleModule,
69
- MatToolbarModule, MatTabsModule, MatExpansionModule,
70
- MatMenuModule, MatInputModule, MatProgressBarModule,
71
- MatDatepickerModule, MatNativeDateModule, MatPaginatorModule,
72
- MatDialogModule, MatSidenavModule, MatSelectModule,
73
- MatTableModule, MatSortModule, MatGridListModule, CdkTableModule, LayoutModule,
74
- ];
75
- export class NgcSmartVictimModule {
76
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: NgcSmartVictimModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
77
- /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.1.0", ngImport: i0, type: NgcSmartVictimModule, declarations: [NgcSmartVictimComponent,
78
- SmartVictimDetailComponent,
79
- SmartVictimDeleteConfirmComponent, CaseNoteComponent,
80
- ContactComponent,
81
- VictimSafetyPlanComponent,
82
- VictimSafetyPlanDetailComponent,
83
- VictimSearchFormComponent,
84
- SeriveProviderComponent], imports: [CommonModule,
85
- ReactiveFormsModule, MatButtonModule, MatCheckboxModule, MatRadioModule, MatSliderModule,
86
- MatCardModule, MatSlideToggleModule,
87
- MatListModule, MatIconModule, MatButtonToggleModule,
88
- MatToolbarModule, MatTabsModule, MatExpansionModule,
89
- MatMenuModule, MatInputModule, MatProgressBarModule,
90
- MatDatepickerModule, MatNativeDateModule, MatPaginatorModule,
91
- MatDialogModule, MatSidenavModule, MatSelectModule,
92
- MatTableModule, MatSortModule, MatGridListModule, CdkTableModule, LayoutModule, NgcSmartCoreModule, SmartAddressModule, SmartUiModule, CommonDialogModule,
93
- FormsModule,
94
- VictimRoutingModule,
95
- ApolloModule], exports: [NgcSmartVictimComponent,
96
- SmartVictimDetailComponent,
97
- SmartVictimDeleteConfirmComponent, ApolloModule] }); }
98
- /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: NgcSmartVictimModule, providers: [NgcSmartVictimService], imports: [BASE_MODULES, MATERIAL_MODULES, CORE_MODULES, CommonDialogModule,
99
- FormsModule,
100
- VictimRoutingModule,
101
- ApolloModule, ApolloModule] }); }
102
- }
103
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: NgcSmartVictimModule, decorators: [{
104
- type: NgModule,
105
- args: [{
106
- declarations: [...COMPONENTS,
107
- CaseNoteComponent,
108
- ContactComponent,
109
- VictimSafetyPlanComponent,
110
- VictimSafetyPlanDetailComponent,
111
- VictimSearchFormComponent,
112
- SeriveProviderComponent
113
- ],
114
- imports: [
115
- ...BASE_MODULES,
116
- ...MATERIAL_MODULES,
117
- ...CORE_MODULES,
118
- CommonDialogModule,
119
- FormsModule,
120
- VictimRoutingModule,
121
- ApolloModule,
122
- //SharedModule
123
- ],
124
- exports: [...COMPONENTS, ApolloModule],
125
- providers: [NgcSmartVictimService]
126
- }]
127
- }] });
128
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnQtdmljdGltLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL25nYy1zbWFydC12aWN0aW0vc3JjL2xpYi9zbWFydC12aWN0aW0ubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxtQkFBbUIsRUFBQyxXQUFXLEVBQUMsTUFBTSxnQkFBZ0IsQ0FBQztBQUNoRSxXQUFXO0FBR1gseUNBQXlDO0FBRXpDLHNCQUFzQjtBQUN0Qix1QkFBdUI7QUFDdkIsOEJBQThCO0FBRTlCLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQztBQUMzRCxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSw0QkFBNEIsQ0FBQztBQUMvRCxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFDdkQsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLDBCQUEwQixDQUFDO0FBQzNELE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQUN2RCxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFDdkQsT0FBTyxFQUFFLHFCQUFxQixFQUFFL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uICAgICAgICBWaWN0aW1Sb3V0aW5nTW9kdWxlLFxyXG4gICAgICAgIEFwb2xsb01vZHVsZSxcclxuICAgICAgICAvL1NoYXJlZE1vZHVsZVxyXG4gICAgICAgIFxyXG4gICAgXSxcclxuICAgIGV4cG9ydHM6IFsuLi5DT01QT05FTlRTLCBBcG9sbG9Nb2R1bGVdLFxyXG4gICAgcHJvdmlkZXJzOiBbTmdjU21hcnRWaWN0aW1TZXJ2aWNlXVxyXG59KVxyXG5leHBvcnQgY2xhc3MgTmdjU21hcnRWaWN0aW1Nb2R1bGUgeyB9XHJcbiJdfQ==
@@ -1,352 +0,0 @@
1
- import { HttpClient, HttpHeaders } from '@angular/common/http';
2
- import { Injectable, Inject } from '@angular/core';
3
- import { SMART_LOOKUP_SERVICE_URL, SMART_OFFENDER_SERVICE_URL, SMART_VICTIM_SERVICE_URL } from './smart-victim.model';
4
- import { throwError as observableThrowError } from 'rxjs';
5
- import { map, catchError } from 'rxjs/operators';
6
- import { Apollo } from 'apollo-angular';
7
- import * as i0 from "@angular/core";
8
- import * as i1 from "@angular/common/http";
9
- import * as i2 from "apollo-angular";
10
- const headers = new HttpHeaders({ 'Content-Type': 'application/json' });
11
- const options = { headers: headers };
12
- export class NgcSmartVictimService {
13
- constructor(http, smartOffenderServiceUrl, smartLookupServiceUrl, smartVictimServiceUrl, apollo) {
14
- this.http = http;
15
- this.smartOffenderServiceUrl = smartOffenderServiceUrl;
16
- this.smartLookupServiceUrl = smartLookupServiceUrl;
17
- this.smartVictimServiceUrl = smartVictimServiceUrl;
18
- this.apollo = apollo;
19
- this.serviceApiUrl = 'https://smart-service-test.azurewebsites.net/graphql';
20
- }
21
- // getVictimInsurances(offenderId: any) {
22
- // return this.http.get(this.smartOffenderServiceUrl + '/VictimInsurances/?offenderId=' + offenderId).pipe();
23
- // }
24
- // getVictimInsurance(id: any) {
25
- // return this.http.get(this.smartOffenderServiceUrl + '/VictimInsurances/?id=' + id).pipe();
26
- // }
27
- // postVictimInsurance(val: any) {
28
- // return this.http.post(this.smartOffenderServiceUrl + '/VictimInsurances', val).pipe();
29
- // }
30
- // putVictimInsurance(id: any, val: any) {
31
- // return this.http.put(this.smartOffenderServiceUrl + '/VictimInsurances/?id=' + id, val).pipe();
32
- // }
33
- // deleteVictimInsurance(id: any) {
34
- // return this.http.delete(this.smartOffenderServiceUrl + '/VictimInsurances/?id=' + id).pipe();
35
- // }
36
- // getVictimInsuranceTypes() {
37
- // return this.http.get(this.smartLookupServiceUrl + '/VictimInsuranceTypes').pipe();
38
- // }
39
- // getVictimInsurancePolicyHolders() {
40
- // return this.http.get(this.smartLookupServiceUrl + '/VictimInsurancePolicyHolders').pipe();
41
- // }
42
- // getVictimInsuranceSwitchReasons() {
43
- // return this.http.get(this.smartLookupServiceUrl + '/VictimInsuranceSwitchReasons').pipe();
44
- // }
45
- // getVictimInsuranceProviders() {
46
- // return this.http.get(this.smartLookupServiceUrl + '/VictimInsuranceProvider').pipe();
47
- // }
48
- // getVictimInsuranceProvider(id) {
49
- // return this.http.get(this.smartLookupServiceUrl + '/VictimInsuranceProviders/' + id).pipe();
50
- // }
51
- // postProviderInformation(val: any) {
52
- // return this.http.post(this.smartLookupServiceUrl + '/VictimInsuranceProviders', val).pipe();
53
- // }
54
- getCurrentHousing(offenderId) {
55
- return this.http
56
- .get(this.smartOffenderServiceUrl + 'Housings/current/' + offenderId)
57
- .pipe();
58
- }
59
- handleError(error) {
60
- console.error(error);
61
- return observableThrowError(error.json().error || 'Server error');
62
- }
63
- getDrugsTypes() {
64
- return this.http.get(this.smartLookupServiceUrl + 'DrugTypes', options).pipe(map(res => res));
65
- }
66
- getDocketList(offenderId) {
67
- const queryString = `
68
- {
69
- findDockets(input: { where: { offenderId:${offenderId} } }) {
70
- totalCount
71
- message
72
- data {
73
- docketId
74
- docketNumber
75
-
76
- }
77
- }
78
- }`;
79
- return this.http.post(this.serviceApiUrl, { query: queryString }).pipe(map(({ data }) => {
80
- console.log('dockets for this offender:', data.findDockets.data);
81
- return data.findDockets.data;
82
- }));
83
- }
84
- getSupportTypes() {
85
- return this.http.get(this.smartLookupServiceUrl + 'VictimSupportTypes', options).pipe(map(res => res));
86
- }
87
- getPrefixes() {
88
- return this.http.get(this.smartLookupServiceUrl + 'Prefixes', options).pipe(map(res => res));
89
- }
90
- getSuffixes() {
91
- return this.http.get(this.smartLookupServiceUrl + 'Suffixes', options).pipe(map(res => res));
92
- }
93
- getRelationshipTypes() {
94
- return this.http.get(this.smartLookupServiceUrl + 'RelationshipTypes', options).pipe(map(res => res));
95
- }
96
- getGenders() {
97
- return this.http.get(this.smartLookupServiceUrl + 'Genders', options).pipe(map(res => res));
98
- }
99
- getWeaponTypes() {
100
- return this.http.get(this.smartLookupServiceUrl + 'WeaponTypes', options).pipe(map(res => res));
101
- }
102
- getFlagOptionYesNoUnknowns() {
103
- return this.http.get(this.smartLookupServiceUrl + 'FlagOptionYesNoUnknowns', options).pipe(map(res => {
104
- return res;
105
- }));
106
- }
107
- getContactTypes() {
108
- return this.http.get(this.smartLookupServiceUrl + 'ContactTypes', options).pipe(map(res => {
109
- return res;
110
- }));
111
- }
112
- getContactMethods() {
113
- return this.http.get(this.smartLookupServiceUrl + 'VictimContactMethods', options).pipe(map(res => {
114
- return res;
115
- }));
116
- }
117
- getContactBys() {
118
- return this.http.get(this.smartLookupServiceUrl + 'VictimContactPurposes', options).pipe(map(res => {
119
- return res;
120
- }));
121
- }
122
- getVictimContactPurposes() {
123
- return this.http.get(this.smartLookupServiceUrl + 'VictimContactPurposes', options).pipe(map(res => {
124
- return res;
125
- }));
126
- }
127
- getVictimServiceTypes() {
128
- return this.http.get(this.smartLookupServiceUrl + 'VictimServiceTypes', options).pipe(map(res => {
129
- return res;
130
- }));
131
- }
132
- getVictimServiceStatus() {
133
- return this.http.get(this.smartLookupServiceUrl + 'VictimServiceStatus', options).pipe(map(res => {
134
- return res;
135
- }));
136
- }
137
- getvVictimServiceTypeProgramProviders() {
138
- return this.http.get(this.smartLookupServiceUrl + 'vVictimServiceTypeProgramProviders', options).pipe(map(res => {
139
- return res;
140
- }));
141
- }
142
- getVictim(val) {
143
- return this.http.get(this.smartVictimServiceUrl + 'Victims/' + val, options).pipe(map(res => {
144
- console.log('victim return data');
145
- console.log(res);
146
- return res;
147
- }));
148
- }
149
- getVictimAdvocate(val) {
150
- return this.http.get(this.smartVictimServiceUrl + 'VictimAdvocates/' + val, options).pipe(map(res => {
151
- return res;
152
- }));
153
- }
154
- getVictimGuardian(val) {
155
- return this.http.get(this.smartVictimServiceUrl + 'VictimGuardians/' + val, options).pipe(map(res => {
156
- return res;
157
- }));
158
- }
159
- postVictims(val) {
160
- const tempVal = JSON.stringify(val);
161
- return this.http.post(this.smartVictimServiceUrl + 'Victims', tempVal, options).pipe(map(res => { return res; }));
162
- }
163
- putVictims(id, val) {
164
- const tempVal = JSON.stringify(val);
165
- return this.http.put(this.smartVictimServiceUrl + 'Victims/' + id, tempVal, options).pipe(map(res => { return res; }));
166
- }
167
- putVictimAdvocate(id, val) {
168
- let body;
169
- body = JSON.stringify(val);
170
- return this.http.put(this.smartVictimServiceUrl + 'VictimAdvocates/' + id, body, options).pipe(map(res => { return res; }));
171
- }
172
- postVictimAdvocate(id, val) {
173
- const tempVal = JSON.stringify(val);
174
- return this.http.post(this.smartVictimServiceUrl + 'VictimAdvocates/' + id, tempVal, options).pipe(map(res => { return res; }));
175
- }
176
- putVictimGuardian(id, val) {
177
- console.log('update victim guardian');
178
- console.log(val);
179
- const tempVal = JSON.stringify(val);
180
- return this.http.put(this.smartVictimServiceUrl + 'VictimGuardians/' + id, tempVal, options).pipe(map(res => { return res; }));
181
- }
182
- postVictimGuardian(id, val) {
183
- const tempVal = JSON.stringify(val);
184
- return this.http.post(this.smartVictimServiceUrl + 'VictimGuardians/' + id, tempVal, options).pipe(map(res => { return res; }));
185
- }
186
- getVictimDrugUse(val) {
187
- return this.http.get(this.smartVictimServiceUrl + 'VictimDrugUses/' + val, options).pipe(map((res) => {
188
- return res;
189
- }));
190
- }
191
- putVictimDrugUse(id, val) {
192
- const tempVal = JSON.stringify(val);
193
- return this.http.put(this.smartVictimServiceUrl + 'VictimDrugUses/' + id, tempVal, options).pipe(map(res => { return res; }));
194
- }
195
- postVictimDrugUse(id, val) {
196
- const tempVal = JSON.stringify(val);
197
- return this.http.post(this.smartVictimServiceUrl + 'VictimDrugUses/' + id, tempVal, options).pipe(map(res => { return res; }));
198
- }
199
- putVictimWeaponUse(id, val) {
200
- const tempVal = JSON.stringify(val);
201
- return this.http.put(this.smartVictimServiceUrl + 'VictimWeaponUses/' + id, tempVal, options).pipe(map(res => { return res; }));
202
- }
203
- postVictimWeaponUse(id, val) {
204
- const tempVal = JSON.stringify(val);
205
- return this.http.post(this.smartVictimServiceUrl + 'VictimWeaponUses/' + id, tempVal, options).pipe(map(res => { return res; }));
206
- }
207
- putVictimSupport(id, val) {
208
- const tempVal = JSON.stringify(val);
209
- return this.http.put(this.smartVictimServiceUrl + 'VictimSupports/' + id, tempVal, options).pipe(map(res => { return res; }));
210
- }
211
- postVictimSupport(id, val) {
212
- const tempVal = JSON.stringify(val);
213
- return this.http.post(this.smartVictimServiceUrl + 'VictimSupports/' + id, tempVal, options).pipe(map(res => { return res; }));
214
- }
215
- deleteVictims(val, staffId) {
216
- return this.http.delete(this.smartVictimServiceUrl + 'Victims/' + val + '?staffId=' + staffId, options).pipe(map(res => { return res; }));
217
- }
218
- // //==============Victim Serive===================================
219
- getVictims(offenderId) {
220
- return this.http.get(this.smartVictimServiceUrl + 'Victims/offender/' + offenderId)
221
- .pipe(map((res) => {
222
- return res;
223
- }), catchError(this.handleError));
224
- }
225
- getVictimsByFilter(filter) {
226
- return this.http
227
- .post(this.smartVictimServiceUrl + '/Victims', JSON.stringify(filter), { headers: headers })
228
- .pipe(map((res) => {
229
- return res;
230
- }), catchError(this.handleError));
231
- }
232
- getVictimListByFilter(filter) {
233
- console.log('filer in service');
234
- console.log(filter);
235
- return this.http
236
- .post(this.smartVictimServiceUrl + 'vVictims/Filter', JSON.stringify(filter), options)
237
- .pipe();
238
- }
239
- getCasetNotes(victimId) {
240
- return this.http.get(this.smartVictimServiceUrl + 'VictimCaseNotes/victim/' + victimId)
241
- .pipe(map((res) => {
242
- return res;
243
- }), catchError(this.handleError));
244
- }
245
- addCaseNote(caseNote) {
246
- let body;
247
- body = JSON.stringify(caseNote);
248
- return this.http
249
- .post(this.smartVictimServiceUrl + 'VictimCaseNotes/', body, options);
250
- }
251
- updateCaseNote(caseNote) {
252
- let body;
253
- body = JSON.stringify(caseNote);
254
- return this.http
255
- .put(this.smartVictimServiceUrl + 'VictimCaseNotes/' + caseNote.victimCaseNoteId, body, options);
256
- }
257
- deleteCaseNote(id, staffId) {
258
- return this.http.delete(`${this.smartVictimServiceUrl}VictimCaseNotes/${id}?staffId=${staffId}`);
259
- }
260
- getContacts(victimId) {
261
- return this.http.get(this.smartVictimServiceUrl + 'VictimContacts/victim/' + victimId)
262
- .pipe(map((res) => {
263
- return res;
264
- }), catchError(this.handleError));
265
- }
266
- addContact(contact) {
267
- let body;
268
- body = JSON.stringify(contact);
269
- return this.http
270
- .post(this.smartVictimServiceUrl + 'VictimContacts/', body, options);
271
- }
272
- updateContact(contact) {
273
- let body;
274
- body = JSON.stringify(contact);
275
- return this.http
276
- .put(this.smartVictimServiceUrl + 'VictimContacts/' + contact.victimContactId, body, options);
277
- }
278
- getSafetyPlans(victimId) {
279
- return this.http.get(this.smartVictimServiceUrl + 'vVictimServiceLists/victim/' + victimId)
280
- .pipe(map((res) => {
281
- return res;
282
- }), catchError(this.handleError));
283
- }
284
- getVictimServices(victimServiceId) {
285
- return this.http.get(this.smartVictimServiceUrl + 'vVictimServiceLists/victimServiceId/' + victimServiceId)
286
- .pipe(map((res) => {
287
- return res;
288
- }), catchError(this.handleError));
289
- }
290
- getVictimServiceDetail(victimServiceId) {
291
- return this.http.get(this.smartVictimServiceUrl + 'VictimServiceDetails/' + victimServiceId)
292
- .pipe(map((res) => {
293
- return res;
294
- }), catchError(this.handleError));
295
- }
296
- addSafetyPlan(victimSafetyPlan) {
297
- let body;
298
- body = JSON.stringify(victimSafetyPlan);
299
- return this.http
300
- .post(this.smartVictimServiceUrl + 'VictimServices/', body, options)
301
- .pipe();
302
- }
303
- updateSafetyPlan(victimSafetyPlan) {
304
- let body;
305
- body = JSON.stringify(victimSafetyPlan);
306
- return this.http
307
- .put(this.smartVictimServiceUrl + 'VictimServices/' + victimSafetyPlan.victimServiceId, body, options);
308
- }
309
- addVictimServiceStatus(victimServiceStatusHistory) {
310
- let body;
311
- body = JSON.stringify(victimServiceStatusHistory);
312
- return this.http
313
- .post(this.smartVictimServiceUrl + 'VictimServiceStatusHistories/', body, options);
314
- }
315
- getServiceStatusHistories(victimServiceId) {
316
- return this.http.get(this.smartVictimServiceUrl + 'VictimServiceStatusHistories/victimServiceId/' + victimServiceId)
317
- .pipe(map((res) => {
318
- return res;
319
- }), catchError(this.handleError));
320
- }
321
- deleteSafetyPlan(victimServiceId, staffId) {
322
- return this.http.delete(`${this.smartVictimServiceUrl}VictimServices/${victimServiceId}?staffId=${staffId}`);
323
- }
324
- addPlanProvider(victimServiceDetail) {
325
- let body;
326
- body = JSON.stringify(victimServiceDetail);
327
- return this.http
328
- .post(this.smartVictimServiceUrl + 'VictimServiceDetails/', body, options)
329
- .pipe();
330
- }
331
- deleteProvider(victimProgramProviderId, staffId) {
332
- return this.http.delete(`${this.smartVictimServiceUrl}VictimServiceDetails/${victimProgramProviderId}?staffId=${staffId}`);
333
- }
334
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: NgcSmartVictimService, deps: [{ token: i1.HttpClient }, { token: SMART_OFFENDER_SERVICE_URL }, { token: SMART_LOOKUP_SERVICE_URL }, { token: SMART_VICTIM_SERVICE_URL }, { token: i2.Apollo }], target: i0.ɵɵFactoryTarget.Injectable }); }
335
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: NgcSmartVictimService, providedIn: 'root' }); }
336
- }
337
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: NgcSmartVictimService, decorators: [{
338
- type: Injectable,
339
- args: [{
340
- providedIn: 'root'
341
- }]
342
- }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
343
- type: Inject,
344
- args: [SMART_OFFENDER_SERVICE_URL]
345
- }] }, { type: undefined, decorators: [{
346
- type: Inject,
347
- args: [SMART_LOOKUP_SERVICE_URL]
348
- }] }, { type: undefined, decorators: [{
349
- type: Inject,
350
- args: [SMART_VICTIM_SERVICE_URL]
351
- }] }, { type: i2.Apollo }] });
352
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnQtdmljdGltLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ2Mtc21hcnQtdmljdGltL3NyYy9saWIvc21hcnQtdmljdGltLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBZ0IsV0FBVyxFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFDN0UsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDbkQsT0FBTyxFQUFFLHdCQUF3QixFQUFFLDBCQUEwQixFQUFDLHdCQUF3QixFQUVXLE1BQU0sc0JBQXNCLENBQUM7QUFDOUgsT0FBTyxFQUFjLFVBQVUsSUFBSSxvQkFBb0IsRUFBQyxNQUFNLE1BQU0sQ0FBQztBQUNyRSxPQUFPLEVBQUUsR0FBRyxFQUFDLFVBQVUsRUFBVSxNQUFNLGdCQUFnQixDQUFDO0FBQ3hELE9BQU8sRUFBRSxNQUFNLEVBQUUsTUFB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XAocmVzID0+IHJlcylcclxuICAgICAgKTtcclxufVxyXG5cclxuZ2V0R2VuZGVycygpIHtcclxuICByZXR1cm4gdGhpcy5odHRwLmdldCh0aGlzLnNtYXJ0TG9va3VwU2VydmljZVVybCAgKyAnR2VuZGVycycsIG9wdGlvbnMpLnBpcGVcclxuICAgICAgKFxyXG4gICAgICBtYXAocmVzID0+IHJlcylcclxuICAgICAgKTtcclxufVxyXG5cclxuZ2V0V2VhcG9uVHlwZXMoKSB7XHJcbiAgcmV0dXJuIHRoaXMuaHR0cC5nZXQodGhpcy5zbWFydExvb2t1cFNlcnZpY2VVcmwgICsgJ1dlYXBvblR5cGVzJywgb3B0aW9ucykucGlwZVxyXG4gICAgICAoXHJcbiAgICAgIG1hcChyZXMgPT4gcmVzKVxyXG4gICAgICApO1xyXG59XHJcblxyXG5nZXRGbGFnT3B0aW9uWWVzTm9Vbmtub3ducygpIHtcclxuIHJldHVybiB0aGlzLmh0dHAuZ2V0KHRoaXMuc21hcnRMb29rdXBTZXJ2aWNlVXJsICsgJ0ZsYWdPcHRpb25ZZXNOb1Vua25vd25zJywgb3B0aW9ucykucGlwZVxyXG4gICAgICAoXHJcbiAgICAgIG1hcChyZXMgPT4geyBcclxuICAgICAgICAgIHJldHVybiByZXM7XHJcbiAgICAgIH0pXHJcbiAgICAgICk7XHJcbn1cclxuXHJcbmdldENvbnRhY3RUeXBlcygpIHtcclxuICByZXR1cm4gdGhpcy5odHRwLmdldCh0aGlzLnNtYXJ0TG9va3VwU2VydmljZVVybCArICdDb250YWN0VHlwZXMnLCBvcHRpb25zKS5waXBlXHJcbiAgICAgICAoXHJcbiAgICAgICBtYXAocmVzID0+IHsgXHJcbiAgICAgICAgICAgcmV0dXJuIHJlcztcclxuICAgICAgIH0pXHJcbiAgICAgICApO1xyXG4gfVxyXG4gZ2V0Q29udGFjdE1ldGhvZHMoKSB7XHJcbiAgcmV0dXJuIHRoaXMuaHR0cC5nZXQodGhpcy5zbWFydExvb2t1cFNlcnZ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cy5zbWFydExvb2t1cFNlcnZpY2VVcmwgKyAnVmljdGltU2VydmljZVN0YXR1cycsIG9wdGlvbnMpLnBpcGVcclxuICAgICAgIChcclxuICAgICAgIG1hcChyZXMgPT4geyBcclxuICAgICAgICAgICByZXR1cm4gcmVzO1xyXG4gICAgICAgfSlcclxuICAgICAgICk7XHJcbiB9XHJcblxyXG4gZ2V0dlZpY3RpbVNlcnZpY2VUeXBlUHJvZ3JhbVByb3ZpZGVycygpIHtcclxuICByZXR1cm4gdGhpcy5odHRwLmdldCh0aGlzLnNtYXJ0TG9va3VwU2VydmljZVVybCArICd2VmljdGltU2VydmljZVR5cGVQcm9ncmFtUHJvdmlkZXJzJywgb3B0aW9ucykucGlwZVxyXG4gICAgICAgKFxyXG4gICAgICAgbWFwKHJlcyA9PiB7IFxyXG4gICAgICAgICAgIHJldHVybiByZXM7XHJcbiAgICAgICB9KVxyXG4gICAgICAgKTtcclxuIH1cclxuXHJcblxyXG5nZXRWaWN0aW0odmFsOiBhbnkpIHtcclxuICByZXR1cm4gdGhpcy5odHRwLmdldCh0aGlzLnNtYXJ0VmljdGltU2VydmljZVVybCArICdWaWN0aW1zLycgKyB2YWwsIG9wdGlvbnMpLnBpcGVcclxuICAoXHJcbiAgICBtYXAocmVzID0+IHsgXHJcbiAgICAgIGNvbnNvbGUubG9nKCd2aWN0aW0gcmV0dXJuIGRhdGEnKTtcclxuICAgICAgY29uc29sZS5sb2cocmVzKTsgIFxyXG4gICAgICByZXR1cm4gcmVzO1xyXG5cclxuICAgIH0pXHJcbiAgICAgICk7XHJcbn1cclxuXHJcbmdldFZpY3RpbUFkdm9jYXRlKHZhbDogYW55KSB7XHJcbiAgcmV0dXJuIHRoaXMuaHR0cC5nZXQodGhpcy5zbWFydFZpY3RpbVNlcnZpY2VVcmwgKyAnVmljdGltQWR2b2NhdGVzLycgKyB2YWwsIG9wdGlvbnMpLnBpcGVcclxuICAgICAgKFxyXG5cclxuICAgICAgbWFwKHJlcyA9PiB7IFx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cHRpb25zKS5waXBlXHJcbiAgICAgIChcclxuICAgICAgbWFwKHJlcyA9PiB7IHJldHVybiByZXM7fSlcclxuICAgICAgKTtcclxufVxyXG5cclxucG9zdFZpY3RpbVN1cHBvcnQoaWQ6IGFueSwgdmFsOiBhbnkpIHtcclxuICBjb25zdCB0ZW1wVmFsID0gSlNPTi5zdHJpbmdpZnkodmFsKTtcclxuICByZXR1cm4gdGhpcy5odHRwLnBvc3QodGhpcy5zbWFydFZpY3RpbVNlcnZpY2VVcmwgKyAnVmljdGltU3VwcG9ydHMvJyArIGlkLCB0ZW1wVmFsLCBvcHRpb25zKS5waXBlXHJcbiAgICAgIChcclxuICAgICAgbWFwKHJlcyA9PiB7IHJldHVybiByZXM7fSlcclxuICAgICAgKTtcclxufVxyXG5cclxuZGVsZXRlVmljdGltcyh2YWw6IGFueSwgIHN0YWZmSWQ6IG51bWJlcikge1xyXG4gIHJldHVybiB0aGlzLmh0dHAuZGVsZXRlKHRoaXMuc21hcnRWaWN0aW1TZXJ2aWNlVXJsKyAnVmljdGltcy8nICsgdmFsICsgJz9zdGFmZklkPScrIHN0YWZmSWQsIG9wdGlvbnMpLnBpcGVcclxuICAoXHJcbiAgbWFwKHJlcyA9PiB7IHJldHVybiByZXM7fSlcclxuICApO1xyXG59XHJcblxyXG5cclxuLy8gLy89PT09PT09PT09PT09PVZpY3RpbSBTZXJpdmU9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxyXG5cclxuZ2V0VmljdGltcyhvZmZlbmRlcklkOiBudW1iZXIpOiBPYnNlcnZhYmxlIDxWaWN0aW1bXT4ge1xyXG5cclxuICByZXR1cm4gdGhpcy5odHRwLmdldCh0aGlzLnNtYXJ0VmljdGltU2VydmljZVVybCAgKyAnVmljdGltcy9vZmZlbmRlci8nICsgb2ZmZW5kZXJJZClcclxuICAucGlwZShtYXAoKHJlczogVmljdGltW10pID0+IHtcclxuICAgIFxyXG4gICAgICByZXR1cm4gcmVzO1xyXG4gIH0pX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7XHJcbiAgICAgIHJldHVybiB0aGlzLmh0dHBcclxuICAgICAgLnBvc3QodGhpcy5zbWFydFZpY3RpbVNlcnZpY2VVcmwgKyAnVmljdGltU2VydmljZURldGFpbHMvJywgYm9keSwgb3B0aW9ucylcclxuICAgICAgLnBpcGUoKTtcclxuXHJcbiAgfVxyXG5cclxuZGVsZXRlUHJvdmlkZXIodmljdGltUHJvZ3JhbVByb3ZpZGVySWQ6IHN0cmluZywgc3RhZmZJZDogbnVtYmVyKXtcclxuICByZXR1cm4gdGhpcy5odHRwLmRlbGV0ZShgJHt0aGlzLnNtYXJ0VmljdGltU2VydmljZVVybH1WaWN0aW1TZXJ2aWNlRGV0YWlscy8ke3ZpY3RpbVByb2dyYW1Qcm92aWRlcklkfT9zdGFmZklkPSR7c3RhZmZJZH1gKTtcclxuXHJcbn1cclxuXHJcblxyXG5cclxufVxyXG4iXX0=
@@ -1,41 +0,0 @@
1
- import { MsalGuard } from '@azure/msal-angular';
2
- import { SmartErrorComponent } from '@csmart/ngc-smart-core';
3
- import { LoginStaffResolverService, SelectedOffenderResolverService } from '@csmart/ngc-smart-core';
4
- import { RouterModule } from '@angular/router';
5
- import { NgModule } from '@angular/core';
6
- import { CaseNoteComponent } from './caseNote/caseNote.component';
7
- import { ContactComponent } from './contact/contact.component';
8
- import { VictimSafetyPlanComponent } from './safetyPlan/victimSafetyPlan.component';
9
- import { VictimSafetyPlanDetailComponent } from './safetyPlan/victimSafetyPlanDetail.component';
10
- import { SmartVictimDetailComponent } from './smart-victim-detail/smart-victim-detail.component';
11
- import { NgcSmartVictimComponent } from './smart-victim.component';
12
- import * as i0 from "@angular/core";
13
- import * as i1 from "@angular/router";
14
- const routes = [
15
- //{path: 'casenote/:victimId', component: CaseNoteComponent,pathMatch: 'full',canActivate: [MsalGuard],resolve: { loginStaff: LoginStaffResolverService } },
16
- { path: 'casenote/:victimId/:offenderId', component: CaseNoteComponent, pathMatch: 'full', canActivate: [MsalGuard], resolve: { loginStaff: LoginStaffResolverService } },
17
- { path: 'saftyPlan/:victimId', component: VictimSafetyPlanComponent, pathMatch: 'full', resolve: { loginStaff: LoginStaffResolverService } },
18
- { path: 'saftyPlanDetail/:victimServiceId/:victimId', component: VictimSafetyPlanDetailComponent, pathMatch: 'full', resolve: { loginStaff: LoginStaffResolverService } },
19
- { path: 'victimList', component: NgcSmartVictimComponent, resolve: { loginStaff: LoginStaffResolverService, selectedOffender: SelectedOffenderResolverService } },
20
- { path: 'victimHome', component: NgcSmartVictimComponent, resolve: { loginStaff: LoginStaffResolverService, selectedOffender: SelectedOffenderResolverService } },
21
- { path: 'victimContact/:victimId', component: ContactComponent, resolve: { loginStaff: LoginStaffResolverService, selectedOffender: SelectedOffenderResolverService } },
22
- { path: 'victimDetail/:victimId', component: SmartVictimDetailComponent, resolve: { loginStaff: LoginStaffResolverService, selectedOffender: SelectedOffenderResolverService } },
23
- { path: 'smart-error', component: SmartErrorComponent }
24
- ];
25
- export class VictimRoutingModule {
26
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: VictimRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
27
- /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.1.0", ngImport: i0, type: VictimRoutingModule, imports: [i1.RouterModule], exports: [RouterModule] }); }
28
- /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: VictimRoutingModule, imports: [RouterModule.forChild(routes), RouterModule] }); }
29
- }
30
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0", ngImport: i0, type: VictimRoutingModule, decorators: [{
31
- type: NgModule,
32
- args: [{
33
- imports: [
34
- RouterModule.forChild(routes)
35
- ],
36
- exports: [
37
- RouterModule
38
- ]
39
- }]
40
- }] });
41
- //# sourceMappingURL=data:application/json;base64,eyJ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