1 | 'use strict';
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 |
|
7 | exports.default = (ns, oc, config) => {
|
8 | oc.get('$Dictionary').init(config.dictionary);
|
9 |
|
10 | oc.get('$Dispatcher').clear();
|
11 |
|
12 | if (!oc.get('$Window').isClient()) {
|
13 | oc.get('$Request').init(config.request);
|
14 |
|
15 | oc.get('$Response').init(config.response, oc.get('$CookieTransformFunction'));
|
16 |
|
17 | oc.get('$CookieStorage').clear();
|
18 |
|
19 | oc.get('$SessionStorage').clear();
|
20 |
|
21 | oc.get('$CacheStorage').clear();
|
22 | }
|
23 |
|
24 | oc.get('$CookieStorage').init({ secure: oc.get('$Secure') }, oc.get('$CookieTransformFunction'));
|
25 |
|
26 | oc.get('$SessionStorage').init();
|
27 |
|
28 | oc.get('$CacheStorage').init();
|
29 |
|
30 | oc.get('$Router').init(config.router);
|
31 |
|
32 | oc.get('$PageManager').init();
|
33 |
|
34 | oc.get('$PageStateManager').clear();
|
35 |
|
36 | oc.get('$HttpUrlTransformer').clear();
|
37 |
|
38 | oc.get('$DevTool').init();
|
39 | };
|
40 |
|
41 | typeof $IMA !== 'undefined' && $IMA !== null && $IMA.Loader && $IMA.Loader.register('ima/config/services', [], function (_export, _context) {
|
42 | 'use strict';
|
43 | return {
|
44 | setters: [],
|
45 | execute: function () {
|
46 | _export('default', exports.default);
|
47 | }
|
48 | };
|
49 | });
|