@banch0u/core-project-test-repository 1.9.3 → 1.9.5

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.
@@ -2,7 +2,7 @@ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
2
  import _regeneratorRuntime from "@babel/runtime/regenerator";
3
3
  import { createAsyncThunk, createSlice } from "@reduxjs/toolkit";
4
4
  import Services from "./service";
5
- import { setApplicationFormsRender, setCountryRender, setDeleteModalVisible, setDeliveryMethodRender, setDocumentRecieveMethodsRender, setDocumentTypesRender, setDocumentWhomRender, setExecutionRulesRender, setLoading, setMarginNoteTextRender, setOrganizationRender, setStructureRender, setSubtopicsRender, setTopicsRender, setViewModalVisible, setBrandRender, setChassisTypeRender, setColorRender, setEnginetypeRender, setGearboxtypeRender, setIssuedauthoritieRender, setModelRender, setOwnershiptypeRender, setOrganisationrecordRender, setTransmittertypeRender, setVehicleRender, setVehicletypeRender, setVrcRender, setAcademicdegreesRender, setDisabilitystatusesRender, setHonorarytitlesRender, setMilitarystaffsRender, setMilitarycategoriesRender, setMilitaryranksRender, setMilitarygroupsRender, setGeneralstructurestatusesRender, setWorkschedulesRender, setSpecializationsRender, setWarparticipantsRender, setGeneralstructuretypesRender, setEducationinstitutionsRender, setEducationpaymentsRender, setEducationlevelsRender, setReprimandtypesRender, setSpecialdaysRender, setCategoriesRender, setRegionsRender, setAreasRender, setCompaniesRender, setPositionsRender, setHallsRender, setDrivingcategoriesRender } from "../global";
5
+ import { setApplicationFormsRender, setCountryRender, setDeleteModalVisible, setDeliveryMethodRender, setDocumentRecieveMethodsRender, setDocumentTypesRender, setDocumentWhomRender, setExecutionRulesRender, setLoading, setMarginNoteTextRender, setOrganizationRender, setStructureRender, setSubtopicsRender, setTopicsRender, setViewModalVisible, setBrandRender, setChassisTypeRender, setColorRender, setEnginetypeRender, setGearboxtypeRender, setIssuedauthoritieRender, setModelRender, setOwnershiptypeRender, setOrganisationrecordRender, setTransmittertypeRender, setVehicleRender, setVehicletypeRender, setVrcRender, setAcademicdegreesRender, setDisabilitystatusesRender, setHonorarytitlesRender, setMilitarystaffsRender, setMilitarycategoriesRender, setMilitaryranksRender, setMilitarygroupsRender, setGeneralstructurestatusesRender, setWorkschedulesRender, setSpecializationsRender, setWarparticipantsRender, setGeneralstructuretypesRender, setEducationinstitutionsRender, setEducationpaymentsRender, setEducationlevelsRender, setReprimandtypesRender, setSpecialdaysRender, setCategoriesRender, setRegionsRender, setAreasRender, setCompaniesRender, setPositionsRender, setHallsRender, setDrivingcategoriesRender, setEmployeeConfigurationsRender, setContracttypesRender, setContragenttypesRender, setOrdersRender, setContractcurrenciesRender } from "../global";
6
6
  import { errorMessage } from "../../../utils/message";
7
7
  var initialState = {
8
8
  questionnaires: []
@@ -9643,401 +9643,1413 @@ export var drivingcategoriesVisibility = createAsyncThunk("/drivingcategoriesVis
9643
9643
  return _ref588.apply(this, arguments);
9644
9644
  };
9645
9645
  }());
