ws-voice-infinity-global-module 0.9.84 → 0.9.85

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/lib/components.d.ts +5 -1
  2. package/lib/module/actions/attachmentsActions.js +1 -1
  3. package/lib/module/actions/complaintExternal.js +1 -1
  4. package/lib/module/actions/complaintSettingsActions.js +1 -1
  5. package/lib/module/actions/complaintSubjectsSetActions.js +1 -1
  6. package/lib/module/actions/geoActions.js +1 -1
  7. package/lib/module/actions/informationalMessagesActions.js +1 -1
  8. package/lib/module/actions/meetingActions.js +1 -1
  9. package/lib/module/actions/messageStationInternalActions.js +1 -1
  10. package/lib/module/actions/municipalityActions.js +1 -1
  11. package/lib/module/actions/oktmoActions.js +1 -1
  12. package/lib/module/actions/organizationActions.js +1 -1
  13. package/lib/module/actions/organizationRequestActions.js +1 -1
  14. package/lib/module/actions/pollListActions.js +1 -1
  15. package/lib/module/actions/resultObjectsActions.js +1 -1
  16. package/lib/module/actions/routingActions.js +1 -1
  17. package/lib/module/actions/subjectsCategories.js +1 -1
  18. package/lib/module/actions/subscriptionActions.js +1 -1
  19. package/lib/module/actions/systemSettingsActions.js +1 -1
  20. package/lib/module/actions/userExternal.js +1 -1
  21. package/lib/module/actions/userSettingsActions.js +1 -1
  22. package/lib/module/actions/votingEvaluationActions.js +1 -1
  23. package/lib/module/actions/votingParticipantActions.js +1 -1
  24. package/lib/module/components/accordionUserSteps/accordionUserSteps.js +1 -1
  25. package/lib/module/components/actionPanel/actionPanel.js +1 -1
  26. package/lib/module/components/attachmentsListView/attachmentsListViewComponent.js +1 -1
  27. package/lib/module/components/authModal/authModal.js +1 -1
  28. package/lib/module/components/authSteps/authStepsComponent.js +1 -1
  29. package/lib/module/components/authSteps/steps/loginLogin/loginLoginComponent.js +1 -1
  30. package/lib/module/components/authSteps/steps/loginPassword/loginPasswordComponent.js +1 -1
  31. package/lib/module/components/authSteps/steps/recoveryCode/recoveryCodeComponent.js +1 -1
  32. package/lib/module/components/authSteps/steps/recoveryNewPassword/recoveryNewPasswordComponent.js +1 -1
  33. package/lib/module/components/authSteps/steps/registrationPassword/registrationPasswordComponent.js +1 -1
  34. package/lib/module/components/baseInput/baseInput.js +1 -1
  35. package/lib/module/components/baseTSComponent.js +1 -1
  36. package/lib/module/components/baseTSContainer.js +1 -1
  37. package/lib/module/components/beforeAfter/beforeAfter.js +1 -1
  38. package/lib/module/components/beforeAfterSlide/beforeAfterMinSlide.js +1 -1
  39. package/lib/module/components/beforeAfterSlide/beforeAfterSlide.js +1 -1
  40. package/lib/module/components/businessModeSelector/businessModeSelector.js +1 -1
  41. package/lib/module/components/calendarMonthView/calendarMonthViewComponent.js +1 -1
  42. package/lib/module/components/checkAuthWrap/checkAuthWrapComponent.js +1 -1
  43. package/lib/module/components/checkView/checkViewComponent.js +1 -1
  44. package/lib/module/components/dateRangeSelect/dateRangeSelect.js +1 -1
  45. package/lib/module/components/dateSelect/dateSelect.js +1 -1
  46. package/lib/module/components/dynamicImport/dynamicImportComponent.js +1 -1
  47. package/lib/module/components/dynamicTemplateImport/dynamicTemplateImportComponent.js +1 -1
  48. package/lib/module/components/emptyState/emptyStateComponent.js +1 -1
  49. package/lib/module/components/footer/footer.js +1 -1
  50. package/lib/module/components/hlsPlayer/hlsPlayer.js +1 -1
  51. package/lib/module/components/hotTopicsList/hotTopicsList.js +1 -1
  52. package/lib/module/components/indexHtmlConfig/indexHtmlConfigComponent.js +1 -1
  53. package/lib/module/components/informationPlate/informationPlateComponent.js +1 -1
  54. package/lib/module/components/kamBallBanner/kamBallBanner.js +1 -1
  55. package/lib/module/components/lastSolvedComplaints/lastSolvedComplaints.js +1 -1
  56. package/lib/module/components/mainPageHeader/mainPageHeader.js +1 -1
  57. package/lib/module/components/mainPageSubHeader/mainPageSubHeader.js +1 -1
  58. package/lib/module/components/mapComponent/map.js +1 -1
  59. package/lib/module/components/modals/dateRangeSelectModal/dateRangeSelectModal.js +1 -1
  60. package/lib/module/components/modals/dateSelectModal/dateSelectModal.js +1 -1
  61. package/lib/module/components/modals/selectCategoryModal/selectCategoryModal.js +1 -1
  62. package/lib/module/components/modals/selectDistrictModal/selectDistrictModal.js +1 -1
  63. package/lib/module/components/onlineReceptionWidget/onlineReceptionWidget.js +1 -1
  64. package/lib/module/components/parallax/parallax.js +1 -1
  65. package/lib/module/components/ratingDynamicLineChart/ratingDynamicLineChartComponent.js +1 -1
  66. package/lib/module/components/selectTemplateFolder/selectTemplateFolderComponent.js +1 -1
  67. package/lib/module/components/sliderSwitchComponent/sliderSwitchComponent.js +1 -1
  68. package/lib/module/components/subscriptionView/subscriptionViewComponent.js +1 -1
  69. package/lib/module/components/topNavInfinity/topNavInfinityComponent.js +1 -1
  70. package/lib/module/components/topNavMainPage/topNavMainPageComponent.js +1 -1
  71. package/lib/module/components/topSubjectsList/topSubjectsList.js +1 -1
  72. package/lib/module/components/userAvatar/userAvatar.js +1 -1
  73. package/lib/module/components/userSteps/userSteps.js +1 -1
  74. package/lib/module/components/voteCountBarChart/voteCountBarChartComponent.js +1 -1
  75. package/lib/module/components/wsReactInfinityCheckbox/wsReactInfinityCheckboxComponent.js +1 -1
  76. package/lib/module/services/templateService.js +1 -1
  77. package/package.json +1 -1
