@esfaenza/admin-module 11.2.1 → 11.2.4-beta2

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.
Files changed (37) hide show
  1. package/bundles/esfaenza-admin-module.umd.js +113 -53
  2. package/bundles/esfaenza-admin-module.umd.js.map +1 -1
  3. package/bundles/esfaenza-admin-module.umd.min.js +2 -2
  4. package/bundles/esfaenza-admin-module.umd.min.js.map +1 -1
  5. package/esfaenza-admin-module.d.ts +1 -0
  6. package/esfaenza-admin-module.metadata.json +1 -1
  7. package/esm2015/esfaenza-admin-module.js +2 -1
  8. package/esm2015/lib/admin-module-messages.js +8 -0
  9. package/esm2015/lib/admin-module.comms.service.js +26 -0
  10. package/esm2015/lib/admin-module.module.js +28 -4
  11. package/esm2015/lib/components/audits/adm_audits.component.js +11 -9
  12. package/esm2015/lib/components/enqueues/adm_enq.component.js +11 -10
  13. package/esm2015/lib/components/logs/adm_logs.component.js +6 -6
  14. package/esm2015/lib/components/metrics/metrics_search.component.js +11 -10
  15. package/esm2015/lib/components/profiler/adm_profiler.component.js +11 -10
  16. package/esm2015/lib/components/topact/topact_search.component.js +11 -11
  17. package/esm2015/lib/components/workers/adm_wrk.component.js +11 -11
  18. package/esm2015/lib/models/shared/Locale.js +1 -1
  19. package/esm2015/lib/tokens.js +2 -1
  20. package/esm2015/public-api.js +2 -2
  21. package/fesm2015/esfaenza-admin-module.js +108 -49
  22. package/fesm2015/esfaenza-admin-module.js.map +1 -1
  23. package/lib/admin-module-messages.d.ts +6 -0
  24. package/lib/admin-module.comms.service.d.ts +6 -0
  25. package/lib/admin-module.module.d.ts +7 -0
  26. package/lib/components/audits/adm_audits.component.d.ts +4 -3
  27. package/lib/components/enqueues/adm_enq.component.d.ts +4 -4
  28. package/lib/components/logs/adm_logs.component.d.ts +3 -3
  29. package/lib/components/metrics/metrics_search.component.d.ts +4 -4
  30. package/lib/components/profiler/adm_profiler.component.d.ts +4 -4
  31. package/lib/components/topact/topact_search.component.d.ts +4 -4
  32. package/lib/components/workers/adm_wrk.component.d.ts +4 -4
  33. package/lib/tokens.d.ts +1 -0
  34. package/package.json +2 -1
  35. package/public-api.d.ts +1 -1
  36. package/esm2015/lib/communications/base/BaseModuleCommunicationsConsumer.js +0 -3
  37. package/lib/communications/base/BaseModuleCommunicationsConsumer.d.ts +0 -3
@@ -1,6 +1,6 @@
1
1
  import { Location, CommonModule } from '@angular/common';
2
2
  import { FormsModule } from '@angular/forms';
3
- import { InjectionToken, Injectable, Inject, Component, ViewChild, NgModule } from '@angular/core';
3
+ import { InjectionToken, Injectable, Inject, Component, ViewChild, NgModule, APP_INITIALIZER } from '@angular/core';
4
4
  import { ActivatedRoute, RouterModule } from '@angular/router';
5
5
  import { MatIconModule } from '@angular/material/icon';
6
6
  import { MatDatepickerModule } from '@angular/material/datepicker';
@@ -11,6 +11,8 @@ import { ModalModule } from 'ngx-bootstrap/modal';
11
11
  import { CsvModule } from '@ctrl/ngx-csv';
12
12
  import { BsDropdownModule } from 'ngx-bootstrap/dropdown';
13
13
  import { TooltipModule } from 'ngx-bootstrap/tooltip';
14
+ import { of } from 'rxjs';
15
+ import { map, tap } from 'rxjs/operators';
14
16
  import { AppSearch, EsTableOperationDefinition, EsTableModule } from '@esfaenza/es-table';
15
17
  import { FormsAndValidationsModule } from '@esfaenza/forms-and-validations';
