kc-sdk 6.4.7971 → 6.8.10817

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 (38) hide show
  1. package/package.json +1 -1
  2. package/src/3rdpartylicenses.txt +323 -0
  3. package/src/app.component.css.map +7 -0
  4. package/src/assets/images/optum_favicon.png +0 -0
  5. package/src/assets/sdk/kc-sdk-config.js +8 -0
  6. package/src/assets/sdk/kc-sdk-config.json +8 -0
  7. package/src/{kc-sdk-support.js → assets/sdk/kc-sdk-support.js} +48 -51
  8. package/src/assets/sdk/kc-sdk.js +736 -0
  9. package/src/favicon.ico +0 -0
  10. package/src/index.html +21 -0
  11. package/src/main.js +13 -0
  12. package/src/main.js.map +1 -0
  13. package/src/polyfills.js +3 -0
  14. package/src/polyfills.js.map +1 -0
  15. package/src/styles.css +2 -0
  16. package/src/styles.css.map +7 -0
  17. package/src/angular.min.js +0 -294
  18. package/src/build/config.gypi +0 -77
  19. package/src/kc-messaging-provider.js +0 -26
  20. package/src/kc-sdk-config.js +0 -6
  21. package/src/kc-sdk.js +0 -558
  22. package/src/kcSdkConfigs/kc-sdk-config.cloud.js +0 -6
  23. package/src/kcSdkConfigs/kc-sdk-config.local.js +0 -6
  24. package/src/lodash.min.js +0 -121
  25. package/src/package-lock.json +0 -13
  26. package/src/requirenoop.js +0 -1
  27. package/src/sdk-show-last.directive.js +0 -11
  28. package/src/sdk-string.service.js +0 -70
  29. package/src/sdk-tester-signin.service.js +0 -52
  30. package/src/sdk-tester.js +0 -591
  31. package/src/sdk-tester.module.js +0 -1
  32. package/src/sdkTester.html +0 -120
  33. package/src/sign-in.html +0 -247
  34. package/src/tester.css +0 -271
  35. package/src/theme-changer.css +0 -142
  36. package/src/theme-changer.js +0 -27
  37. /package/src/{bootstrap.min.css → assets/styles/bootstrap.min.css} +0 -0
  38. /package/src/{uitk-defaults.css → assets/styles/uitk-defaults.css} +0 -0