9646
+ export var getContractcurrencies = createAsyncThunk("/getContractcurrencies", /*#__PURE__*/function () {
9647
+ var _ref590 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee295(data, _ref589) {
9648
+ var dispatch, _response$data31, response, _error$response115;
9649
+ return _regeneratorRuntime.wrap(function _callee295$(_context295) {
9650
+ while (1) switch (_context295.prev = _context295.next) {
9651
+ case 0:
9652
+ dispatch = _ref589.dispatch;
9653
+ _context295.prev = 1;
9654
+ dispatch(setLoading(true));
9655
+ _context295.next = 5;
9656
+ return Services.getContractcurrencies(data === null || data === void 0 ? void 0 : data.size, data === null || data === void 0 ? void 0 : data.page, data === null || data === void 0 ? void 0 : data.query, data === null || data === void 0 ? void 0 : data.visibility);
9657
+ case 5:
9658
+ response = _context295.sent;
9659
+ dispatch(setLoading(false));
9660
+ return _context295.abrupt("return", response === null || response === void 0 || (_response$data31 = response.data) === null || _response$data31 === void 0 ? void 0 : _response$data31.data);
9661
+ case 10:
9662
+ _context295.prev = 10;
9663
+ _context295.t0 = _context295["catch"](1);
9664
+ errorMessage((_error$response115 = _context295.t0.response) === null || _error$response115 === void 0 || (_error$response115 = _error$response115.data) === null || _error$response115 === void 0 ? void 0 : _error$response115.message);
9665
+ dispatch(setLoading(false));
9666
+ case 14:
9667
+ case "end":
9668
+ return _context295.stop();
9669
+ }
9670
+ }, _callee295, null, [[1, 10]]);
9671
+ }));
9672
+ return function (_x589, _x590) {
9673
+ return _ref590.apply(this, arguments);
9674
+ };
9675
+ }());
9676
+ export var getContractcurrenciesAll = createAsyncThunk("/getContractcurrenciesAll", /*#__PURE__*/function () {
9677
+ var _ref592 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee296(visibility, _ref591) {
9678
+ var dispatch, _response$data32, response, _error$response116;
9679
+ return _regeneratorRuntime.wrap(function _callee296$(_context296) {
9680
+ while (1) switch (_context296.prev = _context296.next) {
9681
+ case 0:
9682
+ dispatch = _ref591.dispatch;
9683
+ _context296.prev = 1;
9684
+ dispatch(setLoading(true));
9685
+ _context296.next = 5;
9686
+ return Services.getContractcurrenciesAll(visibility);
9687
+ case 5:
9688
+ response = _context296.sent;
9689
+ dispatch(setLoading(false));
9690
+ return _context296.abrupt("return", response === null || response === void 0 || (_response$data32 = response.data) === null || _response$data32 === void 0 ? void 0 : _response$data32.data);
9691
+ case 10:
9692
+ _context296.prev = 10;
9693
+ _context296.t0 = _context296["catch"](1);
9694
+ errorMessage((_error$response116 = _context296.t0.response) === null || _error$response116 === void 0 || (_error$response116 = _error$response116.data) === null || _error$response116 === void 0 ? void 0 : _error$response116.message);
9695
+ dispatch(setLoading(false));
9696
+ case 14:
9697
+ case "end":
9698
+ return _context296.stop();
9699
+ }
9700
+ }, _callee296, null, [[1, 10]]);
9701
+ }));
9702
+ return function (_x591, _x592) {
9703
+ return _ref592.apply(this, arguments);
9704
+ };
9705
+ }());
9706
+ export var addContractcurrencies = createAsyncThunk("/addContractcurrencies", /*#__PURE__*/function () {
9707
+ var _ref594 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee297(data, _ref593) {
9708
+ var dispatch, _error$response117;
9709
+ return _regeneratorRuntime.wrap(function _callee297$(_context297) {
9710
+ while (1) switch (_context297.prev = _context297.next) {
9711
+ case 0:
9712
+ dispatch = _ref593.dispatch;
9713
+ _context297.prev = 1;
9714
+ dispatch(setLoading(true));
9715
+ _context297.next = 5;
9716
+ return Services.addContractcurrencies(data);
9717
+ case 5:
9718
+ dispatch(setLoading(false));
9719
+ dispatch(setViewModalVisible(true));
9720
+ dispatch(setContractcurrenciesRender(function (prev) {
9721
+ return !prev;
9722
+ }));
9723
+ _context297.next = 14;
9724
+ break;
9725
+ case 10:
9726
+ _context297.prev = 10;
9727
+ _context297.t0 = _context297["catch"](1);
9728
+ errorMessage((_error$response117 = _context297.t0.response) === null || _error$response117 === void 0 || (_error$response117 = _error$response117.data) === null || _error$response117 === void 0 ? void 0 : _error$response117.message);
9729
+ dispatch(setLoading(false));
9730
+ case 14:
9731
+ case "end":
9732
+ return _context297.stop();
9733
+ }
9734
+ }, _callee297, null, [[1, 10]]);
9735
+ }));
9736
+ return function (_x593, _x594) {
9737
+ return _ref594.apply(this, arguments);
9738
+ };
9739
+ }());
9740
+ export var editContractcurrencies = createAsyncThunk("/editContractcurrencies", /*#__PURE__*/function () {
9741
+ var _ref596 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee298(data, _ref595) {
9742
+ var dispatch, response, _error$response118;
9743
+ return _regeneratorRuntime.wrap(function _callee298$(_context298) {
9744
+ while (1) switch (_context298.prev = _context298.next) {
9745
+ case 0:
9746
+ dispatch = _ref595.dispatch;
9747
+ _context298.prev = 1;
9748
+ dispatch(setLoading(true));
9749
+ _context298.next = 5;
9750
+ return Services.editContractcurrencies(data);
9751
+ case 5:
9752
+ response = _context298.sent;
9753
+ dispatch(setLoading(false));
9754
+ dispatch(setContractcurrenciesRender(function (prev) {
9755
+ return !prev;
9756
+ }));
9757
+ return _context298.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
9758
+ case 11:
9759
+ _context298.prev = 11;
9760
+ _context298.t0 = _context298["catch"](1);
9761
+ errorMessage((_error$response118 = _context298.t0.response) === null || _error$response118 === void 0 || (_error$response118 = _error$response118.data) === null || _error$response118 === void 0 ? void 0 : _error$response118.message);
9762
+ dispatch(setLoading(false));
9763
+ case 15:
9764
+ case "end":
9765
+ return _context298.stop();
9766
+ }
9767
+ }, _callee298, null, [[1, 11]]);
9768
+ }));
9769
+ return function (_x595, _x596) {
9770
+ return _ref596.apply(this, arguments);
9771
+ };
9772
+ }());
9773
+ export var deleteContractcurrencies = createAsyncThunk("/deleteContractcurrencies", /*#__PURE__*/function () {
9774
+ var _ref598 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee299(id, _ref597) {
9775
+ var dispatch, _error$response119;
9776
+ return _regeneratorRuntime.wrap(function _callee299$(_context299) {
9777
+ while (1) switch (_context299.prev = _context299.next) {
9778
+ case 0:
9779
+ dispatch = _ref597.dispatch;
9780
+ _context299.prev = 1;
9781
+ dispatch(setLoading(true));
9782
+ _context299.next = 5;
9783
+ return Services.deleteContractcurrencies(id);
9784
+ case 5:
9785
+ dispatch(setLoading(false));
9786
+ dispatch(setDeleteModalVisible(false));
9787
+ dispatch(setContractcurrenciesRender(function (prev) {
9788
+ return !prev;
9789
+ }));
9790
+ _context299.next = 15;
9791
+ break;
9792
+ case 10:
9793
+ _context299.prev = 10;
9794
+ _context299.t0 = _context299["catch"](1);
9795
+ dispatch(setDeleteModalVisible(false));
9796
+ errorMessage((_error$response119 = _context299.t0.response) === null || _error$response119 === void 0 || (_error$response119 = _error$response119.data) === null || _error$response119 === void 0 ? void 0 : _error$response119.message);
9797
+ dispatch(setLoading(false));
9798
+ case 15:
9799
+ case "end":
9800
+ return _context299.stop();
9801
+ }
9802
+ }, _callee299, null, [[1, 10]]);
9803
+ }));
9804
+ return function (_x597, _x598) {
9805
+ return _ref598.apply(this, arguments);
9806
+ };
9807
+ }());
9808
+ export var contractcurrenciesVisibility = createAsyncThunk("/contractcurrenciesVisibility", /*#__PURE__*/function () {
9809
+ var _ref600 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee300(data, _ref599) {
9810
+ var dispatch, response, _error$response120;
9811
+ return _regeneratorRuntime.wrap(function _callee300$(_context300) {
9812
+ while (1) switch (_context300.prev = _context300.next) {
9813
+ case 0:
9814
+ dispatch = _ref599.dispatch;
9815
+ _context300.prev = 1;
9816
+ dispatch(setLoading(true));
9817
+ _context300.next = 5;
9818
+ return Services.contractcurrenciesVisibility(data);
9819
+ case 5:
9820
+ response = _context300.sent;
9821
+ dispatch(setLoading(false));
9822
+ dispatch(setContractcurrenciesRender(function (prev) {
9823
+ return !prev;
9824
+ }));
9825
+ return _context300.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
9826
+ case 11:
9827
+ _context300.prev = 11;
9828
+ _context300.t0 = _context300["catch"](1);
9829
+ errorMessage((_error$response120 = _context300.t0.response) === null || _error$response120 === void 0 || (_error$response120 = _error$response120.data) === null || _error$response120 === void 0 ? void 0 : _error$response120.message);
9830
+ dispatch(setLoading(false));
9831
+ case 15:
9832
+ case "end":
9833
+ return _context300.stop();
9834
+ }
9835
+ }, _callee300, null, [[1, 11]]);
9836
+ }));
9837
+ return function (_x599, _x600) {
9838
+ return _ref600.apply(this, arguments);
9839
+ };
9840
+ }());
9841
+
9842
+ // Orders
9843
+
9844
+ export var getOrders = createAsyncThunk("/getOrders", /*#__PURE__*/function () {
9845
+ var _ref602 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee301(data, _ref601) {
9846
+ var dispatch, _response$data33, response, _error$response121;
9847
+ return _regeneratorRuntime.wrap(function _callee301$(_context301) {
9848
+ while (1) switch (_context301.prev = _context301.next) {
9849
+ case 0:
9850
+ dispatch = _ref601.dispatch;
9851
+ _context301.prev = 1;
9852
+ dispatch(setLoading(true));
9853
+ _context301.next = 5;
9854
+ return Services.getOrders(data === null || data === void 0 ? void 0 : data.size, data === null || data === void 0 ? void 0 : data.page, data === null || data === void 0 ? void 0 : data.query, data === null || data === void 0 ? void 0 : data.visibility);
9855
+ case 5:
9856
+ response = _context301.sent;
9857
+ dispatch(setLoading(false));
9858
+ return _context301.abrupt("return", response === null || response === void 0 || (_response$data33 = response.data) === null || _response$data33 === void 0 ? void 0 : _response$data33.data);
9859
+ case 10:
9860
+ _context301.prev = 10;
9861
+ _context301.t0 = _context301["catch"](1);
9862
+ errorMessage((_error$response121 = _context301.t0.response) === null || _error$response121 === void 0 || (_error$response121 = _error$response121.data) === null || _error$response121 === void 0 ? void 0 : _error$response121.message);
9863
+ dispatch(setLoading(false));
9864
+ case 14:
9865
+ case "end":
9866
+ return _context301.stop();
9867
+ }
9868
+ }, _callee301, null, [[1, 10]]);
9869
+ }));
9870
+ return function (_x601, _x602) {
9871
+ return _ref602.apply(this, arguments);
9872
+ };
9873
+ }());
9874
+ export var getOrdersAll = createAsyncThunk("/getOrdersAll", /*#__PURE__*/function () {
9875
+ var _ref604 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee302(visibility, _ref603) {
9876
+ var dispatch, _response$data34, response, _error$response122;
9877
+ return _regeneratorRuntime.wrap(function _callee302$(_context302) {
9878
+ while (1) switch (_context302.prev = _context302.next) {
9879
+ case 0:
9880
+ dispatch = _ref603.dispatch;
9881
+ _context302.prev = 1;
9882
+ dispatch(setLoading(true));
9883
+ _context302.next = 5;
9884
+ return Services.getOrdersAll(visibility);
9885
+ case 5:
9886
+ response = _context302.sent;
9887
+ dispatch(setLoading(false));
9888
+ return _context302.abrupt("return", response === null || response === void 0 || (_response$data34 = response.data) === null || _response$data34 === void 0 ? void 0 : _response$data34.data);
9889
+ case 10:
9890
+ _context302.prev = 10;
9891
+ _context302.t0 = _context302["catch"](1);
9892
+ errorMessage((_error$response122 = _context302.t0.response) === null || _error$response122 === void 0 || (_error$response122 = _error$response122.data) === null || _error$response122 === void 0 ? void 0 : _error$response122.message);
9893
+ dispatch(setLoading(false));
9894
+ case 14:
9895
+ case "end":
9896
+ return _context302.stop();
9897
+ }
9898
+ }, _callee302, null, [[1, 10]]);
9899
+ }));
9900
+ return function (_x603, _x604) {
9901
+ return _ref604.apply(this, arguments);
9902
+ };
9903
+ }());
9904
+ export var addOrders = createAsyncThunk("/addOrders", /*#__PURE__*/function () {
9905
+ var _ref606 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee303(data, _ref605) {
9906
+ var dispatch, _error$response123;
9907
+ return _regeneratorRuntime.wrap(function _callee303$(_context303) {
9908
+ while (1) switch (_context303.prev = _context303.next) {
9909
+ case 0:
9910
+ dispatch = _ref605.dispatch;
9911
+ _context303.prev = 1;
9912
+ dispatch(setLoading(true));
9913
+ _context303.next = 5;
9914
+ return Services.addOrders(data);
9915
+ case 5:
9916
+ dispatch(setLoading(false));
9917
+ dispatch(setViewModalVisible(true));
9918
+ dispatch(setOrdersRender(function (prev) {
9919
+ return !prev;
9920
+ }));
9921
+ _context303.next = 14;
9922
+ break;
9923
+ case 10:
9924
+ _context303.prev = 10;
9925
+ _context303.t0 = _context303["catch"](1);
9926
+ errorMessage((_error$response123 = _context303.t0.response) === null || _error$response123 === void 0 || (_error$response123 = _error$response123.data) === null || _error$response123 === void 0 ? void 0 : _error$response123.message);
9927
+ dispatch(setLoading(false));
9928
+ case 14:
9929
+ case "end":
9930
+ return _context303.stop();
9931
+ }
9932
+ }, _callee303, null, [[1, 10]]);
9933
+ }));
9934
+ return function (_x605, _x606) {
9935
+ return _ref606.apply(this, arguments);
9936
+ };
9937
+ }());
9938
+ export var editOrders = createAsyncThunk("/editOrders", /*#__PURE__*/function () {
9939
+ var _ref608 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee304(data, _ref607) {
9940
+ var dispatch, response, _error$response124;
9941
+ return _regeneratorRuntime.wrap(function _callee304$(_context304) {
9942
+ while (1) switch (_context304.prev = _context304.next) {
9943
+ case 0:
9944
+ dispatch = _ref607.dispatch;
9945
+ _context304.prev = 1;
9946
+ dispatch(setLoading(true));
9947
+ _context304.next = 5;
9948
+ return Services.editOrders(data);
9949
+ case 5:
9950
+ response = _context304.sent;
9951
+ dispatch(setLoading(false));
9952
+ dispatch(setOrdersRender(function (prev) {
9953
+ return !prev;
9954
+ }));
9955
+ return _context304.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
9956
+ case 11:
9957
+ _context304.prev = 11;
9958
+ _context304.t0 = _context304["catch"](1);
9959
+ errorMessage((_error$response124 = _context304.t0.response) === null || _error$response124 === void 0 || (_error$response124 = _error$response124.data) === null || _error$response124 === void 0 ? void 0 : _error$response124.message);
9960
+ dispatch(setLoading(false));
9961
+ case 15:
9962
+ case "end":
9963
+ return _context304.stop();
9964
+ }
9965
+ }, _callee304, null, [[1, 11]]);
9966
+ }));
9967
+ return function (_x607, _x608) {
9968
+ return _ref608.apply(this, arguments);
9969
+ };
9970
+ }());
9971
+ export var deleteOrders = createAsyncThunk("/deleteOrders", /*#__PURE__*/function () {
9972
+ var _ref610 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee305(id, _ref609) {
9973
+ var dispatch, _error$response125;
9974
+ return _regeneratorRuntime.wrap(function _callee305$(_context305) {
9975
+ while (1) switch (_context305.prev = _context305.next) {
9976
+ case 0:
9977
+ dispatch = _ref609.dispatch;
9978
+ _context305.prev = 1;
9979
+ dispatch(setLoading(true));
9980
+ _context305.next = 5;
9981
+ return Services.deleteOrders(id);
9982
+ case 5:
9983
+ dispatch(setLoading(false));
9984
+ dispatch(setDeleteModalVisible(false));
9985
+ dispatch(setOrdersRender(function (prev) {
9986
+ return !prev;
9987
+ }));
9988
+ _context305.next = 15;
9989
+ break;
9990
+ case 10:
9991
+ _context305.prev = 10;
9992
+ _context305.t0 = _context305["catch"](1);
9993
+ dispatch(setDeleteModalVisible(false));
9994
+ errorMessage((_error$response125 = _context305.t0.response) === null || _error$response125 === void 0 || (_error$response125 = _error$response125.data) === null || _error$response125 === void 0 ? void 0 : _error$response125.message);
9995
+ dispatch(setLoading(false));
9996
+ case 15:
9997
+ case "end":
9998
+ return _context305.stop();
9999
+ }
10000
+ }, _callee305, null, [[1, 10]]);
10001
+ }));
10002
+ return function (_x609, _x610) {
10003
+ return _ref610.apply(this, arguments);
10004
+ };
10005
+ }());
10006
+ export var ordersVisibility = createAsyncThunk("/ordersVisibility", /*#__PURE__*/function () {
10007
+ var _ref612 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee306(data, _ref611) {
10008
+ var dispatch, response, _error$response126;
10009
+ return _regeneratorRuntime.wrap(function _callee306$(_context306) {
10010
+ while (1) switch (_context306.prev = _context306.next) {
10011
+ case 0:
10012
+ dispatch = _ref611.dispatch;
10013
+ _context306.prev = 1;
10014
+ dispatch(setLoading(true));
10015
+ _context306.next = 5;
10016
+ return Services.ordersVisibility(data);
10017
+ case 5:
10018
+ response = _context306.sent;
10019
+ dispatch(setLoading(false));
10020
+ dispatch(setOrdersRender(function (prev) {
10021
+ return !prev;
10022
+ }));
10023
+ return _context306.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
10024
+ case 11:
10025
+ _context306.prev = 11;
10026
+ _context306.t0 = _context306["catch"](1);
10027
+ errorMessage((_error$response126 = _context306.t0.response) === null || _error$response126 === void 0 || (_error$response126 = _error$response126.data) === null || _error$response126 === void 0 ? void 0 : _error$response126.message);
10028
+ dispatch(setLoading(false));
10029
+ case 15:
10030
+ case "end":
10031
+ return _context306.stop();
10032
+ }
10033
+ }, _callee306, null, [[1, 11]]);
10034
+ }));
10035
+ return function (_x611, _x612) {
10036
+ return _ref612.apply(this, arguments);
10037
+ };
10038
+ }());
10039
+ export var getContragenttypes = createAsyncThunk("/getContragenttypes", /*#__PURE__*/function () {
10040
+ var _ref614 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee307(data, _ref613) {
10041
+ var dispatch, _response$data35, response, _error$response127;
10042
+ return _regeneratorRuntime.wrap(function _callee307$(_context307) {
10043
+ while (1) switch (_context307.prev = _context307.next) {
10044
+ case 0:
10045
+ dispatch = _ref613.dispatch;
10046
+ _context307.prev = 1;
10047
+ dispatch(setLoading(true));
10048
+ _context307.next = 5;
10049
+ return Services.getContragenttypes(data === null || data === void 0 ? void 0 : data.size, data === null || data === void 0 ? void 0 : data.page, data === null || data === void 0 ? void 0 : data.query, data === null || data === void 0 ? void 0 : data.visibility);
10050
+ case 5:
10051
+ response = _context307.sent;
10052
+ dispatch(setLoading(false));
10053
+ return _context307.abrupt("return", response === null || response === void 0 || (_response$data35 = response.data) === null || _response$data35 === void 0 ? void 0 : _response$data35.data);
10054
+ case 10:
10055
+ _context307.prev = 10;
10056
+ _context307.t0 = _context307["catch"](1);
10057
+ errorMessage((_error$response127 = _context307.t0.response) === null || _error$response127 === void 0 || (_error$response127 = _error$response127.data) === null || _error$response127 === void 0 ? void 0 : _error$response127.message);
10058
+ dispatch(setLoading(false));
10059
+ case 14:
10060
+ case "end":
10061
+ return _context307.stop();
10062
+ }
10063
+ }, _callee307, null, [[1, 10]]);
10064
+ }));
10065
+ return function (_x613, _x614) {
10066
+ return _ref614.apply(this, arguments);
10067
+ };
10068
+ }());
10069
+ export var getContragenttypesAll = createAsyncThunk("/getContragenttypesAll", /*#__PURE__*/function () {
10070
+ var _ref616 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee308(visibility, _ref615) {
10071
+ var dispatch, _response$data36, response, _error$response128;
10072
+ return _regeneratorRuntime.wrap(function _callee308$(_context308) {
10073
+ while (1) switch (_context308.prev = _context308.next) {
10074
+ case 0:
10075
+ dispatch = _ref615.dispatch;
10076
+ _context308.prev = 1;
10077
+ dispatch(setLoading(true));
10078
+ _context308.next = 5;
10079
+ return Services.getContragenttypesAll(visibility);
10080
+ case 5:
10081
+ response = _context308.sent;
10082
+ dispatch(setLoading(false));
10083
+ return _context308.abrupt("return", response === null || response === void 0 || (_response$data36 = response.data) === null || _response$data36 === void 0 ? void 0 : _response$data36.data);
10084
+ case 10:
10085
+ _context308.prev = 10;
10086
+ _context308.t0 = _context308["catch"](1);
10087
+ errorMessage((_error$response128 = _context308.t0.response) === null || _error$response128 === void 0 || (_error$response128 = _error$response128.data) === null || _error$response128 === void 0 ? void 0 : _error$response128.message);
10088
+ dispatch(setLoading(false));
10089
+ case 14:
10090
+ case "end":
10091
+ return _context308.stop();
10092
+ }
10093
+ }, _callee308, null, [[1, 10]]);
10094
+ }));
10095
+ return function (_x615, _x616) {
10096
+ return _ref616.apply(this, arguments);
10097
+ };
10098
+ }());
10099
+ export var addContragenttypes = createAsyncThunk("/addContragenttypes", /*#__PURE__*/function () {
10100
+ var _ref618 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee309(data, _ref617) {
10101
+ var dispatch, _error$response129;
10102
+ return _regeneratorRuntime.wrap(function _callee309$(_context309) {
10103
+ while (1) switch (_context309.prev = _context309.next) {
10104
+ case 0:
10105
+ dispatch = _ref617.dispatch;
10106
+ _context309.prev = 1;
10107
+ dispatch(setLoading(true));
10108
+ _context309.next = 5;
10109
+ return Services.addContragenttypes(data);
10110
+ case 5:
10111
+ dispatch(setLoading(false));
10112
+ dispatch(setViewModalVisible(true));
10113
+ dispatch(setContragenttypesRender(function (prev) {
10114
+ return !prev;
10115
+ }));
10116
+ _context309.next = 14;
10117
+ break;
10118
+ case 10:
10119
+ _context309.prev = 10;
10120
+ _context309.t0 = _context309["catch"](1);
10121
+ errorMessage((_error$response129 = _context309.t0.response) === null || _error$response129 === void 0 || (_error$response129 = _error$response129.data) === null || _error$response129 === void 0 ? void 0 : _error$response129.message);
10122
+ dispatch(setLoading(false));
10123
+ case 14:
10124
+ case "end":
10125
+ return _context309.stop();
10126
+ }
10127
+ }, _callee309, null, [[1, 10]]);
10128
+ }));
10129
+ return function (_x617, _x618) {
10130
+ return _ref618.apply(this, arguments);
10131
+ };
10132
+ }());
10133
+ export var editContragenttypes = createAsyncThunk("/editContragenttypes", /*#__PURE__*/function () {
10134
+ var _ref620 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee310(data, _ref619) {
10135
+ var dispatch, response, _error$response130;
10136
+ return _regeneratorRuntime.wrap(function _callee310$(_context310) {
10137
+ while (1) switch (_context310.prev = _context310.next) {
10138
+ case 0:
10139
+ dispatch = _ref619.dispatch;
10140
+ _context310.prev = 1;
10141
+ dispatch(setLoading(true));
10142
+ _context310.next = 5;
10143
+ return Services.editContragenttypes(data);
10144
+ case 5:
10145
+ response = _context310.sent;
10146
+ dispatch(setLoading(false));
10147
+ dispatch(setContragenttypesRender(function (prev) {
10148
+ return !prev;
10149
+ }));
10150
+ return _context310.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
10151
+ case 11:
10152
+ _context310.prev = 11;
10153
+ _context310.t0 = _context310["catch"](1);
10154
+ errorMessage((_error$response130 = _context310.t0.response) === null || _error$response130 === void 0 || (_error$response130 = _error$response130.data) === null || _error$response130 === void 0 ? void 0 : _error$response130.message);
10155
+ dispatch(setLoading(false));
10156
+ case 15:
10157
+ case "end":
10158
+ return _context310.stop();
10159
+ }
10160
+ }, _callee310, null, [[1, 11]]);
10161
+ }));
10162
+ return function (_x619, _x620) {
10163
+ return _ref620.apply(this, arguments);
10164
+ };
10165
+ }());
10166
+ export var deleteContragenttypes = createAsyncThunk("/deleteContragenttypes", /*#__PURE__*/function () {
10167
+ var _ref622 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee311(id, _ref621) {
10168
+ var dispatch, _error$response131;
10169
+ return _regeneratorRuntime.wrap(function _callee311$(_context311) {
10170
+ while (1) switch (_context311.prev = _context311.next) {
10171
+ case 0:
10172
+ dispatch = _ref621.dispatch;
10173
+ _context311.prev = 1;
10174
+ dispatch(setLoading(true));
10175
+ _context311.next = 5;
10176
+ return Services.deleteContragenttypes(id);
10177
+ case 5:
10178
+ dispatch(setLoading(false));
10179
+ dispatch(setDeleteModalVisible(false));
10180
+ dispatch(setContragenttypesRender(function (prev) {
10181
+ return !prev;
10182
+ }));
10183
+ _context311.next = 15;
10184
+ break;
10185
+ case 10:
10186
+ _context311.prev = 10;
10187
+ _context311.t0 = _context311["catch"](1);
10188
+ dispatch(setDeleteModalVisible(false));
10189
+ errorMessage((_error$response131 = _context311.t0.response) === null || _error$response131 === void 0 || (_error$response131 = _error$response131.data) === null || _error$response131 === void 0 ? void 0 : _error$response131.message);
10190
+ dispatch(setLoading(false));
10191
+ case 15:
10192
+ case "end":
10193
+ return _context311.stop();
10194
+ }
10195
+ }, _callee311, null, [[1, 10]]);
10196
+ }));
10197
+ return function (_x621, _x622) {
10198
+ return _ref622.apply(this, arguments);
10199
+ };
10200
+ }());
10201
+ export var contragenttypesVisibility = createAsyncThunk("/contragenttypesVisibility", /*#__PURE__*/function () {
10202
+ var _ref624 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee312(data, _ref623) {
10203
+ var dispatch, response, _error$response132;
10204
+ return _regeneratorRuntime.wrap(function _callee312$(_context312) {
10205
+ while (1) switch (_context312.prev = _context312.next) {
10206
+ case 0:
10207
+ dispatch = _ref623.dispatch;
10208
+ _context312.prev = 1;
10209
+ dispatch(setLoading(true));
10210
+ _context312.next = 5;
10211
+ return Services.contragenttypesVisibility(data);
10212
+ case 5:
10213
+ response = _context312.sent;
10214
+ dispatch(setLoading(false));
10215
+ dispatch(setContragenttypesRender(function (prev) {
10216
+ return !prev;
10217
+ }));
10218
+ return _context312.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
10219
+ case 11:
10220
+ _context312.prev = 11;
10221
+ _context312.t0 = _context312["catch"](1);
10222
+ errorMessage((_error$response132 = _context312.t0.response) === null || _error$response132 === void 0 || (_error$response132 = _error$response132.data) === null || _error$response132 === void 0 ? void 0 : _error$response132.message);
10223
+ dispatch(setLoading(false));
10224
+ case 15:
10225
+ case "end":
10226
+ return _context312.stop();
10227
+ }
10228
+ }, _callee312, null, [[1, 11]]);
10229
+ }));
10230
+ return function (_x623, _x624) {
10231
+ return _ref624.apply(this, arguments);
10232
+ };
10233
+ }());
10234
+
10235
+ // Contracttypes
10236
+ export var getContracttypes = createAsyncThunk("/getContracttypes", /*#__PURE__*/function () {
10237
+ var _ref626 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee313(data, _ref625) {
10238
+ var dispatch, _response$data37, response, _error$response133;
10239
+ return _regeneratorRuntime.wrap(function _callee313$(_context313) {
10240
+ while (1) switch (_context313.prev = _context313.next) {
10241
+ case 0:
10242
+ dispatch = _ref625.dispatch;
10243
+ _context313.prev = 1;
10244
+ dispatch(setLoading(true));
10245
+ _context313.next = 5;
10246
+ return Services.getContracttypes(data === null || data === void 0 ? void 0 : data.size, data === null || data === void 0 ? void 0 : data.page, data === null || data === void 0 ? void 0 : data.query, data === null || data === void 0 ? void 0 : data.visibility);
10247
+ case 5:
10248
+ response = _context313.sent;
10249
+ dispatch(setLoading(false));
10250
+ return _context313.abrupt("return", response === null || response === void 0 || (_response$data37 = response.data) === null || _response$data37 === void 0 ? void 0 : _response$data37.data);
10251
+ case 10:
10252
+ _context313.prev = 10;
10253
+ _context313.t0 = _context313["catch"](1);
10254
+ errorMessage((_error$response133 = _context313.t0.response) === null || _error$response133 === void 0 || (_error$response133 = _error$response133.data) === null || _error$response133 === void 0 ? void 0 : _error$response133.message);
10255
+ dispatch(setLoading(false));
10256
+ case 14:
10257
+ case "end":
10258
+ return _context313.stop();
10259
+ }
10260
+ }, _callee313, null, [[1, 10]]);
10261
+ }));
10262
+ return function (_x625, _x626) {
10263
+ return _ref626.apply(this, arguments);
10264
+ };
10265
+ }());
10266
+ export var getContracttypesAll = createAsyncThunk("/getContracttypesAll", /*#__PURE__*/function () {
10267
+ var _ref628 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee314(visibility, _ref627) {
10268
+ var dispatch, _response$data38, response, _error$response134;
10269
+ return _regeneratorRuntime.wrap(function _callee314$(_context314) {
10270
+ while (1) switch (_context314.prev = _context314.next) {
10271
+ case 0:
10272
+ dispatch = _ref627.dispatch;
10273
+ _context314.prev = 1;
10274
+ dispatch(setLoading(true));
10275
+ _context314.next = 5;
10276
+ return Services.getContracttypesAll(visibility);
10277
+ case 5:
10278
+ response = _context314.sent;
10279
+ dispatch(setLoading(false));
10280
+ return _context314.abrupt("return", response === null || response === void 0 || (_response$data38 = response.data) === null || _response$data38 === void 0 ? void 0 : _response$data38.data);
10281
+ case 10:
10282
+ _context314.prev = 10;
10283
+ _context314.t0 = _context314["catch"](1);
10284
+ errorMessage((_error$response134 = _context314.t0.response) === null || _error$response134 === void 0 || (_error$response134 = _error$response134.data) === null || _error$response134 === void 0 ? void 0 : _error$response134.message);
10285
+ dispatch(setLoading(false));
10286
+ case 14:
10287
+ case "end":
10288
+ return _context314.stop();
10289
+ }
10290
+ }, _callee314, null, [[1, 10]]);
10291
+ }));
10292
+ return function (_x627, _x628) {
10293
+ return _ref628.apply(this, arguments);
10294
+ };
10295
+ }());
10296
+ export var addContracttypes = createAsyncThunk("/addContracttypes", /*#__PURE__*/function () {
10297
+ var _ref630 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee315(data, _ref629) {
10298
+ var dispatch, _error$response135;
10299
+ return _regeneratorRuntime.wrap(function _callee315$(_context315) {
10300
+ while (1) switch (_context315.prev = _context315.next) {
10301
+ case 0:
10302
+ dispatch = _ref629.dispatch;
10303
+ _context315.prev = 1;
10304
+ dispatch(setLoading(true));
10305
+ _context315.next = 5;
10306
+ return Services.addContracttypes(data);
10307
+ case 5:
10308
+ dispatch(setLoading(false));
10309
+ dispatch(setViewModalVisible(true));
10310
+ dispatch(setContracttypesRender(function (prev) {
10311
+ return !prev;
10312
+ }));
10313
+ _context315.next = 14;
10314
+ break;
10315
+ case 10:
10316
+ _context315.prev = 10;
10317
+ _context315.t0 = _context315["catch"](1);
10318
+ errorMessage((_error$response135 = _context315.t0.response) === null || _error$response135 === void 0 || (_error$response135 = _error$response135.data) === null || _error$response135 === void 0 ? void 0 : _error$response135.message);
10319
+ dispatch(setLoading(false));
10320
+ case 14:
10321
+ case "end":
10322
+ return _context315.stop();
10323
+ }
10324
+ }, _callee315, null, [[1, 10]]);
10325
+ }));
10326
+ return function (_x629, _x630) {
10327
+ return _ref630.apply(this, arguments);
10328
+ };
10329
+ }());
10330
+ export var editContracttypes = createAsyncThunk("/editContracttypes", /*#__PURE__*/function () {
10331
+ var _ref632 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee316(data, _ref631) {
10332
+ var dispatch, response, _error$response136;
10333
+ return _regeneratorRuntime.wrap(function _callee316$(_context316) {
10334
+ while (1) switch (_context316.prev = _context316.next) {
10335
+ case 0:
10336
+ dispatch = _ref631.dispatch;
10337
+ _context316.prev = 1;
10338
+ dispatch(setLoading(true));
10339
+ _context316.next = 5;
10340
+ return Services.editContracttypes(data);
10341
+ case 5:
10342
+ response = _context316.sent;
10343
+ dispatch(setLoading(false));
10344
+ dispatch(setContracttypesRender(function (prev) {
10345
+ return !prev;
10346
+ }));
10347
+ return _context316.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
10348
+ case 11:
10349
+ _context316.prev = 11;
10350
+ _context316.t0 = _context316["catch"](1);
10351
+ errorMessage((_error$response136 = _context316.t0.response) === null || _error$response136 === void 0 || (_error$response136 = _error$response136.data) === null || _error$response136 === void 0 ? void 0 : _error$response136.message);
10352
+ dispatch(setLoading(false));
10353
+ case 15:
10354
+ case "end":
10355
+ return _context316.stop();
10356
+ }
10357
+ }, _callee316, null, [[1, 11]]);
10358
+ }));
10359
+ return function (_x631, _x632) {
10360
+ return _ref632.apply(this, arguments);
10361
+ };
10362
+ }());
10363
+ export var deleteContracttypes = createAsyncThunk("/deleteContracttypes", /*#__PURE__*/function () {
10364
+ var _ref634 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee317(id, _ref633) {
10365
+ var dispatch, _error$response137;
10366
+ return _regeneratorRuntime.wrap(function _callee317$(_context317) {
10367
+ while (1) switch (_context317.prev = _context317.next) {
10368
+ case 0:
10369
+ dispatch = _ref633.dispatch;
10370
+ _context317.prev = 1;
10371
+ dispatch(setLoading(true));
10372
+ _context317.next = 5;
10373
+ return Services.deleteContracttypes(id);
10374
+ case 5:
10375
+ dispatch(setLoading(false));
10376
+ dispatch(setDeleteModalVisible(false));
10377
+ dispatch(setContracttypesRender(function (prev) {
10378
+ return !prev;
10379
+ }));
10380
+ _context317.next = 15;
10381
+ break;
10382
+ case 10:
10383
+ _context317.prev = 10;
10384
+ _context317.t0 = _context317["catch"](1);
10385
+ dispatch(setDeleteModalVisible(false));
10386
+ errorMessage((_error$response137 = _context317.t0.response) === null || _error$response137 === void 0 || (_error$response137 = _error$response137.data) === null || _error$response137 === void 0 ? void 0 : _error$response137.message);
10387
+ dispatch(setLoading(false));
10388
+ case 15:
10389
+ case "end":
10390
+ return _context317.stop();
10391
+ }
10392
+ }, _callee317, null, [[1, 10]]);
10393
+ }));
10394
+ return function (_x633, _x634) {
10395
+ return _ref634.apply(this, arguments);
10396
+ };
10397
+ }());
10398
+ export var contracttypesVisibility = createAsyncThunk("/contracttypesVisibility", /*#__PURE__*/function () {
10399
+ var _ref636 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee318(data, _ref635) {
10400
+ var dispatch, response, _error$response138;
10401
+ return _regeneratorRuntime.wrap(function _callee318$(_context318) {
10402
+ while (1) switch (_context318.prev = _context318.next) {
10403
+ case 0:
10404
+ dispatch = _ref635.dispatch;
10405
+ _context318.prev = 1;
10406
+ dispatch(setLoading(true));
10407
+ _context318.next = 5;
10408
+ return Services.contracttypesVisibility(data);
10409
+ case 5:
10410
+ response = _context318.sent;
10411
+ dispatch(setLoading(false));
10412
+ dispatch(setContracttypesRender(function (prev) {
10413
+ return !prev;
10414
+ }));
10415
+ return _context318.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
10416
+ case 11:
10417
+ _context318.prev = 11;
10418
+ _context318.t0 = _context318["catch"](1);
10419
+ errorMessage((_error$response138 = _context318.t0.response) === null || _error$response138 === void 0 || (_error$response138 = _error$response138.data) === null || _error$response138 === void 0 ? void 0 : _error$response138.message);
10420
+ dispatch(setLoading(false));
10421
+ case 15:
10422
+ case "end":
10423
+ return _context318.stop();
10424
+ }
10425
+ }, _callee318, null, [[1, 11]]);
10426
+ }));
10427
+ return function (_x635, _x636) {
10428
+ return _ref636.apply(this, arguments);
10429
+ };
10430
+ }());
10431
+ export var getEmployeeConfigurations = createAsyncThunk("/getEmployeeConfigurations", /*#__PURE__*/function () {
10432
+ var _ref638 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee319(data, _ref637) {
10433
+ var dispatch, _response$data39, response, _error$response139;
10434
+ return _regeneratorRuntime.wrap(function _callee319$(_context319) {
10435
+ while (1) switch (_context319.prev = _context319.next) {
10436
+ case 0:
10437
+ dispatch = _ref637.dispatch;
10438
+ _context319.prev = 1;
10439
+ dispatch(setLoading(true));
10440
+ _context319.next = 5;
10441
+ return Services.getEmployeeConfigurations(data === null || data === void 0 ? void 0 : data.size, data === null || data === void 0 ? void 0 : data.page, data === null || data === void 0 ? void 0 : data.query, data === null || data === void 0 ? void 0 : data.visibility);
10442
+ case 5:
10443
+ response = _context319.sent;
10444
+ dispatch(setLoading(false));
10445
+ return _context319.abrupt("return", response === null || response === void 0 || (_response$data39 = response.data) === null || _response$data39 === void 0 ? void 0 : _response$data39.data);
10446
+ case 10:
10447
+ _context319.prev = 10;
10448
+ _context319.t0 = _context319["catch"](1);
10449
+ errorMessage((_error$response139 = _context319.t0.response) === null || _error$response139 === void 0 || (_error$response139 = _error$response139.data) === null || _error$response139 === void 0 ? void 0 : _error$response139.message);
10450
+ dispatch(setLoading(false));
10451
+ case 14:
10452
+ case "end":
10453
+ return _context319.stop();
10454
+ }
10455
+ }, _callee319, null, [[1, 10]]);
10456
+ }));
10457
+ return function (_x637, _x638) {
10458
+ return _ref638.apply(this, arguments);
10459
+ };
10460
+ }());
10461
+ export var getEmployeeConfigurationsAll = createAsyncThunk("/getEmployeeConfigurationsAll", /*#__PURE__*/function () {
10462
+ var _ref640 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee320(visibility, _ref639) {
10463
+ var dispatch, _response$data40, response, _error$response140;
10464
+ return _regeneratorRuntime.wrap(function _callee320$(_context320) {
10465
+ while (1) switch (_context320.prev = _context320.next) {
10466
+ case 0:
10467
+ dispatch = _ref639.dispatch;
10468
+ _context320.prev = 1;
10469
+ dispatch(setLoading(true));
10470
+ _context320.next = 5;
10471
+ return Services.getEmployeeConfigurationsAll(visibility);
10472
+ case 5:
10473
+ response = _context320.sent;
10474
+ dispatch(setLoading(false));
10475
+ return _context320.abrupt("return", response === null || response === void 0 || (_response$data40 = response.data) === null || _response$data40 === void 0 ? void 0 : _response$data40.data);
10476
+ case 10:
10477
+ _context320.prev = 10;
10478
+ _context320.t0 = _context320["catch"](1);
10479
+ errorMessage((_error$response140 = _context320.t0.response) === null || _error$response140 === void 0 || (_error$response140 = _error$response140.data) === null || _error$response140 === void 0 ? void 0 : _error$response140.message);
10480
+ dispatch(setLoading(false));
10481
+ case 14:
10482
+ case "end":
10483
+ return _context320.stop();
10484
+ }
10485
+ }, _callee320, null, [[1, 10]]);
10486
+ }));
10487
+ return function (_x639, _x640) {
10488
+ return _ref640.apply(this, arguments);
10489
+ };
10490
+ }());
10491
+ export var addEmployeeConfigurations = createAsyncThunk("/addEmployeeConfigurations", /*#__PURE__*/function () {
10492
+ var _ref642 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee321(data, _ref641) {
10493
+ var dispatch, _error$response141;
10494
+ return _regeneratorRuntime.wrap(function _callee321$(_context321) {
10495
+ while (1) switch (_context321.prev = _context321.next) {
10496
+ case 0:
10497
+ dispatch = _ref641.dispatch;
10498
+ _context321.prev = 1;
10499
+ dispatch(setLoading(true));
10500
+ _context321.next = 5;
10501
+ return Services.addEmployeeConfigurations(data);
10502
+ case 5:
10503
+ dispatch(setLoading(false));
10504
+ dispatch(setViewModalVisible(true));
10505
+ dispatch(setEmployeeConfigurationsRender(function (prev) {
10506
+ return !prev;
10507
+ }));
10508
+ _context321.next = 14;
10509
+ break;
10510
+ case 10:
10511
+ _context321.prev = 10;
10512
+ _context321.t0 = _context321["catch"](1);
10513
+ errorMessage((_error$response141 = _context321.t0.response) === null || _error$response141 === void 0 || (_error$response141 = _error$response141.data) === null || _error$response141 === void 0 ? void 0 : _error$response141.message);
10514
+ dispatch(setLoading(false));
10515
+ case 14:
10516
+ case "end":
10517
+ return _context321.stop();
10518
+ }
10519
+ }, _callee321, null, [[1, 10]]);
10520
+ }));
10521
+ return function (_x641, _x642) {
10522
+ return _ref642.apply(this, arguments);
10523
+ };
10524
+ }());
10525
+ export var editEmployeeConfigurations = createAsyncThunk("/editEmployeeConfigurations", /*#__PURE__*/function () {
10526
+ var _ref644 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee322(data, _ref643) {
10527
+ var dispatch, response, _error$response142;
10528
+ return _regeneratorRuntime.wrap(function _callee322$(_context322) {
10529
+ while (1) switch (_context322.prev = _context322.next) {
10530
+ case 0:
10531
+ dispatch = _ref643.dispatch;
10532
+ _context322.prev = 1;
10533
+ dispatch(setLoading(true));
10534
+ _context322.next = 5;
10535
+ return Services.editEmployeeConfigurations(data);
10536
+ case 5:
10537
+ response = _context322.sent;
10538
+ dispatch(setLoading(false));
10539
+ dispatch(setEmployeeConfigurationsRender(function (prev) {
10540
+ return !prev;
10541
+ }));
10542
+ return _context322.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
10543
+ case 11:
10544
+ _context322.prev = 11;
10545
+ _context322.t0 = _context322["catch"](1);
10546
+ errorMessage((_error$response142 = _context322.t0.response) === null || _error$response142 === void 0 || (_error$response142 = _error$response142.data) === null || _error$response142 === void 0 ? void 0 : _error$response142.message);
10547
+ dispatch(setLoading(false));
10548
+ case 15:
10549
+ case "end":
10550
+ return _context322.stop();
10551
+ }
10552
+ }, _callee322, null, [[1, 11]]);
10553
+ }));
10554
+ return function (_x643, _x644) {
10555
+ return _ref644.apply(this, arguments);
10556
+ };
10557
+ }());
10558
+ export var deleteEmployeeConfigurations = createAsyncThunk("/deleteEmployeeConfigurations", /*#__PURE__*/function () {
10559
+ var _ref646 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee323(id, _ref645) {
10560
+ var dispatch, _error$response143;
10561
+ return _regeneratorRuntime.wrap(function _callee323$(_context323) {
10562
+ while (1) switch (_context323.prev = _context323.next) {
10563
+ case 0:
10564
+ dispatch = _ref645.dispatch;
10565
+ _context323.prev = 1;
10566
+ dispatch(setLoading(true));
10567
+ _context323.next = 5;
10568
+ return Services.deleteEmployeeConfigurations(id);
10569
+ case 5:
10570
+ dispatch(setLoading(false));
10571
+ dispatch(setDeleteModalVisible(false));
10572
+ dispatch(setEmployeeConfigurationsRender(function (prev) {
10573
+ return !prev;
10574
+ }));
10575
+ _context323.next = 15;
10576
+ break;
10577
+ case 10:
10578
+ _context323.prev = 10;
10579
+ _context323.t0 = _context323["catch"](1);
10580
+ dispatch(setDeleteModalVisible(false));
10581
+ errorMessage((_error$response143 = _context323.t0.response) === null || _error$response143 === void 0 || (_error$response143 = _error$response143.data) === null || _error$response143 === void 0 ? void 0 : _error$response143.message);
10582
+ dispatch(setLoading(false));
10583
+ case 15:
10584
+ case "end":
10585
+ return _context323.stop();
10586
+ }
10587
+ }, _callee323, null, [[1, 10]]);
10588
+ }));
10589
+ return function (_x645, _x646) {
10590
+ return _ref646.apply(this, arguments);
10591
+ };
10592
+ }());
10593
+ export var employeeConfigurationsVisibility = createAsyncThunk("/employeeConfigurationsVisibility", /*#__PURE__*/function () {
10594
+ var _ref648 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee324(data, _ref647) {
10595
+ var dispatch, response, _error$response144;
10596
+ return _regeneratorRuntime.wrap(function _callee324$(_context324) {
10597
+ while (1) switch (_context324.prev = _context324.next) {
10598
+ case 0:
10599
+ dispatch = _ref647.dispatch;
10600
+ _context324.prev = 1;
10601
+ dispatch(setLoading(true));
10602
+ _context324.next = 5;
10603
+ return Services.employeeConfigurationsVisibility(data);
10604
+ case 5:
10605
+ response = _context324.sent;
10606
+ dispatch(setLoading(false));
10607
+ dispatch(setEmployeeConfigurationsRender(function (prev) {
10608
+ return !prev;
10609
+ }));
10610
+ return _context324.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
10611
+ case 11:
10612
+ _context324.prev = 11;
10613
+ _context324.t0 = _context324["catch"](1);
10614
+ errorMessage((_error$response144 = _context324.t0.response) === null || _error$response144 === void 0 || (_error$response144 = _error$response144.data) === null || _error$response144 === void 0 ? void 0 : _error$response144.message);
10615
+ dispatch(setLoading(false));
10616
+ case 15:
10617
+ case "end":
10618
+ return _context324.stop();
10619
+ }
10620
+ }, _callee324, null, [[1, 11]]);
10621
+ }));
10622
+ return function (_x647, _x648) {
10623
+ return _ref648.apply(this, arguments);
10624
+ };
10625
+ }());
9646
10626
  export var questionnaire = createSlice({
9647
10627
  name: "questionnaire",
9648
10628
  initialState: initialState,
9649
10629
  extraReducers: function extraReducers(builder) {
9650
- builder.addCase(getTopics.fulfilled, function (state, _ref589) {
9651
- var payload = _ref589.payload;
10630
+ builder.addCase(getTopics.fulfilled, function (state, _ref649) {
10631
+ var payload = _ref649.payload;
9652
10632
  state.topics = payload;
9653
10633
  });
9654
- builder.addCase(getTopicsAll.fulfilled, function (state, _ref590) {
9655
- var payload = _ref590.payload;
10634
+ builder.addCase(getTopicsAll.fulfilled, function (state, _ref650) {
10635
+ var payload = _ref650.payload;
9656
10636
  state.topicsAll = payload;
9657
10637
  });
9658
- builder.addCase(getSubtopics.fulfilled, function (state, _ref591) {
9659
- var payload = _ref591.payload;
10638
+ builder.addCase(getSubtopics.fulfilled, function (state, _ref651) {
10639
+ var payload = _ref651.payload;
9660
10640
  state.subtopics = payload;
9661
10641
  });
9662
- builder.addCase(getSubtopicsAll.fulfilled, function (state, _ref592) {
9663
- var payload = _ref592.payload;
10642
+ builder.addCase(getSubtopicsAll.fulfilled, function (state, _ref652) {
10643
+ var payload = _ref652.payload;
9664
10644
  state.subtopicsAll = payload;
9665
10645
  });
9666
- builder.addCase(getExecutionRules.fulfilled, function (state, _ref593) {
9667
- var payload = _ref593.payload;
10646
+ builder.addCase(getExecutionRules.fulfilled, function (state, _ref653) {
10647
+ var payload = _ref653.payload;
9668
10648
  state.executionRules = payload;
9669
10649
  });
9670
- builder.addCase(getExecutionRulesAll.fulfilled, function (state, _ref594) {
9671
- var payload = _ref594.payload;
10650
+ builder.addCase(getExecutionRulesAll.fulfilled, function (state, _ref654) {
10651
+ var payload = _ref654.payload;
9672
10652
  state.executionRulesAll = payload;
9673
10653
  });
9674
- builder.addCase(getDocumentRecieveMethods.fulfilled, function (state, _ref595) {
9675
- var payload = _ref595.payload;
10654
+ builder.addCase(getDocumentRecieveMethods.fulfilled, function (state, _ref655) {
10655
+ var payload = _ref655.payload;
9676
10656
  state.documentRecieveMethods = payload;
9677
10657
  });
9678
- builder.addCase(getDocumentRecieveMethodsAll.fulfilled, function (state, _ref596) {
9679
- var payload = _ref596.payload;
10658
+ builder.addCase(getDocumentRecieveMethodsAll.fulfilled, function (state, _ref656) {
10659
+ var payload = _ref656.payload;
9680
10660
  state.documentRecieveMethodsAll = payload;
9681
10661
  });
9682
- builder.addCase(getDocumentTypes.fulfilled, function (state, _ref597) {
9683
- var payload = _ref597.payload;
10662
+ builder.addCase(getDocumentTypes.fulfilled, function (state, _ref657) {
10663
+ var payload = _ref657.payload;
9684
10664
  state.documentTypes = payload;
9685
10665
  });
9686
- builder.addCase(getDocumentTypesAllOne.fulfilled, function (state, _ref598) {
9687
- var payload = _ref598.payload;
10666
+ builder.addCase(getDocumentTypesAllOne.fulfilled, function (state, _ref658) {
10667
+ var payload = _ref658.payload;
9688
10668
  state.documentTypesAllOne = payload;
9689
10669
  });
9690
- builder.addCase(getDocumentTypesAllTwo.fulfilled, function (state, _ref599) {
9691
- var payload = _ref599.payload;
10670
+ builder.addCase(getDocumentTypesAllTwo.fulfilled, function (state, _ref659) {
10671
+ var payload = _ref659.payload;
9692
10672
  state.documentTypesAllTwo = payload;
9693
10673
  });
9694
- builder.addCase(getCountries.fulfilled, function (state, _ref600) {
9695
- var payload = _ref600.payload;
10674
+ builder.addCase(getCountries.fulfilled, function (state, _ref660) {
10675
+ var payload = _ref660.payload;
9696
10676
  state.countries = payload;
9697
10677
  });
9698
- builder.addCase(getCountriesAll.fulfilled, function (state, _ref601) {
9699
- var payload = _ref601.payload;
10678
+ builder.addCase(getCountriesAll.fulfilled, function (state, _ref661) {
10679
+ var payload = _ref661.payload;
9700
10680
  state.countriesAll = payload;
9701
10681
  });
9702
- builder.addCase(getOrganizations.fulfilled, function (state, _ref602) {
9703
- var payload = _ref602.payload;
10682
+ builder.addCase(getOrganizations.fulfilled, function (state, _ref662) {
10683
+ var payload = _ref662.payload;
9704
10684
  state.organizations = payload;
9705
10685
  });
9706
- builder.addCase(getStructures.fulfilled, function (state, _ref603) {
9707
- var payload = _ref603.payload;
10686
+ builder.addCase(getStructures.fulfilled, function (state, _ref663) {
10687
+ var payload = _ref663.payload;
9708
10688
  state.structures = payload;
9709
10689
  });
9710
- builder.addCase(getApplicationForms.fulfilled, function (state, _ref604) {
9711
- var payload = _ref604.payload;
10690
+ builder.addCase(getApplicationForms.fulfilled, function (state, _ref664) {
10691
+ var payload = _ref664.payload;
9712
10692
  state.applicationForms = payload;
9713
10693
  });
9714
- builder.addCase(getApplicationFormsAll.fulfilled, function (state, _ref605) {
9715
- var payload = _ref605.payload;
10694
+ builder.addCase(getApplicationFormsAll.fulfilled, function (state, _ref665) {
10695
+ var payload = _ref665.payload;
9716
10696
  state.applicationFormsAll = payload;
9717
10697
  });
9718
- builder.addCase(getDocumentWhom.fulfilled, function (state, _ref606) {
9719
- var payload = _ref606.payload;
10698
+ builder.addCase(getDocumentWhom.fulfilled, function (state, _ref666) {
10699
+ var payload = _ref666.payload;
9720
10700
  state.documentWhom = payload;
9721
10701
  });
9722
- builder.addCase(getDocumentWhomAll.fulfilled, function (state, _ref607) {
9723
- var payload = _ref607.payload;
10702
+ builder.addCase(getDocumentWhomAll.fulfilled, function (state, _ref667) {
10703
+ var payload = _ref667.payload;
9724
10704
  state.documentWhomAll = payload;
9725
10705
  });
9726
- builder.addCase(getMarginNoteText.fulfilled, function (state, _ref608) {
9727
- var payload = _ref608.payload;
10706
+ builder.addCase(getMarginNoteText.fulfilled, function (state, _ref668) {
10707
+ var payload = _ref668.payload;
9728
10708
  state.marginNoteText = payload;
9729
10709
  });
9730
- builder.addCase(getDeliveryMethod.fulfilled, function (state, _ref609) {
9731
- var payload = _ref609.payload;
10710
+ builder.addCase(getDeliveryMethod.fulfilled, function (state, _ref669) {
10711
+ var payload = _ref669.payload;
9732
10712
  state.deliveryMethod = payload;
9733
10713
  });
9734
- builder.addCase(getDeliveryMethodAll.fulfilled, function (state, _ref610) {
9735
- var payload = _ref610.payload;
10714
+ builder.addCase(getDeliveryMethodAll.fulfilled, function (state, _ref670) {
10715
+ var payload = _ref670.payload;
9736
10716
  state.deliveryMethodAll = payload;
9737
10717
  });
9738
- builder.addCase(getGeneralStructuresAll.fulfilled, function (state, _ref611) {
9739
- var payload = _ref611.payload;
10718
+ builder.addCase(getGeneralStructuresAll.fulfilled, function (state, _ref671) {
10719
+ var payload = _ref671.payload;
9740
10720
  state.generalStructuresAll = payload;
9741
10721
  });
9742
- builder.addCase(getBrands.fulfilled, function (state, _ref612) {
9743
- var payload = _ref612.payload;
10722
+ builder.addCase(getBrands.fulfilled, function (state, _ref672) {
10723
+ var payload = _ref672.payload;
9744
10724
  state.brands = payload;
9745
10725
  });
9746
- builder.addCase(getBrandsAll.fulfilled, function (state, _ref613) {
9747
- var payload = _ref613.payload;
10726
+ builder.addCase(getBrandsAll.fulfilled, function (state, _ref673) {
10727
+ var payload = _ref673.payload;
9748
10728
  state.brandsAll = payload;
9749
10729
  });
9750
- builder.addCase(getChassisTypes.fulfilled, function (state, _ref614) {
9751
- var payload = _ref614.payload;
10730
+ builder.addCase(getChassisTypes.fulfilled, function (state, _ref674) {
10731
+ var payload = _ref674.payload;
9752
10732
  state.chassisTypes = payload;
9753
10733
  });
9754
- builder.addCase(getChassisTypesAll.fulfilled, function (state, _ref615) {
9755
- var payload = _ref615.payload;
10734
+ builder.addCase(getChassisTypesAll.fulfilled, function (state, _ref675) {
10735
+ var payload = _ref675.payload;
9756
10736
  state.chassisTypesAll = payload;
9757
10737
  });
9758
- builder.addCase(getColor.fulfilled, function (state, _ref616) {
9759
- var payload = _ref616.payload;
10738
+ builder.addCase(getColor.fulfilled, function (state, _ref676) {
10739
+ var payload = _ref676.payload;
9760
10740
  state.color = payload;
9761
10741
  });
9762
- builder.addCase(getColorAll.fulfilled, function (state, _ref617) {
9763
- var payload = _ref617.payload;
10742
+ builder.addCase(getColorAll.fulfilled, function (state, _ref677) {
10743
+ var payload = _ref677.payload;
9764
10744
  state.colorAll = payload;
9765
10745
  });
9766
- builder.addCase(getEnginetype.fulfilled, function (state, _ref618) {
9767
- var payload = _ref618.payload;
10746
+ builder.addCase(getEnginetype.fulfilled, function (state, _ref678) {
10747
+ var payload = _ref678.payload;
9768
10748
  state.enginetype = payload;
9769
10749
  });
9770
- builder.addCase(getEnginetypeAll.fulfilled, function (state, _ref619) {
9771
- var payload = _ref619.payload;
10750
+ builder.addCase(getEnginetypeAll.fulfilled, function (state, _ref679) {
10751
+ var payload = _ref679.payload;
9772
10752
  state.enginetypeAll = payload;
9773
10753
  });
9774
- builder.addCase(getGearboxtype.fulfilled, function (state, _ref620) {
9775
- var payload = _ref620.payload;
10754
+ builder.addCase(getGearboxtype.fulfilled, function (state, _ref680) {
10755
+ var payload = _ref680.payload;
9776
10756
  state.gearboxtype = payload;
9777
10757
  });
9778
- builder.addCase(getGearboxtypeAll.fulfilled, function (state, _ref621) {
9779
- var payload = _ref621.payload;
10758
+ builder.addCase(getGearboxtypeAll.fulfilled, function (state, _ref681) {
10759
+ var payload = _ref681.payload;
9780
10760
  state.gearboxtypeAll = payload;
9781
10761
  });
9782
- builder.addCase(getIssuedauthoritie.fulfilled, function (state, _ref622) {
9783
- var payload = _ref622.payload;
10762
+ builder.addCase(getIssuedauthoritie.fulfilled, function (state, _ref682) {
10763
+ var payload = _ref682.payload;
9784
10764
  state.issuedauthoritie = payload;
9785
10765
  });
9786
- builder.addCase(getIssuedauthoritieAll.fulfilled, function (state, _ref623) {
9787
- var payload = _ref623.payload;
10766
+ builder.addCase(getIssuedauthoritieAll.fulfilled, function (state, _ref683) {
10767
+ var payload = _ref683.payload;
9788
10768
  state.issuedauthoritieAll = payload;
9789
10769
  });
9790
- builder.addCase(getModel.fulfilled, function (state, _ref624) {
9791
- var payload = _ref624.payload;
10770
+ builder.addCase(getModel.fulfilled, function (state, _ref684) {
10771
+ var payload = _ref684.payload;
9792
10772
  state.model = payload;
9793
10773
  });
9794
- builder.addCase(getModelAll.fulfilled, function (state, _ref625) {
9795
- var payload = _ref625.payload;
10774
+ builder.addCase(getModelAll.fulfilled, function (state, _ref685) {
10775
+ var payload = _ref685.payload;
9796
10776
  state.modelAll = payload;
9797
10777
  });
9798
- builder.addCase(getOwnershiptype.fulfilled, function (state, _ref626) {
9799
- var payload = _ref626.payload;
10778
+ builder.addCase(getOwnershiptype.fulfilled, function (state, _ref686) {
10779
+ var payload = _ref686.payload;
9800
10780
  state.ownershiptype = payload;
9801
10781
  });
9802
- builder.addCase(getOwnershiptypeAll.fulfilled, function (state, _ref627) {
9803
- var payload = _ref627.payload;
10782
+ builder.addCase(getOwnershiptypeAll.fulfilled, function (state, _ref687) {
10783
+ var payload = _ref687.payload;
9804
10784
  state.ownershiptypeAll = payload;
9805
10785
  });
9806
- builder.addCase(getOrganisationrecord.fulfilled, function (state, _ref628) {
9807
- var payload = _ref628.payload;
10786
+ builder.addCase(getOrganisationrecord.fulfilled, function (state, _ref688) {
10787
+ var payload = _ref688.payload;
9808
10788
  state.organisationrecord = payload;
9809
10789
  });
9810
- builder.addCase(getOrganisationrecordAll.fulfilled, function (state, _ref629) {
9811
- var payload = _ref629.payload;
10790
+ builder.addCase(getOrganisationrecordAll.fulfilled, function (state, _ref689) {
10791
+ var payload = _ref689.payload;
9812
10792
  state.organisationrecordAll = payload;
9813
10793
  });
9814
- builder.addCase(getTransmittertype.fulfilled, function (state, _ref630) {
9815
- var payload = _ref630.payload;
10794
+ builder.addCase(getTransmittertype.fulfilled, function (state, _ref690) {
10795
+ var payload = _ref690.payload;
9816
10796
  state.transmittertype = payload;
9817
10797
  });
9818
- builder.addCase(getTransmittertypeAll.fulfilled, function (state, _ref631) {
9819
- var payload = _ref631.payload;
10798
+ builder.addCase(getTransmittertypeAll.fulfilled, function (state, _ref691) {
10799
+ var payload = _ref691.payload;
9820
10800
  state.transmittertypeAll = payload;
9821
10801
  });
9822
- builder.addCase(getVehicle.fulfilled, function (state, _ref632) {
9823
- var payload = _ref632.payload;
10802
+ builder.addCase(getVehicle.fulfilled, function (state, _ref692) {
10803
+ var payload = _ref692.payload;
9824
10804
  state.vehicle = payload;
9825
10805
  });
9826
- builder.addCase(getVehicleAll.fulfilled, function (state, _ref633) {
9827
- var payload = _ref633.payload;
10806
+ builder.addCase(getVehicleAll.fulfilled, function (state, _ref693) {
10807
+ var payload = _ref693.payload;
9828
10808
  state.vehicleAll = payload;
9829
10809
  });
9830
- builder.addCase(getVehicletype.fulfilled, function (state, _ref634) {
9831
- var payload = _ref634.payload;
10810
+ builder.addCase(getVehicletype.fulfilled, function (state, _ref694) {
10811
+ var payload = _ref694.payload;
9832
10812
  state.vehicletype = payload;
9833
10813
  });
9834
- builder.addCase(getVehicletypeAll.fulfilled, function (state, _ref635) {
9835
- var payload = _ref635.payload;
10814
+ builder.addCase(getVehicletypeAll.fulfilled, function (state, _ref695) {
10815
+ var payload = _ref695.payload;
9836
10816
  state.vehicletypeAll = payload;
9837
10817
  });
9838
- builder.addCase(getVrc.fulfilled, function (state, _ref636) {
9839
- var payload = _ref636.payload;
10818
+ builder.addCase(getVrc.fulfilled, function (state, _ref696) {
10819
+ var payload = _ref696.payload;
9840
10820
  state.vrc = payload;
9841
10821
  });
9842
- builder.addCase(getVrcAll.fulfilled, function (state, _ref637) {
9843
- var payload = _ref637.payload;
10822
+ builder.addCase(getVrcAll.fulfilled, function (state, _ref697) {
10823
+ var payload = _ref697.payload;
9844
10824
  state.vrcAll = payload;
9845
10825
  });
9846
- builder.addCase(getAcademicdegrees.fulfilled, function (state, _ref638) {
9847
- var payload = _ref638.payload;
10826
+ builder.addCase(getAcademicdegrees.fulfilled, function (state, _ref698) {
10827
+ var payload = _ref698.payload;
9848
10828
  state.academicdegrees = payload;
9849
10829
  });
9850
- builder.addCase(getAcademicdegreesAll.fulfilled, function (state, _ref639) {
9851
- var payload = _ref639.payload;
10830
+ builder.addCase(getAcademicdegreesAll.fulfilled, function (state, _ref699) {
10831
+ var payload = _ref699.payload;
9852
10832
  state.academicdegreesAll = payload;
9853
10833
  });
9854
- builder.addCase(getDisabilitystatuses.fulfilled, function (state, _ref640) {
9855
- var payload = _ref640.payload;
10834
+ builder.addCase(getDisabilitystatuses.fulfilled, function (state, _ref700) {
10835
+ var payload = _ref700.payload;
9856
10836
  state.disabilitystatuses = payload;
9857
10837
  });
9858
- builder.addCase(getDisabilitystatusesAll.fulfilled, function (state, _ref641) {
9859
- var payload = _ref641.payload;
10838
+ builder.addCase(getDisabilitystatusesAll.fulfilled, function (state, _ref701) {
10839
+ var payload = _ref701.payload;
9860
10840
  state.disabilitystatusesAll = payload;
9861
10841
  });
9862
- builder.addCase(getHonorarytitles.fulfilled, function (state, _ref642) {
9863
- var payload = _ref642.payload;
10842
+ builder.addCase(getHonorarytitles.fulfilled, function (state, _ref702) {
10843
+ var payload = _ref702.payload;
9864
10844
  state.honorarytitles = payload;
9865
10845
  });
9866
- builder.addCase(getHonorarytitlesAll.fulfilled, function (state, _ref643) {
9867
- var payload = _ref643.payload;
10846
+ builder.addCase(getHonorarytitlesAll.fulfilled, function (state, _ref703) {
10847
+ var payload = _ref703.payload;
9868
10848
  state.honorarytitlesAll = payload;
9869
10849
  });
9870
- builder.addCase(getMilitarystaffs.fulfilled, function (state, _ref644) {
9871
- var payload = _ref644.payload;
10850
+ builder.addCase(getMilitarystaffs.fulfilled, function (state, _ref704) {
10851
+ var payload = _ref704.payload;
9872
10852
  state.militaryStaffs = payload;
9873
10853
  });
9874
- builder.addCase(getMilitarystaffsAll.fulfilled, function (state, _ref645) {
9875
- var payload = _ref645.payload;
10854
+ builder.addCase(getMilitarystaffsAll.fulfilled, function (state, _ref705) {
10855
+ var payload = _ref705.payload;
9876
10856
  state.militaryStaffsAll = payload;
9877
10857
  });
9878
- builder.addCase(getMilitarycategories.fulfilled, function (state, _ref646) {
9879
- var payload = _ref646.payload;
10858
+ builder.addCase(getMilitarycategories.fulfilled, function (state, _ref706) {
10859
+ var payload = _ref706.payload;
9880
10860
  state.militaryCategories = payload;
9881
10861
  });
9882
- builder.addCase(getMilitarycategoriesAll.fulfilled, function (state, _ref647) {
9883
- var payload = _ref647.payload;
10862
+ builder.addCase(getMilitarycategoriesAll.fulfilled, function (state, _ref707) {
10863
+ var payload = _ref707.payload;
9884
10864
  state.militaryCategoriesAll = payload;
9885
10865
  });
9886
- builder.addCase(getMilitaryranks.fulfilled, function (state, _ref648) {
9887
- var payload = _ref648.payload;
10866
+ builder.addCase(getMilitaryranks.fulfilled, function (state, _ref708) {
10867
+ var payload = _ref708.payload;
9888
10868
  state.militaryranks = payload;
9889
10869
  });
9890
- builder.addCase(getMilitaryranksAll.fulfilled, function (state, _ref649) {
9891
- var payload = _ref649.payload;
10870
+ builder.addCase(getMilitaryranksAll.fulfilled, function (state, _ref709) {
10871
+ var payload = _ref709.payload;
9892
10872
  state.militaryranksAll = payload;
9893
10873
  });
9894
- builder.addCase(getMilitarygroups.fulfilled, function (state, _ref650) {
9895
- var payload = _ref650.payload;
10874
+ builder.addCase(getMilitarygroups.fulfilled, function (state, _ref710) {
10875
+ var payload = _ref710.payload;
9896
10876
  state.militarygroups = payload;
9897
10877
  });
9898
- builder.addCase(getMilitarygroupsAll.fulfilled, function (state, _ref651) {
9899
- var payload = _ref651.payload;
10878
+ builder.addCase(getMilitarygroupsAll.fulfilled, function (state, _ref711) {
10879
+ var payload = _ref711.payload;
9900
10880
  state.militarygroupsAll = payload;
9901
10881
  });
9902
- builder.addCase(getGeneralstructurestatuses.fulfilled, function (state, _ref652) {
9903
- var payload = _ref652.payload;
10882
+ builder.addCase(getGeneralstructurestatuses.fulfilled, function (state, _ref712) {
10883
+ var payload = _ref712.payload;
9904
10884
  state.generalstructurestatuses = payload;
9905
10885
  });
9906
- builder.addCase(getGeneralstructurestatusesAll.fulfilled, function (state, _ref653) {
9907
- var payload = _ref653.payload;
10886
+ builder.addCase(getGeneralstructurestatusesAll.fulfilled, function (state, _ref713) {
10887
+ var payload = _ref713.payload;
9908
10888
  state.generalstructurestatusesAll = payload;
9909
10889
  });
9910
- builder.addCase(getWorkschedules.fulfilled, function (state, _ref654) {
9911
- var payload = _ref654.payload;
10890
+ builder.addCase(getWorkschedules.fulfilled, function (state, _ref714) {
10891
+ var payload = _ref714.payload;
9912
10892
  state.workschedules = payload;
9913
10893
  });
9914
- builder.addCase(getWorkschedulesAll.fulfilled, function (state, _ref655) {
9915
- var payload = _ref655.payload;
10894
+ builder.addCase(getWorkschedulesAll.fulfilled, function (state, _ref715) {
10895
+ var payload = _ref715.payload;
9916
10896
  state.workschedulesAll = payload;
9917
10897
  });
9918
- builder.addCase(getSpecializations.fulfilled, function (state, _ref656) {
9919
- var payload = _ref656.payload;
10898
+ builder.addCase(getSpecializations.fulfilled, function (state, _ref716) {
10899
+ var payload = _ref716.payload;
9920
10900
  state.specializations = payload;
9921
10901
  });
9922
- builder.addCase(getSpecializationsAll.fulfilled, function (state, _ref657) {
9923
- var payload = _ref657.payload;
10902
+ builder.addCase(getSpecializationsAll.fulfilled, function (state, _ref717) {
10903
+ var payload = _ref717.payload;
9924
10904
  state.specializationsAll = payload;
9925
10905
  });
9926
- builder.addCase(getWarparticipants.fulfilled, function (state, _ref658) {
9927
- var payload = _ref658.payload;
10906
+ builder.addCase(getWarparticipants.fulfilled, function (state, _ref718) {
10907
+ var payload = _ref718.payload;
9928
10908
  state.warparticipants = payload;
9929
10909
  });
9930
- builder.addCase(getWarparticipantsAll.fulfilled, function (state, _ref659) {
9931
- var payload = _ref659.payload;
10910
+ builder.addCase(getWarparticipantsAll.fulfilled, function (state, _ref719) {
10911
+ var payload = _ref719.payload;
9932
10912
  state.warparticipantsAll = payload;
9933
10913
  });
9934
- builder.addCase(getGeneralstructuretypes.fulfilled, function (state, _ref660) {
9935
- var payload = _ref660.payload;
10914
+ builder.addCase(getGeneralstructuretypes.fulfilled, function (state, _ref720) {
10915
+ var payload = _ref720.payload;
9936
10916
  state.generalstructuretypes = payload;
9937
10917
  });
9938
- builder.addCase(getGeneralstructuretypesAll.fulfilled, function (state, _ref661) {
9939
- var payload = _ref661.payload;
10918
+ builder.addCase(getGeneralstructuretypesAll.fulfilled, function (state, _ref721) {
10919
+ var payload = _ref721.payload;
9940
10920
  state.generalstructuretypesAll = payload;
9941
10921
  });
9942
- builder.addCase(getEducationinstitutions.fulfilled, function (state, _ref662) {
9943
- var payload = _ref662.payload;
10922
+ builder.addCase(getEducationinstitutions.fulfilled, function (state, _ref722) {
10923
+ var payload = _ref722.payload;
9944
10924
  state.educationinstitutions = payload;
9945
10925
  });
9946
- builder.addCase(getEducationinstitutionsAll.fulfilled, function (state, _ref663) {
9947
- var payload = _ref663.payload;
10926
+ builder.addCase(getEducationinstitutionsAll.fulfilled, function (state, _ref723) {
10927
+ var payload = _ref723.payload;
9948
10928
  state.educationinstitutionsAll = payload;
9949
10929
  });
9950
- builder.addCase(getEducationpayments.fulfilled, function (state, _ref664) {
9951
- var payload = _ref664.payload;
10930
+ builder.addCase(getEducationpayments.fulfilled, function (state, _ref724) {
10931
+ var payload = _ref724.payload;
9952
10932
  state.educationPayments = payload;
9953
10933
  });
9954
- builder.addCase(getEducationpaymentsAll.fulfilled, function (state, _ref665) {
9955
- var payload = _ref665.payload;
10934
+ builder.addCase(getEducationpaymentsAll.fulfilled, function (state, _ref725) {
10935
+ var payload = _ref725.payload;
9956
10936
  state.educationPaymentsAll = payload;
9957
10937
  });
9958
- builder.addCase(getEducationlevels.fulfilled, function (state, _ref666) {
9959
- var payload = _ref666.payload;
10938
+ builder.addCase(getEducationlevels.fulfilled, function (state, _ref726) {
10939
+ var payload = _ref726.payload;
9960
10940
  state.educationlevels = payload;
9961
10941
  });
9962
- builder.addCase(getEducationlevelsAll.fulfilled, function (state, _ref667) {
9963
- var payload = _ref667.payload;
10942
+ builder.addCase(getEducationlevelsAll.fulfilled, function (state, _ref727) {
10943
+ var payload = _ref727.payload;
9964
10944
  state.educationlevelsAll = payload;
9965
10945
  });
9966
- builder.addCase(getReprimandtypes.fulfilled, function (state, _ref668) {
9967
- var payload = _ref668.payload;
10946
+ builder.addCase(getReprimandtypes.fulfilled, function (state, _ref728) {
10947
+ var payload = _ref728.payload;
9968
10948
  state.reprimandTypes = payload;
9969
10949
  });
9970
- builder.addCase(getReprimandtypesAll.fulfilled, function (state, _ref669) {
9971
- var payload = _ref669.payload;
10950
+ builder.addCase(getReprimandtypesAll.fulfilled, function (state, _ref729) {
10951
+ var payload = _ref729.payload;
9972
10952
  state.reprimandTypesAll = payload;
9973
10953
  });
9974
- builder.addCase(getSpecialdays.fulfilled, function (state, _ref670) {
9975
- var payload = _ref670.payload;
10954
+ builder.addCase(getSpecialdays.fulfilled, function (state, _ref730) {
10955
+ var payload = _ref730.payload;
9976
10956
  state.specialdays = payload;
9977
10957
  });
9978
- builder.addCase(getSpecialdaysAll.fulfilled, function (state, _ref671) {
9979
- var payload = _ref671.payload;
10958
+ builder.addCase(getSpecialdaysAll.fulfilled, function (state, _ref731) {
10959
+ var payload = _ref731.payload;
9980
10960
  state.specialdaysAll = payload;
9981
10961
  });
9982
- builder.addCase(getCategories.fulfilled, function (state, _ref672) {
9983
- var payload = _ref672.payload;
10962
+ builder.addCase(getCategories.fulfilled, function (state, _ref732) {
10963
+ var payload = _ref732.payload;
9984
10964
  state.categories = payload;
9985
10965
  });
9986
- builder.addCase(getCategoriesAll.fulfilled, function (state, _ref673) {
9987
- var payload = _ref673.payload;
10966
+ builder.addCase(getCategoriesAll.fulfilled, function (state, _ref733) {
10967
+ var payload = _ref733.payload;
9988
10968
  state.categoriesAll = payload;
9989
10969
  });
9990
- builder.addCase(getRegions.fulfilled, function (state, _ref674) {
9991
- var payload = _ref674.payload;
10970
+ builder.addCase(getRegions.fulfilled, function (state, _ref734) {
10971
+ var payload = _ref734.payload;
9992
10972
  state.regions = payload;
9993
10973
  });
9994
- builder.addCase(getRegionsAll.fulfilled, function (state, _ref675) {
9995
- var payload = _ref675.payload;
10974
+ builder.addCase(getRegionsAll.fulfilled, function (state, _ref735) {
10975
+ var payload = _ref735.payload;
9996
10976
  state.regionsAll = payload;
9997
10977
  });
9998
- builder.addCase(getRegionsChildren.fulfilled, function (state, _ref676) {
9999
- var payload = _ref676.payload;
10978
+ builder.addCase(getRegionsChildren.fulfilled, function (state, _ref736) {
10979
+ var payload = _ref736.payload;
10000
10980
  state.regionChildren = payload;
10001
10981
  });
10002
- builder.addCase(getAreas.fulfilled, function (state, _ref677) {
10003
- var payload = _ref677.payload;
10982
+ builder.addCase(getAreas.fulfilled, function (state, _ref737) {
10983
+ var payload = _ref737.payload;
10004
10984
  state.areas = payload;
10005
10985
  });
10006
- builder.addCase(getAreasAll.fulfilled, function (state, _ref678) {
10007
- var payload = _ref678.payload;
10986
+ builder.addCase(getAreasAll.fulfilled, function (state, _ref738) {
10987
+ var payload = _ref738.payload;
10008
10988
  state.areasAll = payload;
10009
10989
  });
10010
- builder.addCase(getCompanies.fulfilled, function (state, _ref679) {
10011
- var payload = _ref679.payload;
10990
+ builder.addCase(getCompanies.fulfilled, function (state, _ref739) {
10991
+ var payload = _ref739.payload;
10012
10992
  state.companies = payload;
10013
10993
  });
10014
- builder.addCase(getCompaniesAll.fulfilled, function (state, _ref680) {
10015
- var payload = _ref680.payload;
10994
+ builder.addCase(getCompaniesAll.fulfilled, function (state, _ref740) {
10995
+ var payload = _ref740.payload;
10016
10996
  state.companiesAll = payload;
10017
10997
  });
10018
- builder.addCase(getPositions.fulfilled, function (state, _ref681) {
10019
- var payload = _ref681.payload;
10998
+ builder.addCase(getPositions.fulfilled, function (state, _ref741) {
10999
+ var payload = _ref741.payload;
10020
11000
  state.positions = payload;
10021
11001
  });
10022
- builder.addCase(getPositionsAll.fulfilled, function (state, _ref682) {
10023
- var payload = _ref682.payload;
11002
+ builder.addCase(getPositionsAll.fulfilled, function (state, _ref742) {
11003
+ var payload = _ref742.payload;
10024
11004
  state.positionsAll = payload;
10025
11005
  });
10026
- builder.addCase(getHalls.fulfilled, function (state, _ref683) {
10027
- var payload = _ref683.payload;
11006
+ builder.addCase(getHalls.fulfilled, function (state, _ref743) {
11007
+ var payload = _ref743.payload;
10028
11008
  state.halls = payload;
10029
11009
  });
10030
- builder.addCase(getHallsAll.fulfilled, function (state, _ref684) {
10031
- var payload = _ref684.payload;
11010
+ builder.addCase(getHallsAll.fulfilled, function (state, _ref744) {
11011
+ var payload = _ref744.payload;
10032
11012
  state.hallsAll = payload;
10033
11013
  });
10034
- builder.addCase(getDrivingcategories.fulfilled, function (state, _ref685) {
10035
- var payload = _ref685.payload;
10036
- state.drivingcategories = payload;
11014
+ builder.addCase(getEmployeeConfigurations.fulfilled, function (state, _ref745) {
11015
+ var payload = _ref745.payload;
11016
+ state.employeeConfigurations = payload;
10037
11017
  });
10038
- builder.addCase(getDrivingcategoriesAll.fulfilled, function (state, _ref686) {
10039
- var payload = _ref686.payload;
10040
- state.drivingcategoriesAll = payload;
11018
+ builder.addCase(getEmployeeConfigurationsAll.fulfilled, function (state, _ref746) {
11019
+ var payload = _ref746.payload;
11020
+ state.employeeConfigurationsAll = payload;
11021
+ });
11022
+ builder.addCase(getContragenttypes.fulfilled, function (state, _ref747) {
11023
+ var payload = _ref747.payload;
11024
+ state.contragenttypes = payload;
11025
+ });
11026
+ builder.addCase(getContragenttypesAll.fulfilled, function (state, _ref748) {
11027
+ var payload = _ref748.payload;
11028
+ state.contragenttypesAll = payload;
11029
+ });
11030
+ builder.addCase(getContracttypes.fulfilled, function (state, _ref749) {
11031
+ var payload = _ref749.payload;
11032
+ state.contracttypes = payload;
11033
+ });
11034
+ builder.addCase(getContracttypesAll.fulfilled, function (state, _ref750) {
11035
+ var payload = _ref750.payload;
11036
+ state.contracttypesAll = payload;
11037
+ });
11038
+ builder.addCase(getContractcurrencies.fulfilled, function (state, _ref751) {
11039
+ var payload = _ref751.payload;
11040
+ state.contractcurrencies = payload;
11041
+ });
11042
+ builder.addCase(getContractcurrenciesAll.fulfilled, function (state, _ref752) {
11043
+ var payload = _ref752.payload;
11044
+ state.contractcurrenciesAll = payload;
11045
+ });
11046
+ builder.addCase(getOrders.fulfilled, function (state, _ref753) {
11047
+ var payload = _ref753.payload;
11048
+ state.orders = payload;
11049
+ });
11050
+ builder.addCase(getOrdersAll.fulfilled, function (state, _ref754) {
11051
+ var payload = _ref754.payload;
11052
+ state.ordersAll = payload;
10041
11053
  });
10042
11054
  }
10043
11055
  });