@@ -565,7 +565,11 @@ interface HlsPlayerProps {
565
565
  declare class HlsPlayer extends React.Component<HlsPlayerProps, any> {
566
566
  }
567
567
 
568
- declare class KamBallBanner extends React.Component<any, any> {
568
+ interface KamBallBannerProps {
569
+ description?: string;
570
+ }
571
+
572
+ declare class KamBallBanner extends React.Component<KamBallBannerProps, any> {
569
573
  }
570
574
 
571
575
  export {
@@ -1 +1 @@
1
- "use strict";function _typeof(t){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var n,o=_getPrototypeOf(t);if(e){var c=_getPrototypeOf(this).constructor;n=Reflect.construct(o,arguments,c)}else n=o.apply(this,arguments);return _possibleConstructorReturn(this,n)}}function _possibleConstructorReturn(t,e){return!e||"object"!==_typeof(e)&&"function"!=typeof e?_assertThisInitialized(t):e}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function getAllInfo(t){return AttachmentsActions.API_RESOURCE("cs-service/containers/allInfo",_wsReactBaseComponents.WsReactBaseService.GET_METHOD,{ids:t},{},!0).then(function(t){return{items:t.items.map(function(t){return new _fileContainer.FileContainer(t)}),totalCount:t.totalCount}})}function createAttachment(t,e,n,o,c){var r=new FormData;r.append("data",t,t.name),o&&r.append("description",o),c&&r.append("author",c);var a={cancelToken:n,headers:{"content-type":"multipart/form-data"},onUploadProgress:e?e:null};return AttachmentsActions.API_RESOURCE("content-upload-service/upload",_wsReactBaseComponents.WsReactBaseService.POST_METHOD,r,a,!0).then(function(t){return new _fileContainer.FileContainer(t)})}function getAllContainers(){return AttachmentsActions.API_RESOURCE("cs-service/containers/list",_wsReactBaseComponents.WsReactBaseService.GET_METHOD).then(function(t){return{items:t.items.map(function(t){return new _fileContainer.FileContainer(t)}),totalCount:t.totalCount}})}function downloadAttachment(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=_authServices.AuthService.getUserInfo(),o="".concat(AttachmentsActions.DEFAULT_URL,"cs-service/containers/").concat(t).concat(n?"?access_token=".concat(n.access_token):"");e&&(o="".concat(o).concat(n?"&":"?","format=").concat(e));var c=document.createElement("A");c.href=o,c.download="",document.body.appendChild(c),c.click(),document.body.removeChild(c)}function copyContainer(t){return AttachmentsActions.API_RESOURCE("cs-service/containers/".concat(t,"/copy"),_wsReactBaseComponents.WsReactBaseService.POST_METHOD).then(function(t){return new _fileContainer.FileContainer(t)})}function deleteContainer(t){return AttachmentsActions.API_RESOURCE("cs-service/containers/".concat(t,"/delete"),_wsReactBaseComponents.WsReactBaseService.POST_METHOD).then(function(t){return new _fileContainer.FileContainer(t)})}function getContainerInfo(t){return AttachmentsActions.API_RESOURCE("cs-service/containers/".concat(t,"/info"),_wsReactBaseComponents.WsReactBaseService.GET_METHOD).then(function(t){return new _fileContainer.FileContainer(t)})}function getSrcAttachment(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,c=new XMLHttpRequest;c.onload=function(){var o=new FileReader;o.onloadend=function(){var c=o&&o.result&&"string"==typeof o.result?o.result:"";n(c.substr(0,c.indexOf(":")+1)+t+c.substr(c.indexOf(";"),c.length-1),e)},o.readAsDataURL(c.response)};var r=_authServices.AuthService.getUserInfo(),a="".concat(AttachmentsActions.DEFAULT_URL,"cs-service/containers/").concat(e).concat(r?"?access_token=".concat(r.access_token):"");o&&(a="".concat(a).concat(r?"&":"?","format=").concat(o)),c.open("GET","".concat(a)),c.responseType="blob",c.send()}function getLinkAttachment(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=_authServices.AuthService.getUserInfo(),o="".concat(AttachmentsActions.DEFAULT_URL,"cs-service/containers/").concat(t).concat(n?"?access_token=".concat(n.access_token):"");return e&&(o="".concat(o).concat(n?"&":"?","format=").concat(e)),o}function downloadBinary(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n="TEST.xls",o=new Blob([t.data],{type:t.headers["content-type"]}),c=window.URL.createObjectURL(o),r=window.document.createElement("a"),a=e?e:t.headers["content-disposition"]?t.headers["content-disposition"].split(";")[1]:n;return window.navigator.msSaveOrOpenBlob?void window.navigator.msSaveOrOpenBlob(o,a):(r.setAttribute("style","display: none"),r.setAttribute("href",c),r.setAttribute("download",a),document.body.appendChild(r),r.click(),void document.body.removeChild(r))}function getLinkCompressAttachment(t,e){var n="".concat(AttachmentsActions.DEFAULT_URL,"cs-service/containers/").concat(t,"/download/format-or-original");return e&&(n="".concat(n,"?format=").concat(e)),n}function downloadCompressAttachment(t,e){return AttachmentsActions.API_RESOURCE("cs-service/containers/".concat(t,"/download/format-or-original?format=").concat(e),_wsReactBaseComponents.WsReactBaseService.POST_METHOD)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.getAllInfo=getAllInfo,exports.createAttachment=createAttachment,exports.getAllContainers=getAllContainers,exports.downloadAttachment=downloadAttachment,exports.copyContainer=copyContainer,exports.deleteContainer=deleteContainer,exports.getContainerInfo=getContainerInfo,exports.getSrcAttachment=getSrcAttachment,exports.getLinkAttachment=getLinkAttachment,exports.downloadBinary=downloadBinary,exports.getLinkCompressAttachment=getLinkCompressAttachment,exports.downloadCompressAttachment=downloadCompressAttachment,exports.AttachmentsActions=void 0;var _wsReactBaseComponents=require("ws-react-base-components"),_globalConfig=require("../config/globalConfig"),_fileContainer=require("../models/fileContainer"),_authServices=require("../services/authServices"),_baseActions=require("./baseActions"),AttachmentsActions=function(t){function e(){return _classCallCheck(this,e),n.apply(this,arguments)}_inherits(e,t);var n=_createSuper(e);return e}(_baseActions.BaseActions);exports.AttachmentsActions=AttachmentsActions,AttachmentsActions.DEFAULT_URL="".concat(_globalConfig.globalConfig.api,"/");
1
+ "use strict";function _typeof(t){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var n,o=_getPrototypeOf(t);if(e){var c=_getPrototypeOf(this).constructor;n=Reflect.construct(o,arguments,c)}else n=o.apply(this,arguments);return _possibleConstructorReturn(this,n)}}function _possibleConstructorReturn(t,e){if(e&&("object"===_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t)}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function getAllInfo(t){return AttachmentsActions.API_RESOURCE("cs-service/containers/allInfo",_wsReactBaseComponents.WsReactBaseService.GET_METHOD,{ids:t},{},!0).then(function(t){return{items:t.items.map(function(t){return new _fileContainer.FileContainer(t)}),totalCount:t.totalCount}})}function createAttachment(t,e,n,o,c){var r=new FormData;r.append("data",t,t.name),o&&r.append("description",o),c&&r.append("author",c);var a={cancelToken:n,headers:{"content-type":"multipart/form-data"},onUploadProgress:e?e:null};return AttachmentsActions.API_RESOURCE("content-upload-service/upload",_wsReactBaseComponents.WsReactBaseService.POST_METHOD,r,a,!0).then(function(t){return new _fileContainer.FileContainer(t)})}function getAllContainers(){return AttachmentsActions.API_RESOURCE("cs-service/containers/list",_wsReactBaseComponents.WsReactBaseService.GET_METHOD).then(function(t){return{items:t.items.map(function(t){return new _fileContainer.FileContainer(t)}),totalCount:t.totalCount}})}function downloadAttachment(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=_authServices.AuthService.getUserInfo(),o="".concat(AttachmentsActions.DEFAULT_URL,"cs-service/containers/").concat(t).concat(n?"?access_token=".concat(n.access_token):"");e&&(o="".concat(o).concat(n?"&":"?","format=").concat(e));var c=document.createElement("A");c.href=o,c.download="",document.body.appendChild(c),c.click(),document.body.removeChild(c)}function copyContainer(t){return AttachmentsActions.API_RESOURCE("cs-service/containers/".concat(t,"/copy"),_wsReactBaseComponents.WsReactBaseService.POST_METHOD).then(function(t){return new _fileContainer.FileContainer(t)})}function deleteContainer(t){return AttachmentsActions.API_RESOURCE("cs-service/containers/".concat(t,"/delete"),_wsReactBaseComponents.WsReactBaseService.POST_METHOD).then(function(t){return new _fileContainer.FileContainer(t)})}function getContainerInfo(t){return AttachmentsActions.API_RESOURCE("cs-service/containers/".concat(t,"/info"),_wsReactBaseComponents.WsReactBaseService.GET_METHOD).then(function(t){return new _fileContainer.FileContainer(t)})}function getSrcAttachment(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,c=new XMLHttpRequest;c.onload=function(){var o=new FileReader;o.onloadend=function(){var c=o&&o.result&&"string"==typeof o.result?o.result:"";n(c.substr(0,c.indexOf(":")+1)+t+c.substr(c.indexOf(";"),c.length-1),e)},o.readAsDataURL(c.response)};var r=_authServices.AuthService.getUserInfo(),a="".concat(AttachmentsActions.DEFAULT_URL,"cs-service/containers/").concat(e).concat(r?"?access_token=".concat(r.access_token):"");o&&(a="".concat(a).concat(r?"&":"?","format=").concat(o)),c.open("GET","".concat(a)),c.responseType="blob",c.send()}function getLinkAttachment(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=_authServices.AuthService.getUserInfo(),o="".concat(AttachmentsActions.DEFAULT_URL,"cs-service/containers/").concat(t).concat(n?"?access_token=".concat(n.access_token):"");return e&&(o="".concat(o).concat(n?"&":"?","format=").concat(e)),o}function downloadBinary(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n="TEST.xls",o=new Blob([t.data],{type:t.headers["content-type"]}),c=window.URL.createObjectURL(o),r=window.document.createElement("a"),a=e?e:t.headers["content-disposition"]?t.headers["content-disposition"].split(";")[1]:n;return window.navigator.msSaveOrOpenBlob?void window.navigator.msSaveOrOpenBlob(o,a):(r.setAttribute("style","display: none"),r.setAttribute("href",c),r.setAttribute("download",a),document.body.appendChild(r),r.click(),void document.body.removeChild(r))}function getLinkCompressAttachment(t,e){var n="".concat(AttachmentsActions.DEFAULT_URL,"cs-service/containers/").concat(t,"/download/format-or-original");return e&&(n="".concat(n,"?format=").concat(e)),n}function downloadCompressAttachment(t,e){return AttachmentsActions.API_RESOURCE("cs-service/containers/".concat(t,"/download/format-or-original?format=").concat(e),_wsReactBaseComponents.WsReactBaseService.POST_METHOD)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.getAllInfo=getAllInfo,exports.createAttachment=createAttachment,exports.getAllContainers=getAllContainers,exports.downloadAttachment=downloadAttachment,exports.copyContainer=copyContainer,exports.deleteContainer=deleteContainer,exports.getContainerInfo=getContainerInfo,exports.getSrcAttachment=getSrcAttachment,exports.getLinkAttachment=getLinkAttachment,exports.downloadBinary=downloadBinary,exports.getLinkCompressAttachment=getLinkCompressAttachment,exports.downloadCompressAttachment=downloadCompressAttachment,exports.AttachmentsActions=void 0;var _wsReactBaseComponents=require("ws-react-base-components"),_globalConfig=require("../config/globalConfig"),_fileContainer=require("../models/fileContainer"),_authServices=require("../services/authServices"),_baseActions=require("./baseActions"),AttachmentsActions=function(t){function e(){return _classCallCheck(this,e),n.apply(this,arguments)}_inherits(e,t);var n=_createSuper(e);return e}(_baseActions.BaseActions);exports.AttachmentsActions=AttachmentsActions,AttachmentsActions.DEFAULT_URL="".concat(_globalConfig.globalConfig.api,"/");
@@ -1 +1 @@
1
- "use strict";function _typeof(e){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _interopRequireDefault(e){return e&&e.__esModule?e:{"default":e}}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _createSuper(e){var t=_isNativeReflectConstruct();return function(){var n,i=_getPrototypeOf(e);if(t){var o=_getPrototypeOf(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return _possibleConstructorReturn(this,n)}}function _possibleConstructorReturn(e,t){return!t||"object"!==_typeof(t)&&"function"!=typeof t?_assertThisInitialized(e):t}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function metrics(){return ComplaintExternalActions.API_RESOURCE("metrics",_wsReactBaseComponents.WsReactBaseService.GET_METHOD).then(function(e){return _typeService.TypeService.checkElement(_metric.MetricType,_metric.Metric,ComplaintExternalActions.ENTITY_METRIC,e)})}function subjectMetrics(e){return ComplaintExternalActions.API_RESOURCE("metrics-by-subject/".concat(e),_wsReactBaseComponents.WsReactBaseService.GET_METHOD).then(function(e){return _typeService.TypeService.checkElement(_subjectMetrics.SubjectMetricsType,_subjectMetrics.SubjectMetrics,ComplaintExternalActions.ENTITY_METRIC,e)})}function getItem(e){return ComplaintExternalActions.API_RESOURCE(e,_wsReactBaseComponents.WsReactBaseService.GET_METHOD).then(function(e){return _typeService.TypeService.checkElement(_complaint.ComplaintType,_complaint.Complaint,ComplaintExternalActions.ENTITY_CLASS,e)})}function list(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign({pageNo:0,pageSize:_globalConfig.globalConfig.pageSize,orderBy:"submitDate",orderByDirection:_sortDirection.SORT_DIRECTION.DESC},e),n={pageNo:t.pageNo,pageSize:t.pageSize,orderBy:t.orderBy,orderByDirection:t.orderByDirection};return delete t.pageNo,delete t.pageSize,ComplaintExternalActions.API_RESOURCE("list",_wsReactBaseComponents.WsReactBaseService.POST_METHOD,t,{params:n}).then(function(e){return{items:e.items.map(function(e){return _typeService.TypeService.checkElement(_complaintList.ComplaintListType,_complaintList.ComplaintList,ComplaintExternalActions.ENTITY_LIST_CLASS,e)}).filter(function(e){return!!e}),totalCount:e.totalCount}})}function listByIds(e){return ComplaintExternalActions.API_RESOURCE("list/by-ids",_wsReactBaseComponents.WsReactBaseService.GET_METHOD,{ids:e}).then(function(e){return e.map(function(e){return _typeService.TypeService.checkElement(_complaintList.ComplaintListType,_complaintList.ComplaintList,ComplaintExternalActions.ENTITY_LIST_CLASS,e)}).filter(function(e){return!!e})})}function executionList(e){return ComplaintExternalActions.API_RESOURCE("".concat(e,"/executions/list"),_wsReactBaseComponents.WsReactBaseService.GET_METHOD,{orderByDirection:_sortDirection.SORT_DIRECTION.DESC}).then(function(e){return{items:e.items.map(function(e){return _typeService.TypeService.checkElement(_execution.ExecutionType,_execution.Execution,ComplaintExternalActions.ENTITY_EXECUTION,e)}).filter(function(e){return!!e}),totalCount:e.totalCount}})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.metrics=metrics,exports.subjectMetrics=subjectMetrics,exports.getItem=getItem,exports.list=list,exports.listByIds=listByIds,exports.executionList=executionList,exports.ComplaintExternalActions=void 0;var _wsReactBaseComponents=require("ws-react-base-components"),_globalConfig=require("../config/globalConfig"),_serviceName=_interopRequireDefault(require("../enums/serviceName")),_sortDirection=require("../enums/sortDirection"),_complaint=require("../models/complaint"),_complaintList=require("../models/complaintList"),_execution=require("../models/execution"),_metric=require("../models/metric"),_subjectMetrics=require("../models/subjectMetrics"),_typeService=require("../services/typeService"),_utilService=require("../services/utilService"),_baseActions=require("./baseActions"),ComplaintExternalActions=function(e){function t(){return _classCallCheck(this,t),n.apply(this,arguments)}_inherits(t,e);var n=_createSuper(t);return t}(_baseActions.BaseActions);exports.ComplaintExternalActions=ComplaintExternalActions,ComplaintExternalActions.DEFAULT_URL="".concat(_globalConfig.globalConfig.api,"/").concat(_utilService.UtilService.getServiceName(_serviceName["default"].COMPLAINT),"/external/complaints/"),ComplaintExternalActions.ENTITY_CLASS="Complaint",ComplaintExternalActions.ENTITY_LIST_CLASS="ComplaintList",ComplaintExternalActions.ENTITY_EXECUTION="Execution",ComplaintExternalActions.ENTITY_METRIC="Metric";
1
+ "use strict";function _typeof(e){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _interopRequireDefault(e){return e&&e.__esModule?e:{"default":e}}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _createSuper(e){var t=_isNativeReflectConstruct();return function(){var n,i=_getPrototypeOf(e);if(t){var r=_getPrototypeOf(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return _possibleConstructorReturn(this,n)}}function _possibleConstructorReturn(e,t){if(t&&("object"===_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function metrics(){return ComplaintExternalActions.API_RESOURCE("metrics",_wsReactBaseComponents.WsReactBaseService.GET_METHOD).then(function(e){return _typeService.TypeService.checkElement(_metric.MetricType,_metric.Metric,ComplaintExternalActions.ENTITY_METRIC,e)})}function subjectMetrics(e){return ComplaintExternalActions.API_RESOURCE("metrics-by-subject/".concat(e),_wsReactBaseComponents.WsReactBaseService.GET_METHOD).then(function(e){return _typeService.TypeService.checkElement(_subjectMetrics.SubjectMetricsType,_subjectMetrics.SubjectMetrics,ComplaintExternalActions.ENTITY_METRIC,e)})}function getItem(e){return ComplaintExternalActions.API_RESOURCE(e,_wsReactBaseComponents.WsReactBaseService.GET_METHOD).then(function(e){return _typeService.TypeService.checkElement(_complaint.ComplaintType,_complaint.Complaint,ComplaintExternalActions.ENTITY_CLASS,e)})}function list(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign({pageNo:0,pageSize:_globalConfig.globalConfig.pageSize,orderBy:"submitDate",orderByDirection:_sortDirection.SORT_DIRECTION.DESC},e),n={pageNo:t.pageNo,pageSize:t.pageSize,orderBy:t.orderBy,orderByDirection:t.orderByDirection};return delete t.pageNo,delete t.pageSize,ComplaintExternalActions.API_RESOURCE("list",_wsReactBaseComponents.WsReactBaseService.POST_METHOD,t,{params:n}).then(function(e){return{items:e.items.map(function(e){return _typeService.TypeService.checkElement(_complaintList.ComplaintListType,_complaintList.ComplaintList,ComplaintExternalActions.ENTITY_LIST_CLASS,e)}).filter(function(e){return!!e}),totalCount:e.totalCount}})}function listByIds(e){return ComplaintExternalActions.API_RESOURCE("list/by-ids",_wsReactBaseComponents.WsReactBaseService.GET_METHOD,{ids:e}).then(function(e){return e.map(function(e){return _typeService.TypeService.checkElement(_complaintList.ComplaintListType,_complaintList.ComplaintList,ComplaintExternalActions.ENTITY_LIST_CLASS,e)}).filter(function(e){return!!e})})}function executionList(e){return ComplaintExternalActions.API_RESOURCE("".concat(e,"/executions/list"),_wsReactBaseComponents.WsReactBaseService.GET_METHOD,{orderByDirection:_sortDirection.SORT_DIRECTION.DESC}).then(function(e){return{items:e.items.map(function(e){return _typeService.TypeService.checkElement(_execution.ExecutionType,_execution.Execution,ComplaintExternalActions.ENTITY_EXECUTION,e)}).filter(function(e){return!!e}),totalCount:e.totalCount}})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.metrics=metrics,exports.subjectMetrics=subjectMetrics,exports.getItem=getItem,exports.list=list,exports.listByIds=listByIds,exports.executionList=executionList,exports.ComplaintExternalActions=void 0;var _wsReactBaseComponents=require("ws-react-base-components"),_globalConfig=require("../config/globalConfig"),_serviceName=_interopRequireDefault(require("../enums/serviceName")),_sortDirection=require("../enums/sortDirection"),_complaint=require("../models/complaint"),_complaintList=require("../models/complaintList"),_execution=require("../models/execution"),_metric=require("../models/metric"),_subjectMetrics=require("../models/subjectMetrics"),_typeService=require("../services/typeService"),_utilService=require("../services/utilService"),_baseActions=require("./baseActions"),ComplaintExternalActions=function(e){function t(){return _classCallCheck(this,t),n.apply(this,arguments)}_inherits(t,e);var n=_createSuper(t);return t}(_baseActions.BaseActions);exports.ComplaintExternalActions=ComplaintExternalActions,ComplaintExternalActions.DEFAULT_URL="".concat(_globalConfig.globalConfig.api,"/").concat(_utilService.UtilService.getServiceName(_serviceName["default"].COMPLAINT),"/external/complaints/"),ComplaintExternalActions.ENTITY_CLASS="Complaint",ComplaintExternalActions.ENTITY_LIST_CLASS="ComplaintList",ComplaintExternalActions.ENTITY_EXECUTION="Execution",ComplaintExternalActions.ENTITY_METRIC="Metric";
@@ -1 +1 @@
1
- "use strict";function _typeof(t){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _interopRequireDefault(t){return t&&t.__esModule?t:{"default":t}}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var n,o=_getPrototypeOf(t);if(e){var r=_getPrototypeOf(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return _possibleConstructorReturn(this,n)}}function _possibleConstructorReturn(t,e){return!e||"object"!==_typeof(e)&&"function"!=typeof e?_assertThisInitialized(t):e}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function getSettings(){return ComplaintSettingsActions.API_RESOURCE("defaults").then(function(t){return new _complaintSettings.ComplaintSettings(t)})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.getSettings=getSettings,exports.ComplaintSettingsActions=void 0;var _globalConfig=require("../config/globalConfig"),_serviceName=_interopRequireDefault(require("../enums/serviceName")),_complaintSettings=require("../models/complaintSettings"),_utilService=require("../services/utilService"),_baseActions=require("./baseActions"),ComplaintSettingsActions=function(t){function e(){return _classCallCheck(this,e),n.apply(this,arguments)}_inherits(e,t);var n=_createSuper(e);return e}(_baseActions.BaseActions);exports.ComplaintSettingsActions=ComplaintSettingsActions,ComplaintSettingsActions.DEFAULT_URL="".concat(_globalConfig.globalConfig.api,"/").concat(_utilService.UtilService.getServiceName(_serviceName["default"].COMPLAINT),"/internal/"),ComplaintSettingsActions.ENTITY_CLASS="ComplaintSettings";
1
+ "use strict";function _typeof(t){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _interopRequireDefault(t){return t&&t.__esModule?t:{"default":t}}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var n,o=_getPrototypeOf(t);if(e){var r=_getPrototypeOf(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return _possibleConstructorReturn(this,n)}}function _possibleConstructorReturn(t,e){if(e&&("object"===_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t)}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function getSettings(){return ComplaintSettingsActions.API_RESOURCE("defaults").then(function(t){return new _complaintSettings.ComplaintSettings(t)})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.getSettings=getSettings,exports.ComplaintSettingsActions=void 0;var _globalConfig=require("../config/globalConfig"),_serviceName=_interopRequireDefault(require("../enums/serviceName")),_complaintSettings=require("../models/complaintSettings"),_utilService=require("../services/utilService"),_baseActions=require("./baseActions"),ComplaintSettingsActions=function(t){function e(){return _classCallCheck(this,e),n.apply(this,arguments)}_inherits(e,t);var n=_createSuper(e);return e}(_baseActions.BaseActions);exports.ComplaintSettingsActions=ComplaintSettingsActions,ComplaintSettingsActions.DEFAULT_URL="".concat(_globalConfig.globalConfig.api,"/").concat(_utilService.UtilService.getServiceName(_serviceName["default"].COMPLAINT),"/internal/"),ComplaintSettingsActions.ENTITY_CLASS="ComplaintSettings";
@@ -1 +1 @@
1
- "use strict";function _typeof(t){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var n,o=_getPrototypeOf(t);if(e){var r=_getPrototypeOf(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return _possibleConstructorReturn(this,n)}}function _possibleConstructorReturn(t,e){return!e||"object"!==_typeof(e)&&"function"!=typeof e?_assertThisInitialized(t):e}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function externalGetById(t){return ComplaintSubjectsSetActions.MODEL_API_RESOURCE({model:_complaintSubjectSet.ComplaintSubjectSet,modelType:_complaintSubjectSet.ComplaintSubjectSetType,url:"external/complaint-subject-set/".concat(t)})}function internalGetById(t){return ComplaintSubjectsSetActions.MODEL_API_RESOURCE({model:_complaintSubjectSetInternal.ComplaintSubjectSetInternal,modelType:_complaintSubjectSetInternal.ComplaintSubjectSetInternalType,url:"internal/complaint-subject-set/".concat(t)})}function internalList(){return ComplaintSubjectsSetActions.ARRAY_API_RESOURCE({model:_complaintSubjectSetListItem.ComplaintSubjectSetListItem,modelType:_complaintSubjectSetListItem.ComplaintSubjectSetListItemType,url:"internal/complaint-subject-set/list"})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.externalGetById=externalGetById,exports.internalGetById=internalGetById,exports.internalList=internalList,exports.ComplaintSubjectsSetActions=void 0;var _globalConfig=require("../config/globalConfig"),_complaintSubjectSet=require("../models/complaintSubjectSet"),_complaintSubjectSetInternal=require("../models/complaintSubjectSetInternal"),_complaintSubjectSetListItem=require("../models/complaintSubjectSetListItem"),_baseActions=require("./baseActions"),ComplaintSubjectsSetActions=function(t){function e(){return _classCallCheck(this,e),n.apply(this,arguments)}_inherits(e,t);var n=_createSuper(e);return e}(_baseActions.BaseActions);exports.ComplaintSubjectsSetActions=ComplaintSubjectsSetActions,ComplaintSubjectsSetActions.DEFAULT_URL="".concat(_globalConfig.globalConfig.api,"/complaint-service/");
1
+ "use strict";function _typeof(t){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var n,o=_getPrototypeOf(t);if(e){var r=_getPrototypeOf(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return _possibleConstructorReturn(this,n)}}function _possibleConstructorReturn(t,e){if(e&&("object"===_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t)}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function externalGetById(t){return ComplaintSubjectsSetActions.MODEL_API_RESOURCE({model:_complaintSubjectSet.ComplaintSubjectSet,modelType:_complaintSubjectSet.ComplaintSubjectSetType,url:"external/complaint-subject-set/".concat(t)})}function internalGetById(t){return ComplaintSubjectsSetActions.MODEL_API_RESOURCE({model:_complaintSubjectSetInternal.ComplaintSubjectSetInternal,modelType:_complaintSubjectSetInternal.ComplaintSubjectSetInternalType,url:"internal/complaint-subject-set/".concat(t)})}function internalList(){return ComplaintSubjectsSetActions.ARRAY_API_RESOURCE({model:_complaintSubjectSetListItem.ComplaintSubjectSetListItem,modelType:_complaintSubjectSetListItem.ComplaintSubjectSetListItemType,url:"internal/complaint-subject-set/list"})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.externalGetById=externalGetById,exports.internalGetById=internalGetById,exports.internalList=internalList,exports.ComplaintSubjectsSetActions=void 0;var _globalConfig=require("../config/globalConfig"),_complaintSubjectSet=require("../models/complaintSubjectSet"),_complaintSubjectSetInternal=require("../models/complaintSubjectSetInternal"),_complaintSubjectSetListItem=require("../models/complaintSubjectSetListItem"),_baseActions=require("./baseActions"),ComplaintSubjectsSetActions=function(t){function e(){return _classCallCheck(this,e),n.apply(this,arguments)}_inherits(e,t);var n=_createSuper(e);return e}(_baseActions.BaseActions);exports.ComplaintSubjectsSetActions=ComplaintSubjectsSetActions,ComplaintSubjectsSetActions.DEFAULT_URL="".concat(_globalConfig.globalConfig.api,"/complaint-service/");
@@ -1 +1 @@
1
- "use strict";function _typeof(t){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var o,n=_getPrototypeOf(t);if(e){var r=_getPrototypeOf(this).constructor;o=Reflect.construct(n,arguments,r)}else o=n.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,e){return!e||"object"!==_typeof(e)&&"function"!=typeof e?_assertThisInitialized(t):e}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function byCoordinates(t,e){return GeoDataActions.API_RESOURCE("by-coordinates",_wsReactBaseComponents.WsReactBaseService.GET_METHOD,{latitude:t,longitude:e}).then(function(t){return t.map(function(t){return _typeService.TypeService.checkElement(_geoData.GeoDataType,_geoData.GeoData,GeoDataActions.ENTITY_CLASS,t)}).filter(function(t){return!!t})})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.byCoordinates=byCoordinates,exports.GeoDataActions=void 0;var _wsReactBaseComponents=require("ws-react-base-components"),_baseActions=require("../actions/baseActions"),_globalConfig=require("../config/globalConfig"),_geoData=require("../models/geoData"),_typeService=require("../services/typeService"),GeoDataActions=function(t){function e(){return _classCallCheck(this,e),o.apply(this,arguments)}_inherits(e,t);var o=_createSuper(e);return e}(_baseActions.BaseActions);exports.GeoDataActions=GeoDataActions,GeoDataActions.DEFAULT_URL="".concat(_globalConfig.globalConfig.api,"/geo-service/geo-data/"),GeoDataActions.ENTITY_CLASS="GeoData";
1
+ "use strict";function _typeof(t){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var o,r=_getPrototypeOf(t);if(e){var n=_getPrototypeOf(this).constructor;o=Reflect.construct(r,arguments,n)}else o=r.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,e){if(e&&("object"===_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t)}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function byCoordinates(t,e){return GeoDataActions.API_RESOURCE("by-coordinates",_wsReactBaseComponents.WsReactBaseService.GET_METHOD,{latitude:t,longitude:e}).then(function(t){return t.map(function(t){return _typeService.TypeService.checkElement(_geoData.GeoDataType,_geoData.GeoData,GeoDataActions.ENTITY_CLASS,t)}).filter(function(t){return!!t})})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.byCoordinates=byCoordinates,exports.GeoDataActions=void 0;var _wsReactBaseComponents=require("ws-react-base-components"),_baseActions=require("../actions/baseActions"),_globalConfig=require("../config/globalConfig"),_geoData=require("../models/geoData"),_typeService=require("../services/typeService"),GeoDataActions=function(t){function e(){return _classCallCheck(this,e),o.apply(this,arguments)}_inherits(e,t);var o=_createSuper(e);return e}(_baseActions.BaseActions);exports.GeoDataActions=GeoDataActions,GeoDataActions.DEFAULT_URL="".concat(_globalConfig.globalConfig.api,"/geo-service/geo-data/"),GeoDataActions.ENTITY_CLASS="GeoData";
@@ -1 +1 @@
1
- "use strict";function _typeof(t){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var o,n=_getPrototypeOf(t);if(e){var r=_getPrototypeOf(this).constructor;o=Reflect.construct(n,arguments,r)}else o=n.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,e){return!e||"object"!==_typeof(e)&&"function"!=typeof e?_assertThisInitialized(t):e}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function unreadCount(){return InformationalMessagesActions.API_RESOURCE("unread-count",_wsReactBaseComponents.WsReactBaseService.GET_METHOD)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.unreadCount=unreadCount,exports.InformationalMessagesActions=void 0;var _wsReactBaseComponents=require("ws-react-base-components"),_globalConfig=require("../config/globalConfig"),_baseActions=require("./baseActions"),InformationalMessagesActions=function(t){function e(){return _classCallCheck(this,e),o.apply(this,arguments)}_inherits(e,t);var o=_createSuper(e);return e}(_baseActions.BaseActions);exports.InformationalMessagesActions=InformationalMessagesActions,InformationalMessagesActions.DEFAULT_URL="".concat(_globalConfig.globalConfig.api,"/inbox-service/messages/"),InformationalMessagesActions.ENTITY_CLASS="MessagesUnreadCount";
1
+ "use strict";function _typeof(t){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var o,n=_getPrototypeOf(t);if(e){var r=_getPrototypeOf(this).constructor;o=Reflect.construct(n,arguments,r)}else o=n.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,e){if(e&&("object"===_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t)}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function unreadCount(){return InformationalMessagesActions.API_RESOURCE("unread-count",_wsReactBaseComponents.WsReactBaseService.GET_METHOD)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.unreadCount=unreadCount,exports.InformationalMessagesActions=void 0;var _wsReactBaseComponents=require("ws-react-base-components"),_globalConfig=require("../config/globalConfig"),_baseActions=require("./baseActions"),InformationalMessagesActions=function(t){function e(){return _classCallCheck(this,e),o.apply(this,arguments)}_inherits(e,t);var o=_createSuper(e);return e}(_baseActions.BaseActions);exports.InformationalMessagesActions=InformationalMessagesActions,InformationalMessagesActions.DEFAULT_URL="".concat(_globalConfig.globalConfig.api,"/inbox-service/messages/"),InformationalMessagesActions.ENTITY_CLASS="MessagesUnreadCount";
@@ -1 +1 @@
1
- "use strict";function _typeof(t){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _interopRequireDefault(t){return t&&t.__esModule?t:{"default":t}}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var o,n=_getPrototypeOf(t);if(e){var r=_getPrototypeOf(this).constructor;o=Reflect.construct(n,arguments,r)}else o=n.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,e){return!e||"object"!==_typeof(e)&&"function"!=typeof e?_assertThisInitialized(t):e}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function categoryList(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Object.assign({pageNo:0,pageSize:_globalConfig.globalConfig.pageSize,status:_baseStatus["default"].ACTIVE.value},t);return ComplaintSubjectsActions.API_RESOURCE("subjects-categories/list",_wsReactBaseComponents.WsReactBaseService.GET_METHOD,e).then(function(t){return{items:t.items.map(function(t){return _typeService.TypeService.checkElement(_subjectsCategory.SubjectsCategoryType,_subjectsCategory.SubjectsCategory,ComplaintSubjectsActions.CATEGORY_ENTITY_CLASS,t)}).filter(function(t){return!!t}),totalCount:t.totalCount}})}function subjectsList(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Object.assign({pageNo:0,pageSize:_globalConfig.globalConfig.pageSize,status:_baseStatus["default"].ACTIVE.value},t);return ComplaintSubjectsActions.API_RESOURCE("complaint-subjects/list",_wsReactBaseComponents.WsReactBaseService.GET_METHOD,e).then(function(t){return{items:t.items.map(function(t){return _typeService.TypeService.checkElement(_complaintSubject.ComplaintSubjectType,_complaintSubject.ComplaintSubject,ComplaintSubjectsActions.SUBJECT_ENTITY_CLASS,t)}).filter(function(t){return!!t}),totalCount:t.totalCount}})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.categoryList=categoryList,exports.subjectsList=subjectsList,exports.ComplaintSubjectsActions=void 0;var _wsReactBaseComponents=require("ws-react-base-components"),_globalConfig=require("../config/globalConfig"),_baseStatus=_interopRequireDefault(require("../enums/baseStatus")),_complaintSubject=require("../models/complaintSubject"),_subjectsCategory=require("../models/subjectsCategory"),_typeService=require("../services/typeService"),_baseActions=require("./baseActions"),ComplaintSubjectsActions=function(t){function e(){return _classCallCheck(this,e),o.apply(this,arguments)}_inherits(e,t);var o=_createSuper(e);return e}(_baseActions.BaseActions);exports.ComplaintSubjectsActions=ComplaintSubjectsActions,ComplaintSubjectsActions.DEFAULT_URL="".concat(_globalConfig.globalConfig.api,"/meeting-service/"),ComplaintSubjectsActions.CATEGORY_ENTITY_CLASS="Category",ComplaintSubjectsActions.SUBJECT_ENTITY_CLASS="Subject";
1
+ "use strict";function _typeof(t){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _interopRequireDefault(t){return t&&t.__esModule?t:{"default":t}}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var o,n=_getPrototypeOf(t);if(e){var r=_getPrototypeOf(this).constructor;o=Reflect.construct(n,arguments,r)}else o=n.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,e){if(e&&("object"===_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t)}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function categoryList(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Object.assign({pageNo:0,pageSize:_globalConfig.globalConfig.pageSize,status:_baseStatus["default"].ACTIVE.value},t);return ComplaintSubjectsActions.API_RESOURCE("subjects-categories/list",_wsReactBaseComponents.WsReactBaseService.GET_METHOD,e).then(function(t){return{items:t.items.map(function(t){return _typeService.TypeService.checkElement(_subjectsCategory.SubjectsCategoryType,_subjectsCategory.SubjectsCategory,ComplaintSubjectsActions.CATEGORY_ENTITY_CLASS,t)}).filter(function(t){return!!t}),totalCount:t.totalCount}})}function subjectsList(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Object.assign({pageNo:0,pageSize:_globalConfig.globalConfig.pageSize,status:_baseStatus["default"].ACTIVE.value},t);return ComplaintSubjectsActions.API_RESOURCE("complaint-subjects/list",_wsReactBaseComponents.WsReactBaseService.GET_METHOD,e).then(function(t){return{items:t.items.map(function(t){return _typeService.TypeService.checkElement(_complaintSubject.ComplaintSubjectType,_complaintSubject.ComplaintSubject,ComplaintSubjectsActions.SUBJECT_ENTITY_CLASS,t)}).filter(function(t){return!!t}),totalCount:t.totalCount}})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.categoryList=categoryList,exports.subjectsList=subjectsList,exports.ComplaintSubjectsActions=void 0;var _wsReactBaseComponents=require("ws-react-base-components"),_globalConfig=require("../config/globalConfig"),_baseStatus=_interopRequireDefault(require("../enums/baseStatus")),_complaintSubject=require("../models/complaintSubject"),_subjectsCategory=require("../models/subjectsCategory"),_typeService=require("../services/typeService"),_baseActions=require("./baseActions"),ComplaintSubjectsActions=function(t){function e(){return _classCallCheck(this,e),o.apply(this,arguments)}_inherits(e,t);var o=_createSuper(e);return e}(_baseActions.BaseActions);exports.ComplaintSubjectsActions=ComplaintSubjectsActions,ComplaintSubjectsActions.DEFAULT_URL="".concat(_globalConfig.globalConfig.api,"/meeting-service/"),ComplaintSubjectsActions.CATEGORY_ENTITY_CLASS="Category",ComplaintSubjectsActions.SUBJECT_ENTITY_CLASS="Subject";
@@ -1 +1 @@
1
- "use strict";function _typeof(t){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var n,o=_getPrototypeOf(t);if(e){var s=_getPrototypeOf(this).constructor;n=Reflect.construct(o,arguments,s)}else n=o.apply(this,arguments);return _possibleConstructorReturn(this,n)}}function _possibleConstructorReturn(t,e){return!e||"object"!==_typeof(e)&&"function"!=typeof e?_assertThisInitialized(t):e}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function listByIds(t){return MessageStationInternalActions.API_RESOURCE("list/by-ids",_wsReactBaseComponents.WsReactBaseService.GET_METHOD,{ids:t}).then(function(t){return{items:t.items.map(function(t){return _typeService.TypeService.checkElement(_messageStation.MessageStationType,_messageStation.MessageStation,MessageStationInternalActions.ENTITY_CLASS,t)}).filter(function(t){return!!t}),totalCount:t.totalCount}})}function list(t){return MessageStationInternalActions.API_RESOURCE("list",_wsReactBaseComponents.WsReactBaseService.GET_METHOD,t).then(function(t){return{items:t.items.map(function(t){return _typeService.TypeService.checkElement(_messageStation.MessageStationType,_messageStation.MessageStation,MessageStationInternalActions.ENTITY_CLASS,t)}).filter(function(t){return!!t}),totalCount:t.totalCount}})}function listAll(t){return MessageStationInternalActions.API_RESOURCE("list/all",_wsReactBaseComponents.WsReactBaseService.GET_METHOD,t).then(function(t){return{items:t.items.map(function(t){return _typeService.TypeService.checkElement(_messageStation.MessageStationType,_messageStation.MessageStation,MessageStationInternalActions.ENTITY_CLASS,t)}).filter(function(t){return!!t}),totalCount:t.totalCount}})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.listByIds=listByIds,exports.list=list,exports.listAll=listAll,exports.MessageStationInternalActions=void 0;var _wsReactBaseComponents=require("ws-react-base-components"),_globalConfig=require("../config/globalConfig"),_messageStation=require("../models/messageStation"),_typeService=require("../services/typeService"),_baseActions=require("./baseActions"),MessageStationInternalActions=function(t){function e(){return _classCallCheck(this,e),n.apply(this,arguments)}_inherits(e,t);var n=_createSuper(e);return e}(_baseActions.BaseActions);exports.MessageStationInternalActions=MessageStationInternalActions,MessageStationInternalActions.DEFAULT_URL="".concat(_globalConfig.globalConfig.api,"/message-station-service/internal/message-stations/"),MessageStationInternalActions.ENTITY_CLASS="Message Station";
1
+ "use strict";function _typeof(t){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var n,o=_getPrototypeOf(t);if(e){var s=_getPrototypeOf(this).constructor;n=Reflect.construct(o,arguments,s)}else n=o.apply(this,arguments);return _possibleConstructorReturn(this,n)}}function _possibleConstructorReturn(t,e){if(e&&("object"===_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t)}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function listByIds(t){return MessageStationInternalActions.API_RESOURCE("list/by-ids",_wsReactBaseComponents.WsReactBaseService.GET_METHOD,{ids:t}).then(function(t){return{items:t.items.map(function(t){return _typeService.TypeService.checkElement(_messageStation.MessageStationType,_messageStation.MessageStation,MessageStationInternalActions.ENTITY_CLASS,t)}).filter(function(t){return!!t}),totalCount:t.totalCount}})}function list(t){return MessageStationInternalActions.API_RESOURCE("list",_wsReactBaseComponents.WsReactBaseService.GET_METHOD,t).then(function(t){return{items:t.items.map(function(t){return _typeService.TypeService.checkElement(_messageStation.MessageStationType,_messageStation.MessageStation,MessageStationInternalActions.ENTITY_CLASS,t)}).filter(function(t){return!!t}),totalCount:t.totalCount}})}function listAll(t){return MessageStationInternalActions.API_RESOURCE("list/all",_wsReactBaseComponents.WsReactBaseService.GET_METHOD,t).then(function(t){return{items:t.items.map(function(t){return _typeService.TypeService.checkElement(_messageStation.MessageStationType,_messageStation.MessageStation,MessageStationInternalActions.ENTITY_CLASS,t)}).filter(function(t){return!!t}),totalCount:t.totalCount}})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.listByIds=listByIds,exports.list=list,exports.listAll=listAll,exports.MessageStationInternalActions=void 0;var _wsReactBaseComponents=require("ws-react-base-components"),_globalConfig=require("../config/globalConfig"),_messageStation=require("../models/messageStation"),_typeService=require("../services/typeService"),_baseActions=require("./baseActions"),MessageStationInternalActions=function(t){function e(){return _classCallCheck(this,e),n.apply(this,arguments)}_inherits(e,t);var n=_createSuper(e);return e}(_baseActions.BaseActions);exports.MessageStationInternalActions=MessageStationInternalActions,MessageStationInternalActions.DEFAULT_URL="".concat(_globalConfig.globalConfig.api,"/message-station-service/internal/message-stations/"),MessageStationInternalActions.ENTITY_CLASS="Message Station";
@@ -1 +1 @@
1
- "use strict";function _typeof(t){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _interopRequireDefault(t){return t&&t.__esModule?t:{"default":t}}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var i,n=_getPrototypeOf(t);if(e){var o=_getPrototypeOf(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return _possibleConstructorReturn(this,i)}}function _possibleConstructorReturn(t,e){return!e||"object"!==_typeof(e)&&"function"!=typeof e?_assertThisInitialized(t):e}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function list(t){var e=Object.assign({pageNo:0,pageSize:_globalConfig.globalConfig.maxPageSize,status:_baseStatus["default"].ACTIVE},t);return MunicipalityActions.API_RESOURCE("list",_wsReactBaseComponents.WsReactBaseService.GET_METHOD,e).then(function(t){return{items:t.items.map(function(t){return _typeService.TypeService.checkElement(_municipality.MunicipalityType,_municipality.Municipality,MunicipalityActions.ENTITY_CLASS,t)}).filter(function(t){return!!t}),totalCount:t.totalCount}})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.list=list,exports.MunicipalityActions=void 0;var _wsReactBaseComponents=require("ws-react-base-components"),_globalConfig=require("../config/globalConfig"),_baseStatus=_interopRequireDefault(require("../enums/baseStatus")),_serviceName=_interopRequireDefault(require("../enums/serviceName")),_municipality=require("../models/municipality"),_typeService=require("../services/typeService"),_utilService=require("../services/utilService"),_baseActions=require("./baseActions"),MunicipalityActions=function(t){function e(){return _classCallCheck(this,e),i.apply(this,arguments)}_inherits(e,t);var i=_createSuper(e);return e}(_baseActions.BaseActions);exports.MunicipalityActions=MunicipalityActions,MunicipalityActions.DEFAULT_URL="".concat(_globalConfig.globalConfig.api,"/").concat(_utilService.UtilService.getServiceName(_serviceName["default"].COMPLAINT),"/municipality/"),MunicipalityActions.ENTITY_CLASS="Municipality";
1
+ "use strict";function _typeof(e){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _interopRequireDefault(e){return e&&e.__esModule?e:{"default":e}}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _createSuper(e){var t=_isNativeReflectConstruct();return function(){var i,n=_getPrototypeOf(e);if(t){var r=_getPrototypeOf(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return _possibleConstructorReturn(this,i)}}function _possibleConstructorReturn(e,t){if(t&&("object"===_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function list(e){var t=Object.assign({pageNo:0,pageSize:_globalConfig.globalConfig.maxPageSize,status:_baseStatus["default"].ACTIVE},e);return MunicipalityActions.API_RESOURCE("list",_wsReactBaseComponents.WsReactBaseService.GET_METHOD,t).then(function(e){return{items:e.items.map(function(e){return _typeService.TypeService.checkElement(_municipality.MunicipalityType,_municipality.Municipality,MunicipalityActions.ENTITY_CLASS,e)}).filter(function(e){return!!e}),totalCount:e.totalCount}})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.list=list,exports.MunicipalityActions=void 0;var _wsReactBaseComponents=require("ws-react-base-components"),_globalConfig=require("../config/globalConfig"),_baseStatus=_interopRequireDefault(require("../enums/baseStatus")),_serviceName=_interopRequireDefault(require("../enums/serviceName")),_municipality=require("../models/municipality"),_typeService=require("../services/typeService"),_utilService=require("../services/utilService"),_baseActions=require("./baseActions"),MunicipalityActions=function(e){function t(){return _classCallCheck(this,t),i.apply(this,arguments)}_inherits(t,e);var i=_createSuper(t);return t}(_baseActions.BaseActions);exports.MunicipalityActions=MunicipalityActions,MunicipalityActions.DEFAULT_URL="".concat(_globalConfig.globalConfig.api,"/").concat(_utilService.UtilService.getServiceName(_serviceName["default"].COMPLAINT),"/municipality/"),MunicipalityActions.ENTITY_CLASS="Municipality";
@@ -1 +1 @@
1
- "use strict";function _typeof(t){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var o,n=_getPrototypeOf(t);if(e){var r=_getPrototypeOf(this).constructor;o=Reflect.construct(n,arguments,r)}else o=n.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,e){return!e||"object"!==_typeof(e)&&"function"!=typeof e?_assertThisInitialized(t):e}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function listPage(t){var e=Object.assign({pageNo:0,pageSize:_globalConfig.globalConfig.pageSize},t);return OktmoActions.API_RESOURCE("list/page",_wsReactBaseComponents.WsReactBaseService.GET_METHOD,e).then(function(t){return{items:t.items.map(function(t){return _typeService.TypeService.checkElement(_oktmo.OktmoType,_oktmo.Oktmo,OktmoActions.ENTITY_CLASS,t)}).filter(function(t){return!!t}),totalCount:t.totalCount}})}function favoriteList(){return OktmoActions.API_RESOURCE("favourites/list",_wsReactBaseComponents.WsReactBaseService.GET_METHOD).then(function(t){return t.map(function(t){return _typeService.TypeService.checkElement(_oktmo.OktmoType,_oktmo.Oktmo,OktmoActions.ENTITY_CLASS,t.oktmo)}).filter(function(t){return!!t})})}function municipalityList(t){var e={localityFullName:t,pageNo:0,pageSize:_globalConfig.globalConfig.maxPageSize,code:_globalConfig.globalConfig.oktmoCode};return OktmoActions.API_RESOURCE("municipalities/list/page",_wsReactBaseComponents.WsReactBaseService.GET_METHOD,e).then(function(t){return{items:t.items.map(function(t){return _typeService.TypeService.checkElement(_oktmo.OktmoType,_oktmo.Oktmo,OktmoActions.ENTITY_CLASS,t)}).filter(function(t){return!!t}),totalCount:t.totalCount}})}function listByIds(t){return OktmoActions.API_RESOURCE("list/by-ids",_wsReactBaseComponents.WsReactBaseService.GET_METHOD,{ids:t}).then(function(t){return{items:t.items.map(function(t){return _typeService.TypeService.checkElement(_oktmo.OktmoType,_oktmo.Oktmo,OktmoActions.ENTITY_CLASS,t)}).filter(function(t){return!!t}),totalCount:t.totalCount}})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.listPage=listPage,exports.favoriteList=favoriteList,exports.municipalityList=municipalityList,exports.listByIds=listByIds,exports.OktmoActions=void 0;var _wsReactBaseComponents=require("ws-react-base-components"),_globalConfig=require("../config/globalConfig"),_oktmo=require("../models/oktmo"),_typeService=require("../services/typeService"),_baseActions=require("./baseActions"),OktmoActions=function(t){function e(){return _classCallCheck(this,e),o.apply(this,arguments)}_inherits(e,t);var o=_createSuper(e);return e}(_baseActions.BaseActions);exports.OktmoActions=OktmoActions,OktmoActions.DEFAULT_URL="".concat(_globalConfig.globalConfig.api,"/oktmo-service/oktmos/"),OktmoActions.ENTITY_CLASS="OKTMO";
1
+ "use strict";function _typeof(t){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var o,n=_getPrototypeOf(t);if(e){var r=_getPrototypeOf(this).constructor;o=Reflect.construct(n,arguments,r)}else o=n.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,e){if(e&&("object"===_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t)}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function listPage(t){var e=Object.assign({pageNo:0,pageSize:_globalConfig.globalConfig.pageSize},t);return OktmoActions.API_RESOURCE("list/page",_wsReactBaseComponents.WsReactBaseService.GET_METHOD,e).then(function(t){return{items:t.items.map(function(t){return _typeService.TypeService.checkElement(_oktmo.OktmoType,_oktmo.Oktmo,OktmoActions.ENTITY_CLASS,t)}).filter(function(t){return!!t}),totalCount:t.totalCount}})}function favoriteList(){return OktmoActions.API_RESOURCE("favourites/list",_wsReactBaseComponents.WsReactBaseService.GET_METHOD).then(function(t){return t.map(function(t){return _typeService.TypeService.checkElement(_oktmo.OktmoType,_oktmo.Oktmo,OktmoActions.ENTITY_CLASS,t.oktmo)}).filter(function(t){return!!t})})}function municipalityList(t){var e={localityFullName:t,pageNo:0,pageSize:_globalConfig.globalConfig.maxPageSize,code:_globalConfig.globalConfig.oktmoCode};return OktmoActions.API_RESOURCE("municipalities/list/page",_wsReactBaseComponents.WsReactBaseService.GET_METHOD,e).then(function(t){return{items:t.items.map(function(t){return _typeService.TypeService.checkElement(_oktmo.OktmoType,_oktmo.Oktmo,OktmoActions.ENTITY_CLASS,t)}).filter(function(t){return!!t}),totalCount:t.totalCount}})}function listByIds(t){return OktmoActions.API_RESOURCE("list/by-ids",_wsReactBaseComponents.WsReactBaseService.GET_METHOD,{ids:t}).then(function(t){return{items:t.items.map(function(t){return _typeService.TypeService.checkElement(_oktmo.OktmoType,_oktmo.Oktmo,OktmoActions.ENTITY_CLASS,t)}).filter(function(t){return!!t}),totalCount:t.totalCount}})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.listPage=listPage,exports.favoriteList=favoriteList,exports.municipalityList=municipalityList,exports.listByIds=listByIds,exports.OktmoActions=void 0;var _wsReactBaseComponents=require("ws-react-base-components"),_globalConfig=require("../config/globalConfig"),_oktmo=require("../models/oktmo"),_typeService=require("../services/typeService"),_baseActions=require("./baseActions"),OktmoActions=function(t){function e(){return _classCallCheck(this,e),o.apply(this,arguments)}_inherits(e,t);var o=_createSuper(e);return e}(_baseActions.BaseActions);exports.OktmoActions=OktmoActions,OktmoActions.DEFAULT_URL="".concat(_globalConfig.globalConfig.api,"/oktmo-service/oktmos/"),OktmoActions.ENTITY_CLASS="OKTMO";
@@ -1 +1 @@
1
- "use strict";function _typeof(t){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var n,o=_getPrototypeOf(t);if(e){var r=_getPrototypeOf(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return _possibleConstructorReturn(this,n)}}function _possibleConstructorReturn(t,e){return!e||"object"!==_typeof(e)&&"function"!=typeof e?_assertThisInitialized(t):e}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.OrganizationActions=void 0;var _wsReactBaseComponents=require("ws-react-base-components"),_globalConfig=require("../config/globalConfig"),_organization=require("../models/organization"),_organizationRequest=require("../models/organizationRequest"),_baseActions=require("./baseActions"),OrganizationActions=function(t){function e(){return _classCallCheck(this,e),n.apply(this,arguments)}_inherits(e,t);var n=_createSuper(e);return e}(_baseActions.BaseActions);exports.OrganizationActions=OrganizationActions,OrganizationActions.DEFAULT_URL="".concat(_globalConfig.globalConfig.api,"/legal-person-service/organizations/"),OrganizationActions.getOrganization=function(t){return OrganizationActions.MODEL_API_RESOURCE({url:t,method:_wsReactBaseComponents.WsReactBaseService.GET_METHOD,model:_organization.Organization,modelType:_organization.OrganizationType})},OrganizationActions.getMyOrganizations=function(t){return OrganizationActions.COLLECTION_API_RESOURCE({url:"my-list",queryParams:t,model:_organization.Organization,modelType:_organization.OrganizationType})},OrganizationActions.isCurrentUserHasOrganization=function(){return OrganizationActions.API_RESOURCE("has-in-my").then(function(t){return t.value})},OrganizationActions.updateRequest=function(t,e){return OrganizationActions.MODEL_API_RESOURCE({url:"".concat(t,"/requests/for-update/create"),method:_wsReactBaseComponents.WsReactBaseService.POST_METHOD,bodyParams:e,model:_organizationRequest.OrganizationRequest,modelType:_organizationRequest.OrganizationRequestType})};
1
+ "use strict";function _typeof(t){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var n,o=_getPrototypeOf(t);if(e){var r=_getPrototypeOf(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return _possibleConstructorReturn(this,n)}}function _possibleConstructorReturn(t,e){if(e&&("object"===_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t)}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.OrganizationActions=void 0;var _wsReactBaseComponents=require("ws-react-base-components"),_globalConfig=require("../config/globalConfig"),_organization=require("../models/organization"),_organizationRequest=require("../models/organizationRequest"),_baseActions=require("./baseActions"),OrganizationActions=function(t){function e(){return _classCallCheck(this,e),n.apply(this,arguments)}_inherits(e,t);var n=_createSuper(e);return e}(_baseActions.BaseActions);exports.OrganizationActions=OrganizationActions,OrganizationActions.DEFAULT_URL="".concat(_globalConfig.globalConfig.api,"/legal-person-service/organizations/"),OrganizationActions.getOrganization=function(t){return OrganizationActions.MODEL_API_RESOURCE({url:t,method:_wsReactBaseComponents.WsReactBaseService.GET_METHOD,model:_organization.Organization,modelType:_organization.OrganizationType})},OrganizationActions.getMyOrganizations=function(t){return OrganizationActions.COLLECTION_API_RESOURCE({url:"my-list",queryParams:t,model:_organization.Organization,modelType:_organization.OrganizationType})},OrganizationActions.isCurrentUserHasOrganization=function(){return OrganizationActions.API_RESOURCE("has-in-my").then(function(t){return t.value})},OrganizationActions.updateRequest=function(t,e){return OrganizationActions.MODEL_API_RESOURCE({url:"".concat(t,"/requests/for-update/create"),method:_wsReactBaseComponents.WsReactBaseService.POST_METHOD,bodyParams:e,model:_organizationRequest.OrganizationRequest,modelType:_organizationRequest.OrganizationRequestType})};
@@ -1 +1 @@
1
- "use strict";function _typeof(e){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _createSuper(e){var t=_isNativeReflectConstruct();return function(){var n,o=_getPrototypeOf(e);if(t){var r=_getPrototypeOf(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return _possibleConstructorReturn(this,n)}}function _possibleConstructorReturn(e,t){return!t||"object"!==_typeof(t)&&"function"!=typeof t?_assertThisInitialized(e):t}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.OrganizationRequestActions=void 0;var _wsReactBaseComponents=require("ws-react-base-components"),_globalConfig=require("../config/globalConfig"),_organizationRequest=require("../models/organizationRequest"),_baseActions=require("./baseActions"),OrganizationRequestActions=function(e){function t(){return _classCallCheck(this,t),n.apply(this,arguments)}_inherits(t,e);var n=_createSuper(t);return t}(_baseActions.BaseActions);exports.OrganizationRequestActions=OrganizationRequestActions,OrganizationRequestActions.DEFAULT_URL="".concat(_globalConfig.globalConfig.api,"/legal-person-service/organizations/requests/"),OrganizationRequestActions.getMyOrganizationRequests=function(e){return OrganizationRequestActions.COLLECTION_API_RESOURCE({url:"my-list",queryParams:e,model:_organizationRequest.OrganizationRequest,modelType:_organizationRequest.OrganizationRequestType})},OrganizationRequestActions.createRequest=function(e){return OrganizationRequestActions.MODEL_API_RESOURCE({url:"/for-create/create",method:_wsReactBaseComponents.WsReactBaseService.POST_METHOD,bodyParams:e,model:_organizationRequest.OrganizationRequest,modelType:_organizationRequest.OrganizationRequestType})},OrganizationRequestActions.cancelRequest=function(e){return OrganizationRequestActions.API_RESOURCE("".concat(e,"/cancel"),_wsReactBaseComponents.WsReactBaseService.POST_METHOD)},OrganizationRequestActions.deleteRequest=function(e){return OrganizationRequestActions.API_RESOURCE("".concat(e,"/delete"),_wsReactBaseComponents.WsReactBaseService.POST_METHOD)};
1
+ "use strict";function _typeof(e){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _createSuper(e){var t=_isNativeReflectConstruct();return function(){var o,n=_getPrototypeOf(e);if(t){var r=_getPrototypeOf(this).constructor;o=Reflect.construct(n,arguments,r)}else o=n.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(e,t){if(t&&("object"===_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.OrganizationRequestActions=void 0;var _wsReactBaseComponents=require("ws-react-base-components"),_globalConfig=require("../config/globalConfig"),_organizationRequest=require("../models/organizationRequest"),_baseActions=require("./baseActions"),OrganizationRequestActions=function(e){function t(){return _classCallCheck(this,t),o.apply(this,arguments)}_inherits(t,e);var o=_createSuper(t);return t}(_baseActions.BaseActions);exports.OrganizationRequestActions=OrganizationRequestActions,OrganizationRequestActions.DEFAULT_URL="".concat(_globalConfig.globalConfig.api,"/legal-person-service/organizations/requests/"),OrganizationRequestActions.getMyOrganizationRequests=function(e){return OrganizationRequestActions.COLLECTION_API_RESOURCE({url:"my-list",queryParams:e,model:_organizationRequest.OrganizationRequest,modelType:_organizationRequest.OrganizationRequestType})},OrganizationRequestActions.createRequest=function(e){return OrganizationRequestActions.MODEL_API_RESOURCE({url:"/for-create/create",method:_wsReactBaseComponents.WsReactBaseService.POST_METHOD,bodyParams:e,model:_organizationRequest.OrganizationRequest,modelType:_organizationRequest.OrganizationRequestType})},OrganizationRequestActions.cancelRequest=function(e){return OrganizationRequestActions.API_RESOURCE("".concat(e,"/cancel"),_wsReactBaseComponents.WsReactBaseService.POST_METHOD)},OrganizationRequestActions.deleteRequest=function(e){return OrganizationRequestActions.API_RESOURCE("".concat(e,"/delete"),_wsReactBaseComponents.WsReactBaseService.POST_METHOD)};
@@ -1 +1 @@
1
- "use strict";function _typeof(t){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var o,r=_getPrototypeOf(t);if(e){var n=_getPrototypeOf(this).constructor;o=Reflect.construct(r,arguments,n)}else o=r.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,e){return!e||"object"!==_typeof(e)&&"function"!=typeof e?_assertThisInitialized(t):e}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function getPollList(t){return PollListActions.COLLECTION_API_RESOURCE({url:"list",queryParams:t,model:_pollListModel.PollList,modelType:_pollListModel.PollListType})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.getPollList=getPollList,exports.PollListActions=void 0;var _globalConfig=require("../config/globalConfig"),_pollListModel=require("../models/pollListModel"),_baseActions=require("./baseActions"),PollListActions=function(t){function e(){return _classCallCheck(this,e),o.apply(this,arguments)}_inherits(e,t);var o=_createSuper(e);return e}(_baseActions.BaseActions);exports.PollListActions=PollListActions,PollListActions.DEFAULT_URL="".concat(_globalConfig.globalConfig.api,"/poll-service/external/polls/");
1
+ "use strict";function _typeof(t){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var o,r=_getPrototypeOf(t);if(e){var n=_getPrototypeOf(this).constructor;o=Reflect.construct(r,arguments,n)}else o=r.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,e){if(e&&("object"===_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t)}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function getPollList(t){return PollListActions.COLLECTION_API_RESOURCE({url:"list",queryParams:t,model:_pollListModel.PollList,modelType:_pollListModel.PollListType})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.getPollList=getPollList,exports.PollListActions=void 0;var _globalConfig=require("../config/globalConfig"),_pollListModel=require("../models/pollListModel"),_baseActions=require("./baseActions"),PollListActions=function(t){function e(){return _classCallCheck(this,e),o.apply(this,arguments)}_inherits(e,t);var o=_createSuper(e);return e}(_baseActions.BaseActions);exports.PollListActions=PollListActions,PollListActions.DEFAULT_URL="".concat(_globalConfig.globalConfig.api,"/poll-service/external/polls/");
@@ -1 +1 @@
1
- "use strict";function _typeof(e){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _createSuper(e){var t=_isNativeReflectConstruct();return function(){var o,r=_getPrototypeOf(e);if(t){var s=_getPrototypeOf(this).constructor;o=Reflect.construct(r,arguments,s)}else o=r.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(e,t){return!t||"object"!==_typeof(t)&&"function"!=typeof t?_assertThisInitialized(e):t}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function mainList(){return ResultObjectsActions.COLLECTION_API_RESOURCE({url:"main-list",model:_resultObject.ResultObject,modelType:_resultObject.ResultObjectType,withoutToast:!0})}function list(e,t){return ResultObjectsActions.COLLECTION_API_RESOURCE({bodyParams:t,queryParams:e,method:_baseService.BaseService.POST_METHOD,model:_resultObject.ResultObject,modelType:_resultObject.ResultObjectType,url:"list",withoutToast:!0})}function searchBySource(e){return ResultObjectsActions.MODEL_API_RESOURCE({bodyParams:e,url:"search-by-source",method:_baseService.BaseService.POST_METHOD,model:_resultMinObject.ResultMinObject,modelType:_resultMinObject.ResultMinObjectType,withoutToast:!0})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.mainList=mainList,exports.list=list,exports.searchBySource=searchBySource,exports.ResultObjectsActions=void 0;var _globalConfig=require("../config/globalConfig"),_resultMinObject=require("../models/resultMinObject"),_resultObject=require("../models/resultObject"),_baseService=require("../services/baseService"),_baseActions=require("./baseActions"),ResultObjectsActions=function(e){function t(){return _classCallCheck(this,t),o.apply(this,arguments)}_inherits(t,e);var o=_createSuper(t);return t}(_baseActions.BaseActions);exports.ResultObjectsActions=ResultObjectsActions,ResultObjectsActions.DEFAULT_URL="".concat(_globalConfig.globalConfig.api,"/before-after-service/result-objects/public/");
1
+ "use strict";function _typeof(e){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _createSuper(e){var t=_isNativeReflectConstruct();return function(){var r,o=_getPrototypeOf(e);if(t){var n=_getPrototypeOf(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return _possibleConstructorReturn(this,r)}}function _possibleConstructorReturn(e,t){if(t&&("object"===_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function mainList(){return ResultObjectsActions.COLLECTION_API_RESOURCE({url:"main-list",model:_resultObject.ResultObject,modelType:_resultObject.ResultObjectType,withoutToast:!0})}function list(e,t){return ResultObjectsActions.COLLECTION_API_RESOURCE({bodyParams:t,queryParams:e,method:_baseService.BaseService.POST_METHOD,model:_resultObject.ResultObject,modelType:_resultObject.ResultObjectType,url:"list",withoutToast:!0})}function searchBySource(e){return ResultObjectsActions.MODEL_API_RESOURCE({bodyParams:e,url:"search-by-source",method:_baseService.BaseService.POST_METHOD,model:_resultMinObject.ResultMinObject,modelType:_resultMinObject.ResultMinObjectType,withoutToast:!0})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.mainList=mainList,exports.list=list,exports.searchBySource=searchBySource,exports.ResultObjectsActions=void 0;var _globalConfig=require("../config/globalConfig"),_resultMinObject=require("../models/resultMinObject"),_resultObject=require("../models/resultObject"),_baseService=require("../services/baseService"),_baseActions=require("./baseActions"),ResultObjectsActions=function(e){function t(){return _classCallCheck(this,t),r.apply(this,arguments)}_inherits(t,e);var r=_createSuper(t);return t}(_baseActions.BaseActions);exports.ResultObjectsActions=ResultObjectsActions,ResultObjectsActions.DEFAULT_URL="".concat(_globalConfig.globalConfig.api,"/before-after-service/result-objects/public/");
@@ -1 +1 @@
1
- "use strict";function _typeof(e){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _interopRequireDefault(e){return e&&e.__esModule?e:{"default":e}}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _createSuper(e){var t=_isNativeReflectConstruct();return function(){var o,r=_getPrototypeOf(e);if(t){var n=_getPrototypeOf(this).constructor;o=Reflect.construct(r,arguments,n)}else o=r.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(e,t){return!t||"object"!==_typeof(t)&&"function"!=typeof t?_assertThisInitialized(e):t}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function executorsByCoords(e,t,o){return RoutingActions.API_RESOURCE("route/get-by-coords",_wsReactBaseComponents.WsReactBaseService.GET_METHOD,{latitude:e,longitude:t,subjectId:o},{},!0).then(function(e){return _typeService.TypeService.checkElement(_executorProjection.ExecutorProjectionType,_executorProjection.ExecutorProjection,RoutingActions.ENTITY_CLASS,e)})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.executorsByCoords=executorsByCoords,exports.RoutingActions=void 0;var _wsReactBaseComponents=require("ws-react-base-components"),_globalConfig=require("../config/globalConfig"),_serviceName=_interopRequireDefault(require("../enums/serviceName")),_executorProjection=require("../models/executorProjection"),_typeService=require("../services/typeService"),_utilService=require("../services/utilService"),_baseActions=require("./baseActions"),RoutingActions=function(e){function t(){return _classCallCheck(this,t),o.apply(this,arguments)}_inherits(t,e);var o=_createSuper(t);return t}(_baseActions.BaseActions);exports.RoutingActions=RoutingActions,RoutingActions.DEFAULT_URL="".concat(_globalConfig.globalConfig.api,"/").concat(_utilService.UtilService.getServiceName(_serviceName["default"].ROUTING),"/"),RoutingActions.ENTITY_CLASS="ExecutorProjection";
1
+ "use strict";function _typeof(e){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _interopRequireDefault(e){return e&&e.__esModule?e:{"default":e}}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _createSuper(e){var t=_isNativeReflectConstruct();return function(){var o,r=_getPrototypeOf(e);if(t){var n=_getPrototypeOf(this).constructor;o=Reflect.construct(r,arguments,n)}else o=r.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(e,t){if(t&&("object"===_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function executorsByCoords(e,t,o){return RoutingActions.API_RESOURCE("route/get-by-coords",_wsReactBaseComponents.WsReactBaseService.GET_METHOD,{latitude:e,longitude:t,subjectId:o},{},!0).then(function(e){return _typeService.TypeService.checkElement(_executorProjection.ExecutorProjectionType,_executorProjection.ExecutorProjection,RoutingActions.ENTITY_CLASS,e)})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.executorsByCoords=executorsByCoords,exports.RoutingActions=void 0;var _wsReactBaseComponents=require("ws-react-base-components"),_globalConfig=require("../config/globalConfig"),_serviceName=_interopRequireDefault(require("../enums/serviceName")),_executorProjection=require("../models/executorProjection"),_typeService=require("../services/typeService"),_utilService=require("../services/utilService"),_baseActions=require("./baseActions"),RoutingActions=function(e){function t(){return _classCallCheck(this,t),o.apply(this,arguments)}_inherits(t,e);var o=_createSuper(t);return t}(_baseActions.BaseActions);exports.RoutingActions=RoutingActions,RoutingActions.DEFAULT_URL="".concat(_globalConfig.globalConfig.api,"/").concat(_utilService.UtilService.getServiceName(_serviceName["default"].ROUTING),"/"),RoutingActions.ENTITY_CLASS="ExecutorProjection";
@@ -1 +1 @@
1
- "use strict";function _typeof(e){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _interopRequireDefault(e){return e&&e.__esModule?e:{"default":e}}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _createSuper(e){var t=_isNativeReflectConstruct();return function(){var o,r=_getPrototypeOf(e);if(t){var n=_getPrototypeOf(this).constructor;o=Reflect.construct(r,arguments,n)}else o=r.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(e,t){return!t||"object"!==_typeof(t)&&"function"!=typeof t?_assertThisInitialized(e):t}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function list(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign({pageNo:0,pageSize:_globalConfig.globalConfig.pageSize,status:_baseStatus["default"].ACTIVE.value},e);return SubjectsCategoriesActions.API_RESOURCE("list",_wsReactBaseComponents.WsReactBaseService.GET_METHOD,t).then(function(e){return{items:e.items.map(function(e){return _typeService.TypeService.checkElement(_subjectsCategory.SubjectsCategoryType,_subjectsCategory.SubjectsCategory,SubjectsCategoriesActions.ENTITY_CLASS,e)}).filter(function(e){return!!e}),totalCount:e.totalCount}})}function getById(e){return SubjectsCategoriesActions.API_RESOURCE(e,_wsReactBaseComponents.WsReactBaseService.GET_METHOD).then(function(e){return _typeService.TypeService.checkElement(_subjectsCategory.SubjectsCategoryType,_subjectsCategory.SubjectsCategory,SubjectsCategoriesActions.ENTITY_CLASS,e)})}function top(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:6,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,o={categoryLimit:e,subjectLimit:t};return SubjectsCategoriesActions.API_RESOURCE("top",_wsReactBaseComponents.WsReactBaseService.GET_METHOD,o).then(function(e){return{items:e.items.map(function(e){return _typeService.TypeService.checkElement(_topSubjectsCategory.TopSubjectsCategoryType,_topSubjectsCategory.TopSubjectsCategory,SubjectsCategoriesActions.ENTITY_CLASS,e)}).filter(function(e){return!!e}),totalCount:e.totalCount}})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.list=list,exports.getById=getById,exports.top=top,exports.SubjectsCategoriesActions=void 0;var _wsReactBaseComponents=require("ws-react-base-components"),_globalConfig=require("../config/globalConfig"),_baseStatus=_interopRequireDefault(require("../enums/baseStatus")),_serviceName=_interopRequireDefault(require("../enums/serviceName")),_subjectsCategory=require("../models/subjectsCategory"),_topSubjectsCategory=require("../models/topSubjectsCategory"),_typeService=require("../services/typeService"),_utilService=require("../services/utilService"),_baseActions=require("./baseActions"),SubjectsCategoriesActions=function(e){function t(){return _classCallCheck(this,t),o.apply(this,arguments)}_inherits(t,e);var o=_createSuper(t);return t}(_baseActions.BaseActions);exports.SubjectsCategoriesActions=SubjectsCategoriesActions,SubjectsCategoriesActions.DEFAULT_URL="".concat(_globalConfig.globalConfig.api,"/").concat(_utilService.UtilService.getServiceName(_serviceName["default"].COMPLAINT),"/subjects-categories/"),SubjectsCategoriesActions.ENTITY_CLASS="Subjects Category";
1
+ "use strict";function _typeof(e){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _interopRequireDefault(e){return e&&e.__esModule?e:{"default":e}}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _createSuper(e){var t=_isNativeReflectConstruct();return function(){var o,r=_getPrototypeOf(e);if(t){var n=_getPrototypeOf(this).constructor;o=Reflect.construct(r,arguments,n)}else o=r.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(e,t){if(t&&("object"===_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function list(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign({pageNo:0,pageSize:_globalConfig.globalConfig.pageSize,status:_baseStatus["default"].ACTIVE.value},e);return SubjectsCategoriesActions.API_RESOURCE("list",_wsReactBaseComponents.WsReactBaseService.GET_METHOD,t).then(function(e){return{items:e.items.map(function(e){return _typeService.TypeService.checkElement(_subjectsCategory.SubjectsCategoryType,_subjectsCategory.SubjectsCategory,SubjectsCategoriesActions.ENTITY_CLASS,e)}).filter(function(e){return!!e}),totalCount:e.totalCount}})}function getById(e){return SubjectsCategoriesActions.API_RESOURCE(e,_wsReactBaseComponents.WsReactBaseService.GET_METHOD).then(function(e){return _typeService.TypeService.checkElement(_subjectsCategory.SubjectsCategoryType,_subjectsCategory.SubjectsCategory,SubjectsCategoriesActions.ENTITY_CLASS,e)})}function top(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:6,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,o={categoryLimit:e,subjectLimit:t};return SubjectsCategoriesActions.API_RESOURCE("top",_wsReactBaseComponents.WsReactBaseService.GET_METHOD,o).then(function(e){return{items:e.items.map(function(e){return _typeService.TypeService.checkElement(_topSubjectsCategory.TopSubjectsCategoryType,_topSubjectsCategory.TopSubjectsCategory,SubjectsCategoriesActions.ENTITY_CLASS,e)}).filter(function(e){return!!e}),totalCount:e.totalCount}})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.list=list,exports.getById=getById,exports.top=top,exports.SubjectsCategoriesActions=void 0;var _wsReactBaseComponents=require("ws-react-base-components"),_globalConfig=require("../config/globalConfig"),_baseStatus=_interopRequireDefault(require("../enums/baseStatus")),_serviceName=_interopRequireDefault(require("../enums/serviceName")),_subjectsCategory=require("../models/subjectsCategory"),_topSubjectsCategory=require("../models/topSubjectsCategory"),_typeService=require("../services/typeService"),_utilService=require("../services/utilService"),_baseActions=require("./baseActions"),SubjectsCategoriesActions=function(e){function t(){return _classCallCheck(this,t),o.apply(this,arguments)}_inherits(t,e);var o=_createSuper(t);return t}(_baseActions.BaseActions);exports.SubjectsCategoriesActions=SubjectsCategoriesActions,SubjectsCategoriesActions.DEFAULT_URL="".concat(_globalConfig.globalConfig.api,"/").concat(_utilService.UtilService.getServiceName(_serviceName["default"].COMPLAINT),"/subjects-categories/"),SubjectsCategoriesActions.ENTITY_CLASS="Subjects Category";
@@ -1 +1 @@
1
- "use strict";function _typeof(t){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var n,o=_getPrototypeOf(t);if(e){var r=_getPrototypeOf(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return _possibleConstructorReturn(this,n)}}function _possibleConstructorReturn(t,e){return!e||"object"!==_typeof(e)&&"function"!=typeof e?_assertThisInitialized(t):e}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function count(t){return SubscriptionActions.API_RESOURCE("list/my",_wsReactBaseComponents.WsReactBaseService.GET_METHOD,{types:t}).then(function(t){return t.map(function(t){return _typeService.TypeService.checkElement(_subscriptionCount.SubscriptionCountType,_subscriptionCount.SubscriptionCount,SubscriptionActions.ENTITY_COUNT_CLASS,t)}).filter(function(t){return!!t})})}function list(t,e){return SubscriptionActions.API_RESOURCE("".concat(t,"/list"),_wsReactBaseComponents.WsReactBaseService.GET_METHOD,{entityIds:e}).then(function(t){return t.map(function(t){return _typeService.TypeService.checkElement(_subscription.SubscriptionType,_subscription.Subscription,SubscriptionActions.ENTITY_CLASS,t)}).filter(function(t){return!!t})})}function listMy(t){return SubscriptionActions.API_RESOURCE("".concat(t,"/list/my"),_wsReactBaseComponents.WsReactBaseService.GET_METHOD).then(function(t){return t.map(function(t){return _typeService.TypeService.checkElement(_subscription.SubscriptionType,_subscription.Subscription,SubscriptionActions.ENTITY_CLASS,t)}).filter(function(t){return!!t})})}function subscribe(t,e){return SubscriptionActions.API_RESOURCE("".concat(t,"/").concat(e,"/subscribe"),_wsReactBaseComponents.WsReactBaseService.POST_METHOD,null,null,!0)}function unsubscribe(t,e){return SubscriptionActions.API_RESOURCE("".concat(t,"/").concat(e,"/unsubscribe"),_wsReactBaseComponents.WsReactBaseService.POST_METHOD,null,null,!0)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.count=count,exports.list=list,exports.listMy=listMy,exports.subscribe=subscribe,exports.unsubscribe=unsubscribe,exports.SubscriptionActions=void 0;var _wsReactBaseComponents=require("ws-react-base-components"),_globalConfig=require("../config/globalConfig"),_subscription=require("../models/subscription"),_subscriptionCount=require("../models/subscriptionCount"),_typeService=require("../services/typeService"),_baseActions=require("./baseActions"),SubscriptionActions=function(t){function e(){return _classCallCheck(this,e),n.apply(this,arguments)}_inherits(e,t);var n=_createSuper(e);return e}(_baseActions.BaseActions);exports.SubscriptionActions=SubscriptionActions,SubscriptionActions.DEFAULT_URL="".concat(_globalConfig.globalConfig.api,"/subscriptions-service/subscriptions/"),SubscriptionActions.ENTITY_CLASS="Subscriptions",SubscriptionActions.ENTITY_COUNT_CLASS="SubscriptionsCount";
1
+ "use strict";function _typeof(t){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var n,o=_getPrototypeOf(t);if(e){var r=_getPrototypeOf(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return _possibleConstructorReturn(this,n)}}function _possibleConstructorReturn(t,e){if(e&&("object"===_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t)}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function count(t){return SubscriptionActions.API_RESOURCE("list/my",_wsReactBaseComponents.WsReactBaseService.GET_METHOD,{types:t}).then(function(t){return t.map(function(t){return _typeService.TypeService.checkElement(_subscriptionCount.SubscriptionCountType,_subscriptionCount.SubscriptionCount,SubscriptionActions.ENTITY_COUNT_CLASS,t)}).filter(function(t){return!!t})})}function list(t,e){return SubscriptionActions.API_RESOURCE("".concat(t,"/list"),_wsReactBaseComponents.WsReactBaseService.GET_METHOD,{entityIds:e}).then(function(t){return t.map(function(t){return _typeService.TypeService.checkElement(_subscription.SubscriptionType,_subscription.Subscription,SubscriptionActions.ENTITY_CLASS,t)}).filter(function(t){return!!t})})}function listMy(t){return SubscriptionActions.API_RESOURCE("".concat(t,"/list/my"),_wsReactBaseComponents.WsReactBaseService.GET_METHOD).then(function(t){return t.map(function(t){return _typeService.TypeService.checkElement(_subscription.SubscriptionType,_subscription.Subscription,SubscriptionActions.ENTITY_CLASS,t)}).filter(function(t){return!!t})})}function subscribe(t,e){return SubscriptionActions.API_RESOURCE("".concat(t,"/").concat(e,"/subscribe"),_wsReactBaseComponents.WsReactBaseService.POST_METHOD,null,null,!0)}function unsubscribe(t,e){return SubscriptionActions.API_RESOURCE("".concat(t,"/").concat(e,"/unsubscribe"),_wsReactBaseComponents.WsReactBaseService.POST_METHOD,null,null,!0)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.count=count,exports.list=list,exports.listMy=listMy,exports.subscribe=subscribe,exports.unsubscribe=unsubscribe,exports.SubscriptionActions=void 0;var _wsReactBaseComponents=require("ws-react-base-components"),_globalConfig=require("../config/globalConfig"),_subscription=require("../models/subscription"),_subscriptionCount=require("../models/subscriptionCount"),_typeService=require("../services/typeService"),_baseActions=require("./baseActions"),SubscriptionActions=function(t){function e(){return _classCallCheck(this,e),n.apply(this,arguments)}_inherits(e,t);var n=_createSuper(e);return e}(_baseActions.BaseActions);exports.SubscriptionActions=SubscriptionActions,SubscriptionActions.DEFAULT_URL="".concat(_globalConfig.globalConfig.api,"/subscriptions-service/subscriptions/"),SubscriptionActions.ENTITY_CLASS="Subscriptions",SubscriptionActions.ENTITY_COUNT_CLASS="SubscriptionsCount";
@@ -1 +1 @@
1
- "use strict";function _typeof(t){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var n,o=_getPrototypeOf(t);if(e){var s=_getPrototypeOf(this).constructor;n=Reflect.construct(o,arguments,s)}else n=o.apply(this,arguments);return _possibleConstructorReturn(this,n)}}function _possibleConstructorReturn(t,e){return!e||"object"!==_typeof(e)&&"function"!=typeof e?_assertThisInitialized(t):e}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function getSetting(t){return SystemSettingsActions.API_RESOURCE("get",_wsReactBaseComponents.WsReactBaseService.GET_METHOD,{key:t}).then(function(t){return t.value})}function getSettingsBatch(t){return SystemSettingsActions.API_RESOURCE("get/batch",_wsReactBaseComponents.WsReactBaseService.GET_METHOD,{keys:t}).then(function(t){return t})}function putSetting(t){return SystemSettingsActions.API_RESOURCE("put",_wsReactBaseComponents.WsReactBaseService.POST_METHOD,t)}function putSettingsBatch(t){return SystemSettingsActions.API_RESOURCE("put",_wsReactBaseComponents.WsReactBaseService.POST_METHOD,{settings:t})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.getSetting=getSetting,exports.getSettingsBatch=getSettingsBatch,exports.putSetting=putSetting,exports.putSettingsBatch=putSettingsBatch,exports.SystemSettingsActions=void 0;var _wsReactBaseComponents=require("ws-react-base-components"),_globalConfig=require("../config/globalConfig"),_baseActions=require("./baseActions"),SystemSettingsActions=function(t){function e(){return _classCallCheck(this,e),n.apply(this,arguments)}_inherits(e,t);var n=_createSuper(e);return e}(_baseActions.BaseActions);exports.SystemSettingsActions=SystemSettingsActions,SystemSettingsActions.DEFAULT_URL="".concat(_globalConfig.globalConfig.api,"/system-setting-service/system-settings/"),SystemSettingsActions.ENTITY_CLASS="SystemSettings";
1
+ "use strict";function _typeof(t){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var n,o=_getPrototypeOf(t);if(e){var r=_getPrototypeOf(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return _possibleConstructorReturn(this,n)}}function _possibleConstructorReturn(t,e){if(e&&("object"===_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t)}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function getSetting(t){return SystemSettingsActions.API_RESOURCE("get",_wsReactBaseComponents.WsReactBaseService.GET_METHOD,{key:t}).then(function(t){return t.value})}function getSettingsBatch(t){return SystemSettingsActions.API_RESOURCE("get/batch",_wsReactBaseComponents.WsReactBaseService.GET_METHOD,{keys:t}).then(function(t){return t})}function putSetting(t){return SystemSettingsActions.API_RESOURCE("put",_wsReactBaseComponents.WsReactBaseService.POST_METHOD,t)}function putSettingsBatch(t){return SystemSettingsActions.API_RESOURCE("put",_wsReactBaseComponents.WsReactBaseService.POST_METHOD,{settings:t})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.getSetting=getSetting,exports.getSettingsBatch=getSettingsBatch,exports.putSetting=putSetting,exports.putSettingsBatch=putSettingsBatch,exports.SystemSettingsActions=void 0;var _wsReactBaseComponents=require("ws-react-base-components"),_globalConfig=require("../config/globalConfig"),_baseActions=require("./baseActions"),SystemSettingsActions=function(t){function e(){return _classCallCheck(this,e),n.apply(this,arguments)}_inherits(e,t);var n=_createSuper(e);return e}(_baseActions.BaseActions);exports.SystemSettingsActions=SystemSettingsActions,SystemSettingsActions.DEFAULT_URL="".concat(_globalConfig.globalConfig.api,"/system-setting-service/system-settings/"),SystemSettingsActions.ENTITY_CLASS="SystemSettings";
@@ -1 +1 @@
1
- "use strict";function _typeof(e){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _createSuper(e){var t=_isNativeReflectConstruct();return function(){var r,o=_getPrototypeOf(e);if(t){var n=_getPrototypeOf(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return _possibleConstructorReturn(this,r)}}function _possibleConstructorReturn(e,t){return!t||"object"!==_typeof(t)&&"function"!=typeof t?_assertThisInitialized(e):t}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function getProfilesById(e){var t={userIds:e};return UserExternalActions.API_RESOURCE("profiles",_wsReactBaseComponents.WsReactBaseService.GET_METHOD,t).then(function(e){return{items:e.items.map(function(e){return _typeService.TypeService.checkElement(_externalUserProfile.ExternalUserProfileType,_externalUserProfile.ExternalUserProfile,UserExternalActions.ENTITY_CLASS,e)}).filter(function(e){return!!e}),totalCount:e.totalCount}})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.getProfilesById=getProfilesById,exports.UserExternalActions=void 0;var _wsReactBaseComponents=require("ws-react-base-components"),_globalConfig=require("../config/globalConfig"),_externalUserProfile=require("../models/externalUserProfile"),_typeService=require("../services/typeService"),_baseActions=require("./baseActions"),UserExternalActions=function(e){function t(){return _classCallCheck(this,t),r.apply(this,arguments)}_inherits(t,e);var r=_createSuper(t);return t}(_baseActions.BaseActions);exports.UserExternalActions=UserExternalActions,UserExternalActions.DEFAULT_URL="".concat(_globalConfig.globalConfig.api,"/auth-service/external/users/"),UserExternalActions.ENTITY_CLASS="User";
1
+ "use strict";function _typeof(e){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _createSuper(e){var t=_isNativeReflectConstruct();return function(){var r,o=_getPrototypeOf(e);if(t){var n=_getPrototypeOf(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return _possibleConstructorReturn(this,r)}}function _possibleConstructorReturn(e,t){if(t&&("object"===_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function getProfilesById(e){var t={userIds:e};return UserExternalActions.API_RESOURCE("profiles",_wsReactBaseComponents.WsReactBaseService.GET_METHOD,t).then(function(e){return{items:e.items.map(function(e){return _typeService.TypeService.checkElement(_externalUserProfile.ExternalUserProfileType,_externalUserProfile.ExternalUserProfile,UserExternalActions.ENTITY_CLASS,e)}).filter(function(e){return!!e}),totalCount:e.totalCount}})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.getProfilesById=getProfilesById,exports.UserExternalActions=void 0;var _wsReactBaseComponents=require("ws-react-base-components"),_globalConfig=require("../config/globalConfig"),_externalUserProfile=require("../models/externalUserProfile"),_typeService=require("../services/typeService"),_baseActions=require("./baseActions"),UserExternalActions=function(e){function t(){return _classCallCheck(this,t),r.apply(this,arguments)}_inherits(t,e);var r=_createSuper(t);return t}(_baseActions.BaseActions);exports.UserExternalActions=UserExternalActions,UserExternalActions.DEFAULT_URL="".concat(_globalConfig.globalConfig.api,"/auth-service/external/users/"),UserExternalActions.ENTITY_CLASS="User";
@@ -1 +1 @@
1
- "use strict";function _typeof(t){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var n,o=_getPrototypeOf(t);if(e){var r=_getPrototypeOf(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return _possibleConstructorReturn(this,n)}}function _possibleConstructorReturn(t,e){return!e||"object"!==_typeof(e)&&"function"!=typeof e?_assertThisInitialized(t):e}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function getSetting(t){return UserSettingsActions.API_RESOURCE(t,_wsReactBaseComponents.WsReactBaseService.GET_METHOD).then(function(t){return t.value})}function updateSetting(t,e){return UserSettingsActions.API_RESOURCE(t,_wsReactBaseComponents.WsReactBaseService.POST_METHOD,{value:e})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.getSetting=getSetting,exports.updateSetting=updateSetting,exports.UserSettingsActions=void 0;var _wsReactBaseComponents=require("ws-react-base-components"),_globalConfig=require("../config/globalConfig"),_baseActions=require("./baseActions"),UserSettingsActions=function(t){function e(){return _classCallCheck(this,e),n.apply(this,arguments)}_inherits(e,t);var n=_createSuper(e);return e}(_baseActions.BaseActions);exports.UserSettingsActions=UserSettingsActions,UserSettingsActions.DEFAULT_URL="".concat(_globalConfig.globalConfig.api,"/user-setting-service/settings/");
1
+ "use strict";function _typeof(t){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var o,n=_getPrototypeOf(t);if(e){var r=_getPrototypeOf(this).constructor;o=Reflect.construct(n,arguments,r)}else o=n.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,e){if(e&&("object"===_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t)}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function getSetting(t){return UserSettingsActions.API_RESOURCE(t,_wsReactBaseComponents.WsReactBaseService.GET_METHOD).then(function(t){return t.value})}function updateSetting(t,e){return UserSettingsActions.API_RESOURCE(t,_wsReactBaseComponents.WsReactBaseService.POST_METHOD,{value:e})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.getSetting=getSetting,exports.updateSetting=updateSetting,exports.UserSettingsActions=void 0;var _wsReactBaseComponents=require("ws-react-base-components"),_globalConfig=require("../config/globalConfig"),_baseActions=require("./baseActions"),UserSettingsActions=function(t){function e(){return _classCallCheck(this,e),o.apply(this,arguments)}_inherits(e,t);var o=_createSuper(e);return e}(_baseActions.BaseActions);exports.UserSettingsActions=UserSettingsActions,UserSettingsActions.DEFAULT_URL="".concat(_globalConfig.globalConfig.api,"/user-setting-service/settings/");
@@ -1 +1 @@
1
- "use strict";function _typeof(t){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _getRequireWildcardCache(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,o=new WeakMap;return(_getRequireWildcardCache=function(t){return t?o:e})(t)}function _interopRequireWildcard(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==_typeof(t)&&"function"!=typeof t)return{"default":t};var o=_getRequireWildcardCache(e);if(o&&o.has(t))return o.get(t);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in t)if("default"!==r&&Object.prototype.hasOwnProperty.call(t,r)){var a=i?Object.getOwnPropertyDescriptor(t,r):null;a&&(a.get||a.set)?Object.defineProperty(n,r,a):n[r]=t[r]}return n["default"]=t,o&&o.set(t,n),n}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var o,n=_getPrototypeOf(t);if(e){var i=_getPrototypeOf(this).constructor;o=Reflect.construct(n,arguments,i)}else o=n.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,e){return!e||"object"!==_typeof(e)&&"function"!=typeof e?_assertThisInitialized(t):e}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function page(t){var e=Object.assign({pageNo:0,pageSize:_globalConfig.globalConfig.pageSize},t);return VotingEvaluationActions.COLLECTION_API_RESOURCE({queryParams:e,model:_votingEvaluationList["default"],modelType:_votingEvaluationList.VotingEvaluationListType,url:"page"})}function list(t){return VotingEvaluationActions.ARRAY_API_RESOURCE({url:"list",queryParams:t,model:_votingEvaluationList["default"],modelType:_votingEvaluationList.VotingEvaluationListType})}function get(t){return VotingEvaluationActions.MODEL_API_RESOURCE({url:t,model:_votingEvaluation["default"],modelType:_votingEvaluation.VotingEvaluationType})}function metrics(t){return VotingEvaluationActions.MODEL_API_RESOURCE({url:"".concat(t,"/metrics"),method:_wsReactBaseComponents.WsReactBaseService.POST_METHOD,model:_votingEvaluationMetric["default"],modelType:_votingEvaluationMetric.VotingEvaluationMetricType})}function period(t){return VotingEvaluationActions.MODEL_API_RESOURCE({url:"".concat(t,"/period"),method:_wsReactBaseComponents.WsReactBaseService.GET_METHOD,model:_votingEvaluationPeriod["default"],modelType:_votingEvaluationPeriod.VotingEvaluationPeriodType})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.page=page,exports.list=list,exports.get=get,exports.metrics=metrics,exports.period=period,exports.VotingEvaluationActions=void 0;var _wsReactBaseComponents=require("ws-react-base-components"),_globalConfig=require("../config/globalConfig"),_votingEvaluation=_interopRequireWildcard(require("../models/votingEvaluation")),_votingEvaluationList=_interopRequireWildcard(require("../models/votingEvaluationList")),_votingEvaluationMetric=_interopRequireWildcard(require("../models/votingEvaluationMetric")),_votingEvaluationPeriod=_interopRequireWildcard(require("../models/votingEvaluationPeriod")),_baseActions=require("./baseActions"),VotingEvaluationActions=function(t){function e(){return _classCallCheck(this,e),o.apply(this,arguments)}_inherits(e,t);var o=_createSuper(e);return e}(_baseActions.BaseActions);exports.VotingEvaluationActions=VotingEvaluationActions,VotingEvaluationActions.DEFAULT_URL="".concat(_globalConfig.globalConfig.api,"/voting-service/external/evaluations/");
1
+ "use strict";function _typeof(t){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _getRequireWildcardCache(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,o=new WeakMap;return(_getRequireWildcardCache=function(t){return t?o:e})(t)}function _interopRequireWildcard(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==_typeof(t)&&"function"!=typeof t)return{"default":t};var o=_getRequireWildcardCache(e);if(o&&o.has(t))return o.get(t);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in t)if("default"!==r&&Object.prototype.hasOwnProperty.call(t,r)){var a=i?Object.getOwnPropertyDescriptor(t,r):null;a&&(a.get||a.set)?Object.defineProperty(n,r,a):n[r]=t[r]}return n["default"]=t,o&&o.set(t,n),n}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var o,n=_getPrototypeOf(t);if(e){var i=_getPrototypeOf(this).constructor;o=Reflect.construct(n,arguments,i)}else o=n.apply(this,arguments);return _possibleConstructorReturn(this,o)}}function _possibleConstructorReturn(t,e){if(e&&("object"===_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t)}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function page(t){var e=Object.assign({pageNo:0,pageSize:_globalConfig.globalConfig.pageSize},t);return VotingEvaluationActions.COLLECTION_API_RESOURCE({queryParams:e,model:_votingEvaluationList["default"],modelType:_votingEvaluationList.VotingEvaluationListType,url:"page"})}function list(t){return VotingEvaluationActions.ARRAY_API_RESOURCE({url:"list",queryParams:t,model:_votingEvaluationList["default"],modelType:_votingEvaluationList.VotingEvaluationListType})}function get(t){return VotingEvaluationActions.MODEL_API_RESOURCE({url:t,model:_votingEvaluation["default"],modelType:_votingEvaluation.VotingEvaluationType})}function metrics(t){return VotingEvaluationActions.MODEL_API_RESOURCE({url:"".concat(t,"/metrics"),method:_wsReactBaseComponents.WsReactBaseService.POST_METHOD,model:_votingEvaluationMetric["default"],modelType:_votingEvaluationMetric.VotingEvaluationMetricType})}function period(t){return VotingEvaluationActions.MODEL_API_RESOURCE({url:"".concat(t,"/period"),method:_wsReactBaseComponents.WsReactBaseService.GET_METHOD,model:_votingEvaluationPeriod["default"],modelType:_votingEvaluationPeriod.VotingEvaluationPeriodType})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.page=page,exports.list=list,exports.get=get,exports.metrics=metrics,exports.period=period,exports.VotingEvaluationActions=void 0;var _wsReactBaseComponents=require("ws-react-base-components"),_globalConfig=require("../config/globalConfig"),_votingEvaluation=_interopRequireWildcard(require("../models/votingEvaluation")),_votingEvaluationList=_interopRequireWildcard(require("../models/votingEvaluationList")),_votingEvaluationMetric=_interopRequireWildcard(require("../models/votingEvaluationMetric")),_votingEvaluationPeriod=_interopRequireWildcard(require("../models/votingEvaluationPeriod")),_baseActions=require("./baseActions"),VotingEvaluationActions=function(t){function e(){return _classCallCheck(this,e),o.apply(this,arguments)}_inherits(e,t);var o=_createSuper(e);return e}(_baseActions.BaseActions);exports.VotingEvaluationActions=VotingEvaluationActions,VotingEvaluationActions.DEFAULT_URL="".concat(_globalConfig.globalConfig.api,"/voting-service/external/evaluations/");
@@ -1 +1 @@
1
- "use strict";function _typeof(t){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _getRequireWildcardCache(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(_getRequireWildcardCache=function(t){return t?r:e})(t)}function _interopRequireWildcard(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==_typeof(t)&&"function"!=typeof t)return{"default":t};var r=_getRequireWildcardCache(e);if(r&&r.has(t))return r.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if("default"!==i&&Object.prototype.hasOwnProperty.call(t,i)){var c=o?Object.getOwnPropertyDescriptor(t,i):null;c&&(c.get||c.set)?Object.defineProperty(n,i,c):n[i]=t[i]}return n["default"]=t,r&&r.set(t,n),n}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var r,n=_getPrototypeOf(t);if(e){var o=_getPrototypeOf(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return _possibleConstructorReturn(this,r)}}function _possibleConstructorReturn(t,e){return!e||"object"!==_typeof(e)&&"function"!=typeof e?_assertThisInitialized(t):e}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function list(t,e){return VotingParticipantActions.COLLECTION_API_RESOURCE({url:"".concat(t,"/participants/list"),method:_wsReactBaseComponents.WsReactBaseService.POST_METHOD,bodyParams:e.bodyParams,queryParams:e.queryParams,model:_votingParticipantList["default"],modelType:_votingParticipantList.VotingParticipantListType})}function get(t,e){return VotingParticipantActions.MODEL_API_RESOURCE({url:"".concat(t,"/participants/").concat(e),model:_votingParticipant["default"],modelType:_votingParticipant.VotingParticipantType})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.list=list,exports.get=get,exports.VotingParticipantActions=void 0;var _wsReactBaseComponents=require("ws-react-base-components"),_baseActions=require("../actions/baseActions"),_globalConfig=require("../config/globalConfig"),_votingParticipant=_interopRequireWildcard(require("../models/votingParticipant")),_votingParticipantList=_interopRequireWildcard(require("../models/votingParticipantList")),VotingParticipantActions=function(t){function e(){return _classCallCheck(this,e),r.apply(this,arguments)}_inherits(e,t);var r=_createSuper(e);return e}(_baseActions.BaseActions);exports.VotingParticipantActions=VotingParticipantActions,VotingParticipantActions.DEFAULT_URL="".concat(_globalConfig.globalConfig.api,"/voting-service/external/evaluations/");
1
+ "use strict";function _typeof(t){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _getRequireWildcardCache(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(_getRequireWildcardCache=function(t){return t?r:e})(t)}function _interopRequireWildcard(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==_typeof(t)&&"function"!=typeof t)return{"default":t};var r=_getRequireWildcardCache(e);if(r&&r.has(t))return r.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if("default"!==i&&Object.prototype.hasOwnProperty.call(t,i)){var c=o?Object.getOwnPropertyDescriptor(t,i):null;c&&(c.get||c.set)?Object.defineProperty(n,i,c):n[i]=t[i]}return n["default"]=t,r&&r.set(t,n),n}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var r,n=_getPrototypeOf(t);if(e){var o=_getPrototypeOf(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return _possibleConstructorReturn(this,r)}}function _possibleConstructorReturn(t,e){if(e&&("object"===_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t)}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function list(t,e){return VotingParticipantActions.COLLECTION_API_RESOURCE({url:"".concat(t,"/participants/list"),method:_wsReactBaseComponents.WsReactBaseService.POST_METHOD,bodyParams:e.bodyParams,queryParams:e.queryParams,model:_votingParticipantList["default"],modelType:_votingParticipantList.VotingParticipantListType})}function get(t,e){return VotingParticipantActions.MODEL_API_RESOURCE({url:"".concat(t,"/participants/").concat(e),model:_votingParticipant["default"],modelType:_votingParticipant.VotingParticipantType})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.list=list,exports.get=get,exports.VotingParticipantActions=void 0;var _wsReactBaseComponents=require("ws-react-base-components"),_baseActions=require("../actions/baseActions"),_globalConfig=require("../config/globalConfig"),_votingParticipant=_interopRequireWildcard(require("../models/votingParticipant")),_votingParticipantList=_interopRequireWildcard(require("../models/votingParticipantList")),VotingParticipantActions=function(t){function e(){return _classCallCheck(this,e),r.apply(this,arguments)}_inherits(e,t);var r=_createSuper(e);return e}(_baseActions.BaseActions);exports.VotingParticipantActions=VotingParticipantActions,VotingParticipantActions.DEFAULT_URL="".concat(_globalConfig.globalConfig.api,"/voting-service/external/evaluations/");
@@ -1 +1 @@
1
- "use strict";function _typeof(e){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _interopRequireDefault(e){return e&&e.__esModule?e:{"default":e}}function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(_getRequireWildcardCache=function(e){return e?r:t})(e)}function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==_typeof(e)&&"function"!=typeof e)return{"default":e};var r=_getRequireWildcardCache(t);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(n,a,l):n[a]=e[a]}return n["default"]=e,r&&r.set(e,n),n}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),e}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _createSuper(e){var t=_isNativeReflectConstruct();return function(){var r,n=_getPrototypeOf(e);if(t){var i=_getPrototypeOf(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return _possibleConstructorReturn(this,r)}}function _possibleConstructorReturn(e,t){return!t||"object"!==_typeof(t)&&"function"!=typeof t?_assertThisInitialized(e):t}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=void 0;var _lodash=require("lodash"),React=_interopRequireWildcard(require("react")),_globalConfig=require("../../config/globalConfig"),_modules=_interopRequireDefault(require("../../enums/modules")),_businessModeUtilsService=require("../../services/businessModeUtilsService"),_templateService=require("../../services/templateService"),_topNavService=require("../../services/topNavService"),_utilService=require("../../services/utilService"),_baseTSComponent=_interopRequireDefault(require("../baseTSComponent")),_templates=require("./templates"),AccordionUserSteps=function(e){function t(){var e;return _classCallCheck(this,t),e=r.apply(this,arguments),e.HOVER_SELECT_SLIDE_TIMEOUT=100,e.passedDotsElements=new Map,e.dotsElements=new Map,e.changeSlideInterval=null,e.state={currentSlideIndex:0,templateItems:[]},e.selectSlideDebounce=(0,_lodash.debounce)(e.selectSlide,e.HOVER_SELECT_SLIDE_TIMEOUT),e.getUrlByModule=function(e,t){var r=_modules["default"][e],n=_modules["default"][_globalConfig.globalConfig.currentModule];return r&&n?n.value===r.value||n.isMain&&r.isMain?"#".concat(t):n.value!==r.value||n.isMain!==r.isMain?_topNavService.TopNavInfinityService.getExternalUrl(e,t):"#":"#"},e}_inherits(t,e);var r=_createSuper(t);return _createClass(t,[{key:"componentDidMount",value:function(){var e=this;this.checkViewElement(function(){e.initTemplateItems(),e.startChangeSlidesInterval()})}},{key:"userStepImagePrefix",get:function(){var e="";return _utilService.UtilService.isZab()&&(e="-zab"),_utilService.UtilService.isKam()&&(e="-kam"),_businessModeUtilsService.BusinessModeUtilsService.isBusinessModeOn()&&(e="-skh-biz"),e}},{key:"initTemplateItems",value:function(){var e=[{title:"Войдите или зарегистрируйтесь",template:React.createElement(React.Fragment,null,React.createElement("p",null,"С помощью электронной почты, телефона, соцсетей или портала «Госуслуги»."),React.createElement("p",null,"Это займёт не более 5 минут.")),svgIconPath:"assets/images/user-step-1".concat(this.userStepImagePrefix,".png")},{title:"".concat(_templateService.TemplateService.getTemplateString(_templateService.TemplateService.config.ACCORDION_USER_STEPS_PROBLEM_TITLE.value)),template:React.createElement(React.Fragment,null,React.createElement("p",null,"Выберите категорию, коротко и ёмко опишите проблему, прикрепите фото и нажмите «Отправить»."),!_utilService.UtilService.isKam()&&React.createElement("p",null,"Мы проверим и передадим в работу ваше сообщение в течение суток."),React.createElement("p",null,_templateService.TemplateService.getTemplateString(_templateService.TemplateService.config.ACCORDION_USER_STEPS_PROBLEM_TEXT.value),React.createElement("a",{className:"body-3-link click",href:this.getUrlByModule(_modules["default"].MAIN.value,"".concat(_templateService.TemplateService.getTemplateString(_templateService.TemplateService.config.ACCORDION_USER_STEPS_PROBLEM_LINK_STATE.value)))},_templateService.TemplateService.getTemplateString(_templateService.TemplateService.config.ACCORDION_USER_STEPS_PROBLEM_LINK.value)),".")),svgIconPath:"assets/images/user-step-2".concat(this.userStepImagePrefix,".png")},{title:"".concat(_templateService.TemplateService.getTemplateString(_templateService.TemplateService.config.ACCORDION_USER_STEPS_CONSIDERATION_TITLE.value)),template:_businessModeUtilsService.BusinessModeUtilsService.isBusinessModeOn()?React.createElement(React.Fragment,null,React.createElement("p",null,"Запрос официально оформят и отправят в ответственную инстанцию в течение дня."),React.createElement("p",null,"Забудьте о бюрократии и поиске нужных ведомств, мы сделаем всё сами.")):React.createElement(React.Fragment,null,_templateService.TemplateService.getTemplateString(_templateService.TemplateService.config.ACCORDION_USER_STEPS_CONSIDERATION_TEXT.value)),svgIconPath:"assets/images/user-step-3".concat(this.userStepImagePrefix,".png")},{title:"".concat(_templateService.TemplateService.getTemplateString(_templateService.TemplateService.config.ACCORDION_USER_STEPS_ANSWER_TITLE.value)),template:React.createElement(React.Fragment,null,_templateService.TemplateService.getTemplateString(_templateService.TemplateService.config.ACCORDION_USER_STEPS_ANSWER_TEXT.value)),svgIconPath:"assets/images/user-step-4".concat(this.userStepImagePrefix,".png")}];this.setState({templateItems:e})}},{key:"isCurrentSlide",value:function(e){return e===this.state.currentSlideIndex}},{key:"selectSlide",value:function(e){this.setState({currentSlideIndex:e})}},{key:"selectSlideAndStopInterval",value:function(e){this.clearChangeSlideInterval(),this.setState({currentSlideIndex:e})}},{key:"onMouseStepItemOver",value:function(e,t){var r=this.passedDotsElements.get(t),n=this.dotsElements.get(t);if(r&&n){var i=e.currentTarget.clientHeight-n.clientHeight,a=e.currentTarget.getBoundingClientRect().y,l=n.clientHeight-(e.clientY-a-i);r.style.bottom="".concat(l,"px"),r.style.opacity="1"}}},{key:"onMouseStepItemLeave",value:function(e){var t=this.passedDotsElements.get(e);t&&(t.style.opacity="0"),this.startChangeSlidesInterval()}},{key:"startChangeSlidesInterval",value:function(){var e=this,t=5e3;this.changeSlideInterval=window.setInterval(function(){var t=e.state.currentSlideIndex+1,r=t<e.state.templateItems.length-1?t:t%e.state.templateItems.length;e.selectSlide(r)},t)}},{key:"clearChangeSlideInterval",value:function(){this.changeSlideInterval&&clearInterval(this.changeSlideInterval)}},{key:"render",value:function(){var e=_templates.template[_globalConfig.globalConfig.templateFolder];return e?e(this):_templates.template.defaultTemplate(this)}}]),t}(_baseTSComponent["default"]);exports["default"]=AccordionUserSteps;
1
+ "use strict";function _typeof(e){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _interopRequireDefault(e){return e&&e.__esModule?e:{"default":e}}function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(_getRequireWildcardCache=function(e){return e?r:t})(e)}function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==_typeof(e)&&"function"!=typeof e)return{"default":e};var r=_getRequireWildcardCache(t);if(r&&r.has(e))return r.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(n,a,l):n[a]=e[a]}return n["default"]=e,r&&r.set(e,n),n}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),e}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _createSuper(e){var t=_isNativeReflectConstruct();return function(){var r,n=_getPrototypeOf(e);if(t){var i=_getPrototypeOf(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return _possibleConstructorReturn(this,r)}}function _possibleConstructorReturn(e,t){if(t&&("object"===_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=void 0;var _lodash=require("lodash"),React=_interopRequireWildcard(require("react")),_globalConfig=require("../../config/globalConfig"),_modules=_interopRequireDefault(require("../../enums/modules")),_businessModeUtilsService=require("../../services/businessModeUtilsService"),_templateService=require("../../services/templateService"),_topNavService=require("../../services/topNavService"),_utilService=require("../../services/utilService"),_baseTSComponent=_interopRequireDefault(require("../baseTSComponent")),_templates=require("./templates"),AccordionUserSteps=function(e){function t(){var e;return _classCallCheck(this,t),e=r.apply(this,arguments),e.HOVER_SELECT_SLIDE_TIMEOUT=100,e.passedDotsElements=new Map,e.dotsElements=new Map,e.changeSlideInterval=null,e.state={currentSlideIndex:0,templateItems:[]},e.selectSlideDebounce=(0,_lodash.debounce)(e.selectSlide,e.HOVER_SELECT_SLIDE_TIMEOUT),e.getUrlByModule=function(e,t){var r=_modules["default"][e],n=_modules["default"][_globalConfig.globalConfig.currentModule];return r&&n?n.value===r.value||n.isMain&&r.isMain?"#".concat(t):n.value!==r.value||n.isMain!==r.isMain?_topNavService.TopNavInfinityService.getExternalUrl(e,t):"#":"#"},e}_inherits(t,e);var r=_createSuper(t);return _createClass(t,[{key:"componentDidMount",value:function(){var e=this;this.checkViewElement(function(){e.initTemplateItems(),e.startChangeSlidesInterval()})}},{key:"userStepImagePrefix",get:function(){var e="";return _utilService.UtilService.isZab()&&(e="-zab"),_utilService.UtilService.isKam()&&(e="-kam"),_businessModeUtilsService.BusinessModeUtilsService.isBusinessModeOn()&&(e="-skh-biz"),e}},{key:"initTemplateItems",value:function(){var e=[{title:"Войдите или зарегистрируйтесь",template:React.createElement(React.Fragment,null,React.createElement("p",null,"С помощью электронной почты, телефона, соцсетей или портала «Госуслуги»."),React.createElement("p",null,"Это займёт не более 5 минут.")),svgIconPath:"assets/images/user-step-1".concat(this.userStepImagePrefix,".png")},{title:"".concat(_templateService.TemplateService.getTemplateString(_templateService.TemplateService.config.ACCORDION_USER_STEPS_PROBLEM_TITLE.value)),template:React.createElement(React.Fragment,null,React.createElement("p",null,"Выберите категорию, коротко и ёмко опишите проблему, прикрепите фото и нажмите «Отправить»."),!_utilService.UtilService.isKam()&&React.createElement("p",null,"Мы проверим и передадим в работу ваше сообщение в течение суток."),React.createElement("p",null,_templateService.TemplateService.getTemplateString(_templateService.TemplateService.config.ACCORDION_USER_STEPS_PROBLEM_TEXT.value),React.createElement("a",{className:"body-3-link click",href:this.getUrlByModule(_modules["default"].MAIN.value,"".concat(_templateService.TemplateService.getTemplateString(_templateService.TemplateService.config.ACCORDION_USER_STEPS_PROBLEM_LINK_STATE.value)))},_templateService.TemplateService.getTemplateString(_templateService.TemplateService.config.ACCORDION_USER_STEPS_PROBLEM_LINK.value)),".")),svgIconPath:"assets/images/user-step-2".concat(this.userStepImagePrefix,".png")},{title:"".concat(_templateService.TemplateService.getTemplateString(_templateService.TemplateService.config.ACCORDION_USER_STEPS_CONSIDERATION_TITLE.value)),template:_businessModeUtilsService.BusinessModeUtilsService.isBusinessModeOn()?React.createElement(React.Fragment,null,React.createElement("p",null,"Запрос официально оформят и отправят в ответственную инстанцию в течение дня."),React.createElement("p",null,"Забудьте о бюрократии и поиске нужных ведомств, мы сделаем всё сами.")):React.createElement(React.Fragment,null,_templateService.TemplateService.getTemplateString(_templateService.TemplateService.config.ACCORDION_USER_STEPS_CONSIDERATION_TEXT.value)),svgIconPath:"assets/images/user-step-3".concat(this.userStepImagePrefix,".png")},{title:"".concat(_templateService.TemplateService.getTemplateString(_templateService.TemplateService.config.ACCORDION_USER_STEPS_ANSWER_TITLE.value)),template:React.createElement(React.Fragment,null,_templateService.TemplateService.getTemplateString(_templateService.TemplateService.config.ACCORDION_USER_STEPS_ANSWER_TEXT.value)),svgIconPath:"assets/images/user-step-4".concat(this.userStepImagePrefix,".png")}];this.setState({templateItems:e})}},{key:"isCurrentSlide",value:function(e){return e===this.state.currentSlideIndex}},{key:"selectSlide",value:function(e){this.setState({currentSlideIndex:e})}},{key:"selectSlideAndStopInterval",value:function(e){this.clearChangeSlideInterval(),this.setState({currentSlideIndex:e})}},{key:"onMouseStepItemOver",value:function(e,t){var r=this.passedDotsElements.get(t),n=this.dotsElements.get(t);if(r&&n){var i=e.currentTarget.clientHeight-n.clientHeight,a=e.currentTarget.getBoundingClientRect().y,l=n.clientHeight-(e.clientY-a-i);r.style.bottom="".concat(l,"px"),r.style.opacity="1"}}},{key:"onMouseStepItemLeave",value:function(e){var t=this.passedDotsElements.get(e);t&&(t.style.opacity="0"),this.startChangeSlidesInterval()}},{key:"startChangeSlidesInterval",value:function(){var e=this,t=5e3;this.changeSlideInterval=window.setInterval(function(){var t=e.state.currentSlideIndex+1,r=t<e.state.templateItems.length-1?t:t%e.state.templateItems.length;e.selectSlide(r)},t)}},{key:"clearChangeSlideInterval",value:function(){this.changeSlideInterval&&clearInterval(this.changeSlideInterval)}},{key:"render",value:function(){var e=_templates.template[_globalConfig.globalConfig.templateFolder];return e?e(this):_templates.template.defaultTemplate(this)}}]),t}(_baseTSComponent["default"]);exports["default"]=AccordionUserSteps;