@@ -1,77 +0,0 @@
1
- # Do not edit. File was generated by node-gyp's "configure" step
2
- {
3
- "target_defaults": {
4
- "cflags": [],
5
- "default_configuration": "Release",
6
- "defines": [],
7
- "include_dirs": [],
8
- "libraries": [],
9
- "msbuild_toolset": "v142",
10
- "msvs_windows_target_platform_version": "10.0.18362.0"
11
- },
12
- "variables": {
13
- "asan": 0,
14
- "build_v8_with_gn": "false",
15
- "coverage": "false",
16
- "debug_nghttp2": "false",
17
- "enable_lto": "false",
18
- "enable_pgo_generate": "false",
19
- "enable_pgo_use": "false",
20
- "force_dynamic_crt": 0,
21
- "host_arch": "x64",
22
- "icu_data_in": "..\\..\\deps/icu-small\\source/data/in\\icudt64l.dat",
23
- "icu_endianness": "l",
24
- "icu_gyp_path": "tools/icu/icu-generic.gyp",
25
- "icu_locales": "en,root",
26
- "icu_path": "deps/icu-small",
27
- "icu_small": "true",
28
- "icu_ver_major": "64",
29
- "nasm_version": "2.14",
30
- "node_byteorder": "little",
31
- "node_debug_lib": "false",
32
- "node_enable_d8": "false",
33
- "node_enable_v8_vtunejit": "false",
34
- "node_install_npm": "true",
35
- "node_module_version": 64,
36
- "node_no_browser_globals": "false",
37
- "node_prefix": "/usr/local",
38
- "node_release_urlbase": "https://nodejs.org/download/release/",
39
- "node_shared": "false",
40
- "node_shared_cares": "false",
41
- "node_shared_http_parser": "false",
42
- "node_shared_libuv": "false",
43
- "node_shared_nghttp2": "false",
44
- "node_shared_openssl": "false",
45
- "node_shared_zlib": "false",
46
- "node_tag": "",
47
- "node_target_type": "executable",
48
- "node_use_bundled_v8": "true",
49
- "node_use_dtrace": "false",
50
- "node_use_etw": "true",
51
- "node_use_large_pages": "false",
52
- "node_use_openssl": "true",
53
- "node_use_pch": "false",
54
- "node_use_perfctr": "true",
55
- "node_use_v8_platform": "true",
56
- "node_with_ltcg": "true",
57
- "node_without_node_options": "false",
58
- "openssl_fips": "",
59
- "openssl_no_asm": 0,
60
- "shlib_suffix": "so.64",
61
- "target_arch": "x64",
62
- "v8_enable_gdbjit": 0,
63
- "v8_enable_i18n_support": 1,
64
- "v8_enable_inspector": 1,
65
- "v8_no_strict_aliasing": 1,
66
- "v8_optimized_debug": 0,
67
- "v8_promise_internal_field_count": 1,
68
- "v8_random_seed": 0,
69
- "v8_trace_maps": 0,
70
- "v8_typed_array_max_size_in_heap": 0,
71
- "v8_use_snapshot": "true",
72
- "want_separate_host_toolset": 0,
73
- "nodedir": "C:\\Users\\mpelland\\AppData\\Local\\node-gyp\\Cache\\10.16.0",
74
- "standalone_static_library": 1,
75
- "msbuild_path": "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\MSBuild\\Current\\Bin\\MSBuild.exe"
76
- }
77
- }
@@ -1,26 +0,0 @@
1
- var messagingProvider = {
2
- initialized: false,
3
- currentHandler: null,
4
-
5
- init: function () {
6
- this.initialized = true;
7
- var eventMethod = window.addEventListener ? "addEventListener" : "attachEvent";
8
- var eventer = window[eventMethod];
9
- var messageEvent = eventMethod === "attachEvent" ? "onmessage" : "message";
10
-
11
- eventer(messageEvent, function (e) {
12
- var callback = this.currentHandler;
13
- if (callback != null) {
14
- var key = e.message ? "message" : "data";
15
- var data = e[key];
16
- callback(data);
17
- }
18
- }, false);
19
- },
20
-
21
- post: function (target, message) {
22
- if (target) {
23
- target.postMessage(message, '*');
24
- }
25
- }
26
- }
@@ -1,6 +0,0 @@
1
- var kcSdkConfig = {
2
- mreBaseUrl: 'https://mrestg-az.optum.com/mre/',
3
- tokenServer: 'https://localhost/Token-core/Token/',
4
- url: 'https://localhost/knowledgecomponents/',
5
- appName: 'kcApp'
6
- };
package/src/kc-sdk.js DELETED
@@ -1,558 +0,0 @@
1
- "use strict";
2
-
3
- var kcSdkVersion = "6.4.7971"
4
-
5
- var kcSdk = function kcSdk() {
6
- // locals
7
- var communicationPacket = {
8
- sender: 'kcSdk',
9
- windowName: '',
10
- action: '',
11
- value: null
12
- };
13
- var workflow = [];
14
- var callbackFns = [];
15
-
16
- var responseTime;
17
- var timeoutThresholdSeconds = 30;
18
-
19
- // window locals
20
- var kcWindowName = 'kc-sdk-launched-instance';
21
- var kcWindowParams = [
22
- 'height=' + screen.height,
23
- 'width=' + screen.width,
24
- 'location=0',
25
- 'top=10',
26
- 'left=10'].join(',');
27
-
28
-
29
- var encoderWindowName = 'encoder-sdk-launched-instance';
30
- var encoderWindowParams = "resizable=1,scrollbars=0,location=0,menubar=0,toolbar=0,top=10,left=10,width=950,height=500";
31
-
32
- var kcWindow = {
33
- reference: null,
34
- opened: false,
35
- name: kcWindowName,
36
- currentWorkflow: {},
37
- responseTime: responseTime,
38
- launch: launchKc,
39
- loadPatientRecord: loadPatientRecord,
40
- assignConfig: assignConfig,
41
- setAuthToken: setAuthToken,
42
- setI9I10State: setI9I10State,
43
- setDemographics: setDemographics,
44
- authTokenData: {}
45
- };
46
-
47
- var encoderWindow = {
48
- reference: null,
49
- name: encoderWindowName,
50
- opened: false,
51
- currentWorkflow: {},
52
- responseTime: responseTime,
53
- launch: launchEncoder,
54
- setAuthToken: setAuthToken,
55
- setI9I10State: setI9I10State,
56
- setDemographics: setDemographics,
57
- authTokenData: {}
58
- };
59
-
60
- // service
61
- var service = {
62
- encoderTabs: encoderTabs,
63
- sessionTypes: sessionTypes,
64
- patientType: patientType,
65
- i9I10States: i9I10States,
66
- listenerResponse: listenerResponse,
67
- kcWindow: kcWindow,
68
- encoderWindow: encoderWindow,
69
- closeAllKCWindows: closeAllKCWindows,
70
- kcWindowIsListening: false,
71
- encoderWindowIsListening: false,
72
- launchReferences: kcMreService.launchMre,
73
- setCallback: setCallback,
74
- callbacks: callbacks,
75
- workflow: workflow,
76
- addToWorkflow: addToWorkflow,
77
- removeFromWorkflow: removeFromWorkflow,
78
- processWorkflow: processWorkflow,
79
- clearWorkflow: clearWorkflow,
80
- workflowComplete: true,
81
- listenerException: false,
82
- version: kcSdkVersion
83
- };
84
-
85
- // listener for opened window messages
86
- window.addEventListener('message', function (e) {
87
-
88
- if (event.data.callback === "kcRefreshed" && service.kcWindow.reference) {
89
- service.kcWindow.opened = true;
90
- service.kcWindowIsListening = true;
91
- }
92
- else if (event.data.callback === "encoderRefreshed" && service.encoderWindow.reference) {
93
- service.encoderWindow.opened = true;
94
- service.encoderWindowIsListening = true;
95
- }
96
-
97
- if (!(service.kcWindow.reference && event.data.sender === "kcWindow") &&
98
- !(service.encoderWindow.reference && event.data.sender === "encoderWindow")) {
99
- return;
100
- }
101
-
102
- var needsAuthentication = false;
103
- var callback = event.data.callback;
104
-
105
- switch (event.data.action) {
106
- case 'sdkServiceResponse':
107
- if (event.data.sender === "kcWindow") {
108
- if (event.data.callback === "kcListeningChanged") {
109
- service.kcWindowIsListening = service.listenerResponse.OPENKC === event.data.value;
110
- if (service.kcWindowIsListening) {
111
- needsAuthentication = service.workflow.length === 0 || service.workflow.length > 0 && service.workflow[0].name !== 'setAuthToken';
112
- }
113
- else {
114
- closeKcWindow();
115
- }
116
- }
117
- else if (event.data.callback === 'kcRefreshed') {
118
- callback = 'sdkServiceResponse';
119
- clearWorkflow();
120
- }
121
- else {
122
- callback = 'sdkServiceResponse';
123
- }
124
- }
125
- else if (event.data.sender === "encoderWindow") {
126
- if (event.data.callback === "encoderListeningChanged") {
127
- service.encoderWindowIsListening = service.listenerResponse.OPENENCODER === event.data.value;
128
- if (service.encoderWindowIsListening) {
129
- needsAuthentication = service.workflow.length === 0 || service.workflow.length > 0 && service.workflow[0].name !== 'setAuthToken';
130
- }
131
- else {
132
- closeEncoderWindow();
133
- }
134
- }
135
- else if (event.data.callback === 'encoderRefreshed') {
136
- callback = 'sdkServiceResponse';
137
- clearWorkflow();
138
- }
139
- else {
140
- callback = 'sdkServiceResponse';
141
- }
142
- }
143
- break;
144
- case 'sdkRequestException':
145
- service.listenerException = true;
146
- callback = event.data.action;
147
- break;
148
- default:
149
- break;
150
- }
151
-
152
- invokeCallback(callback, event.data);
153
-
154
- if (service.listenerException) {
155
- stopWorkflow();
156
- service.listenerException = false;
157
- }
158
-
159
- var cwf = event.data.sender === 'kcWindow' ? service.kcWindow.currentWorkflow : service.encoderWindow.currentWorkflow;
160
-
161
- if (!cwf) {
162
- stopWorkflow();
163
- return;
164
- }
165
-
166
- if (needsAuthentication) {
167
- service.workflow.unshift({
168
- name: 'setAuthToken',
169
- fn: service[event.data.sender].setAuthToken,
170
- sendToWindow: [event.data.sender],
171
- args: [service[event.data.sender].authTokenData, service[event.data.sender].name]
172
- });
173
- }
174
-
175
- if (service.workflow.length === 0) {
176
- clearTimeout(service[event.data.sender].responseTime);
177
- }
178
-
179
- if (cwf && cwf.workflowCompleteMessage === event.data.value) {
180
- clearTimeout(service[event.data.sender].responseTime);
181
- processWorkflow(service[event.data.sender]);
182
- }
183
-
184
- }, false);
185
-
186
- window.addEventListener('unload', function (event) {
187
- service.closeAllKCWindows();
188
- });
189
-
190
- return service;
191
- /////////////// return service
192
-
193
- function openKc(url, authToken) {
194
- if (!service.kcWindow.reference || !windowExists(service.kcWindow) || !service.kcWindowIsListening) {
195
- kcWindow.authTokenData = authToken;
196
-
197
- service.kcWindow.reference = window.open(url, kcWindowName, kcWindowParams);
198
- service.kcWindow.opened = true;
199
- service.kcWindow.reference.focus();
200
- }
201
- else {
202
- service.kcWindow.reference.focus();
203
- processWorkflow(service.kcWindow);
204
- }
205
- }
206
-
207
- function openEncoder(url, authToken) {
208
- if (!service.encoderWindow.reference || !windowExists(service.encoderWindow) || !service.encoderWindowIsListening) {
209
- encoderWindow.authTokenData = authToken;
210
-
211
- service.encoderWindow.reference = window.open(url, encoderWindowName, encoderWindowParams);
212
- service.encoderWindow.opened = true;
213
- service.encoderWindow.reference.focus();
214
- }
215
- else {
216
- service.encoderWindow.reference.focus();
217
- processWorkflow(service.encoderWindow);
218
- }
219
- }
220
-
221
- // apis to send to our open windows
222
- function loadPhraseInLogic(input) {
223
- communicationPacket.action = 'logicRequest';
224
- communicationPacket.value = input;
225
- communication(communicationPacket, listeningWindows.ENCODER);
226
- }
227
-
228
- function loadPhraseInIndex(input) {
229
- communicationPacket.action = 'indexRequest';
230
- communicationPacket.value = input;
231
- communication(communicationPacket, listeningWindows.ENCODER);
232
- }
233
-
234
- function loadCodeInTabular(input) {
235
- communicationPacket.action = 'tabularRequest';
236
- communicationPacket.value = input;
237
- communication(communicationPacket, listeningWindows.ENCODER);
238
- }
239
-
240
- function loadPatientRecord(patientRecord) {
241
- communicationPacket.action = 'loadPatientRecord';
242
- communicationPacket.value = patientRecord;
243
- communication(communicationPacket, listeningWindows.KC);
244
- }
245
-
246
- function assignConfig(input) {
247
- communicationPacket.action = 'assignConfig';
248
- communicationPacket.value = input;
249
- communication(communicationPacket, listeningWindows.KC);
250
- }
251
-
252
- function setI9I10State(state) {
253
- communicationPacket.action = 'setI9I10State';
254
- communicationPacket.value = state;
255
- communication(communicationPacket, listeningWindows.ALL);
256
- }
257
- function setAuthToken(data) {
258
- communicationPacket.action = 'setAuthToken';
259
- communicationPacket.value = data;
260
- communication(communicationPacket, listeningWindows.ALL);
261
- }
262
-
263
- function setDemographics(demographicsData) {
264
- communicationPacket.action = 'setDemographics';
265
- communicationPacket.value = demographicsData;
266
- communication(communicationPacket, listeningWindows.ALL);
267
- }
268
-
269
- function encoderStartupComplete() {
270
- communicationPacket.action = 'encoderStartupComplete';
271
- communicationPacket.value = '';
272
- communication(communicationPacket, listeningWindows.ENCODER);
273
- }
274
-
275
- function closeAllKCWindows() {
276
- communicationPacket.action = 'closeAllKCWindows';
277
- communicationPacket.value = null;
278
- communication(communicationPacket, listeningWindows.ALL);
279
- }
280
-
281
- // workflow to launch kc
282
- function launchKc(url, authToken, state, demographics) {
283
- kcWindow.authTokenData = authToken;
284
-
285
- var wfArray = [{
286
- fn: openKc,
287
- args: [url, authToken]
288
- }, {
289
- fn: setI9I10State,
290
- args: state
291
- }, {
292
- fn: setDemographics,
293
- args: demographics
294
- }];
295
-
296
- var updatedWf = wfArray.concat(service.workflow);
297
- service.clearWorkflow();
298
-
299
- service.addToWorkflow(updatedWf);
300
-
301
- service.processWorkflow(service.kcWindow);
302
-
303
- }
304
-
305
- // workflow to launch encoder
306
- function launchEncoder(url, authToken, state, demographics, request) {
307
- encoderWindow.authTokenData = authToken;
308
-
309
- var logicIndexRequest = JSON.stringify({
310
- sessionType: request.sessionType,
311
- phrase: request.codePhrase
312
- }, null, 2)
313
-
314
- var tabularRequest = JSON.stringify({
315
- sessionType: request.sessionType,
316
- code: request.codePhrase
317
- }, null, 2)
318
-
319
- var wfArray = [{
320
- fn: openEncoder,
321
- args: [url, authToken]
322
- }, {
323
- fn: setI9I10State,
324
- args: state
325
- }, {
326
- fn: setDemographics,
327
- args: demographics
328
- }, {
329
- fn: encoderStartupComplete,
330
- args:[]
331
- }];
332
-
333
- if (request.encoderTab === service.encoderTabs.LOGIC) {
334
- wfArray.push({
335
- fn: loadPhraseInLogic,
336
- args: logicIndexRequest
337
- });
338
- }
339
- else if (request.encoderTab === service.encoderTabs.INDEX) {
340
- wfArray.push({
341
- fn: loadPhraseInIndex,
342
- args: logicIndexRequest
343
- });
344
- }
345
- else if (request.encoderTab === service.encoderTabs.TABULAR) {
346
- wfArray.push({
347
- fn: loadCodeInTabular,
348
- args: tabularRequest
349
- });
350
- }
351
-
352
- var updatedWf = wfArray.concat(service.workflow);
353
- service.clearWorkflow();
354
-
355
- service.addToWorkflow(updatedWf);
356
-
357
- service.processWorkflow(service.encoderWindow);
358
-
359
- }
360
-
361
- // window functions
362
- function communication(packet, listener) {
363
- try {
364
- var ourWindows = getWindowsToCommunicate(listener);
365
-
366
- if (ourWindows.length === 0) {
367
- console.log(new Error('No window listening'));
368
- return;
369
- }
370
-
371
- if (packet.value) {
372
- packet.value = typeof packet.value === 'string' ? JSON.parse(packet.value) : packet.value;
373
- }
374
- ourWindows.forEach(function (w) {
375
- w.responseTime = 0;
376
- packet.windowName = w.name;
377
- messagingProvider.post(w.reference, packet);
378
- responseTimeout(packet, w);
379
- });
380
- } catch (e) {
381
- console.log(e);
382
- stopWorkflow();
383
- invokeCallback(service.callbacks.SDKEXCEPTION, { callback: packet.action, value: e });
384
- }
385
- }
386
-
387
- function getWindowsToCommunicate(listener) {
388
- var windowArray = [];
389
-
390
- switch (listener) {
391
- case listeningWindows.ENCODER:
392
- if (service.encoderWindowIsListening) {
393
- windowArray.push(service.encoderWindow);
394
- }
395
- break;
396
-
397
- case listeningWindows.KC:
398
- if (service.kcWindowIsListening) {
399
- windowArray.push(service.kcWindow);
400
- }
401
- break;
402
-
403
- case listeningWindows.ALL:
404
- if (service.kcWindowIsListening) {
405
- windowArray.push(service.kcWindow);
406
- }
407
- if (service.encoderWindowIsListening) {
408
- windowArray.push(service.encoderWindow);
409
- }
410
-
411
- break;
412
-
413
- default:
414
- return [];
415
- }
416
-
417
- return windowArray.filter(function (w) {
418
- return w !== null && windowExists(w);
419
- });
420
- }
421
-
422
- function windowExists(window) {
423
- if (!window.opened) {
424
- if (!window.name) {
425
- closeKcWindow();
426
- closeEncoderWindow();
427
- }
428
- if (window.name === service.kcWindow.name) {
429
- closeKcWindow();
430
- } else if (window.name === service.encoderWindow.name) {
431
- closeEncoderWindow();
432
- }
433
- return false;
434
- }
435
-
436
- return true;
437
- }
438
-
439
- function closeKcWindow() {
440
- service.kcWindow.opened = false;
441
- service.kcWindowIsListening = false;
442
- }
443
-
444
- function closeEncoderWindow() {
445
- service.encoderWindow.opened = false;
446
- service.encoderWindowIsListening = false;
447
- }
448
-
449
- // workflow functions
450
- function addToWorkflow(wf) {
451
- var wfArray = Array.isArray(wf) ? wf : [wf];
452
- var kcWindowFunctions = ['openKc', 'launchKc', 'loadPatientRecord', 'assignConfig'];
453
- var encoderWindowFunctions = ['openEncoder', 'launchEncoder', 'loadPhraseInLogic', 'loadPhraseInIndex', 'loadCodeInTabular'];
454
- var allWindowFunctions = ['setI9I10State', 'setAuthToken', 'setDemographics', 'closeAllKCWindows']
455
-
456
- wfArray.forEach(function (w) {
457
- w.sendToWindow = [];
458
- if (kcWindowFunctions.indexOf(w.name) > -1) {
459
- w.sendToWindow.push('kcWindow');
460
- }
461
- if (encoderWindowFunctions.indexOf(w.name) > -1) {
462
- w.sendToWindow.push('encoderWindow');
463
- }
464
- if (allWindowFunctions.indexOf(w.name) > -1) {
465
- w.sendToWindow.push('kcWindow');
466
- w.sendToWindow.push('encoderWindow');
467
- }
468
- w.name = w.fn.name || w.fn.toString().match(/^function\s?([^\s(]*)/)[1];
469
- service.workflow.push(w);
470
- });
471
- return service.workflow;
472
- }
473
-
474
- function removeFromWorkflow(index) {
475
- service.workflow.splice(index, 1);
476
- }
477
-
478
- function processWorkflow(windowToSend) {
479
- service.workflowComplete = false;
480
- if (service.workflow.length === 0) {
481
- stopWorkflow();
482
- return;
483
- }
484
-
485
- var cwf = service.workflow.shift() || {};
486
-
487
- if (typeof windowToSend === 'string') {
488
- if (windowToSend === service.kcWindow.name) {
489
- windowToSend = service.kcWindow;
490
- }
491
- else if (windowToSend === service.encoderWindow.name) {
492
- windowToSend = service.encoderWindow;
493
- }
494
- else {
495
- stopWorkflow();
496
- return;
497
- }
498
- }
499
-
500
- windowToSend.currentWorkflow = cwf;
501
- cwf.workflowCompleteMessage = listenerResponse[cwf.name.toUpperCase()];
502
-
503
- if (!windowToSend.currentWorkflow.fn) {
504
- stopWorkflow();
505
- return;
506
- }
507
- var args = Array.isArray(windowToSend.currentWorkflow.args) ? windowToSend.currentWorkflow.args : [windowToSend.currentWorkflow.args];
508
-
509
- if (args.length > 0) {
510
- windowToSend.currentWorkflow.fn.apply(this, args);
511
- }
512
- else {
513
- windowToSend.currentWorkflow.fn.apply();
514
- }
515
- }
516
-
517
- function clearWorkflow() {
518
- service.workflow.length = 0;
519
- service.currentWorkflow = {};
520
- }
521
-
522
- function stopWorkflow() {
523
- service.workflowComplete = true;
524
- clearTimeout(service.kcWindow.responseTime);
525
- clearTimeout(service.encoderWindow.responseTime);
526
- invokeCallback('workflowComplete');
527
- }
528
-
529
- // handles timeout of calls
530
- function responseTimeout(packet, window) {
531
- window.responseTime = setTimeout(function () { responseFailed(packet, window) }, timeoutThresholdSeconds * 1000);
532
- }
533
-
534
- function responseFailed(packet, window) {
535
- invokeCallback(service.callbacks.SDKEXCEPTION, { callback: packet.action, value: 'Timed out.' });
536
- stopWorkflow();
537
- }
538
-
539
- function setCallback(name, func) {
540
- callbackFns[name] = func;
541
- }
542
-
543
- function invokeCallback(callbackName, args) {
544
- var callbackFn = callbackFns[callbackName];
545
- var args = Array.isArray(args) ? args : [args];
546
- if (typeof callbackFn === "function") {
547
- try {
548
- callbackFn.apply(this, args);
549
- } catch (e) {
550
- console.log(e);
551
- }
552
- }
553
- }
554
- };
555
-
556
- (function (window) {
557
- window.kcSdk = new kcSdk();
558
- })(window);
@@ -1,6 +0,0 @@
1
- var kcSdkConfig = {
2
- mreBaseUrl: 'https://mrestg-az.optum.com/mre/',
3
- tokenServer: "https://localhost/Token-core/Token/",
4
- url: "https://localhost/kc-web/",
5
- appName: "kcApp"
6
- }
@@ -1,6 +0,0 @@
1
- var kcSdkConfig = {
2
- mreBaseUrl: 'https://mrestg-az.optum.com/mre/',
3
- tokenServer: "https://localhost/Token-core/Token/",
4
- url: "https://localhost/knowledgecomponents/",
5
- appName: "kcApp"
6
- }