primary_care_admin_binder 0.1.100 → 0.1.102
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.
- package/dist/index.cjs.js +523 -367
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -27005,7 +27005,6 @@ var generateJson$8 = {
|
|
|
27005
27005
|
});
|
|
27006
27006
|
}
|
|
27007
27007
|
});
|
|
27008
|
-
debugger;
|
|
27009
27008
|
return {
|
|
27010
27009
|
telecom: telecomArr,
|
|
27011
27010
|
name: [{
|
|
@@ -27106,8 +27105,8 @@ var generateReadJson$2 = {
|
|
|
27106
27105
|
var _v$aliasType, _v$aliasType2;
|
|
27107
27106
|
// AliasArr read
|
|
27108
27107
|
return {
|
|
27109
|
-
startdate: moment().utc(v === null || v === void 0 ? void 0 : v.
|
|
27110
|
-
enddate: moment().utc(v === null || v === void 0 ? void 0 : v.
|
|
27108
|
+
startdate: moment().utc(v === null || v === void 0 ? void 0 : v.aliasStart, "DD-MM-YYYY")._d,
|
|
27109
|
+
enddate: moment().utc(v === null || v === void 0 ? void 0 : v.aliasEnd, "DD-MM-YYYY")._d,
|
|
27111
27110
|
aliastype: {
|
|
27112
27111
|
title: v === null || v === void 0 ? void 0 : (_v$aliasType = v.aliasType) === null || _v$aliasType === void 0 ? void 0 : _v$aliasType.display,
|
|
27113
27112
|
value: v === null || v === void 0 ? void 0 : (_v$aliasType2 = v.aliasType) === null || _v$aliasType2 === void 0 ? void 0 : _v$aliasType2._id
|
|
@@ -27321,40 +27320,48 @@ var ORGANIZATION_TREE_READ = createAsyncThunk("organizationSlice/organizationTre
|
|
|
27321
27320
|
}, _callee, null, [[2, 11]]);
|
|
27322
27321
|
})));
|
|
27323
27322
|
var ORGANIZATION_ENTITY_TYPE = createAsyncThunk("organizationSlice/organizationEntityType", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
27324
|
-
var
|
|
27325
|
-
_ref4,
|
|
27323
|
+
var _ref4,
|
|
27326
27324
|
rejectWithValue,
|
|
27325
|
+
_data$,
|
|
27326
|
+
_data$$ORGTYPE,
|
|
27327
|
+
_data$$ORGTYPE$Value,
|
|
27328
|
+
body,
|
|
27327
27329
|
data,
|
|
27328
|
-
|
|
27330
|
+
arry,
|
|
27329
27331
|
_args2 = arguments;
|
|
27330
27332
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
27331
27333
|
while (1) {
|
|
27332
27334
|
switch (_context2.prev = _context2.next) {
|
|
27333
27335
|
case 0:
|
|
27334
|
-
payload = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {};
|
|
27335
27336
|
_ref4 = _args2.length > 1 ? _args2[1] : undefined, rejectWithValue = _ref4.rejectWithValue;
|
|
27336
27337
|
_context2.prev = 2;
|
|
27337
|
-
|
|
27338
|
+
body = {
|
|
27339
|
+
"db_name": process.env.REACT_APP_DATABASE_NAME,
|
|
27340
|
+
"filter": {
|
|
27341
|
+
"type": ["ORGTYPE"],
|
|
27342
|
+
"tenantid": "",
|
|
27343
|
+
"facilityid": "",
|
|
27344
|
+
"lang": ""
|
|
27345
|
+
},
|
|
27346
|
+
"queryid": "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
|
|
27347
|
+
};
|
|
27338
27348
|
_context2.next = 6;
|
|
27339
27349
|
return fetchData({
|
|
27340
|
-
body: JSON.stringify(
|
|
27341
|
-
},
|
|
27350
|
+
body: JSON.stringify(body)
|
|
27351
|
+
}, __baseUrl__$1);
|
|
27342
27352
|
case 6:
|
|
27343
27353
|
data = _context2.sent;
|
|
27344
|
-
|
|
27345
|
-
data.
|
|
27346
|
-
|
|
27347
|
-
|
|
27348
|
-
|
|
27349
|
-
|
|
27350
|
-
|
|
27351
|
-
|
|
27352
|
-
code: val === null || val === void 0 ? void 0 : (_val$coding = val.coding) === null || _val$coding === void 0 ? void 0 : (_val$coding$4 = _val$coding[0]) === null || _val$coding$4 === void 0 ? void 0 : _val$coding$4.code
|
|
27353
|
-
}, val));
|
|
27354
|
-
}
|
|
27354
|
+
arry = [];
|
|
27355
|
+
(_data$ = data[0]) === null || _data$ === void 0 ? void 0 : (_data$$ORGTYPE = _data$.ORGTYPE) === null || _data$$ORGTYPE === void 0 ? void 0 : (_data$$ORGTYPE$Value = _data$$ORGTYPE.Value) === null || _data$$ORGTYPE$Value === void 0 ? void 0 : _data$$ORGTYPE$Value.map(function (item) {
|
|
27356
|
+
return arry.push({
|
|
27357
|
+
_id: item._id,
|
|
27358
|
+
value: item._id,
|
|
27359
|
+
title: item.display,
|
|
27360
|
+
code: item.code
|
|
27361
|
+
});
|
|
27355
27362
|
});
|
|
27356
27363
|
return _context2.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
27357
|
-
data:
|
|
27364
|
+
data: arry
|
|
27358
27365
|
}));
|
|
27359
27366
|
case 12:
|
|
27360
27367
|
_context2.prev = 12;
|
|
@@ -27373,9 +27380,9 @@ var ORGANIZATION_GET_PARENT_ENTITY = createAsyncThunk("organizationSlice/orgParE
|
|
|
27373
27380
|
var payload,
|
|
27374
27381
|
_ref6,
|
|
27375
27382
|
rejectWithValue,
|
|
27376
|
-
|
|
27383
|
+
body,
|
|
27377
27384
|
data,
|
|
27378
|
-
|
|
27385
|
+
arry,
|
|
27379
27386
|
_args3 = arguments;
|
|
27380
27387
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
27381
27388
|
while (1) {
|
|
@@ -27384,24 +27391,28 @@ var ORGANIZATION_GET_PARENT_ENTITY = createAsyncThunk("organizationSlice/orgParE
|
|
|
27384
27391
|
payload = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
|
|
27385
27392
|
_ref6 = _args3.length > 1 ? _args3[1] : undefined, rejectWithValue = _ref6.rejectWithValue;
|
|
27386
27393
|
_context3.prev = 2;
|
|
27387
|
-
|
|
27394
|
+
body = {
|
|
27395
|
+
"db_name": process.env.REACT_APP_DATABASE_NAME,
|
|
27396
|
+
"filter": {
|
|
27397
|
+
"entityparentcode": payload.entityType
|
|
27398
|
+
},
|
|
27399
|
+
"queryid": "cb3c355a-e383-4fb5-ad82-6ca3f3473524"
|
|
27400
|
+
};
|
|
27388
27401
|
_context3.next = 6;
|
|
27389
27402
|
return fetchData({
|
|
27390
|
-
body: JSON.stringify(
|
|
27391
|
-
},
|
|
27403
|
+
body: JSON.stringify(body)
|
|
27404
|
+
}, __baseUrl__$1);
|
|
27392
27405
|
case 6:
|
|
27393
27406
|
data = _context3.sent;
|
|
27394
|
-
|
|
27395
|
-
data.
|
|
27396
|
-
|
|
27397
|
-
|
|
27398
|
-
|
|
27399
|
-
|
|
27400
|
-
});
|
|
27401
|
-
}
|
|
27407
|
+
arry = [];
|
|
27408
|
+
data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
27409
|
+
return arry.push({
|
|
27410
|
+
value: item.id,
|
|
27411
|
+
title: item.name
|
|
27412
|
+
});
|
|
27402
27413
|
});
|
|
27403
27414
|
return _context3.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
27404
|
-
data:
|
|
27415
|
+
data: arry
|
|
27405
27416
|
}));
|
|
27406
27417
|
case 12:
|
|
27407
27418
|
_context3.prev = 12;
|
|
@@ -27417,37 +27428,40 @@ var ORGANIZATION_GET_PARENT_ENTITY = createAsyncThunk("organizationSlice/orgParE
|
|
|
27417
27428
|
}, _callee3, null, [[2, 12]]);
|
|
27418
27429
|
})));
|
|
27419
27430
|
var ORGANIZATION_GET_LEVEL_CARE = createAsyncThunk("organizationSlice/orgLevelCare", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
27420
|
-
var
|
|
27421
|
-
_ref8,
|
|
27431
|
+
var _ref8,
|
|
27422
27432
|
rejectWithValue,
|
|
27433
|
+
body,
|
|
27423
27434
|
data,
|
|
27424
|
-
|
|
27435
|
+
arry,
|
|
27425
27436
|
_args4 = arguments;
|
|
27426
27437
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
27427
27438
|
while (1) {
|
|
27428
27439
|
switch (_context4.prev = _context4.next) {
|
|
27429
27440
|
case 0:
|
|
27430
|
-
payload = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
|
|
27431
27441
|
_ref8 = _args4.length > 1 ? _args4[1] : undefined, rejectWithValue = _ref8.rejectWithValue;
|
|
27432
27442
|
_context4.prev = 2;
|
|
27433
|
-
|
|
27443
|
+
body = {
|
|
27444
|
+
"db_name": process.env.REACT_APP_DATABASE_NAME,
|
|
27445
|
+
"filter": {
|
|
27446
|
+
"tenantid": ""
|
|
27447
|
+
},
|
|
27448
|
+
"queryid": "6b8e483c-69e3-47a2-a0e1-8eb4ecb550df"
|
|
27449
|
+
};
|
|
27434
27450
|
_context4.next = 6;
|
|
27435
27451
|
return fetchData({
|
|
27436
|
-
body: JSON.stringify(
|
|
27437
|
-
},
|
|
27452
|
+
body: JSON.stringify(body)
|
|
27453
|
+
}, __baseUrl__$1);
|
|
27438
27454
|
case 6:
|
|
27439
27455
|
data = _context4.sent;
|
|
27440
|
-
|
|
27441
|
-
data.
|
|
27442
|
-
|
|
27443
|
-
|
|
27444
|
-
|
|
27445
|
-
|
|
27446
|
-
});
|
|
27447
|
-
}
|
|
27456
|
+
arry = [];
|
|
27457
|
+
data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
27458
|
+
return arry.push({
|
|
27459
|
+
value: item._id,
|
|
27460
|
+
title: item.display
|
|
27461
|
+
});
|
|
27448
27462
|
});
|
|
27449
27463
|
return _context4.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
27450
|
-
data:
|
|
27464
|
+
data: arry
|
|
27451
27465
|
}));
|
|
27452
27466
|
case 12:
|
|
27453
27467
|
_context4.prev = 12;
|
|
@@ -27463,39 +27477,48 @@ var ORGANIZATION_GET_LEVEL_CARE = createAsyncThunk("organizationSlice/orgLevelCa
|
|
|
27463
27477
|
}, _callee4, null, [[2, 12]]);
|
|
27464
27478
|
})));
|
|
27465
27479
|
var ORGANIZATION_GET_USE_IDENTIFICATION = createAsyncThunk("organizationSlice/orgUseIdenifi", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
27466
|
-
var
|
|
27467
|
-
_ref10,
|
|
27480
|
+
var _ref10,
|
|
27468
27481
|
rejectWithValue,
|
|
27482
|
+
_data$2,
|
|
27483
|
+
_data$2$USE,
|
|
27484
|
+
_data$2$USE$Value,
|
|
27485
|
+
body,
|
|
27469
27486
|
data,
|
|
27470
|
-
|
|
27487
|
+
arry,
|
|
27471
27488
|
_args5 = arguments;
|
|
27472
27489
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
27473
27490
|
while (1) {
|
|
27474
27491
|
switch (_context5.prev = _context5.next) {
|
|
27475
27492
|
case 0:
|
|
27476
|
-
payload = _args5.length > 0 && _args5[0] !== undefined ? _args5[0] : {};
|
|
27477
27493
|
_ref10 = _args5.length > 1 ? _args5[1] : undefined, rejectWithValue = _ref10.rejectWithValue;
|
|
27478
27494
|
_context5.prev = 2;
|
|
27479
|
-
|
|
27495
|
+
body = {
|
|
27496
|
+
"db_name": process.env.REACT_APP_DATABASE_NAME,
|
|
27497
|
+
"filter": {
|
|
27498
|
+
"type": ["USE"],
|
|
27499
|
+
"tenantid": "",
|
|
27500
|
+
"facilityid": "",
|
|
27501
|
+
"lang": ""
|
|
27502
|
+
},
|
|
27503
|
+
"queryid": "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
|
|
27504
|
+
};
|
|
27480
27505
|
_context5.next = 6;
|
|
27481
27506
|
return fetchData({
|
|
27482
|
-
body: JSON.stringify(
|
|
27483
|
-
},
|
|
27507
|
+
body: JSON.stringify(body)
|
|
27508
|
+
}, __baseUrl__$1);
|
|
27484
27509
|
case 6:
|
|
27485
27510
|
data = _context5.sent;
|
|
27486
|
-
|
|
27487
|
-
data.
|
|
27488
|
-
|
|
27489
|
-
|
|
27490
|
-
|
|
27491
|
-
|
|
27492
|
-
|
|
27493
|
-
|
|
27494
|
-
});
|
|
27495
|
-
}
|
|
27511
|
+
arry = [];
|
|
27512
|
+
(_data$2 = data[0]) === null || _data$2 === void 0 ? void 0 : (_data$2$USE = _data$2.USE) === null || _data$2$USE === void 0 ? void 0 : (_data$2$USE$Value = _data$2$USE.Value) === null || _data$2$USE$Value === void 0 ? void 0 : _data$2$USE$Value.map(function (item) {
|
|
27513
|
+
return arry.push({
|
|
27514
|
+
_id: item._id,
|
|
27515
|
+
value: item._id,
|
|
27516
|
+
title: item.display,
|
|
27517
|
+
code: item.code
|
|
27518
|
+
});
|
|
27496
27519
|
});
|
|
27497
27520
|
return _context5.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
27498
|
-
data:
|
|
27521
|
+
data: arry
|
|
27499
27522
|
}));
|
|
27500
27523
|
case 12:
|
|
27501
27524
|
_context5.prev = 12;
|
|
@@ -27511,39 +27534,48 @@ var ORGANIZATION_GET_USE_IDENTIFICATION = createAsyncThunk("organizationSlice/or
|
|
|
27511
27534
|
}, _callee5, null, [[2, 12]]);
|
|
27512
27535
|
})));
|
|
27513
27536
|
var ORGANIZATION_GET_IDTYPE_IDENTIF = createAsyncThunk("organizationSlice/orgIdTypeIdenifi", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
|
|
27514
|
-
var
|
|
27515
|
-
_ref12,
|
|
27537
|
+
var _ref12,
|
|
27516
27538
|
rejectWithValue,
|
|
27539
|
+
_data$3,
|
|
27540
|
+
_data$3$ORGIDENTIFICA,
|
|
27541
|
+
_data$3$ORGIDENTIFICA2,
|
|
27542
|
+
body,
|
|
27517
27543
|
data,
|
|
27518
|
-
|
|
27544
|
+
arry,
|
|
27519
27545
|
_args6 = arguments;
|
|
27520
27546
|
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
27521
27547
|
while (1) {
|
|
27522
27548
|
switch (_context6.prev = _context6.next) {
|
|
27523
27549
|
case 0:
|
|
27524
|
-
payload = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {};
|
|
27525
27550
|
_ref12 = _args6.length > 1 ? _args6[1] : undefined, rejectWithValue = _ref12.rejectWithValue;
|
|
27526
27551
|
_context6.prev = 2;
|
|
27527
|
-
|
|
27552
|
+
body = {
|
|
27553
|
+
"db_name": process.env.REACT_APP_DATABASE_NAME,
|
|
27554
|
+
"filter": {
|
|
27555
|
+
"type": ["ORGIDENTIFICATIONTYPE"],
|
|
27556
|
+
"tenantid": "",
|
|
27557
|
+
"facilityid": "",
|
|
27558
|
+
"lang": ""
|
|
27559
|
+
},
|
|
27560
|
+
"queryid": "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
|
|
27561
|
+
};
|
|
27528
27562
|
_context6.next = 6;
|
|
27529
27563
|
return fetchData({
|
|
27530
|
-
body: JSON.stringify(
|
|
27531
|
-
},
|
|
27564
|
+
body: JSON.stringify(body)
|
|
27565
|
+
}, __baseUrl__$1);
|
|
27532
27566
|
case 6:
|
|
27533
27567
|
data = _context6.sent;
|
|
27534
|
-
|
|
27535
|
-
data.
|
|
27536
|
-
|
|
27537
|
-
|
|
27538
|
-
|
|
27539
|
-
|
|
27540
|
-
|
|
27541
|
-
|
|
27542
|
-
});
|
|
27543
|
-
}
|
|
27568
|
+
arry = [];
|
|
27569
|
+
(_data$3 = data[0]) === null || _data$3 === void 0 ? void 0 : (_data$3$ORGIDENTIFICA = _data$3.ORGIDENTIFICATIONTYPE) === null || _data$3$ORGIDENTIFICA === void 0 ? void 0 : (_data$3$ORGIDENTIFICA2 = _data$3$ORGIDENTIFICA.Value) === null || _data$3$ORGIDENTIFICA2 === void 0 ? void 0 : _data$3$ORGIDENTIFICA2.map(function (item) {
|
|
27570
|
+
return arry.push({
|
|
27571
|
+
_id: item._id,
|
|
27572
|
+
value: item._id,
|
|
27573
|
+
title: item.display,
|
|
27574
|
+
code: item.code
|
|
27575
|
+
});
|
|
27544
27576
|
});
|
|
27545
27577
|
return _context6.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
27546
|
-
data:
|
|
27578
|
+
data: arry
|
|
27547
27579
|
}));
|
|
27548
27580
|
case 12:
|
|
27549
27581
|
_context6.prev = 12;
|
|
@@ -27559,39 +27591,48 @@ var ORGANIZATION_GET_IDTYPE_IDENTIF = createAsyncThunk("organizationSlice/orgIdT
|
|
|
27559
27591
|
}, _callee6, null, [[2, 12]]);
|
|
27560
27592
|
})));
|
|
27561
27593
|
var ORGANIZATION_GET_ALIAS_TYPE = createAsyncThunk("organizationSlice/aliastype", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
|
|
27562
|
-
var
|
|
27563
|
-
_ref14,
|
|
27594
|
+
var _ref14,
|
|
27564
27595
|
rejectWithValue,
|
|
27596
|
+
_data$4,
|
|
27597
|
+
_data$4$ACCOUNTENTITY,
|
|
27598
|
+
_data$4$ACCOUNTENTITY2,
|
|
27599
|
+
body,
|
|
27565
27600
|
data,
|
|
27566
|
-
|
|
27601
|
+
arry,
|
|
27567
27602
|
_args7 = arguments;
|
|
27568
27603
|
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
27569
27604
|
while (1) {
|
|
27570
27605
|
switch (_context7.prev = _context7.next) {
|
|
27571
27606
|
case 0:
|
|
27572
|
-
payload = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : {};
|
|
27573
27607
|
_ref14 = _args7.length > 1 ? _args7[1] : undefined, rejectWithValue = _ref14.rejectWithValue;
|
|
27574
27608
|
_context7.prev = 2;
|
|
27575
|
-
|
|
27609
|
+
body = {
|
|
27610
|
+
"db_name": process.env.REACT_APP_DATABASE_NAME,
|
|
27611
|
+
"filter": {
|
|
27612
|
+
"type": ["ACCOUNTENTITYTYPE"],
|
|
27613
|
+
"tenantid": "",
|
|
27614
|
+
"facilityid": "",
|
|
27615
|
+
"lang": ""
|
|
27616
|
+
},
|
|
27617
|
+
"queryid": "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
|
|
27618
|
+
};
|
|
27576
27619
|
_context7.next = 6;
|
|
27577
27620
|
return fetchData({
|
|
27578
|
-
body: JSON.stringify(
|
|
27579
|
-
},
|
|
27621
|
+
body: JSON.stringify(body)
|
|
27622
|
+
}, __baseUrl__$1);
|
|
27580
27623
|
case 6:
|
|
27581
27624
|
data = _context7.sent;
|
|
27582
|
-
|
|
27583
|
-
data.
|
|
27584
|
-
|
|
27585
|
-
|
|
27586
|
-
|
|
27587
|
-
|
|
27588
|
-
|
|
27589
|
-
|
|
27590
|
-
});
|
|
27591
|
-
}
|
|
27625
|
+
arry = [];
|
|
27626
|
+
(_data$4 = data[0]) === null || _data$4 === void 0 ? void 0 : (_data$4$ACCOUNTENTITY = _data$4.ACCOUNTENTITYTYPE) === null || _data$4$ACCOUNTENTITY === void 0 ? void 0 : (_data$4$ACCOUNTENTITY2 = _data$4$ACCOUNTENTITY.Value) === null || _data$4$ACCOUNTENTITY2 === void 0 ? void 0 : _data$4$ACCOUNTENTITY2.map(function (item) {
|
|
27627
|
+
return arry.push({
|
|
27628
|
+
_id: item._id,
|
|
27629
|
+
value: item._id,
|
|
27630
|
+
title: item.display,
|
|
27631
|
+
code: item.code
|
|
27632
|
+
});
|
|
27592
27633
|
});
|
|
27593
27634
|
return _context7.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
27594
|
-
data:
|
|
27635
|
+
data: arry
|
|
27595
27636
|
}));
|
|
27596
27637
|
case 12:
|
|
27597
27638
|
_context7.prev = 12;
|
|
@@ -27706,39 +27747,48 @@ var ORGANIZATION_READ_DETAILS = createAsyncThunk("organizationSlice/organization
|
|
|
27706
27747
|
}, _callee9, null, [[2, 17]]);
|
|
27707
27748
|
})));
|
|
27708
27749
|
var ORGANIZATION_GET_ADD_TYPE = createAsyncThunk("organizationSlice/orgAddType", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10() {
|
|
27709
|
-
var
|
|
27710
|
-
_ref20,
|
|
27750
|
+
var _ref20,
|
|
27711
27751
|
rejectWithValue,
|
|
27752
|
+
_data$5,
|
|
27753
|
+
_data$5$ADDRESSTYPE,
|
|
27754
|
+
_data$5$ADDRESSTYPE$V,
|
|
27755
|
+
body,
|
|
27712
27756
|
data,
|
|
27713
|
-
|
|
27757
|
+
arry,
|
|
27714
27758
|
_args10 = arguments;
|
|
27715
27759
|
return _regeneratorRuntime().wrap(function _callee10$(_context10) {
|
|
27716
27760
|
while (1) {
|
|
27717
27761
|
switch (_context10.prev = _context10.next) {
|
|
27718
27762
|
case 0:
|
|
27719
|
-
payload = _args10.length > 0 && _args10[0] !== undefined ? _args10[0] : {};
|
|
27720
27763
|
_ref20 = _args10.length > 1 ? _args10[1] : undefined, rejectWithValue = _ref20.rejectWithValue;
|
|
27721
27764
|
_context10.prev = 2;
|
|
27722
|
-
|
|
27765
|
+
body = {
|
|
27766
|
+
"db_name": process.env.REACT_APP_DATABASE_NAME,
|
|
27767
|
+
"filter": {
|
|
27768
|
+
"type": ["ADDRESSTYPE"],
|
|
27769
|
+
"tenantid": "",
|
|
27770
|
+
"facilityid": "",
|
|
27771
|
+
"lang": ""
|
|
27772
|
+
},
|
|
27773
|
+
"queryid": "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
|
|
27774
|
+
};
|
|
27723
27775
|
_context10.next = 6;
|
|
27724
27776
|
return fetchData({
|
|
27725
|
-
body: JSON.stringify(
|
|
27726
|
-
},
|
|
27777
|
+
body: JSON.stringify(body)
|
|
27778
|
+
}, __baseUrl__$1);
|
|
27727
27779
|
case 6:
|
|
27728
27780
|
data = _context10.sent;
|
|
27729
|
-
|
|
27730
|
-
data.
|
|
27731
|
-
|
|
27732
|
-
|
|
27733
|
-
|
|
27734
|
-
|
|
27735
|
-
|
|
27736
|
-
|
|
27737
|
-
});
|
|
27738
|
-
}
|
|
27781
|
+
arry = [];
|
|
27782
|
+
(_data$5 = data[0]) === null || _data$5 === void 0 ? void 0 : (_data$5$ADDRESSTYPE = _data$5.ADDRESSTYPE) === null || _data$5$ADDRESSTYPE === void 0 ? void 0 : (_data$5$ADDRESSTYPE$V = _data$5$ADDRESSTYPE.Value) === null || _data$5$ADDRESSTYPE$V === void 0 ? void 0 : _data$5$ADDRESSTYPE$V.map(function (item) {
|
|
27783
|
+
return arry.push({
|
|
27784
|
+
_id: item._id,
|
|
27785
|
+
value: item._id,
|
|
27786
|
+
title: item.display,
|
|
27787
|
+
code: item.code
|
|
27788
|
+
});
|
|
27739
27789
|
});
|
|
27740
27790
|
return _context10.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
27741
|
-
data:
|
|
27791
|
+
data: arry
|
|
27742
27792
|
}));
|
|
27743
27793
|
case 12:
|
|
27744
27794
|
_context10.prev = 12;
|
|
@@ -27754,39 +27804,48 @@ var ORGANIZATION_GET_ADD_TYPE = createAsyncThunk("organizationSlice/orgAddType",
|
|
|
27754
27804
|
}, _callee10, null, [[2, 12]]);
|
|
27755
27805
|
})));
|
|
27756
27806
|
var ORGANIZATION_GET_ADD_USE = createAsyncThunk("organizationSlice/orgAddUSE", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11() {
|
|
27757
|
-
var
|
|
27758
|
-
_ref22,
|
|
27807
|
+
var _ref22,
|
|
27759
27808
|
rejectWithValue,
|
|
27809
|
+
_data$6,
|
|
27810
|
+
_data$6$ADDRESSUSE,
|
|
27811
|
+
_data$6$ADDRESSUSE$Va,
|
|
27812
|
+
body,
|
|
27760
27813
|
data,
|
|
27761
|
-
|
|
27814
|
+
arry,
|
|
27762
27815
|
_args11 = arguments;
|
|
27763
27816
|
return _regeneratorRuntime().wrap(function _callee11$(_context11) {
|
|
27764
27817
|
while (1) {
|
|
27765
27818
|
switch (_context11.prev = _context11.next) {
|
|
27766
27819
|
case 0:
|
|
27767
|
-
payload = _args11.length > 0 && _args11[0] !== undefined ? _args11[0] : {};
|
|
27768
27820
|
_ref22 = _args11.length > 1 ? _args11[1] : undefined, rejectWithValue = _ref22.rejectWithValue;
|
|
27769
27821
|
_context11.prev = 2;
|
|
27770
|
-
|
|
27822
|
+
body = {
|
|
27823
|
+
"db_name": process.env.REACT_APP_DATABASE_NAME,
|
|
27824
|
+
"filter": {
|
|
27825
|
+
"type": ["ADDRESSUSE"],
|
|
27826
|
+
"tenantid": "",
|
|
27827
|
+
"facilityid": "",
|
|
27828
|
+
"lang": ""
|
|
27829
|
+
},
|
|
27830
|
+
"queryid": "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
|
|
27831
|
+
};
|
|
27771
27832
|
_context11.next = 6;
|
|
27772
27833
|
return fetchData({
|
|
27773
|
-
body: JSON.stringify(
|
|
27774
|
-
},
|
|
27834
|
+
body: JSON.stringify(body)
|
|
27835
|
+
}, __baseUrl__$1);
|
|
27775
27836
|
case 6:
|
|
27776
27837
|
data = _context11.sent;
|
|
27777
|
-
|
|
27778
|
-
data.
|
|
27779
|
-
|
|
27780
|
-
|
|
27781
|
-
|
|
27782
|
-
|
|
27783
|
-
|
|
27784
|
-
|
|
27785
|
-
});
|
|
27786
|
-
}
|
|
27838
|
+
arry = [];
|
|
27839
|
+
(_data$6 = data[0]) === null || _data$6 === void 0 ? void 0 : (_data$6$ADDRESSUSE = _data$6.ADDRESSUSE) === null || _data$6$ADDRESSUSE === void 0 ? void 0 : (_data$6$ADDRESSUSE$Va = _data$6$ADDRESSUSE.Value) === null || _data$6$ADDRESSUSE$Va === void 0 ? void 0 : _data$6$ADDRESSUSE$Va.map(function (item) {
|
|
27840
|
+
return arry.push({
|
|
27841
|
+
_id: item._id,
|
|
27842
|
+
value: item._id,
|
|
27843
|
+
title: item.display,
|
|
27844
|
+
code: item.code
|
|
27845
|
+
});
|
|
27787
27846
|
});
|
|
27788
27847
|
return _context11.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
27789
|
-
data:
|
|
27848
|
+
data: arry
|
|
27790
27849
|
}));
|
|
27791
27850
|
case 12:
|
|
27792
27851
|
_context11.prev = 12;
|
|
@@ -27802,39 +27861,44 @@ var ORGANIZATION_GET_ADD_USE = createAsyncThunk("organizationSlice/orgAddUSE", /
|
|
|
27802
27861
|
}, _callee11, null, [[2, 12]]);
|
|
27803
27862
|
})));
|
|
27804
27863
|
var ORGANIZATION_GET_ADD_City = createAsyncThunk("organizationSlice/orgAddCity", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12() {
|
|
27805
|
-
var
|
|
27806
|
-
_ref24,
|
|
27864
|
+
var _ref24,
|
|
27807
27865
|
rejectWithValue,
|
|
27866
|
+
body,
|
|
27808
27867
|
data,
|
|
27809
|
-
|
|
27868
|
+
arry,
|
|
27810
27869
|
_args12 = arguments;
|
|
27811
27870
|
return _regeneratorRuntime().wrap(function _callee12$(_context12) {
|
|
27812
27871
|
while (1) {
|
|
27813
27872
|
switch (_context12.prev = _context12.next) {
|
|
27814
27873
|
case 0:
|
|
27815
|
-
payload = _args12.length > 0 && _args12[0] !== undefined ? _args12[0] : {};
|
|
27816
27874
|
_ref24 = _args12.length > 1 ? _args12[1] : undefined, rejectWithValue = _ref24.rejectWithValue;
|
|
27817
27875
|
_context12.prev = 2;
|
|
27818
|
-
|
|
27876
|
+
body = {
|
|
27877
|
+
"db_name": process.env.REACT_APP_DATABASE_NAME,
|
|
27878
|
+
"filter": {
|
|
27879
|
+
"tenantid": "",
|
|
27880
|
+
"facilityid": "",
|
|
27881
|
+
"lang": ""
|
|
27882
|
+
},
|
|
27883
|
+
"queryid": "af7bc0f4-8ae8-47b2-b9e4-cc6559c76375"
|
|
27884
|
+
};
|
|
27819
27885
|
_context12.next = 6;
|
|
27820
27886
|
return fetchData({
|
|
27821
|
-
body: JSON.stringify(
|
|
27822
|
-
},
|
|
27887
|
+
body: JSON.stringify(body)
|
|
27888
|
+
}, __baseUrl__$1);
|
|
27823
27889
|
case 6:
|
|
27824
27890
|
data = _context12.sent;
|
|
27825
|
-
|
|
27826
|
-
data.
|
|
27827
|
-
|
|
27828
|
-
|
|
27829
|
-
|
|
27830
|
-
|
|
27831
|
-
|
|
27832
|
-
|
|
27833
|
-
});
|
|
27834
|
-
}
|
|
27891
|
+
arry = [];
|
|
27892
|
+
data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
27893
|
+
return arry.push({
|
|
27894
|
+
id: item.parentGeogLevelCode,
|
|
27895
|
+
value: item._id,
|
|
27896
|
+
title: item.geogLevelName,
|
|
27897
|
+
code: item.geogLevelCode
|
|
27898
|
+
});
|
|
27835
27899
|
});
|
|
27836
27900
|
return _context12.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
27837
|
-
data:
|
|
27901
|
+
data: arry
|
|
27838
27902
|
}));
|
|
27839
27903
|
case 12:
|
|
27840
27904
|
_context12.prev = 12;
|
|
@@ -27853,9 +27917,9 @@ var ORGANIZATION_GET_ADD_DISTRICT = createAsyncThunk("organizationSlice/orgAddDI
|
|
|
27853
27917
|
var payload,
|
|
27854
27918
|
_ref26,
|
|
27855
27919
|
rejectWithValue,
|
|
27856
|
-
|
|
27920
|
+
body,
|
|
27857
27921
|
data,
|
|
27858
|
-
|
|
27922
|
+
arry,
|
|
27859
27923
|
_args13 = arguments;
|
|
27860
27924
|
return _regeneratorRuntime().wrap(function _callee13$(_context13) {
|
|
27861
27925
|
while (1) {
|
|
@@ -27864,25 +27928,32 @@ var ORGANIZATION_GET_ADD_DISTRICT = createAsyncThunk("organizationSlice/orgAddDI
|
|
|
27864
27928
|
payload = _args13.length > 0 && _args13[0] !== undefined ? _args13[0] : {};
|
|
27865
27929
|
_ref26 = _args13.length > 1 ? _args13[1] : undefined, rejectWithValue = _ref26.rejectWithValue;
|
|
27866
27930
|
_context13.prev = 2;
|
|
27867
|
-
|
|
27931
|
+
body = {
|
|
27932
|
+
"db_name": process.env.REACT_APP_DATABASE_NAME,
|
|
27933
|
+
"filter": {
|
|
27934
|
+
"_id": payload.val,
|
|
27935
|
+
"tenantid": "",
|
|
27936
|
+
"facilityid": "",
|
|
27937
|
+
"lang": ""
|
|
27938
|
+
},
|
|
27939
|
+
"queryid": "7cb0f69c-ddd1-482f-8b60-6cf05d7a60c6"
|
|
27940
|
+
};
|
|
27868
27941
|
_context13.next = 6;
|
|
27869
27942
|
return fetchData({
|
|
27870
|
-
body: JSON.stringify(
|
|
27871
|
-
},
|
|
27943
|
+
body: JSON.stringify(body)
|
|
27944
|
+
}, __baseUrl__$1);
|
|
27872
27945
|
case 6:
|
|
27873
27946
|
data = _context13.sent;
|
|
27874
|
-
|
|
27875
|
-
data.
|
|
27876
|
-
|
|
27877
|
-
|
|
27878
|
-
|
|
27879
|
-
|
|
27880
|
-
|
|
27881
|
-
});
|
|
27882
|
-
}
|
|
27947
|
+
arry = [];
|
|
27948
|
+
data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
27949
|
+
return arry.push({
|
|
27950
|
+
id: item.parentGeogLevelCode,
|
|
27951
|
+
value: item._id,
|
|
27952
|
+
title: item.geogLevelName
|
|
27953
|
+
});
|
|
27883
27954
|
});
|
|
27884
27955
|
return _context13.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
27885
|
-
data:
|
|
27956
|
+
data: arry
|
|
27886
27957
|
}));
|
|
27887
27958
|
case 12:
|
|
27888
27959
|
_context13.prev = 12;
|
|
@@ -27901,9 +27972,9 @@ var ORGANIZATION_GET_AddSTATE = createAsyncThunk("organizationSlice/orgAddSTATE"
|
|
|
27901
27972
|
var payload,
|
|
27902
27973
|
_ref28,
|
|
27903
27974
|
rejectWithValue,
|
|
27904
|
-
|
|
27975
|
+
body,
|
|
27905
27976
|
data,
|
|
27906
|
-
|
|
27977
|
+
arry,
|
|
27907
27978
|
_args14 = arguments;
|
|
27908
27979
|
return _regeneratorRuntime().wrap(function _callee14$(_context14) {
|
|
27909
27980
|
while (1) {
|
|
@@ -27912,25 +27983,32 @@ var ORGANIZATION_GET_AddSTATE = createAsyncThunk("organizationSlice/orgAddSTATE"
|
|
|
27912
27983
|
payload = _args14.length > 0 && _args14[0] !== undefined ? _args14[0] : {};
|
|
27913
27984
|
_ref28 = _args14.length > 1 ? _args14[1] : undefined, rejectWithValue = _ref28.rejectWithValue;
|
|
27914
27985
|
_context14.prev = 2;
|
|
27915
|
-
|
|
27986
|
+
body = {
|
|
27987
|
+
"db_name": process.env.REACT_APP_DATABASE_NAME,
|
|
27988
|
+
"filter": {
|
|
27989
|
+
"_id": payload.val,
|
|
27990
|
+
"tenantid": "",
|
|
27991
|
+
"facilityid": "",
|
|
27992
|
+
"lang": ""
|
|
27993
|
+
},
|
|
27994
|
+
"queryid": "1242cdfa-cb20-47ec-83a8-54d49900cecb"
|
|
27995
|
+
};
|
|
27916
27996
|
_context14.next = 6;
|
|
27917
27997
|
return fetchData({
|
|
27918
|
-
body: JSON.stringify(
|
|
27919
|
-
},
|
|
27998
|
+
body: JSON.stringify(body)
|
|
27999
|
+
}, __baseUrl__$1);
|
|
27920
28000
|
case 6:
|
|
27921
28001
|
data = _context14.sent;
|
|
27922
|
-
|
|
27923
|
-
data.
|
|
27924
|
-
|
|
27925
|
-
|
|
27926
|
-
|
|
27927
|
-
|
|
27928
|
-
|
|
27929
|
-
});
|
|
27930
|
-
}
|
|
28002
|
+
arry = [];
|
|
28003
|
+
data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
28004
|
+
return arry.push({
|
|
28005
|
+
id: item.parentGeogLevelCode,
|
|
28006
|
+
value: item._id,
|
|
28007
|
+
title: item.geogLevelName
|
|
28008
|
+
});
|
|
27931
28009
|
});
|
|
27932
28010
|
return _context14.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
27933
|
-
data:
|
|
28011
|
+
data: arry
|
|
27934
28012
|
}));
|
|
27935
28013
|
case 12:
|
|
27936
28014
|
_context14.prev = 12;
|
|
@@ -27949,9 +28027,9 @@ var ORGANIZATION_GET_COUNTRY = createAsyncThunk("organizationSlice/orgAddCOUNTRY
|
|
|
27949
28027
|
var payload,
|
|
27950
28028
|
_ref30,
|
|
27951
28029
|
rejectWithValue,
|
|
27952
|
-
|
|
28030
|
+
body,
|
|
27953
28031
|
data,
|
|
27954
|
-
|
|
28032
|
+
arry,
|
|
27955
28033
|
_args15 = arguments;
|
|
27956
28034
|
return _regeneratorRuntime().wrap(function _callee15$(_context15) {
|
|
27957
28035
|
while (1) {
|
|
@@ -27960,25 +28038,32 @@ var ORGANIZATION_GET_COUNTRY = createAsyncThunk("organizationSlice/orgAddCOUNTRY
|
|
|
27960
28038
|
payload = _args15.length > 0 && _args15[0] !== undefined ? _args15[0] : {};
|
|
27961
28039
|
_ref30 = _args15.length > 1 ? _args15[1] : undefined, rejectWithValue = _ref30.rejectWithValue;
|
|
27962
28040
|
_context15.prev = 2;
|
|
27963
|
-
|
|
28041
|
+
body = {
|
|
28042
|
+
"db_name": process.env.REACT_APP_DATABASE_NAME,
|
|
28043
|
+
"filter": {
|
|
28044
|
+
"_id": payload.val,
|
|
28045
|
+
"tenantid": "",
|
|
28046
|
+
"facilityid": "",
|
|
28047
|
+
"lang": ""
|
|
28048
|
+
},
|
|
28049
|
+
"queryid": "56b0cfa3-c2c0-4267-88fe-2795f72f1259"
|
|
28050
|
+
};
|
|
27964
28051
|
_context15.next = 6;
|
|
27965
28052
|
return fetchData({
|
|
27966
|
-
body: JSON.stringify(
|
|
27967
|
-
},
|
|
28053
|
+
body: JSON.stringify(body)
|
|
28054
|
+
}, __baseUrl__$1);
|
|
27968
28055
|
case 6:
|
|
27969
28056
|
data = _context15.sent;
|
|
27970
|
-
|
|
27971
|
-
data.
|
|
27972
|
-
|
|
27973
|
-
|
|
27974
|
-
|
|
27975
|
-
|
|
27976
|
-
|
|
27977
|
-
});
|
|
27978
|
-
}
|
|
28057
|
+
arry = [];
|
|
28058
|
+
data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
28059
|
+
return arry.push({
|
|
28060
|
+
id: item.parentGeogLevelCode,
|
|
28061
|
+
value: item._id,
|
|
28062
|
+
title: item.geogLevelName
|
|
28063
|
+
});
|
|
27979
28064
|
});
|
|
27980
28065
|
return _context15.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
27981
|
-
data:
|
|
28066
|
+
data: arry
|
|
27982
28067
|
}));
|
|
27983
28068
|
case 12:
|
|
27984
28069
|
_context15.prev = 12;
|
|
@@ -27997,9 +28082,9 @@ var ORGANIZATION_GET_PINCODE = createAsyncThunk("organizationSlice/orgAddPINCODE
|
|
|
27997
28082
|
var payload,
|
|
27998
28083
|
_ref32,
|
|
27999
28084
|
rejectWithValue,
|
|
28000
|
-
|
|
28085
|
+
body,
|
|
28001
28086
|
data,
|
|
28002
|
-
|
|
28087
|
+
arry,
|
|
28003
28088
|
_args16 = arguments;
|
|
28004
28089
|
return _regeneratorRuntime().wrap(function _callee16$(_context16) {
|
|
28005
28090
|
while (1) {
|
|
@@ -28008,25 +28093,32 @@ var ORGANIZATION_GET_PINCODE = createAsyncThunk("organizationSlice/orgAddPINCODE
|
|
|
28008
28093
|
payload = _args16.length > 0 && _args16[0] !== undefined ? _args16[0] : {};
|
|
28009
28094
|
_ref32 = _args16.length > 1 ? _args16[1] : undefined, rejectWithValue = _ref32.rejectWithValue;
|
|
28010
28095
|
_context16.prev = 2;
|
|
28011
|
-
|
|
28096
|
+
body = {
|
|
28097
|
+
"db_name": process.env.REACT_APP_DATABASE_NAME,
|
|
28098
|
+
"filter": {
|
|
28099
|
+
"_id": payload.val,
|
|
28100
|
+
"tenantid": "",
|
|
28101
|
+
"facilityid": "",
|
|
28102
|
+
"lang": ""
|
|
28103
|
+
},
|
|
28104
|
+
"queryid": "5afb6789-1bce-4302-9387-91dcba3a8d1b"
|
|
28105
|
+
};
|
|
28012
28106
|
_context16.next = 6;
|
|
28013
28107
|
return fetchData({
|
|
28014
|
-
body: JSON.stringify(
|
|
28015
|
-
},
|
|
28108
|
+
body: JSON.stringify(body)
|
|
28109
|
+
}, __baseUrl__$1);
|
|
28016
28110
|
case 6:
|
|
28017
28111
|
data = _context16.sent;
|
|
28018
|
-
|
|
28019
|
-
data.
|
|
28020
|
-
|
|
28021
|
-
|
|
28022
|
-
|
|
28023
|
-
|
|
28024
|
-
|
|
28025
|
-
});
|
|
28026
|
-
}
|
|
28112
|
+
arry = [];
|
|
28113
|
+
data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
28114
|
+
return arry.push({
|
|
28115
|
+
id: item.parentGeogLevelCode,
|
|
28116
|
+
value: item._id,
|
|
28117
|
+
title: item.geogLevelName
|
|
28118
|
+
});
|
|
28027
28119
|
});
|
|
28028
28120
|
return _context16.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
28029
|
-
data:
|
|
28121
|
+
data: arry
|
|
28030
28122
|
}));
|
|
28031
28123
|
case 12:
|
|
28032
28124
|
_context16.prev = 12;
|
|
@@ -28042,39 +28134,48 @@ var ORGANIZATION_GET_PINCODE = createAsyncThunk("organizationSlice/orgAddPINCODE
|
|
|
28042
28134
|
}, _callee16, null, [[2, 12]]);
|
|
28043
28135
|
})));
|
|
28044
28136
|
var ORGANIZATION_GET_CONTACTDETAILMODE = createAsyncThunk("organizationSlice/orgContactDetailMode", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17() {
|
|
28045
|
-
var
|
|
28046
|
-
_ref34,
|
|
28137
|
+
var _ref34,
|
|
28047
28138
|
rejectWithValue,
|
|
28139
|
+
_data$7,
|
|
28140
|
+
_data$7$CONTACTSYSTEM,
|
|
28141
|
+
_data$7$CONTACTSYSTEM2,
|
|
28142
|
+
body,
|
|
28048
28143
|
data,
|
|
28049
|
-
|
|
28144
|
+
arry,
|
|
28050
28145
|
_args17 = arguments;
|
|
28051
28146
|
return _regeneratorRuntime().wrap(function _callee17$(_context17) {
|
|
28052
28147
|
while (1) {
|
|
28053
28148
|
switch (_context17.prev = _context17.next) {
|
|
28054
28149
|
case 0:
|
|
28055
|
-
payload = _args17.length > 0 && _args17[0] !== undefined ? _args17[0] : {};
|
|
28056
28150
|
_ref34 = _args17.length > 1 ? _args17[1] : undefined, rejectWithValue = _ref34.rejectWithValue;
|
|
28057
28151
|
_context17.prev = 2;
|
|
28058
|
-
|
|
28152
|
+
body = {
|
|
28153
|
+
"db_name": process.env.REACT_APP_DATABASE_NAME,
|
|
28154
|
+
"filter": {
|
|
28155
|
+
"type": ["CONTACTSYSTEM"],
|
|
28156
|
+
"tenantid": "",
|
|
28157
|
+
"facilityid": "",
|
|
28158
|
+
"lang": ""
|
|
28159
|
+
},
|
|
28160
|
+
"queryid": "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
|
|
28161
|
+
};
|
|
28059
28162
|
_context17.next = 6;
|
|
28060
28163
|
return fetchData({
|
|
28061
|
-
body: JSON.stringify(
|
|
28062
|
-
},
|
|
28164
|
+
body: JSON.stringify(body)
|
|
28165
|
+
}, __baseUrl__$1);
|
|
28063
28166
|
case 6:
|
|
28064
28167
|
data = _context17.sent;
|
|
28065
|
-
|
|
28066
|
-
data.
|
|
28067
|
-
|
|
28068
|
-
|
|
28069
|
-
|
|
28070
|
-
|
|
28071
|
-
|
|
28072
|
-
|
|
28073
|
-
});
|
|
28074
|
-
}
|
|
28168
|
+
arry = [];
|
|
28169
|
+
(_data$7 = data[0]) === null || _data$7 === void 0 ? void 0 : (_data$7$CONTACTSYSTEM = _data$7.CONTACTSYSTEM) === null || _data$7$CONTACTSYSTEM === void 0 ? void 0 : (_data$7$CONTACTSYSTEM2 = _data$7$CONTACTSYSTEM.Value) === null || _data$7$CONTACTSYSTEM2 === void 0 ? void 0 : _data$7$CONTACTSYSTEM2.map(function (item) {
|
|
28170
|
+
return arry.push({
|
|
28171
|
+
_id: item._id,
|
|
28172
|
+
value: item._id,
|
|
28173
|
+
title: item.display,
|
|
28174
|
+
code: item.code
|
|
28175
|
+
});
|
|
28075
28176
|
});
|
|
28076
28177
|
return _context17.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
28077
|
-
data:
|
|
28178
|
+
data: arry
|
|
28078
28179
|
}));
|
|
28079
28180
|
case 12:
|
|
28080
28181
|
_context17.prev = 12;
|
|
@@ -28090,38 +28191,41 @@ var ORGANIZATION_GET_CONTACTDETAILMODE = createAsyncThunk("organizationSlice/org
|
|
|
28090
28191
|
}, _callee17, null, [[2, 12]]);
|
|
28091
28192
|
})));
|
|
28092
28193
|
var ORGANIZATION_GET_CONNTACTDETAILCODE = createAsyncThunk("organizationSlice/orgContactDetailCode", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18() {
|
|
28093
|
-
var
|
|
28094
|
-
_ref36,
|
|
28194
|
+
var _ref36,
|
|
28095
28195
|
rejectWithValue,
|
|
28096
|
-
|
|
28196
|
+
body,
|
|
28097
28197
|
data,
|
|
28098
|
-
|
|
28198
|
+
arry,
|
|
28099
28199
|
_args18 = arguments;
|
|
28100
28200
|
return _regeneratorRuntime().wrap(function _callee18$(_context18) {
|
|
28101
28201
|
while (1) {
|
|
28102
28202
|
switch (_context18.prev = _context18.next) {
|
|
28103
28203
|
case 0:
|
|
28104
|
-
payload = _args18.length > 0 && _args18[0] !== undefined ? _args18[0] : {};
|
|
28105
28204
|
_ref36 = _args18.length > 1 ? _args18[1] : undefined, rejectWithValue = _ref36.rejectWithValue;
|
|
28106
28205
|
_context18.prev = 2;
|
|
28107
|
-
|
|
28206
|
+
body = {
|
|
28207
|
+
"db_name": process.env.REACT_APP_DATABASE_NAME,
|
|
28208
|
+
"filter": {
|
|
28209
|
+
"tenantid": "",
|
|
28210
|
+
"facilityid": ""
|
|
28211
|
+
},
|
|
28212
|
+
"queryid": "0d3eb54a-1b21-4e05-8db0-ce5bd6f7841e"
|
|
28213
|
+
};
|
|
28108
28214
|
_context18.next = 6;
|
|
28109
28215
|
return fetchData({
|
|
28110
|
-
body: JSON.stringify(
|
|
28111
|
-
},
|
|
28216
|
+
body: JSON.stringify(body)
|
|
28217
|
+
}, __baseUrl__$1);
|
|
28112
28218
|
case 6:
|
|
28113
28219
|
data = _context18.sent;
|
|
28114
|
-
|
|
28115
|
-
data.
|
|
28116
|
-
|
|
28117
|
-
|
|
28118
|
-
|
|
28119
|
-
|
|
28120
|
-
});
|
|
28121
|
-
}
|
|
28220
|
+
arry = [];
|
|
28221
|
+
data === null || data === void 0 ? void 0 : data.map(function (item) {
|
|
28222
|
+
return arry.push({
|
|
28223
|
+
value: item._id,
|
|
28224
|
+
title: item.GeoLocationISDCode
|
|
28225
|
+
});
|
|
28122
28226
|
});
|
|
28123
28227
|
return _context18.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
28124
|
-
data:
|
|
28228
|
+
data: arry
|
|
28125
28229
|
}));
|
|
28126
28230
|
case 12:
|
|
28127
28231
|
_context18.prev = 12;
|
|
@@ -28137,39 +28241,48 @@ var ORGANIZATION_GET_CONNTACTDETAILCODE = createAsyncThunk("organizationSlice/or
|
|
|
28137
28241
|
}, _callee18, null, [[2, 12]]);
|
|
28138
28242
|
})));
|
|
28139
28243
|
var ORGANIZATION_GET_CONTACTDETAILUSE = createAsyncThunk("organizationSlice/orgContactDetailUse", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee19() {
|
|
28140
|
-
var
|
|
28141
|
-
_ref38,
|
|
28244
|
+
var _ref38,
|
|
28142
28245
|
rejectWithValue,
|
|
28246
|
+
_data$8,
|
|
28247
|
+
_data$8$USE,
|
|
28248
|
+
_data$8$USE$Value,
|
|
28249
|
+
body,
|
|
28143
28250
|
data,
|
|
28144
|
-
|
|
28251
|
+
arry,
|
|
28145
28252
|
_args19 = arguments;
|
|
28146
28253
|
return _regeneratorRuntime().wrap(function _callee19$(_context19) {
|
|
28147
28254
|
while (1) {
|
|
28148
28255
|
switch (_context19.prev = _context19.next) {
|
|
28149
28256
|
case 0:
|
|
28150
|
-
payload = _args19.length > 0 && _args19[0] !== undefined ? _args19[0] : {};
|
|
28151
28257
|
_ref38 = _args19.length > 1 ? _args19[1] : undefined, rejectWithValue = _ref38.rejectWithValue;
|
|
28152
28258
|
_context19.prev = 2;
|
|
28153
|
-
|
|
28259
|
+
body = {
|
|
28260
|
+
"db_name": process.env.REACT_APP_DATABASE_NAME,
|
|
28261
|
+
"filter": {
|
|
28262
|
+
"type": ["USE"],
|
|
28263
|
+
"tenantid": "",
|
|
28264
|
+
"facilityid": "",
|
|
28265
|
+
"lang": ""
|
|
28266
|
+
},
|
|
28267
|
+
"queryid": "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
|
|
28268
|
+
};
|
|
28154
28269
|
_context19.next = 6;
|
|
28155
28270
|
return fetchData({
|
|
28156
|
-
body: JSON.stringify(
|
|
28157
|
-
},
|
|
28271
|
+
body: JSON.stringify(body)
|
|
28272
|
+
}, __baseUrl__$1);
|
|
28158
28273
|
case 6:
|
|
28159
28274
|
data = _context19.sent;
|
|
28160
|
-
|
|
28161
|
-
data.
|
|
28162
|
-
|
|
28163
|
-
|
|
28164
|
-
|
|
28165
|
-
|
|
28166
|
-
|
|
28167
|
-
|
|
28168
|
-
});
|
|
28169
|
-
}
|
|
28275
|
+
arry = [];
|
|
28276
|
+
(_data$8 = data[0]) === null || _data$8 === void 0 ? void 0 : (_data$8$USE = _data$8.USE) === null || _data$8$USE === void 0 ? void 0 : (_data$8$USE$Value = _data$8$USE.Value) === null || _data$8$USE$Value === void 0 ? void 0 : _data$8$USE$Value.map(function (item) {
|
|
28277
|
+
return arry.push({
|
|
28278
|
+
_id: item._id,
|
|
28279
|
+
value: item._id,
|
|
28280
|
+
title: item.display,
|
|
28281
|
+
code: item.code
|
|
28282
|
+
});
|
|
28170
28283
|
});
|
|
28171
28284
|
return _context19.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
28172
|
-
data:
|
|
28285
|
+
data: arry
|
|
28173
28286
|
}));
|
|
28174
28287
|
case 12:
|
|
28175
28288
|
_context19.prev = 12;
|
|
@@ -28185,39 +28298,48 @@ var ORGANIZATION_GET_CONTACTDETAILUSE = createAsyncThunk("organizationSlice/orgC
|
|
|
28185
28298
|
}, _callee19, null, [[2, 12]]);
|
|
28186
28299
|
})));
|
|
28187
28300
|
var ORGANIZATION_GET_CONTACTDETAILPRIORITY = createAsyncThunk("organizationSlice/0", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20() {
|
|
28188
|
-
var
|
|
28189
|
-
_ref40,
|
|
28301
|
+
var _ref40,
|
|
28190
28302
|
rejectWithValue,
|
|
28303
|
+
_data$9,
|
|
28304
|
+
_data$9$PRIORITY,
|
|
28305
|
+
_data$9$PRIORITY$Valu,
|
|
28306
|
+
body,
|
|
28191
28307
|
data,
|
|
28192
|
-
|
|
28308
|
+
arry,
|
|
28193
28309
|
_args20 = arguments;
|
|
28194
28310
|
return _regeneratorRuntime().wrap(function _callee20$(_context20) {
|
|
28195
28311
|
while (1) {
|
|
28196
28312
|
switch (_context20.prev = _context20.next) {
|
|
28197
28313
|
case 0:
|
|
28198
|
-
payload = _args20.length > 0 && _args20[0] !== undefined ? _args20[0] : {};
|
|
28199
28314
|
_ref40 = _args20.length > 1 ? _args20[1] : undefined, rejectWithValue = _ref40.rejectWithValue;
|
|
28200
28315
|
_context20.prev = 2;
|
|
28201
|
-
|
|
28316
|
+
body = {
|
|
28317
|
+
"db_name": process.env.REACT_APP_DATABASE_NAME,
|
|
28318
|
+
"filter": {
|
|
28319
|
+
"type": ["PRIORITY"],
|
|
28320
|
+
"tenantid": "",
|
|
28321
|
+
"facilityid": "",
|
|
28322
|
+
"lang": ""
|
|
28323
|
+
},
|
|
28324
|
+
"queryid": "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
|
|
28325
|
+
};
|
|
28202
28326
|
_context20.next = 6;
|
|
28203
28327
|
return fetchData({
|
|
28204
|
-
body: JSON.stringify(
|
|
28205
|
-
},
|
|
28328
|
+
body: JSON.stringify(body)
|
|
28329
|
+
}, __baseUrl__$1);
|
|
28206
28330
|
case 6:
|
|
28207
28331
|
data = _context20.sent;
|
|
28208
|
-
|
|
28209
|
-
data.
|
|
28210
|
-
|
|
28211
|
-
|
|
28212
|
-
|
|
28213
|
-
|
|
28214
|
-
|
|
28215
|
-
|
|
28216
|
-
});
|
|
28217
|
-
}
|
|
28332
|
+
arry = [];
|
|
28333
|
+
(_data$9 = data[0]) === null || _data$9 === void 0 ? void 0 : (_data$9$PRIORITY = _data$9.PRIORITY) === null || _data$9$PRIORITY === void 0 ? void 0 : (_data$9$PRIORITY$Valu = _data$9$PRIORITY.Value) === null || _data$9$PRIORITY$Valu === void 0 ? void 0 : _data$9$PRIORITY$Valu.map(function (item) {
|
|
28334
|
+
return arry.push({
|
|
28335
|
+
_id: item._id,
|
|
28336
|
+
value: item._id,
|
|
28337
|
+
title: item.display,
|
|
28338
|
+
code: item.code
|
|
28339
|
+
});
|
|
28218
28340
|
});
|
|
28219
28341
|
return _context20.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
28220
|
-
data:
|
|
28342
|
+
data: arry
|
|
28221
28343
|
}));
|
|
28222
28344
|
case 12:
|
|
28223
28345
|
_context20.prev = 12;
|
|
@@ -28233,39 +28355,48 @@ var ORGANIZATION_GET_CONTACTDETAILPRIORITY = createAsyncThunk("organizationSlice
|
|
|
28233
28355
|
}, _callee20, null, [[2, 12]]);
|
|
28234
28356
|
})));
|
|
28235
28357
|
var ORGANIZATION_GET_CONTACT_PREFIX = createAsyncThunk("organizationSlice/orgNamePrefix", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee21() {
|
|
28236
|
-
var
|
|
28237
|
-
_ref42,
|
|
28358
|
+
var _ref42,
|
|
28238
28359
|
rejectWithValue,
|
|
28360
|
+
_data$10,
|
|
28361
|
+
_data$10$NAMEPREFIX,
|
|
28362
|
+
_data$10$NAMEPREFIX$V,
|
|
28363
|
+
body,
|
|
28239
28364
|
data,
|
|
28240
|
-
|
|
28365
|
+
arry,
|
|
28241
28366
|
_args21 = arguments;
|
|
28242
28367
|
return _regeneratorRuntime().wrap(function _callee21$(_context21) {
|
|
28243
28368
|
while (1) {
|
|
28244
28369
|
switch (_context21.prev = _context21.next) {
|
|
28245
28370
|
case 0:
|
|
28246
|
-
payload = _args21.length > 0 && _args21[0] !== undefined ? _args21[0] : {};
|
|
28247
28371
|
_ref42 = _args21.length > 1 ? _args21[1] : undefined, rejectWithValue = _ref42.rejectWithValue;
|
|
28248
28372
|
_context21.prev = 2;
|
|
28249
|
-
|
|
28373
|
+
body = {
|
|
28374
|
+
"db_name": process.env.REACT_APP_DATABASE_NAME,
|
|
28375
|
+
"filter": {
|
|
28376
|
+
"type": ["NAMEPREFIX"],
|
|
28377
|
+
"tenantid": "",
|
|
28378
|
+
"facilityid": "",
|
|
28379
|
+
"lang": ""
|
|
28380
|
+
},
|
|
28381
|
+
"queryid": "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
|
|
28382
|
+
};
|
|
28250
28383
|
_context21.next = 6;
|
|
28251
28384
|
return fetchData({
|
|
28252
|
-
body: JSON.stringify(
|
|
28253
|
-
},
|
|
28385
|
+
body: JSON.stringify(body)
|
|
28386
|
+
}, __baseUrl__$1);
|
|
28254
28387
|
case 6:
|
|
28255
28388
|
data = _context21.sent;
|
|
28256
|
-
|
|
28257
|
-
data.
|
|
28258
|
-
|
|
28259
|
-
|
|
28260
|
-
|
|
28261
|
-
|
|
28262
|
-
|
|
28263
|
-
|
|
28264
|
-
});
|
|
28265
|
-
}
|
|
28389
|
+
arry = [];
|
|
28390
|
+
(_data$10 = data[0]) === null || _data$10 === void 0 ? void 0 : (_data$10$NAMEPREFIX = _data$10.NAMEPREFIX) === null || _data$10$NAMEPREFIX === void 0 ? void 0 : (_data$10$NAMEPREFIX$V = _data$10$NAMEPREFIX.Value) === null || _data$10$NAMEPREFIX$V === void 0 ? void 0 : _data$10$NAMEPREFIX$V.map(function (item) {
|
|
28391
|
+
return arry.push({
|
|
28392
|
+
_id: item._id,
|
|
28393
|
+
value: item._id,
|
|
28394
|
+
title: item.display,
|
|
28395
|
+
code: item.code
|
|
28396
|
+
});
|
|
28266
28397
|
});
|
|
28267
28398
|
return _context21.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
28268
|
-
data:
|
|
28399
|
+
data: arry
|
|
28269
28400
|
}));
|
|
28270
28401
|
case 12:
|
|
28271
28402
|
_context21.prev = 12;
|
|
@@ -28281,39 +28412,48 @@ var ORGANIZATION_GET_CONTACT_PREFIX = createAsyncThunk("organizationSlice/orgNam
|
|
|
28281
28412
|
}, _callee21, null, [[2, 12]]);
|
|
28282
28413
|
})));
|
|
28283
28414
|
var ORGANIZATION_GET_CONTACT_SUFFIX = createAsyncThunk("organizationSlice/orgNameSuffix", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee22() {
|
|
28284
|
-
var
|
|
28285
|
-
_ref44,
|
|
28415
|
+
var _ref44,
|
|
28286
28416
|
rejectWithValue,
|
|
28417
|
+
_data$11,
|
|
28418
|
+
_data$11$NAMESUFFIX,
|
|
28419
|
+
_data$11$NAMESUFFIX$V,
|
|
28420
|
+
body,
|
|
28287
28421
|
data,
|
|
28288
|
-
|
|
28422
|
+
arry,
|
|
28289
28423
|
_args22 = arguments;
|
|
28290
28424
|
return _regeneratorRuntime().wrap(function _callee22$(_context22) {
|
|
28291
28425
|
while (1) {
|
|
28292
28426
|
switch (_context22.prev = _context22.next) {
|
|
28293
28427
|
case 0:
|
|
28294
|
-
payload = _args22.length > 0 && _args22[0] !== undefined ? _args22[0] : {};
|
|
28295
28428
|
_ref44 = _args22.length > 1 ? _args22[1] : undefined, rejectWithValue = _ref44.rejectWithValue;
|
|
28296
28429
|
_context22.prev = 2;
|
|
28297
|
-
|
|
28430
|
+
body = {
|
|
28431
|
+
"db_name": process.env.REACT_APP_DATABASE_NAME,
|
|
28432
|
+
"filter": {
|
|
28433
|
+
"type": ["NAMESUFFIX"],
|
|
28434
|
+
"tenantid": "",
|
|
28435
|
+
"facilityid": "",
|
|
28436
|
+
"lang": ""
|
|
28437
|
+
},
|
|
28438
|
+
"queryid": "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
|
|
28439
|
+
};
|
|
28298
28440
|
_context22.next = 6;
|
|
28299
28441
|
return fetchData({
|
|
28300
|
-
body: JSON.stringify(
|
|
28301
|
-
},
|
|
28442
|
+
body: JSON.stringify(body)
|
|
28443
|
+
}, __baseUrl__$1);
|
|
28302
28444
|
case 6:
|
|
28303
28445
|
data = _context22.sent;
|
|
28304
|
-
|
|
28305
|
-
data.
|
|
28306
|
-
|
|
28307
|
-
|
|
28308
|
-
|
|
28309
|
-
|
|
28310
|
-
|
|
28311
|
-
|
|
28312
|
-
});
|
|
28313
|
-
}
|
|
28446
|
+
arry = [];
|
|
28447
|
+
(_data$11 = data[0]) === null || _data$11 === void 0 ? void 0 : (_data$11$NAMESUFFIX = _data$11.NAMESUFFIX) === null || _data$11$NAMESUFFIX === void 0 ? void 0 : (_data$11$NAMESUFFIX$V = _data$11$NAMESUFFIX.Value) === null || _data$11$NAMESUFFIX$V === void 0 ? void 0 : _data$11$NAMESUFFIX$V.map(function (item) {
|
|
28448
|
+
return arry.push({
|
|
28449
|
+
_id: item._id,
|
|
28450
|
+
value: item._id,
|
|
28451
|
+
title: item.display,
|
|
28452
|
+
code: item.code
|
|
28453
|
+
});
|
|
28314
28454
|
});
|
|
28315
28455
|
return _context22.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
28316
|
-
data:
|
|
28456
|
+
data: arry
|
|
28317
28457
|
}));
|
|
28318
28458
|
case 12:
|
|
28319
28459
|
_context22.prev = 12;
|
|
@@ -28329,39 +28469,48 @@ var ORGANIZATION_GET_CONTACT_SUFFIX = createAsyncThunk("organizationSlice/orgNam
|
|
|
28329
28469
|
}, _callee22, null, [[2, 12]]);
|
|
28330
28470
|
})));
|
|
28331
28471
|
var ORGANIZATION_GET_CONTACT_DESI = createAsyncThunk("organizationSlice/positionDesi", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee23() {
|
|
28332
|
-
var
|
|
28333
|
-
_ref46,
|
|
28472
|
+
var _ref46,
|
|
28334
28473
|
rejectWithValue,
|
|
28474
|
+
_data$12,
|
|
28475
|
+
_data$12$DESIGNATION,
|
|
28476
|
+
_data$12$DESIGNATION$,
|
|
28477
|
+
body,
|
|
28335
28478
|
data,
|
|
28336
|
-
|
|
28479
|
+
arry,
|
|
28337
28480
|
_args23 = arguments;
|
|
28338
28481
|
return _regeneratorRuntime().wrap(function _callee23$(_context23) {
|
|
28339
28482
|
while (1) {
|
|
28340
28483
|
switch (_context23.prev = _context23.next) {
|
|
28341
28484
|
case 0:
|
|
28342
|
-
payload = _args23.length > 0 && _args23[0] !== undefined ? _args23[0] : {};
|
|
28343
28485
|
_ref46 = _args23.length > 1 ? _args23[1] : undefined, rejectWithValue = _ref46.rejectWithValue;
|
|
28344
28486
|
_context23.prev = 2;
|
|
28345
|
-
|
|
28487
|
+
body = {
|
|
28488
|
+
"db_name": process.env.REACT_APP_DATABASE_NAME,
|
|
28489
|
+
"filter": {
|
|
28490
|
+
"type": ["DESIGNATION"],
|
|
28491
|
+
"tenantid": "",
|
|
28492
|
+
"facilityid": "",
|
|
28493
|
+
"lang": ""
|
|
28494
|
+
},
|
|
28495
|
+
"queryid": "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
|
|
28496
|
+
};
|
|
28346
28497
|
_context23.next = 6;
|
|
28347
28498
|
return fetchData({
|
|
28348
|
-
body: JSON.stringify(
|
|
28349
|
-
},
|
|
28499
|
+
body: JSON.stringify(body)
|
|
28500
|
+
}, __baseUrl__$1);
|
|
28350
28501
|
case 6:
|
|
28351
28502
|
data = _context23.sent;
|
|
28352
|
-
|
|
28353
|
-
data.
|
|
28354
|
-
|
|
28355
|
-
|
|
28356
|
-
|
|
28357
|
-
|
|
28358
|
-
|
|
28359
|
-
|
|
28360
|
-
});
|
|
28361
|
-
}
|
|
28503
|
+
arry = [];
|
|
28504
|
+
(_data$12 = data[0]) === null || _data$12 === void 0 ? void 0 : (_data$12$DESIGNATION = _data$12.DESIGNATION) === null || _data$12$DESIGNATION === void 0 ? void 0 : (_data$12$DESIGNATION$ = _data$12$DESIGNATION.Value) === null || _data$12$DESIGNATION$ === void 0 ? void 0 : _data$12$DESIGNATION$.map(function (item) {
|
|
28505
|
+
return arry.push({
|
|
28506
|
+
_id: item._id,
|
|
28507
|
+
value: item._id,
|
|
28508
|
+
title: item.display,
|
|
28509
|
+
code: item.code
|
|
28510
|
+
});
|
|
28362
28511
|
});
|
|
28363
28512
|
return _context23.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
28364
|
-
data:
|
|
28513
|
+
data: arry
|
|
28365
28514
|
}));
|
|
28366
28515
|
case 12:
|
|
28367
28516
|
_context23.prev = 12;
|
|
@@ -28473,41 +28622,48 @@ var ORG_FROM_GET = createAsyncThunk("organizationSlice/getOrganization", /*#__PU
|
|
|
28473
28622
|
}, _callee25, null, [[2, 16]]);
|
|
28474
28623
|
})));
|
|
28475
28624
|
var ORGANIZATION_GET_SPECIALTY_DROP = createAsyncThunk("organizationSlice/specialtyDrop", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee26() {
|
|
28476
|
-
var
|
|
28477
|
-
_ref52,
|
|
28625
|
+
var _ref52,
|
|
28478
28626
|
rejectWithValue,
|
|
28627
|
+
_data$13,
|
|
28628
|
+
_data$13$SPECIALTY,
|
|
28629
|
+
_data$13$SPECIALTY$Va,
|
|
28630
|
+
body,
|
|
28479
28631
|
data,
|
|
28480
|
-
|
|
28632
|
+
arry,
|
|
28481
28633
|
_args26 = arguments;
|
|
28482
28634
|
return _regeneratorRuntime().wrap(function _callee26$(_context26) {
|
|
28483
28635
|
while (1) {
|
|
28484
28636
|
switch (_context26.prev = _context26.next) {
|
|
28485
28637
|
case 0:
|
|
28486
|
-
payload = _args26.length > 0 && _args26[0] !== undefined ? _args26[0] : {};
|
|
28487
28638
|
_ref52 = _args26.length > 1 ? _args26[1] : undefined, rejectWithValue = _ref52.rejectWithValue;
|
|
28488
28639
|
_context26.prev = 2;
|
|
28489
|
-
|
|
28640
|
+
body = {
|
|
28641
|
+
"db_name": process.env.REACT_APP_DATABASE_NAME,
|
|
28642
|
+
"filter": {
|
|
28643
|
+
"type": ["SPECIALTY"],
|
|
28644
|
+
"tenantid": "",
|
|
28645
|
+
"facilityid": "",
|
|
28646
|
+
"lang": ""
|
|
28647
|
+
},
|
|
28648
|
+
"queryid": "5c46abcb-a1d6-4c2f-ae4f-93ae551a0c6e"
|
|
28649
|
+
};
|
|
28490
28650
|
_context26.next = 6;
|
|
28491
28651
|
return fetchData({
|
|
28492
|
-
body: JSON.stringify(
|
|
28493
|
-
},
|
|
28652
|
+
body: JSON.stringify(body)
|
|
28653
|
+
}, __baseUrl__$1);
|
|
28494
28654
|
case 6:
|
|
28495
28655
|
data = _context26.sent;
|
|
28496
|
-
|
|
28497
|
-
data.
|
|
28498
|
-
|
|
28499
|
-
|
|
28500
|
-
|
|
28501
|
-
|
|
28502
|
-
|
|
28503
|
-
|
|
28504
|
-
name: val === null || val === void 0 ? void 0 : (_val$coding10 = val.coding) === null || _val$coding10 === void 0 ? void 0 : (_val$coding10$ = _val$coding10[0]) === null || _val$coding10$ === void 0 ? void 0 : _val$coding10$.display,
|
|
28505
|
-
id: val === null || val === void 0 ? void 0 : (_val$coding11 = val.coding) === null || _val$coding11 === void 0 ? void 0 : (_val$coding11$ = _val$coding11[0]) === null || _val$coding11$ === void 0 ? void 0 : _val$coding11$._id
|
|
28506
|
-
});
|
|
28507
|
-
}
|
|
28656
|
+
arry = [];
|
|
28657
|
+
(_data$13 = data[0]) === null || _data$13 === void 0 ? void 0 : (_data$13$SPECIALTY = _data$13.SPECIALTY) === null || _data$13$SPECIALTY === void 0 ? void 0 : (_data$13$SPECIALTY$Va = _data$13$SPECIALTY.Value) === null || _data$13$SPECIALTY$Va === void 0 ? void 0 : _data$13$SPECIALTY$Va.map(function (item) {
|
|
28658
|
+
return arry.push({
|
|
28659
|
+
label: item.display + " (" + item.code + ")",
|
|
28660
|
+
id: item._id,
|
|
28661
|
+
value: item.code,
|
|
28662
|
+
name: item.display
|
|
28663
|
+
});
|
|
28508
28664
|
});
|
|
28509
28665
|
return _context26.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
28510
|
-
data:
|
|
28666
|
+
data: arry
|
|
28511
28667
|
}));
|
|
28512
28668
|
case 12:
|
|
28513
28669
|
_context26.prev = 12;
|
|
@@ -28523,7 +28679,7 @@ var ORGANIZATION_GET_SPECIALTY_DROP = createAsyncThunk("organizationSlice/specia
|
|
|
28523
28679
|
}, _callee26, null, [[2, 12]]);
|
|
28524
28680
|
})));
|
|
28525
28681
|
var organizationSlice = createSlice({
|
|
28526
|
-
name: "
|
|
28682
|
+
name: "organizationSlice",
|
|
28527
28683
|
initialState: {
|
|
28528
28684
|
organizationTreeList: _objectSpread2$1({}, defaultState.List),
|
|
28529
28685
|
organizationEntityType: _objectSpread2$1({}, defaultState.List),
|
|
@@ -40650,7 +40806,7 @@ var SYMPTOM_AND_SPECIALTY_MASTERS = createAsyncThunk("symptomAndSpecialtySlice/s
|
|
|
40650
40806
|
_context5.next = 9;
|
|
40651
40807
|
return data_arr.result.map(function (val) {
|
|
40652
40808
|
arry.push({
|
|
40653
|
-
label: val.coding.display,
|
|
40809
|
+
label: val.coding[0].display,
|
|
40654
40810
|
value: val._id
|
|
40655
40811
|
});
|
|
40656
40812
|
});
|