16
18
  import { LineSerie, DateValue, LineChartData, Limit, EsChartsModule } from '@esfaenza/es-charts';
@@ -20,13 +22,9 @@ import { ContextMenuModule } from '@esfaenza/ngx-contextmenu';
20
22
  import { __awaiter, __decorate } from 'tslib';
21
23
  import { PreferencesService } from '@esfaenza/preferences';
22
24
  import { HTTPService } from '@esfaenza/httpservice';
25
+ import { InboundMessageTypes, InterComService, UtilityService, MessageService, Export, ExportService, DateService } from '@esfaenza/extensions';
23
26
  import { HttpParams } from '@angular/common/http';
24
- import { UtilityService, MessageService, Export, ExportService, DateService } from '@esfaenza/extensions';
25
27
  import { autoserialize } from 'cerialize';
26
- import { map } from 'rxjs/operators';
27
-
28
- class BaseModuleCommunicationsConsumer {
29
- }
30
28
 
31
29
  class AuditsView extends AppSearch {
32
30
  constructor() {
@@ -58,7 +56,8 @@ const Repository = {
58
56
  };
59
57
 
60
58
  const ADM_LOCALE = new InjectionToken('ADM_LOCALE');
61
- const ADM_BACKEND_URL = new InjectionToken('ADM_BACKEND_URL');
59
+ const ADM_BACKEND_URL = new InjectionToken('ADM_BACKEND_URL');
60
+ const ADM_MODULE_PATH = new InjectionToken('ADM_MODULE_PATH');
62
61
 
63
62
  class AdmAuditLoc extends LocalizationService {
64
63
  constructor(LOC_LOCALE) {
@@ -88,19 +87,20 @@ AdmAuditLoc.ctorParameters = () => [
88
87
  ];
89
88
 
90
89
  class AdmAuditsComponent {
91
- constructor(lc, localStorage, _state, http, route, location, backend) {
90
+ constructor(lc, intercom, localStorage, http, route, location, backend, mod) {
92
91
  this.lc = lc;
92
+ this.intercom = intercom;
93
93
  this.localStorage = localStorage;
94
- this._state = _state;
95
94
  this.http = http;
96
95
  this.route = route;
97
96
  this.location = location;
98
97
  this.backend = backend;
98
+ this.mod = mod;
99
99
  this.searchView = new AuditsView();
100
100
  this.Actions = [];
101
101
  this.HttpMethods = [];
102
102
  this.searchInProgress = false;
103
- this._state.handleNavigation(this.lc.loc(this.route.snapshot.data["title"]), false);
103
+ this.intercom.send(InboundMessageTypes.Navigation, { sub: false, routeTitle: this.lc.loc(this.route.snapshot.data["title"]) });
104
104
  this.HttpMethods = [
105
105
  { id: "GET", description: "GET" },
106
106
  { id: "POST", description: "POST" },
@@ -129,7 +129,7 @@ class AdmAuditsComponent {
129
129
  }
130
130
  else {
131
131
  this.init(null);
132
- this.location.replaceState("/pages/adm/serveraudits");
132
+ this.location.replaceState(`/pages/${this.mod}/serveraudits`);
133
133
  this.route.snapshot.queryParams = [];
134
134
  yield this.localStorage.removeItem("HotAudittato").toPromise();
135
135
  }
@@ -172,12 +172,13 @@ AdmAuditsComponent.decorators = [
172
172
  ];
173
173
  AdmAuditsComponent.ctorParameters = () => [
174
174
  { type: LocalizationService },
175
+ { type: InterComService },
175
176
  { type: PreferencesService },
176
- { type: BaseModuleCommunicationsConsumer },
177
177
  { type: HTTPService },
178
178
  { type: ActivatedRoute },
179
179
  { type: Location },
180
- { type: String, decorators: [{ type: Inject, args: [ADM_BACKEND_URL,] }] }
180
+ { type: String, decorators: [{ type: Inject, args: [ADM_BACKEND_URL,] }] },
181
+ { type: String, decorators: [{ type: Inject, args: [ADM_MODULE_PATH,] }] }
181
182
  ];
182
183
 
183
184
  class ProcessesView extends AppSearch {
@@ -215,16 +216,17 @@ AdmWrkLoc.ctorParameters = () => [
215
216
  ];
216
217
 
217
218
  class AdmWrkComponent {
218
- constructor(utiExts, msgExts, lc, localStorage, _state, http, route, location, backend) {
219
+ constructor(utiExts, msgExts, lc, localStorage, intercom, http, route, location, backend, mod) {
219
220
  this.utiExts = utiExts;
220
221
  this.msgExts = msgExts;
221
222
  this.lc = lc;
222
223
  this.localStorage = localStorage;
223
- this._state = _state;
224
+ this.intercom = intercom;
224
225
  this.http = http;
225
226
  this.route = route;
226
227
  this.location = location;
227
228
  this.backend = backend;
229
+ this.mod = mod;
228
230
  this.searchView = new ProcessesView();
229
231
  this.DynamicOps = [];
230
232
  this.valueToShow = "";
@@ -232,7 +234,7 @@ class AdmWrkComponent {
232
234
  this.newCg = "";
233
235
  this.CGs = [];
234
236
  this.CgDictionariesLoaded = false;
235
- this._state.handleNavigation(this.lc.loc(this.route.snapshot.data["title"]), false);
237
+ this.intercom.send(InboundMessageTypes.Navigation, { sub: false, routeTitle: this.lc.loc(this.route.snapshot.data["title"]) });
236
238
  this.DynamicOps = [
237
239
  new EsTableOperationDefinition("trace_on", this.lc.loc("Activate Process Tracing"), "fa fa-circle text-danger", "", "trace_enabled", "N"),
238
240
  new EsTableOperationDefinition("trace_off", this.lc.loc("Deactivate Process Tracing"), "fa fa-circle text-success", "", "trace_enabled", "Y"),
@@ -257,7 +259,7 @@ class AdmWrkComponent {
257
259
  }
258
260
  else {
259
261
  this.init(null);
260
- this.location.replaceState("/pages/adm/serverworkers");
262
+ this.location.replaceState(`/pages/${this.mod}/serverworkers`);
261
263
  this.route.snapshot.queryParams = [];
262
264
  yield this.localStorage.removeItem("HotProcessato").toPromise();
263
265
  }
@@ -366,11 +368,12 @@ AdmWrkComponent.ctorParameters = () => [
366
368
  { type: MessageService },
367
369
  { type: LocalizationService },
368
370
  { type: PreferencesService },
369
- { type: BaseModuleCommunicationsConsumer },
371
+ { type: InterComService },
370
372
  { type: HTTPService },
371
373
  { type: ActivatedRoute },
372
374
  { type: Location },
373
- { type: String, decorators: [{ type: Inject, args: [ADM_BACKEND_URL,] }] }
375
+ { type: String, decorators: [{ type: Inject, args: [ADM_BACKEND_URL,] }] },
376
+ { type: String, decorators: [{ type: Inject, args: [ADM_MODULE_PATH,] }] }
374
377
  ];
375
378
  AdmWrkComponent.propDecorators = {
376
379
  cgFrom: [{ type: ViewChild, args: ["cgFrom",] }],
@@ -505,17 +508,18 @@ AdmProfilerComponentLoc.ctorParameters = () => [
505
508
  ];
506
509
 
507
510
  class AdmProfilerComponent {
508
- constructor(expExts, lc, localStorage, location, _state, http, route, backend) {
511
+ constructor(expExts, lc, localStorage, location, intercom, http, route, backend, mod) {
509
512
  this.expExts = expExts;
510
513
  this.lc = lc;
511
514
  this.localStorage = localStorage;
512
515
  this.location = location;
513
- this._state = _state;
516
+ this.intercom = intercom;
514
517
  this.http = http;
515
518
  this.route = route;
516
519
  this.backend = backend;
520
+ this.mod = mod;
517
521
  this.searchView = new ProfilerDataNodesView();
518
- this._state.handleNavigation(this.lc.loc(this.route.snapshot.data["title"]), false);
522
+ this.intercom.send(InboundMessageTypes.Navigation, { sub: false, routeTitle: this.lc.loc(this.route.snapshot.data["title"]) });
519
523
  }
520
524
  ngOnInit() {
521
525
  this.storageSub = this.route.queryParams.subscribe(params => {
@@ -533,7 +537,7 @@ class AdmProfilerComponent {
533
537
  }
534
538
  else {
535
539
  this.init(null);
536
- this.location.replaceState("/pages/adm/profiler");
540
+ this.location.replaceState(`/pages/${this.mod}/profiler`);
537
541
  this.route.snapshot.queryParams = [];
538
542
  yield this.localStorage.removeItem("HotSearchProfilato").toPromise();
539
543
  }
@@ -588,10 +592,11 @@ AdmProfilerComponent.ctorParameters = () => [
588
592
  { type: LocalizationService },
589
593
  { type: PreferencesService },
590
594
  { type: Location },
591
- { type: BaseModuleCommunicationsConsumer },
595
+ { type: InterComService },
592
596
  { type: HTTPService },
593
597
  { type: ActivatedRoute },
594
- { type: String, decorators: [{ type: Inject, args: [ADM_BACKEND_URL,] }] }
598
+ { type: String, decorators: [{ type: Inject, args: [ADM_BACKEND_URL,] }] },
599
+ { type: String, decorators: [{ type: Inject, args: [ADM_MODULE_PATH,] }] }
595
600
  ];
596
601
 
597
602
  class TopActivitiesDataView extends AppSearch {
@@ -628,15 +633,16 @@ AdmTopActivitieLoc.ctorParameters = () => [
628
633
  ];
629
634
 
630
635
  class AdmTopActivitiesComponent {
631
- constructor(dateExts, lc, localStorage, location, _state, http, route, backend) {
636
+ constructor(dateExts, lc, localStorage, location, intercom, http, route, backend, mod) {
632
637
  this.dateExts = dateExts;
633
638
  this.lc = lc;
634
639
  this.localStorage = localStorage;
635
640
  this.location = location;
636
- this._state = _state;
641
+ this.intercom = intercom;
637
642
  this.http = http;
638
643
  this.route = route;
639
644
  this.backend = backend;
645
+ this.mod = mod;
640
646
  this.searchView = new TopActivitiesDataView();
641
647
  this.autoUpdate = false;
642
648
  this.seconds = "5";
@@ -651,7 +657,7 @@ class AdmTopActivitiesComponent {
651
657
  ["sleeptime"]: "Sleep",
652
658
  ["iotime"]: "IO"
653
659
  };
654
- this._state.handleNavigation(this.lc.loc(this.route.snapshot.data["title"]), false);
660
+ this.intercom.send(InboundMessageTypes.Navigation, { sub: false, routeTitle: this.lc.loc(this.route.snapshot.data["title"]) });
655
661
  }
656
662
  ngOnInit() {
657
663
  this.storageSub = this.route.queryParams.subscribe(params => {
@@ -669,7 +675,7 @@ class AdmTopActivitiesComponent {
669
675
  }
670
676
  else {
671
677
  this.init(null);
672
- this.location.replaceState("/pages/adm/topact");
678
+ this.location.replaceState(`/pages/${this.mod}/topact`);
673
679
  this.route.snapshot.queryParams = [];
674
680
  yield this.localStorage.removeItem("HotSearchTopAct").toPromise();
675
681
  }
@@ -793,10 +799,11 @@ AdmTopActivitiesComponent.ctorParameters = () => [
793
799
  { type: LocalizationService },
794
800
  { type: PreferencesService },
795
801
  { type: Location },
796
- { type: BaseModuleCommunicationsConsumer },
802
+ { type: InterComService },
797
803
  { type: HTTPService },
798
804
  { type: ActivatedRoute },
799
- { type: String, decorators: [{ type: Inject, args: [ADM_BACKEND_URL,] }] }
805
+ { type: String, decorators: [{ type: Inject, args: [ADM_BACKEND_URL,] }] },
806
+ { type: String, decorators: [{ type: Inject, args: [ADM_MODULE_PATH,] }] }
800
807
  ];
801
808
 
802
809
  class LocksView extends AppSearch {
@@ -820,17 +827,18 @@ AdmEnqLoc.ctorParameters = () => [
820
827
  ];
821
828
 
822
829
  class AdmEnqComponent {
823
- constructor(lc, localStorage, expExts, _state, http, route, location, backend) {
830
+ constructor(lc, localStorage, expExts, intercom, http, route, location, backend, mod) {
824
831
  this.lc = lc;
825
832
  this.localStorage = localStorage;
826
833
  this.expExts = expExts;
827
- this._state = _state;
834
+ this.intercom = intercom;
828
835
  this.http = http;
829
836
  this.route = route;
830
837
  this.location = location;
831
838
  this.backend = backend;
839
+ this.mod = mod;
832
840
  this.locksView = new LocksView();
833
- this._state.handleNavigation(this.lc.loc(this.route.snapshot.data["title"]), false);
841
+ this.intercom.send(InboundMessageTypes.Navigation, { sub: false, routeTitle: this.lc.loc(this.route.snapshot.data["title"]) });
834
842
  }
835
843
  ngOnInit() {
836
844
  this.storageSub = this.route.queryParams.subscribe(params => { this.Init(params["ignoreStorage"]); });
@@ -847,7 +855,7 @@ class AdmEnqComponent {
847
855
  }
848
856
  else {
849
857
  this.init(null);
850
- this.location.replaceState("/pages/adm/serverenqueues");
858
+ this.location.replaceState(`/pages/${this.mod}/serverenqueues`);
851
859
  this.route.snapshot.queryParams = [];
852
860
  yield this.localStorage.removeItem("HotEnqueue").toPromise();
853
861
  }
@@ -886,11 +894,12 @@ AdmEnqComponent.ctorParameters = () => [
886
894
  { type: LocalizationService },
887
895
  { type: PreferencesService },
888
896
  { type: ExportService },
889
- { type: BaseModuleCommunicationsConsumer },
897
+ { type: InterComService },
890
898
  { type: HTTPService },
891
899
  { type: ActivatedRoute },
892
900
  { type: Location },
893
- { type: String, decorators: [{ type: Inject, args: [ADM_BACKEND_URL,] }] }
901
+ { type: String, decorators: [{ type: Inject, args: [ADM_BACKEND_URL,] }] },
902
+ { type: String, decorators: [{ type: Inject, args: [ADM_MODULE_PATH,] }] }
894
903
  ];
895
904
 
896
905
  class KeyValue {
@@ -925,15 +934,16 @@ AdmMetricsLoc.ctorParameters = () => [
925
934
  ];
926
935
 
927
936
  class AdmMetricsComponent {
928
- constructor(dateExts, lc, localStorage, location, _state, http, route, backend) {
937
+ constructor(dateExts, lc, localStorage, location, intercom, http, route, backend, mod) {
929
938
  this.dateExts = dateExts;
930
939
  this.lc = lc;
931
940
  this.localStorage = localStorage;
932
941
  this.location = location;
933
- this._state = _state;
942
+ this.intercom = intercom;
934
943
  this.http = http;
935
944
  this.route = route;
936
945
  this.backend = backend;
946
+ this.mod = mod;
937
947
  this.MetricsChartCache = {};
938
948
  this.searchView = new MetricsView();
939
949
  this.autoUpdate = false;
@@ -942,7 +952,7 @@ class AdmMetricsComponent {
942
952
  this.selectedInstance = "";
943
953
  this.instanceRequired = false;
944
954
  this.metricsToShow = [];
945
- this._state.handleNavigation(this.lc.loc(this.route.snapshot.data["title"]), false);
955
+ this.intercom.send(InboundMessageTypes.Navigation, { sub: false, routeTitle: this.lc.loc(this.route.snapshot.data["title"]) });
946
956
  }
947
957
  ngOnInit() {
948
958
  this.storageSub = this.route.queryParams.subscribe(params => {
@@ -971,7 +981,7 @@ class AdmMetricsComponent {
971
981
  }
972
982
  else {
973
983
  this.init(null);
974
- this.location.replaceState("/pages/adm/metrics");
984
+ this.location.replaceState(`/pages/${this.mod}/metrics`);
975
985
  this.route.snapshot.queryParams = [];
976
986
  yield this.localStorage.removeItem("HotSearchMetrics").toPromise();
977
987
  }
@@ -1076,21 +1086,22 @@ AdmMetricsComponent.ctorParameters = () => [
1076
1086
  { type: LocalizationService },
1077
1087
  { type: PreferencesService },
1078
1088
  { type: Location },
1079
- { type: BaseModuleCommunicationsConsumer },
1089
+ { type: InterComService },
1080
1090
  { type: HTTPService },
1081
1091
  { type: ActivatedRoute },
1082
- { type: String, decorators: [{ type: Inject, args: [ADM_BACKEND_URL,] }] }
1092
+ { type: String, decorators: [{ type: Inject, args: [ADM_BACKEND_URL,] }] },
1093
+ { type: String, decorators: [{ type: Inject, args: [ADM_MODULE_PATH,] }] }
1083
1094
  ];
1084
1095
 
1085
1096
  // Angular
1086
1097
  class AdmLogsComponent {
1087
- constructor(_state, http, lc, route, backend) {
1088
- this._state = _state;
1098
+ constructor(intercom, http, lc, route, backend) {
1099
+ this.intercom = intercom;
1089
1100
  this.http = http;
1090
1101
  this.lc = lc;
1091
1102
  this.route = route;
1092
1103
  this.backend = backend;
1093
- this._state.handleNavigation(this.lc.loc(this.route.snapshot.data["title"]), false);
1104
+ this.intercom.send(InboundMessageTypes.Navigation, { sub: false, routeTitle: this.lc.loc(this.route.snapshot.data["title"]) });
1094
1105
  }
1095
1106
  ngOnInit() {
1096
1107
  this.http.get(this.backend + Repository["GET_Adm_GetServerLogs"]).subscribe(t => { this.Log = t; });
@@ -1103,13 +1114,44 @@ AdmLogsComponent.decorators = [
1103
1114
  },] }
1104
1115
  ];
1105
1116
  AdmLogsComponent.ctorParameters = () => [
1106
- { type: BaseModuleCommunicationsConsumer },
1117
+ { type: InterComService },
1107
1118
  { type: HTTPService },
1108
1119
  { type: LocalizationService },
1109
1120
  { type: ActivatedRoute },
1110
1121
  { type: String, decorators: [{ type: Inject, args: [ADM_BACKEND_URL,] }] }
1111
1122
  ];
1112
1123
 
1124
+ /** Chiave di questo modulo, da utilizzare per i messaggi */
1125
+ const MK_ADM = "EsAdminModule";
1126
+ /** Messaggi gestiti da questo modulo */
1127
+ var AdmMessageTypes;
1128
+ (function (AdmMessageTypes) {
1129
+ AdmMessageTypes[AdmMessageTypes["Message"] = 0] = "Message";
1130
+ })(AdmMessageTypes || (AdmMessageTypes = {}));
1131
+
1132
+ class AdminModuleCommService {
1133
+ constructor(intercom) {
1134
+ this.intercom = intercom;
1135
+ this.intercom.register(MK_ADM);
1136
+ this.intercom.outbounds[MK_ADM].subscribe((t) => { this.handleOutbound(t.type, t.message); });
1137
+ }
1138
+ handleOutbound(type, message) {
1139
+ switch (type) {
1140
+ case AdmMessageTypes.Message:
1141
+ {
1142
+ if (myconfig.DEBUG_MODE)
1143
+ console.log("@admin-module:" + message);
1144
+ }
1145
+ }
1146
+ }
1147
+ }
1148
+ AdminModuleCommService.decorators = [
1149
+ { type: Injectable }
1150
+ ];
1151
+ AdminModuleCommService.ctorParameters = () => [
1152
+ { type: InterComService }
1153
+ ];
1154
+
1113
1155
  // Angular
1114
1156
  const ɵ0 = { title: "Search Application Processes", internalNavigation: false }, ɵ1 = { title: "Server Profiler", internalNavigation: false }, ɵ2 = { title: "Top Activities", internalNavigation: false }, ɵ3 = { title: "System Metrics", internalNavigation: false }, ɵ4 = { title: "Server Logs", internalNavigation: false }, ɵ5 = { title: "Search Application Audits", internalNavigation: false }, ɵ6 = { title: "Search Application Locks", internalNavigation: false };
1115
1157
  const routeConfig = [
@@ -1159,12 +1201,29 @@ const COMPONENTS = [
1159
1201
  AdmEnqComponent,
1160
1202
  AdmMetricsComponent
1161
1203
  ];
1204
+ /**
1205
+ * Funzione di inizializzazione che prende il servizio **AdminModuleCommService** e costringe Angular ad inizializzarlo. Dato che nel costruttore del servizio
1206
+ * c'è il collegamento al sistema di intercomunicazione questa funzione fisicamente causa la registrazione del modulo
1207
+ */
1208
+ function initializeIntercomService(_) {
1209
+ // Mantenere almeno una riga di codice qui prima del return, altrimenti typescript prova a risolvere l'intera funzione ad una lamba che non è supportato dal compiler
1210
+ // Per info aggiuntive vedere: https://stackoverflow.com/questions/51976671/app-initializer-in-library-causes-lambda-not-supported-error
1211
+ var bootstrapMessage = "@esfaenza/admin-module: BOOTSTRAP";
1212
+ return () => of().pipe(tap(() => { console.log(bootstrapMessage); }));
1213
+ }
1214
+ const ɵ7 = myconfig.LOCALE, ɵ8 = myconfig.BACKEND_URL;
1162
1215
  class AdmModule {
1163
1216
  }
1164
1217
  AdmModule.decorators = [
1165
1218
  { type: NgModule, args: [{
1166
1219
  imports: [...MODULES],
1167
- declarations: [...COMPONENTS]
1220
+ declarations: [...COMPONENTS],
1221
+ providers: [
1222
+ AdminModuleCommService,
1223
+ { provide: ADM_LOCALE, useValue: ɵ7 },
1224
+ { provide: ADM_BACKEND_URL, useValue: ɵ8 },
1225
+ { provide: APP_INITIALIZER, useFactory: initializeIntercomService, deps: [AdminModuleCommService], multi: true }
1226
+ ]
1168
1227
  },] }
1169
1228
  ];
1170
1229
 
@@ -1172,5 +1231,5 @@ AdmModule.decorators = [
1172
1231
  * Generated bundle index. Do not edit.
1173
1232
  */
1174
1233
 
1175
- export { ADM_BACKEND_URL, ADM_LOCALE, AdmModule, BaseModuleCommunicationsConsumer, routeConfig, ɵ0, ɵ1, ɵ2, ɵ3, ɵ4, ɵ5, ɵ6, AdmWrkComponent as ɵa, AdmWrkLoc as ɵb, AdmProfilerComponent as ɵc, AdmProfilerComponentLoc as ɵd, AdmTopActivitiesComponent as ɵe, AdmTopActivitieLoc as ɵf, AdmMetricsComponent as ɵg, AdmMetricsLoc as ɵh, AdmLogsComponent as ɵi, AdmAuditsComponent as ɵj, AdmAuditLoc as ɵk, AdmEnqComponent as ɵl, AdmEnqLoc as ɵm };
1234
+ export { ADM_BACKEND_URL, ADM_LOCALE, ADM_MODULE_PATH, AdmMessageTypes, AdmModule, MK_ADM, initializeIntercomService, routeConfig, ɵ0, ɵ1, ɵ2, ɵ3, ɵ4, ɵ5, ɵ6, ɵ7, ɵ8, AdmWrkComponent as ɵa, AdmWrkLoc as ɵb, AdmProfilerComponent as ɵc, AdmProfilerComponentLoc as ɵd, AdmTopActivitiesComponent as ɵe, AdmTopActivitieLoc as ɵf, AdmMetricsComponent as ɵg, AdmMetricsLoc as ɵh, AdmLogsComponent as ɵi, AdmAuditsComponent as ɵj, AdmAuditLoc as ɵk, AdmEnqComponent as ɵl, AdmEnqLoc as ɵm, AdminModuleCommService as ɵn };
1176
1235
  //# sourceMappingURL=esfaenza-admin-module.js.map