@c8y/ng1-modules 1018.346.0 → 1018.348.0

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 (558) hide show
  1. package/NOTICES +0 -34
  2. package/aclManagement/controllers/permissionEditorCtrl.js +1 -1
  3. package/actilityProviderSettings/actilityProviderSettings.module.js +1 -1
  4. package/administration-alarmMapping/controllers/alarmMapping.js +1 -1
  5. package/administration-applicationSettings/controllers/applicationSettings.js +1 -1
  6. package/administration-applications/appWizard/appWizardExternalStep.component.js +1 -1
  7. package/administration-applications/appWizard/appWizardSmartAppStep.component.js +1 -1
  8. package/administration-applications/appWizard/appWizardUploadStep.component.js +1 -1
  9. package/administration-applications/appWizard/context-path.directive.js +1 -1
  10. package/administration-applications/application-detail/application-detail.component.js +1 -1
  11. package/administration-applications/application-list-view/application-list-view.component.js +1 -1
  12. package/administration-applications/controllers/applicationAccessEditor.js +1 -1
  13. package/administration-archivesEditor/list.controller.js +1 -1
  14. package/administration-auditLogs/filter.directive.js +1 -1
  15. package/administration-deviceUsers/controllers/deviceUserDetail.js +1 -1
  16. package/administration-homeAdministration/home-administration.component.js +1 -1
  17. package/administration-statistics/controllers/statistics.js +1 -1
  18. package/administration-storageLimitEmail/controllers/storageLimitCtrl.js +1 -1
  19. package/alarms/widget-config.controller.js +1 -1
  20. package/alarms/widget.controller.js +1 -1
  21. package/alarmsEventsExplorer/alarmsEventsTimelinesChart/alarmsEventsTimelinesChart.component.js +1 -1
  22. package/alarmsEventsExplorer/alarmsEventsTimelinesChart/alarmsEventsTimelinesChart.service.js +1 -1
  23. package/alarmsEventsExplorer/alarmsEventsTimelinesConfig/alarmsEventsTimelinesConfigModal.controller.js +1 -1
  24. package/app-logs/app-instance-logs/app-instance-logs.component.js +1 -1
  25. package/app-logs/app-logs/app-logs.component.js +1 -1
  26. package/app-logs/app-logs.service.js +1 -1
  27. package/app-status/app-status/app-status.component.js +1 -1
  28. package/app-status/app-tenant-subscriptions-list/app-tenant-subscriptions-list.component.js +1 -1
  29. package/app-status/index.js +1 -1
  30. package/app-status-ui/index.js +1 -1
  31. package/applicationLinks/applications.controller.js +1 -1
  32. package/asset-notes/assetNotes.service.js +1 -1
  33. package/assetPropertyWidget/main.controller.js +1 -1
  34. package/assetTable/assetTable2/assets.controller.js +1 -1
  35. package/assetTable/assetTable2/assets.service.js +1 -1
  36. package/assetTable/assetTable2/index.js +1 -1
  37. package/assetTable/assetTable2/rendererButton.controller.js +1 -1
  38. package/assetTable/assetTable2/rendererButtonConfig.controller.js +1 -1
  39. package/assetTable/assetTable2/rendererIcon.controller.js +1 -1
  40. package/assetTable/assetTable2/sort.directive.js +1 -1
  41. package/assetTable/assets.controller.js +1 -1
  42. package/assetTable/assetsConfig.controller.js +1 -1
  43. package/assetTable/comparisons.service.js +1 -1
  44. package/assetTable/counterColumns.service.js +1 -1
  45. package/binary-file-download/binary-file-download.component.js +1 -1
  46. package/binary-file-download/binary-file-download.config.js +1 -1
  47. package/binaryArtefactsManagement/controllers/list.js +1 -1
  48. package/binaryArtefactsManagement/index.js +1 -1
  49. package/cell-id-information-activator/cell-id-information-activator.config.js +1 -1
  50. package/cell-id-information-activator/cell-id-information-activator.service.js +1 -1
  51. package/cell-id-usage-statistics/cell-id-usage-statistics.component.js +1 -1
  52. package/cell-id-usage-statistics/cell-id-usage-statistics.service.js +1 -1
  53. package/cockpit-assetCount/services/assetCount.js +1 -1
  54. package/cockpit-cockpitConfig/services/navigator.js +1 -1
  55. package/cockpit-reports/reports.service.js +1 -1
  56. package/cockpit-smartRulesUI/index.js +1 -1
  57. package/commandTemplates/controllers/commandTemplates.js +1 -1
  58. package/configurationRepository/configurationRepository.service.js +1 -1
  59. package/configurationRepository/list.controller.js +1 -1
  60. package/connectivityV2/connectivityV2.component.js +1 -1
  61. package/connectivityV2/connectivityV2.module.js +1 -1
  62. package/connectivityV2/connectivityV2.service.js +1 -1
  63. package/connectivityV2/sms.component.js +1 -1
  64. package/connectivityV2/status.component.js +1 -1
  65. package/core/angularStart.js +1 -1
  66. package/core/bootstrap.js +1 -1
  67. package/core/core/index.js +1 -1
  68. package/core/core/locales.js +1 -1
  69. package/core/core/services/actility.js +1 -1
  70. package/core/core/services/alarms.js +1 -1
  71. package/core/core/services/application.js +1 -1
  72. package/core/core/services/audits.js +1 -1
  73. package/core/core/services/auth.js +1 -1
  74. package/core/core/services/base.js +1 -1
  75. package/core/core/services/binary.js +1 -1
  76. package/core/core/services/binaryCommon.js +1 -1
  77. package/core/core/services/combain.js +1 -1
  78. package/core/core/services/connectivity.js +1 -1
  79. package/core/core/services/counter.js +1 -1
  80. package/core/core/services/deviceBulkControl.js +1 -1
  81. package/core/core/services/deviceControl.js +1 -1
  82. package/core/core/services/deviceGroup.js +1 -1
  83. package/core/core/services/deviceShell.js +1 -1
  84. package/core/core/services/deviceStatus.js +1 -1
  85. package/core/core/services/devices.js +1 -1
  86. package/core/core/services/dynamicGroups.js +1 -1
  87. package/core/core/services/events.js +1 -1
  88. package/core/core/services/geo.js +1 -1
  89. package/core/core/services/groupTypesConfig.js +1 -1
  90. package/core/core/services/groups.js +1 -1
  91. package/core/core/services/identity.js +1 -1
  92. package/core/core/services/inventory.js +1 -1
  93. package/core/core/services/jsonSchemas.js +1 -1
  94. package/core/core/services/kpi.js +1 -1
  95. package/core/core/services/license.js +1 -1
  96. package/core/core/services/loginOptions.js +1 -1
  97. package/core/core/services/measurements.js +1 -1
  98. package/core/core/services/messaging.js +1 -1
  99. package/core/core/services/notifications.js +1 -1
  100. package/core/core/services/permissions.js +1 -1
  101. package/core/core/services/promise.js +1 -1
  102. package/core/core/services/queriesUtil.js +1 -1
  103. package/core/core/services/realtime.js +1 -1
  104. package/core/core/services/realtimeLongPollingTransport.js +1 -1
  105. package/core/core/services/retentions.js +1 -1
  106. package/core/core/services/roles.js +1 -1
  107. package/core/core/services/settings.js +1 -1
  108. package/core/core/services/simulator.js +1 -1
  109. package/core/core/services/smartRestTemplates.js +1 -1
  110. package/core/core/services/statement.js +1 -1
  111. package/core/core/services/statistics.js +1 -1
  112. package/core/core/services/tenant.js +1 -1
  113. package/core/core/services/tfaSettings.js +1 -1
  114. package/core/core/services/tracker.js +1 -1
  115. package/core/core/services/user.js +1 -1
  116. package/core/core/services/userGroup.js +1 -1
  117. package/core/core/services/userPreferences.js +1 -1
  118. package/core/core/services/util.js +1 -1
  119. package/core/index.js +1 -1
  120. package/core/sdk/directives/repeat.js +1 -1
  121. package/core/sdk/providers/cumulocity.js +1 -1
  122. package/core/ui/components/battery/battery.js +1 -1
  123. package/core/ui/components/errorFeedback.js +1 -1
  124. package/core/ui/components/passwordStrengthChecklist.js +1 -1
  125. package/core/ui/components/signalStrength/signal.js +1 -1
  126. package/core/ui/components/timelinesChart.js +1 -1
  127. package/core/ui/configurable-device-list-columns/configurable-columns.service.js +1 -1
  128. package/core/ui/configurable-device-list-columns/modal-columns-configure.component.js +1 -1
  129. package/core/ui/configurable-device-list-columns/unique-by.directive.js +1 -1
  130. package/core/ui/containers/header.component.js +1 -1
  131. package/core/ui/containers/wizard.component.js +1 -1
  132. package/core/ui/containers/wizardSlide.jquery.js +1 -1
  133. package/core/ui/controllers/deviceList.js +1 -1
  134. package/core/ui/controllers/editRetentionRule.js +1 -1
  135. package/core/ui/controllers/eventList.js +1 -1
  136. package/core/ui/controllers/listPagination/listPagination.controller.js +1 -1
  137. package/core/ui/controllers/loginCtrl.js +1 -1
  138. package/core/ui/controllers/radialGauge.js +1 -1
  139. package/core/ui/csvExporter/csv-escape-formulas-option.decorator.js +1 -1
  140. package/core/ui/csvExporter/csvExporter.controller.js +1 -1
  141. package/core/ui/csvExporter/csvExporter.directive.js +1 -1
  142. package/core/ui/csvExporter/csvExporter.service.js +1 -1
  143. package/core/ui/directives/aggregation.js +1 -1
  144. package/core/ui/directives/alarmList.js +1 -1
  145. package/core/ui/directives/appIcon.js +1 -1
  146. package/core/ui/directives/auditList.js +1 -1
  147. package/core/ui/directives/autocomplete.js +1 -1
  148. package/core/ui/directives/binaryInput.js +1 -1
  149. package/core/ui/directives/binaryOut.js +1 -1
  150. package/core/ui/directives/codeEditor.js +1 -1
  151. package/core/ui/directives/dateTimePicker.js +1 -1
  152. package/core/ui/directives/deviceGroupSelector.js +1 -1
  153. package/core/ui/directives/downloadButton.js +1 -1
  154. package/core/ui/directives/editRetentionRule.js +1 -1
  155. package/core/ui/directives/filePicker.js +1 -1
  156. package/core/ui/directives/icon.js +1 -1
  157. package/core/ui/directives/ifAllowed.js +1 -1
  158. package/core/ui/directives/interval.js +1 -1
  159. package/core/ui/directives/linearGauge.js +1 -1
  160. package/core/ui/directives/loadMore.js +1 -1
  161. package/core/ui/directives/map-plugins/geofence-layer.js +1 -1
  162. package/core/ui/directives/map.js +1 -1
  163. package/core/ui/directives/map2.js +1 -1
  164. package/core/ui/directives/max.js +1 -1
  165. package/core/ui/directives/min.js +1 -1
  166. package/core/ui/directives/number.js +1 -1
  167. package/core/ui/directives/phoneNumber.js +1 -1
  168. package/core/ui/directives/pieChart.js +1 -1
  169. package/core/ui/directives/rdbDump.js +1 -1
  170. package/core/ui/directives/realtimeButton.js +1 -1
  171. package/core/ui/directives/renderer.js +1 -1
  172. package/core/ui/directives/scrollLoad.js +1 -1
  173. package/core/ui/directives/silo.js +1 -1
  174. package/core/ui/directives/sunburstChart.js +1 -1
  175. package/core/ui/directives/textOut.js +1 -1
  176. package/core/ui/directives/validateUniqueExternalId.js +1 -1
  177. package/core/ui/fieldbus/fieldbus.service.js +1 -1
  178. package/core/ui/filteringSorting/filteredSortedList.controller.js +1 -1
  179. package/core/ui/filteringSorting/filteringSortingCollections.service.js +1 -1
  180. package/core/ui/filteringSorting/filteringSortingColumns.service.js +1 -1
  181. package/core/ui/filteringSorting/filteringSortingInventoryQueries.service.js +1 -1
  182. package/core/ui/filters/absoluteDate.js +1 -1
  183. package/core/ui/filters/bytes.js +1 -1
  184. package/core/ui/filters/capitalizestring.js +1 -1
  185. package/core/ui/filters/checkForDate.js +1 -1
  186. package/core/ui/filters/dateParts.js +1 -1
  187. package/core/ui/filters/distance.js +1 -1
  188. package/core/ui/filters/duration.js +1 -1
  189. package/core/ui/filters/filter-translate.decorator.js +1 -1
  190. package/core/ui/filters/filterByFields.js +1 -1
  191. package/core/ui/filters/hex.filter.js +1 -1
  192. package/core/ui/filters/humanize2.js +1 -1
  193. package/core/ui/filters/humanizeAppName.js +1 -1
  194. package/core/ui/filters/orderBy-translate.decorator.js +1 -1
  195. package/core/ui/filters/relativedate.js +1 -1
  196. package/core/ui/filters/safeLinks.js +1 -1
  197. package/core/ui/forms/checkDirty.directive.js +1 -1
  198. package/core/ui/forms/hex-input.directive.js +1 -1
  199. package/core/ui/forms/host-address.validator.js +1 -1
  200. package/core/ui/forms/http-protocol.validator.js +1 -1
  201. package/core/ui/forms/model-options.directive.js +1 -1
  202. package/core/ui/forms/regular-expression.validator.js +1 -1
  203. package/core/ui/forms/required-input-placeholder.directive.js +1 -1
  204. package/core/ui/forms/saveButtonFooter.component.js +1 -1
  205. package/core/ui/forms/search.component.js +1 -1
  206. package/core/ui/forms/ssh-key-input.js +1 -1
  207. package/core/ui/forms/uib-dropdown-dropup.directive.js +1 -1
  208. package/core/ui/forms/uib-dropdown.decorator.js +1 -1
  209. package/core/ui/forms/validate-url-segment.validator.js +1 -1
  210. package/core/ui/groups/group-create-and-assign.component.js +1 -1
  211. package/core/ui/header/action-bar.service.js +1 -1
  212. package/core/ui/header/actions.provider.js +1 -1
  213. package/core/ui/index.js +1 -1
  214. package/core/ui/inputDirectives/colorpicker.js +1 -1
  215. package/core/ui/itemSelector/itemSelector.component.js +1 -1
  216. package/core/ui/leaflet/leaflet-directive.decorator.js +1 -1
  217. package/core/ui/lists/list-display-control.component.js +1 -1
  218. package/core/ui/lists/quickLinksList.service.js +1 -1
  219. package/core/ui/locales/locales.provider.js +1 -1
  220. package/core/ui/navigation/breadcrumbs.component.js +1 -1
  221. package/core/ui/navigation/breadcrumbs.provider.js +1 -1
  222. package/core/ui/navigation/tabs.component.js +1 -1
  223. package/core/ui/navigation/tabs.provider.js +1 -1
  224. package/core/ui/notifications/accessDenied.service.js +1 -1
  225. package/core/ui/notifications/alert.controller.js +1 -1
  226. package/core/ui/notifications/alert.service.js +1 -1
  227. package/core/ui/operations/operations-timeline.component.js +1 -1
  228. package/core/ui/properties/children.computedProperty.js +1 -1
  229. package/core/ui/properties/computedProperties.provider.js +1 -1
  230. package/core/ui/properties/configurationSnapshot.computedProperty.js +1 -1
  231. package/core/ui/properties/counters.computedProperty.js +1 -1
  232. package/core/ui/properties/lastDeviceMessage.computedProperty.js +1 -1
  233. package/core/ui/properties/lastMeasurement.computedProperty.js +1 -1
  234. package/core/ui/properties/propertiesLibrary.service.js +1 -1
  235. package/core/ui/properties/propertySelector.controller.js +1 -1
  236. package/core/ui/properties/schemaProperties.service.js +1 -1
  237. package/core/ui/properties/schemaPropertySelector.controller.js +1 -1
  238. package/core/ui/providers/beta.js +1 -1
  239. package/core/ui/providers/httpCache.js +1 -1
  240. package/core/ui/providers/navigator.js +1 -1
  241. package/core/ui/providers/objectActions.js +1 -1
  242. package/core/ui/providers/renderers.js +1 -1
  243. package/core/ui/providers/search.js +1 -1
  244. package/core/ui/providers/views.js +1 -1
  245. package/core/ui/providers/zip.js +1 -1
  246. package/core/ui/roles/roles-matrix.component.js +1 -1
  247. package/core/ui/sanitize-html/sanitize-html.js +1 -1
  248. package/core/ui/sanitize-html/sanitize-html.service.js +1 -1
  249. package/core/ui/schemaForm/deviceGroupIdPicker.config.js +1 -1
  250. package/core/ui/schemaForm/fileUpload.config.js +1 -1
  251. package/core/ui/schemaForm/fileUpload.directive.js +1 -1
  252. package/core/ui/schemaForm/overrides/decorators/decorators.decorator.js +1 -1
  253. package/core/ui/schemaForm/schemaEditor.component.js +1 -1
  254. package/core/ui/schemaForm/schemaForm.component.js +1 -1
  255. package/core/ui/schemaForm/schemaForm.run.js +1 -1
  256. package/core/ui/schemaForm/schemaFormHelper.service.js +1 -1
  257. package/core/ui/schemaForm/schemaPropertyEditor.component.js +1 -1
  258. package/core/ui/services/contextDetailsShared.service.js +1 -1
  259. package/core/ui/services/deviceListColumns.js +1 -1
  260. package/core/ui/services/docs.js +1 -1
  261. package/core/ui/services/groupsHierarchyNavigator.js +1 -1
  262. package/core/ui/services/groupsHierarchySvc.js +1 -1
  263. package/core/ui/services/loginService.js +1 -1
  264. package/core/ui/services/measurementsReport.js +1 -1
  265. package/core/ui/services/modal.js +1 -1
  266. package/core/ui/services/passwordStrengthCheckerFactory.js +1 -1
  267. package/core/ui/services/support.js +1 -1
  268. package/core/ui/services/uiconfig.js +1 -1
  269. package/core/ui/services/util.js +1 -1
  270. package/core/ui/smartrules/smartRulesAvailability.service.js +1 -1
  271. package/core/ui/title/title.controller.js +1 -1
  272. package/core/ui/title/title.provider.js +1 -1
  273. package/core/ui/user/editUser.controller.js +1 -1
  274. package/core/ui/user/editUser.directive.js +1 -1
  275. package/core/ui/user/measurementUnitPreference.component.js +1 -1
  276. package/core/ui/user/rolesUiStrings.constant.js +1 -1
  277. package/core/ui/user/userPicker.component.js +1 -1
  278. package/core/ui/user/userSettingsBlocks.provider.js +1 -1
  279. package/core/ui/user/userUtil.service.js +1 -1
  280. package/core/ui/utils/copyToClipboard.directive.js +1 -1
  281. package/core/ui/utils/guide-docs.directive.js +1 -1
  282. package/core/ui/utils/uiComponent.directive.js +1 -1
  283. package/core/update-query-params.js +1 -1
  284. package/dashboard2/dashboard/dashboardSelect.controller.js +1 -1
  285. package/dashboard2/dashboard.service.js +1 -1
  286. package/dashboard2/dashboardInventory.service.js +1 -1
  287. package/dataBroker/connectors/connectorEditor.component.js +1 -1
  288. package/dataBroker/connectors/connectors.service.js +1 -1
  289. package/dataBroker/connectorsAlarms/connectorAlarms.component.js +1 -1
  290. package/dataBroker/dataBroker.config.js +1 -1
  291. package/dataBroker/subscriptions/subscriptions.component.js +1 -1
  292. package/dataPointExplorer/controllers/dataPointAdd.js +1 -1
  293. package/dataPointExplorer/controllers/dataPointExplorer.js +1 -1
  294. package/dataPointExplorer/controllers/dataPointItem.js +1 -1
  295. package/dataPointExplorer/controllers/dataPointList.js +1 -1
  296. package/dataPointExplorer/controllers/dataPointWidget.js +1 -1
  297. package/dataPointExplorer/controllers/dataPointWidgetConfig.js +1 -1
  298. package/dataPointExplorer/directives/dataPointValidator.js +1 -1
  299. package/dataPointExplorer/services/dataPoints.js +1 -1
  300. package/dataPointTable/dataPointTable.controller.js +1 -1
  301. package/dataPointTable/dataPointTable.directive.js +1 -1
  302. package/dataPointTable/dataPointTable.service.js +1 -1
  303. package/dataPointTable/realtimeRadioButton.directive.js +1 -1
  304. package/dataPointTable/widget.controller.js +1 -1
  305. package/device-protocol-actility/actility-device.provider.js +1 -1
  306. package/device-protocol-canbus/canbus-device.provider.js +1 -1
  307. package/device-protocol-canopen/canopen-device.provider.js +1 -1
  308. package/device-protocol-deviceDatabase4/device-type-create-step.component.js +1 -1
  309. package/device-protocol-deviceDatabase4/device-type-protocol-base.provider.js +1 -1
  310. package/device-protocol-deviceDatabase4/device-type-row-info.component.js +1 -1
  311. package/device-protocol-impact/impact-detail.component.js +1 -1
  312. package/device-protocol-impact/impact.provider.js +1 -1
  313. package/device-protocol-lora/lora-device.provider.js +1 -1
  314. package/device-protocol-lpwan/lpwan-device.provider.js +1 -1
  315. package/device-protocol-lwm2m/lwm2m.provider.js +1 -1
  316. package/device-protocol-lwm2m/lwm2mFinalStep.component.js +1 -1
  317. package/device-protocol-lwm2m/lwm2mUploadStep.component.js +1 -1
  318. package/device-protocol-lwm2m/lwm2mValidationRules/lwm2mValidationRule.component.js +1 -1
  319. package/device-protocol-lwm2m/lwm2mValidationRules/lwm2mValidationRules.component.js +1 -1
  320. package/device-protocol-modbus/modbus-device.provider.js +1 -1
  321. package/device-protocol-opcua/opcua-device.provider.js +1 -1
  322. package/device-protocol-opcua-v2/opcua-device-v2.provider.js +1 -1
  323. package/device-protocol-opcua-v2/opcua-v2-row-info.component.js +1 -1
  324. package/device-protocol-profibus/profibus-device.provider.js +1 -1
  325. package/device-protocol-sigfox/sigfox-device.provider.js +1 -1
  326. package/device-protocol-snmp/snmp-device.provider.js +1 -1
  327. package/device-protocols/device-protocol-import-button.component.js +1 -1
  328. package/device-protocols/deviceProtocolList.component.js +1 -1
  329. package/device-protocols/deviceProtocolSelect.component.js +1 -1
  330. package/device-protocols/deviceProtocolUi.provider.js +1 -1
  331. package/device-protocols/object-mapping.component.js +1 -1
  332. package/device-protocols/object-mappings.service.js +1 -1
  333. package/deviceActility/actilityUI.provider.js +1 -1
  334. package/deviceActility/deviceActility.module.js +1 -1
  335. package/deviceConfiguration/index.js +1 -1
  336. package/deviceControlMessage/controllers/deviceControlMessageWidget.js +1 -1
  337. package/deviceControlRelay/relayControl/relayControl.controller.js +1 -1
  338. package/deviceControlRelay/relayControl/relayControl.directive.js +1 -1
  339. package/deviceControlRelay/widget.controller.js +1 -1
  340. package/deviceControlRelayArray/relayArrayControl/relayArrayControl.controller.js +1 -1
  341. package/deviceControlRelayArray/widget.controller.js +1 -1
  342. package/deviceDatabase4/detail/device-type-detail.component.js +1 -1
  343. package/deviceDatabase4/detail/holding-registers.component.js +1 -1
  344. package/deviceDatabase4/detail/message-id-configuration-description.component.js +1 -1
  345. package/deviceDatabase4/device-database.service.js +1 -1
  346. package/deviceDatabase4/device-type-list.component.js +1 -1
  347. package/deviceDatabase4/modals/configure-discrete-io.component.js +1 -1
  348. package/deviceDatabase4/modals/configure-register.component.js +1 -1
  349. package/deviceDatabase4/modals/import-device-type.component.js +1 -1
  350. package/deviceDatabase4/modals/select-fieldbus-property.component.js +1 -1
  351. package/deviceDatabase4/parsers/device-type-parser-eds.service.js +1 -1
  352. package/deviceDatabase4/parsers/device-type-parser-json.service.js +1 -1
  353. package/deviceDatabase4/parsers/device-type-parser-mib.service.js +1 -1
  354. package/deviceDatabase4/property-generator.service.js +1 -1
  355. package/deviceDatabase4/unique.directive.js +1 -1
  356. package/deviceDatabase4/validate-value-in-register-range.directive.js +1 -1
  357. package/deviceDatabase4/vendor/ini-legacy.js +1 -1
  358. package/deviceDetail/index.js +1 -1
  359. package/deviceDetailIdentity/controllers/identity.js +1 -1
  360. package/deviceDetailIdentity/index.js +1 -1
  361. package/deviceGroupAssignment/groupAssignment.component.js +1 -1
  362. package/devicePropertyWidget/controllers/config.js +1 -1
  363. package/devicePropertyWidget/controllers/widget.js +1 -1
  364. package/devicePropertyWidget/directives/fragmentCheckboxList.js +1 -1
  365. package/devicePropertyWidget/services/moRealTimeDetails.js +1 -1
  366. package/deviceSelector/controllers/deviceSelectorComboCtrl.js +1 -1
  367. package/deviceSelector/controllers/deviceSelectorCtrl.js +1 -1
  368. package/deviceSelector/controllers/deviceSelectorListCtrl.js +1 -1
  369. package/deviceSelector/directives/deviceSelectorCombo.js +1 -1
  370. package/deviceSelector/directives/deviceSelectorList.js +1 -1
  371. package/deviceStatusWidget/ownerStatus.component.js +1 -1
  372. package/deviceStatusWidget/requiredAvailabilityIntervalSetting.component.js +1 -1
  373. package/devicemanagement-aclManagement/controllers/aclManagementCtrl.js +1 -1
  374. package/devicemanagement-aclManagement/index.js +1 -1
  375. package/devicemanagement-alarmList/controllers/alarmList.js +1 -1
  376. package/devicemanagement-availability/controllers/availability.js +1 -1
  377. package/devicemanagement-deviceNetwork/controllers/network.js +1 -1
  378. package/devicemanagement-deviceNetwork/index.js +1 -1
  379. package/devicemanagement-eventList/controllers/eventList.js +1 -1
  380. package/devicemanagement-location/controllers/location.js +1 -1
  381. package/devicemanagement-location/index.js +1 -1
  382. package/devicemanagement-logViewer/controllers/logViewer.js +1 -1
  383. package/devicemanagement-logViewer/directives/logViewer.js +1 -1
  384. package/devicemanagement-logViewer/providers/logViewer.js +1 -1
  385. package/devicemanagement-measurements/index.js +1 -1
  386. package/devicemanagement-restartDevice/index.js +1 -1
  387. package/devicemanagement-tixiDeviceControl/index.js +1 -1
  388. package/devicemanagement-tracking/controllers/config.js +1 -1
  389. package/devicemanagement-tracking/controllers/tracking.js +1 -1
  390. package/devicemanagement-tracking/index.js +1 -1
  391. package/devicemanagement-vendMeDeviceControl/controllers/vendMeDeviceControl.js +1 -1
  392. package/devicemanagement-vendMeDeviceControl/index.js +1 -1
  393. package/enterpriseEdition/createFile.js +1 -1
  394. package/enterpriseEdition/customBranding/brandingConfigurationForm.component.js +1 -1
  395. package/enterpriseEdition/customBranding/brandingConfigurationUi.provider.js +1 -1
  396. package/enterpriseEdition/customBranding/brandingDeploy.service.js +1 -1
  397. package/enterpriseEdition/customBranding/brandingProcessExecution.component.js +1 -1
  398. package/enterpriseEdition/enterpriseEdition.module.js +1 -1
  399. package/enterpriseEdition/sslCertificate/certificateActivation.component.js +1 -1
  400. package/enterpriseEdition/sslCertificate/manageCertificate.component.js +1 -1
  401. package/enterpriseEdition/sslCertificate/manageCertificate.service.js +1 -1
  402. package/enterpriseEdition/ui-assets/public-options.service.js +1 -1
  403. package/enterpriseEdition/ui-assets/static-assets.service.js +1 -1
  404. package/eventList/eventList.controller.js +1 -1
  405. package/eventsBinary/components/eventBinaryActions/eventBinaryActions.js +1 -1
  406. package/eventsBinary/services/eventsBinary.service.js +1 -1
  407. package/export/controllers/detail.js +1 -1
  408. package/export/services/api.js +1 -1
  409. package/export/services/config.js +1 -1
  410. package/export/services/export.js +1 -1
  411. package/export/services/filters.js +1 -1
  412. package/generic-ui/config-audit/config-audit-diff.component.js +1 -1
  413. package/generic-ui/config-audit/config-audit-modal.component.js +1 -1
  414. package/generic-ui/config-audit/config-audit.component.js +1 -1
  415. package/generic-ui/generic-ui-config.provider.js +1 -1
  416. package/generic-ui/generic-ui-inventory-property.component.js +1 -1
  417. package/generic-ui/generic-ui-inventory.component.js +1 -1
  418. package/generic-ui/generic-ui-operation-list-button.component.js +1 -1
  419. package/generic-ui/generic-ui.component.js +1 -1
  420. package/generic-ui/generic-ui.service.js +1 -1
  421. package/groupsHierarchy/controllers/assetSearchCtrl.js +1 -1
  422. package/groupsHierarchy/controllers/groupDevicesCtrl.js +1 -1
  423. package/groupsHierarchy/controllers/groupsListCtrl.js +1 -1
  424. package/groupsHierarchy/groupsHierarchyUi.provider.js +1 -1
  425. package/htmlWidget/htmlWidget.controller.js +1 -1
  426. package/htmlWidget/htmlWidget.directive.js +1 -1
  427. package/infoGauge/infoGauge.controller.js +1 -1
  428. package/infoGauge/infoGaugeConfig.controller.js +1 -1
  429. package/kpi/controllers/deprecated/edit.js +1 -1
  430. package/kpi/controllers/deprecated/graph.js +1 -1
  431. package/kpi/controllers/deprecated/multipleKpiConfig.js +1 -1
  432. package/kpi/controllers/deprecated/setup.js +1 -1
  433. package/kpi/controllers/gauge.js +1 -1
  434. package/kpi/controllers/kpiConfig.js +1 -1
  435. package/kpi/controllers/list.js +1 -1
  436. package/kpi/controllers/pieChart.js +1 -1
  437. package/kpi/controllers/pieChartConfig.js +1 -1
  438. package/kpi/services/baseWidget.js +1 -1
  439. package/kpi/services/kpi.js +1 -1
  440. package/kpi/services/mostRecentKpi.js +1 -1
  441. package/map/controllers/geofenceEdit.js +1 -1
  442. package/measurements/controllers/lineChart.js +1 -1
  443. package/measurements/controllers/measurements.js +1 -1
  444. package/measurements/directives/lineChart.js +1 -1
  445. package/measurements/directives/timeIntervalChoice.js +1 -1
  446. package/measurements/fragmentChart/fragmentChart.component.js +1 -1
  447. package/measurements/measurements2/axisX.service.js +1 -1
  448. package/measurements/measurements2/axisY.service.js +1 -1
  449. package/measurements/measurements2/chart.controller.js +1 -1
  450. package/measurements/measurements2/chart.service.js +1 -1
  451. package/measurements/measurements2/hoverInfo.service.js +1 -1
  452. package/measurements/measurements2/rtAutoMove.service.js +1 -1
  453. package/measurements/measurements2/series.service.js +1 -1
  454. package/measurements/services/lineChartService.js +1 -1
  455. package/modbusConfiguration4/fieldbus-config.component.js +1 -1
  456. package/modbusConfiguration4/fieldbus-device-list.component.js +1 -1
  457. package/modbusConfiguration4/modbus-configuration-4.config.js +1 -1
  458. package/modbusWidget4/modbus-widget.service.js +1 -1
  459. package/modbusWidget4/widget-config.component.js +1 -1
  460. package/modbusWidget4/widget.component.js +1 -1
  461. package/modbusWidgets/controllers/widget.js +1 -1
  462. package/modbusWidgets/controllers/widgetConfig.js +1 -1
  463. package/modbusWidgets/services/modbusWidget.js +1 -1
  464. package/newsletter/downloadEmailsList.component.js +1 -1
  465. package/oauth/controllers/oauth.js +1 -1
  466. package/package.json +2 -2
  467. package/platformConfiguration/platformConfigurationForm.component.js +1 -1
  468. package/platformConfiguration/platformConfigurationUi.provider.js +1 -1
  469. package/propertiesLibrary/index.js +1 -1
  470. package/propertiesLibrary/jsonSchemaObjectEditor.component.js +1 -1
  471. package/propertiesLibrary/jsonSchemaObjectsList.component.js +1 -1
  472. package/qrCode/controllers/qrCode.js +1 -1
  473. package/qrCode/services/qrCodePrinter.js +1 -1
  474. package/qrCode/services/qrCodeTemplate.js +1 -1
  475. package/relayWidget/relay.service.js +1 -1
  476. package/remoteAccess/clients/remoteAccessClients.service.js +1 -1
  477. package/remoteAccess/clients/terminal/index.js +1 -1
  478. package/remoteAccess/clients/terminal/shell-adapter.js +1 -1
  479. package/remoteAccess/clients/terminal/telnet-negotiator.js +1 -1
  480. package/remoteAccess/clients/vnc/vncClient.js +1 -1
  481. package/remoteAccess/remoteAccess.service.js +1 -1
  482. package/remoteAccess/remoteAccessEndpointCard/remoteAccessEndpointCard.component.js +1 -1
  483. package/remoteAccess/remoteAccessEndpointModal/remoteAccessEndpointModal.component.js +1 -1
  484. package/remoteAccess/remoteAccessEndpointsList/remoteAccessEndpointsList.component.js +1 -1
  485. package/remoteAccess/remoteAccessSettings/remoteAccessSettings.component.js +1 -1
  486. package/remoteAccess/remoteAccessUI.provider.js +1 -1
  487. package/roles/detail/roleDetailGlobal.component.js +1 -1
  488. package/roles/detail/roleInventoryPermissionList.component.js +1 -1
  489. package/roles/list/rolesOverview.controller.js +1 -1
  490. package/roles/rolesUi.provider.js +1 -1
  491. package/scada/config.controller.js +1 -1
  492. package/scada/mapping.directive.js +1 -1
  493. package/scada/svg.directive.js +1 -1
  494. package/scada/util.service.js +1 -1
  495. package/scada/widget.controller.js +1 -1
  496. package/sigfox-provider-settings/sigfox-settings.service.js +1 -1
  497. package/simulators/add/simulatorAdd.component.js +1 -1
  498. package/simulators/detail/detail.controller.js +1 -1
  499. package/simulators/detail/instructionDetail.component.js +1 -1
  500. package/simulators/detail/instructionList.component.js +1 -1
  501. package/simulators/list/list.component.js +1 -1
  502. package/simulators/simulators.service.js +1 -1
  503. package/smartRestEditor/details.controller.js +1 -1
  504. package/smartRestEditor/importTemplate/importTemplate.component.js +1 -1
  505. package/smartRestEditor/requestEditor/requestEditor.component.js +1 -1
  506. package/smartRestEditor/responseEditor/responseEditor.component.js +1 -1
  507. package/smartRestEditor/validators/validateCustomFieldKeyInRequestTemplate.directive.js +1 -1
  508. package/smartRestEditor/validators/validateUniqueMsgIdInTemplate.directive.js +1 -1
  509. package/smartRestEditorUI/index.js +1 -1
  510. package/smartRules/controllers/add.js +1 -1
  511. package/smartRules/controllers/edit.js +1 -1
  512. package/smartRules/controllers/list.js +1 -1
  513. package/smartRules/controllers/smartRuleParamInput.js +1 -1
  514. package/smartRules/directives/smartRuleParamInput.js +1 -1
  515. package/smartRules/directives/smartRuleParamInputAlarmType.js +1 -1
  516. package/smartRules/directives/smartRuleParamInputEscalationSteps.js +1 -1
  517. package/smartRules/directives/smartRuleParamInputFrequency.js +1 -1
  518. package/smartRules/directives/smartRuleParamInputGeofence.js +1 -1
  519. package/smartRules/directives/smartRuleParamInputKpi.js +1 -1
  520. package/smartRules/directives/smartRuleParamInputTimeInterval.js +1 -1
  521. package/smartRules/list/smartRulesList.component.js +1 -1
  522. package/smartRules/services/smartRuleTemplates.js +1 -1
  523. package/smartRules/services/smartRules.js +1 -1
  524. package/switchDisplay/controller/switchDisplayCtrl.js +1 -1
  525. package/tenantApplications/controllers/main.js +1 -1
  526. package/tenantApplications/subscribed-applications/subscribed-applications.component.js +1 -1
  527. package/tenantLicenses/licenseManagement.component.js +1 -1
  528. package/tenantPolicies/retentionRule/retentionRuleRow.component.js +1 -1
  529. package/tenantPolicies/tenantPolicies.service.js +1 -1
  530. package/tenantPolicies/tenantPoliciesConfig.provider.js +1 -1
  531. package/tenantPolicies/tenantPolicyDetail/tenantPolicyDetail.component.js +1 -1
  532. package/tenantStatistics/tenant-statistics-columns.service.js +1 -1
  533. package/tenantStatistics/tenant-statistics.component.js +1 -1
  534. package/tenants/controllers/customProperties.js +1 -1
  535. package/tenants/controllers/detail.js +1 -1
  536. package/tenants/index.js +1 -1
  537. package/trackerConfiguration/controllers/trackerConfiguration.controller.js +1 -1
  538. package/trackerConfiguration/index.js +1 -1
  539. package/trackerConfiguration/services/realtimeLockup.service.js +1 -1
  540. package/trackerConfiguration/services/trackerLocation.service.js +1 -1
  541. package/trackerModels/trackerModels.service.js +1 -1
  542. package/trackerRegistration/index.js +1 -1
  543. package/trackerRegistration/trackerRegistration.controller.js +1 -1
  544. package/trackerRegistration/trackerRegistrationHistory.service.js +1 -1
  545. package/trackingAppConfig/index.js +1 -1
  546. package/trafficLightWidget/states-mapping.component.js +1 -1
  547. package/trafficLightWidget/traffic-light.component.js +1 -1
  548. package/userRoles/inventoryRoleSelector/inventoryRoleSelector.component.js +1 -1
  549. package/userRoles/inventoryRolesTab/inventoryRolesTab.component.js +1 -1
  550. package/userRoles/rolesAssetTree/rolesAssetTree.component.js +1 -1
  551. package/userRoles/userRoles.service.js +1 -1
  552. package/userRoles/userRolesUi.service.js +1 -1
  553. package/users/aclEditor/aclEditor.directive.js +1 -1
  554. package/users/applicationAccess/applicationAccess.directive.js +1 -1
  555. package/users/userDetailView/userApplicationAccess.component.js +1 -1
  556. package/users/userDetailView/userDetailView.component.js +1 -1
  557. package/users/userListView/userListView.component.js +1 -1
  558. package/users/usersUi.provider.js +1 -1
@@ -1 +1 @@
1
- "use strict";function _slicedToArray(e,r){return _arrayWithHoles(e)||_iterableToArrayLimit(e,r)||_unsupportedIterableToArray(e,r)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,r):void 0}}function _arrayLikeToArray(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function _iterableToArrayLimit(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,i,o,c,a=[],s=!0,u=!1;try{if(o=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;s=!1}else for(;!(s=(n=o.call(t)).done)&&(a.push(n.value),a.length!==r);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=t.return&&(c=t.return(),Object(c)!==c))return}finally{if(u)throw i}}return a}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _typeof(e){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(){function e(c,n,i,o,r,t,a,s,u){var l=20,f={};function d(e){c.properties=[],f={},c.renderedDevices=f,c.parentId=e.device&&e.device.id||e.options&&e.options.parentId,s.list().then(angular.bind(u,u.filterAndExtendWithStoredProperties,c.child.config.options.properties)).then(p).then(function(e){c.properties=e,c.parentId?function(e){return i.detailRealtime(e,c)}(c.parentId).then(y).then(h):c.devices=_.map(c.devices,b)})}function p(e){return _.filter(e,"__active")}function y(e){r.isGroup(e)||(c.devices||(c.devices=[]),c.devices.push(e))}function h(){return function(e){var r={pageSize:l},t=o.createListMapper(function(e){return e.managedObject});return n.all([v(e,"childAssets",r).then(t),v(e,"childDevices",r).then(t)]).then(o.combineLists)}(c.parentId).then(e)}function v(r,t,e){var n=o.cleanListCallback("references",function(e){return v(r,t,e)},e,!0);return i.children(r,t,{params:e}).then(n)}function e(e){c.devices||(c.devices=[]),e.forEach(function(e){i.detailRealtime(e,c),c.devices.push(e)}),c.paging=e.paging}function g(e){var r=e;_.isArray(r)&&(r=r.join("."));var t=_slicedToArray(r.match(/^(-?)(.*)$/),3),n=t[1],i=t[2],o="-"===n?"desc":"asc";-1<i.indexOf("lastMeasurement")?c.devices=_.orderBy(c.devices,[function(t){return function(e){if("object"!==_typeof(e[t])&&""!==e[t]){var r=String(e[t]).split("|");if(2===r.length)return moment(r[0],"L, LTS").toDate()}}}(i),function(t){return function(e){if("object"!==_typeof(e[t])&&""!==e[t]){var r=String(e[t]).split("|");return 2===r.length?parseFloat(r[1]):parseFloat(r[0])}}}(i)],[o,o]):c.devices=_.orderBy(c.devices,i,o),c.$broadcast("c8yScrollLoad::refresh")}function b(e){return a.attach(e),t.attach(e,c.properties),e}c.$watch("child.config",function(e,r){e&&!_.isEqual(e,r)&&d(c.child.config)}),_.assign(c,{getArrows:function(e){return!!c.child.config.options.arrows[e]},orderBy:g,orderDownBy:function(e){var r=e;_.isArray(r)&&(r=r.join("."));g("-".concat(r))},loadNext:function(){c.paging.loading=!0,c.paging.next().then(e).finally(function(){c.paging.loading=!1})},buildFields:function(e,r){return function(e,r){for(var t=e,n=0;n<(r||[]).length&&null!=t;n++)t=t[r[n]];return t}(e,r)},getAssetLinkIfNeeded:function(e,r){var t=null;(function(e){return e===_.findIndex(c.properties,function(e){var r=e.renderType;return _.isUndefined(r)})})(r)&&(t=u.getAssetLink(e));return t},setArrows:function(e){c.child.config.options.arrows[e]=!c.child.config.options.arrows[e]},renderedDevices:f,renderDevice:function(e){var r=e.id;f[r]||(b(e),f[r]=!0)},renderedAllDevices:function(){return Boolean(c.devices&&c.devices.length===_.keys(f).length)}}),d(c.child.config)}e.$inject=["$scope","$q","c8yInventory","c8yBase","c8yGroups","c8yComputedProperties","c8yObjectActions","c8yPropertiesLibrary","assetsSvc"],angular.module("c8y.assets").controller("AssetsCtrl",e)}();
1
+ "use strict";function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){var r;if(e)return"string"==typeof e?_arrayLikeToArray(e,t):"Map"===(r="Object"===(r=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _iterableToArrayLimit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,c,a=[],s=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=o.call(r)).done)&&(a.push(n.value),a.length!==t);s=!0);}catch(e){l=!0,i=e}finally{try{if(!s&&null!=r.return&&(c=r.return(),Object(c)!==c))return}finally{if(l)throw i}}return a}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _typeof(e){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(){function e(i,n,o,c,t,r,a,s,l){var u=20,f={};function d(e){i.properties=[],f={},i.renderedDevices=f,i.parentId=e.device&&e.device.id||e.options&&e.options.parentId,s.list().then(angular.bind(l,l.filterAndExtendWithStoredProperties,i.child.config.options.properties)).then(p).then(function(e){i.properties=e,i.parentId?function(e){return o.detailRealtime(e,i)}(i.parentId).then(y).then(h):i.devices=_.map(i.devices,m)})}function p(e){return _.filter(e,"__active")}function y(e){t.isGroup(e)||(i.devices||(i.devices=[]),i.devices.push(e))}function h(){return e=i.parentId,t={pageSize:u},r=c.createListMapper(function(e){return e.managedObject}),n.all([g(e,"childAssets",t).then(r),g(e,"childDevices",t).then(r)]).then(c.combineLists).then(v);var e,t,r}function g(t,r,e){var n=c.cleanListCallback("references",function(e){return g(t,r,e)},e,!0);return o.children(t,r,{params:e}).then(n)}function v(e){i.devices||(i.devices=[]),e.forEach(function(e){o.detailRealtime(e,i),i.devices.push(e)}),i.paging=e.paging}function e(e,t){for(var r=e,n=0;n<(t||[]).length&&null!=r;n++)r=r[t[n]];return r}function b(e){var t,r,e=_slicedToArray((e=_.isArray(e)?e.join("."):e).match(/^(-?)(.*)$/),3),n=e[1],e=e[2],n="-"===n?"desc":"asc";-1<e.indexOf("lastMeasurement")?i.devices=_.orderBy(i.devices,[function(e){if("object"!==_typeof(e[r])&&""!==e[r]){e=String(e[r]).split("|");if(2===e.length)return moment(e[0],"L, LTS").toDate()}},(t=r=e,function(e){if("object"!==_typeof(e[t])&&""!==e[t])return 2===(e=String(e[t]).split("|")).length?parseFloat(e[1]):parseFloat(e[0])})],[n,n]):i.devices=_.orderBy(i.devices,e,n),i.$broadcast("c8yScrollLoad::refresh")}function m(e){return a.attach(e),r.attach(e,i.properties),e}i.$watch("child.config",function(e,t){e&&!_.isEqual(e,t)&&d(i.child.config)}),_.assign(i,{getArrows:function(e){return!!i.child.config.options.arrows[e]},orderBy:b,orderDownBy:function(e){_.isArray(e)&&(e=e.join("."));b("-".concat(e))},loadNext:function(){i.paging.loading=!0,i.paging.next().then(v).finally(function(){i.paging.loading=!1})},buildFields:e,getAssetLinkIfNeeded:function(e,t){var r=null;!function(e){return e===_.findIndex(i.properties,function(e){e=e.renderType;return _.isUndefined(e)})}(t)||(r=l.getAssetLink(e));return r},setArrows:function(e){i.child.config.options.arrows[e]=!i.child.config.options.arrows[e]},renderedDevices:f,renderDevice:function(e){var t=e.id;f[t]||(m(e),f[t]=!0)},renderedAllDevices:function(){return Boolean(i.devices&&i.devices.length===_.keys(f).length)}}),d(i.child.config)}e.$inject=["$scope","$q","c8yInventory","c8yBase","c8yGroups","c8yComputedProperties","c8yObjectActions","c8yPropertiesLibrary","assetsSvc"],angular.module("c8y.assets").controller("AssetsCtrl",e)}();
@@ -1 +1 @@
1
- "use strict";!function(){function n(e){return{filterAndExtendWithStoredProperties:function(n,r){var t=_(n).map(function(t){var n=_.find(r,function(n){return n.id===t.id});return n?_.assign({},n,t):t}).value();return t.length?t:void 0},getAssetLink:function(n){var t=e.isGroup(n)?"group":"device",r="";return _.has(n,"id")&&(r="#/".concat(t,"/").concat(n.id)),r}}}n.$inject=["c8yGroups"],angular.module("c8y.assets").factory("assetsSvc",n)}();
1
+ "use strict";!function(){function n(e){return{filterAndExtendWithStoredProperties:function(n,r){return(n=_(n).map(function(t){var n=_.find(r,function(n){return n.id===t.id});return n?_.assign({},n,t):t}).value()).length?n:void 0},getAssetLink:function(n){var t=e.isGroup(n)?"group":"device",r="";return r=_.has(n,"id")?"#/".concat(t,"/").concat(n.id):r}}}n.$inject=["c8yGroups"],angular.module("c8y.assets").factory("assetsSvc",n)}();
@@ -1 +1 @@
1
- "use strict";!function(){function e(e,t,n,r){e.add({name:r("Asset table"),description:r("List of child devices of an asset with configurable columns."),templateUrl:":::PLUGIN_PATH:::/views/assets2.html",configTemplateUrl:":::PLUGIN_PATH:::/views/assetsConfig2.html",previewImage:":::PLUGIN_PATH:::/img/asset-table-widget-pr.png",options:{groupsSelectable:!0}}),t.register("iconMap",{templateUrl:":::PLUGIN_PATH:::/views/iconMap2.html",configTemplateUrl:":::PLUGIN_PATH:::/views/configIconMap2.html",configController:"configIconMapCtrl",humanName:r("Icon"),description:r("Shows a different value for each configured value.")}),t.register("alarmStatus",{templateUrl:":::PLUGIN_PATH:::/views/rendererAlarmStatus.html",humanName:r("Active alarms status"),description:r("Shows the active alarms for device"),isDefaultFor:function(e){return"c8ySchema!!c8y_ActiveAlarmsStatus"===e.id}}),t.register("operationButton",{templateUrl:":::PLUGIN_PATH:::/views/rendererButton.html",configTemplateUrl:":::PLUGIN_PATH:::/views/rendererButtonConfig.html",configController:"RendererButtonConfigCtrl",humanName:r("Operation button"),description:r("Button to execute an operation on a device"),isDefaultFor:function(e){return e.isAction}}),n.register("createOperation",["c8yDeviceControl","object",function(n,r){return function(e){var t=_.cloneDeep(e);return t.deviceId=r.id,n.createWithNotifications(t)}}],{label:r("Create operation")}),n.register("toggleMaintenanceMode",["c8yDevices","object",function(e,t){return function(){return e.switchResponseInterval(t)}}],{label:r("Toggle maintenance mode"),attachIf:["c8yDevices","target",function(e,t){return e.canSwitchResponseInterval(t)}]})}e.$inject=["c8yComponentsProvider","c8yRenderersProvider","c8yObjectActionsProvider","gettext"],angular.module("c8y.assets",["ui.sortable"]).config(e)}();
1
+ "use strict";!function(){function e(e,t,n,r){e.add({name:r("Asset table"),description:r("List of child devices of an asset with configurable columns."),templateUrl:":::PLUGIN_PATH:::/views/assets2.html",configTemplateUrl:":::PLUGIN_PATH:::/views/assetsConfig2.html",previewImage:":::PLUGIN_PATH:::/img/asset-table-widget-pr.png",options:{groupsSelectable:!0}}),t.register("iconMap",{templateUrl:":::PLUGIN_PATH:::/views/iconMap2.html",configTemplateUrl:":::PLUGIN_PATH:::/views/configIconMap2.html",configController:"configIconMapCtrl",humanName:r("Icon"),description:r("Shows a different value for each configured value.")}),t.register("alarmStatus",{templateUrl:":::PLUGIN_PATH:::/views/rendererAlarmStatus.html",humanName:r("Active alarms status"),description:r("Shows the active alarms for device"),isDefaultFor:function(e){return"c8ySchema!!c8y_ActiveAlarmsStatus"===e.id}}),t.register("operationButton",{templateUrl:":::PLUGIN_PATH:::/views/rendererButton.html",configTemplateUrl:":::PLUGIN_PATH:::/views/rendererButtonConfig.html",configController:"RendererButtonConfigCtrl",humanName:r("Operation button"),description:r("Button to execute an operation on a device"),isDefaultFor:function(e){return e.isAction}}),n.register("createOperation",["c8yDeviceControl","object",function(t,n){return function(e){e=_.cloneDeep(e);return e.deviceId=n.id,t.createWithNotifications(e)}}],{label:r("Create operation")}),n.register("toggleMaintenanceMode",["c8yDevices","object",function(e,t){return function(){return e.switchResponseInterval(t)}}],{label:r("Toggle maintenance mode"),attachIf:["c8yDevices","target",function(e,t){return e.canSwitchResponseInterval(t)}]})}e.$inject=["c8yComponentsProvider","c8yRenderersProvider","c8yObjectActionsProvider","gettext"],angular.module("c8y.assets",["ui.sortable"]).config(e)}();
@@ -1 +1 @@
1
- "use strict";!function(){function e(a,n,i,c,o){function e(){var e=a.config,t=a.obj;t&&e&&(_.isFunction(e.hideIf)&&(a.hidden=e.hideIf(t)),_.isFunction(e.disableIf)&&(a.disabled=e.disableIf(t)))}function r(e){if(function(e){return!!(e&&e.created&&e.created.then&&e.completed&&e.completed.then)}(e)){var t=e;t.operationConfig.then(function(e){t.created.then(function(){n.success(c.getString('Operation "{{ description | translate }}" will be executed.',e))},u),t.completed.then(function(e){u(),e.status===o.status.SUCCESSFUL?n.success(c.getString('Operation "{{ description | translate }}" succeeded.',e)):e.status===o.status.FAILED&&(e.failureReason?n.danger(c.getString('Operation "{{ description | translate }}" failed: "{{ failureReason | translate }}".',e)):n.danger(c.getString('Operation "{{ description | translate }}" failed.',e)))},u)})}else u(),n.success(i("Operation completed."))}function s(){u(),n.danger(i("Operation failed."))}function u(){a.pending=!1}a.isApplicable=function(){var e=a.value;return _.isFunction(e)},a.click=function(){var e,t=a.value,n=a.obj,i=a.config.args;_.isFunction(t)&&(i?n&&(e=t.apply(n,i)):e=t()),e&&(a.pending=!0,e.then(r,s))},a.$watch("value",e),a.$watch("obj",e),a.$watch("config",e),a.getBtnText=function(e){return e||i("Run")}}e.$inject=["$scope","c8yAlert","gettext","gettextCatalog","c8yDeviceControl"],angular.module("c8y.assets").controller("RendererButtonCtrl",e)}();
1
+ "use strict";!function(){function e(a,i,c,o,r){function e(){var e=a.config,t=a.obj;t&&e&&(_.isFunction(e.hideIf)&&(a.hidden=e.hideIf(t)),_.isFunction(e.disableIf))&&(a.disabled=e.disableIf(t))}function s(e){var t,n;!!((t=e)&&t.created&&t.created.then&&t.completed&&t.completed.then)?(n=e).operationConfig.then(function(e){n.created.then(function(){i.success(o.getString('Operation "{{ description | translate }}" will be executed.',e))},l),n.completed.then(function(e){l(),e.status===r.status.SUCCESSFUL?i.success(o.getString('Operation "{{ description | translate }}" succeeded.',e)):e.status===r.status.FAILED&&(e.failureReason?i.danger(o.getString('Operation "{{ description | translate }}" failed: "{{ failureReason | translate }}".',e)):i.danger(o.getString('Operation "{{ description | translate }}" failed.',e)))},l)}):(l(),i.success(c("Operation completed.")))}function u(){l(),i.danger(c("Operation failed."))}function l(){a.pending=!1}a.isApplicable=function(){var e=a.value;return _.isFunction(e)},a.click=function(){var e,t=a.value,n=a.obj,i=a.config.args;_.isFunction(t)&&(i?n&&(e=t.apply(n,i)):e=t()),e&&(a.pending=!0,e.then(s,u))},a.$watch("value",e),a.$watch("obj",e),a.$watch("config",e),a.getBtnText=function(e){return e||c("Run")}}e.$inject=["$scope","c8yAlert","gettext","gettextCatalog","c8yDeviceControl"],angular.module("c8y.assets").controller("RendererButtonCtrl",e)}();
@@ -1 +1 @@
1
- "use strict";angular.module("c8y.assets").controller("RendererButtonConfigCtrl",["$scope","$uibModalInstance","$q","c8yDeviceShell","config","gettext","gettextCatalog",function(e,t,o,i,n,c,a){var r=[],d=n.deviceTypes||[];function s(t){r.length=0,_.forEach(t,function(t){r.push({name:a.getString(t.name),text:t.command,category:a.getString(t.category),deviceType:t.deviceType})})}function u(t,e){!function(t){n.args=[t]}({description:t,c8y_Command:{text:e}})}function m(t){e.showEditor=void 0===t?!e.showEditor:t}e.showEditor=!1,e.config=n,e.commandTemplates=r,e.chooseOperation=function(t){m(!0),u(t.name,t.text)},e.close=function(){t.close(n)},e.expandTooltip=function(){return e.showEditor?c("Click to hide command editor"):c("Click to view command editor")},e.expandIcon=function(){return e.showEditor?"caret-square-o-up":"caret-square-o-down"},e.toggleEditor=m,e.dismiss=t.dismiss,e.data={},n.args&&n.args.length||u(a.getString("Command description"),"<command>"),function(){var n=[];_.map(d,function(t){var e;n.push((e=t,i.getCommandTemplatesForDeviceType(e).then(_.identity,function(){return[]})))}),o.all(n).then(_.flattenDeep).then(s)}()}]);
1
+ "use strict";angular.module("c8y.assets").controller("RendererButtonConfigCtrl",["$scope","$uibModalInstance","$q","c8yDeviceShell","config","gettext","gettextCatalog",function(e,t,n,o,i,c,a){var r=[],d=i.deviceTypes||[];function s(t){r.length=0,_.forEach(t,function(t){r.push({name:a.getString(t.name),text:t.command,category:a.getString(t.category),deviceType:t.deviceType})})}function m(t,e){t={description:t,c8y_Command:{text:e}},i.args=[t]}function u(t){e.showEditor=void 0!==t?t:!e.showEditor}e.showEditor=!1,e.config=i,e.commandTemplates=r,e.chooseOperation=function(t){u(!0),m(t.name,t.text)},e.close=function(){t.close(i)},e.expandTooltip=function(){return e.showEditor?c("Click to hide command editor"):c("Click to view command editor")},e.expandIcon=function(){return e.showEditor?"caret-square-o-up":"caret-square-o-down"},e.toggleEditor=u,e.dismiss=t.dismiss,e.data={},i.args&&i.args.length||m(a.getString("Command description"),"<command>"),function(){var e=[];_.map(d,function(t){e.push(o.getCommandTemplatesForDeviceType(t).then(_.identity,function(){return[]}))}),n.all(e).then(_.flattenDeep).then(s)}()}]);
@@ -1 +1 @@
1
- "use strict";angular.module("c8y.assets").controller("RendererIconCtrl",["$scope","c8yComparisons",function(r,a){function o(){var c=r.value,o=r.config||{},n=o.map||[],e=_.find(n,function(o){return a.compare(a.convertDeprecatedComparisonType(o.comparison),c,o.value)});r.icon=e&&e.icon,r.color=e&&e.color}r.$watch("value",o),r.$watch("config",o)}]);
1
+ "use strict";angular.module("c8y.assets").controller("RendererIconCtrl",["$scope","c8yComparisons",function(n,e){function o(){var c=n.value,o=(n.config||{}).map||[],o=_.find(o,function(o){return e.compare(e.convertDeprecatedComparisonType(o.comparison),c,o.value)});n.icon=o&&o.icon,n.color=o&&o.color}n.$watch("value",o),n.$watch("config",o)}]);
@@ -1 +1 @@
1
- "use strict";angular.module("c8y.assets").directive("c8ySort",function(){return{restrict:"E",templateUrl:":::PLUGIN_PATH:::/views/sort2.html",require:"^c8ySortGroup",link:function(n,i,t,r){var c,o=i.parent(),e={color:"#000"};function u(){c=null,n.visibility="hidden"}function s(i){var t="".concat(i,"Action");c=i,n.upCss=null,n.downCss=n.upCss,n["".concat(i,"Css")]=e,n.visibility="visible",n[t]&&n[t]()}o.css({cursor:"pointer"}).on("click",function(i){var t;i.preventDefault(),t="down"===c?"up":"down",n.$apply(function(){r.click(n),s(t)})}),n.sort=s,n.visibility="hidden",n.otherClicked=u,r.add(n)},scope:{downAction:"&",upAction:"&"}}}).directive("c8ySortGroup",function(){return{restrict:"A",controller:function(){var n=[];return{add:function(i){n.push(i)},click:function(t){_(n).filter(function(i){return i!==t}).invokeMap("otherClicked").value()}}}}});
1
+ "use strict";angular.module("c8y.assets").directive("c8ySort",function(){return{restrict:"E",templateUrl:":::PLUGIN_PATH:::/views/sort2.html",require:"^c8ySortGroup",link:function(n,i,t,r){var c,i=i.parent(),o={color:"#000"};function e(i){var t="".concat(i,"Action");c=i,n.upCss=null,n.downCss=n.upCss,n["".concat(i,"Css")]=o,n.visibility="visible",n[t]&&n[t]()}i.css({cursor:"pointer"}).on("click",function(i){var t;i.preventDefault(),t="down"===c?"up":"down",n.$apply(function(){r.click(n),e(t)})}),n.sort=e,n.visibility="hidden",n.otherClicked=function(){c=null,n.visibility="hidden"},r.add(n)},scope:{downAction:"&",upAction:"&"}}}).directive("c8ySortGroup",function(){return{restrict:"A",controller:function(){var n=[];return{add:function(i){n.push(i)},click:function(t){_(n).filter(function(i){return i!==t}).invokeMap("otherClicked").value()}}}}});
@@ -1 +1 @@
1
- "use strict";!function(){function e(o,i,c,n,t,e,s,a,r,u,d,l,f){function v(e){o.counters={},function(e){_.forEach(e,function(t){o.counters[t.id]={},_.forEach(_.filter(d,g),function(e){!function(e,t){var n=o.counters[e.id],i=t.counter({dateFrom:t.dateFrom,type:o.options.data[t.name].type,source:e.id});(n[t.name]=i).onNotification(function(){o.realtimeAnimation=!0}),i.start()}(t,e)})})}(e),o.devices=e}function m(e){_.forEach(e,function(t){_.forEach(d,function(e){!function(e,t){var n=o.counters[e.id][t.name];n&&n.stop()}(t,e)})})}function g(e){return!!o.options.data[e.name]}function p(e){o.devices&&m(o.devices),o.options=e,function(e){var t=_.map(e,"id").join(",");n.list({ids:t}).then(v)}(o.options.assets)}function h(e){return u.checkIfModulesExist(["c8y.deviceDetailControl","c8y.parts.deviceControlList"])?f.getString('To see the result click <a href="#/device/{{deviceId}}/control">here</a>',{deviceId:e}):""}o.counterColumns=d,o.realtimeChannel="/managedobjects/*",o.lastValidMessageIcon=t.lastValidMessageIcon,o.lastValidMessageColor=t.lastValidMessageColor,o.lastValidMessageTooltip=t.lastValidMessageTooltip,o.orderBy=function(e){o.devices=i("orderBy")(o.devices,e)},o.getIcon=function(e,t,n){if(!e)return{icon:"question-circle-o",color:"red"};var i=function(t){return _.find(o.options.iconsMap,function(e){return e.id===t})}(e);return _.find(i.map,function(e){return s.compare(e.comparison,angular.lowercase(e.value),function(e,t){var n={obj:t},i=c("obj.".concat(e))(n);return _.isObjectLike(i)&&(i=angular.toJson(i)),angular.lowercase(String(i))}(t,n))})},o.switchMaintenance=function(e){t.switchResponseInterval(e)},o.orderAlarms=function(e){o.devices=_.sortBy(o.devices,function(e){var t=e.c8y_ActiveAlarmsStatus||{};return[t.critical,t.major,t.minor,t.warning]}),e&&o.devices.reverse()},o.orderLastValidMessage=function(e){o.devices=_.sortBy(o.devices,function(e){return t.isLastValidMessage(e)}),e&&o.devices.reverse()},o.orderByCount=function(e,t){var n=_.map(o.devices,function(e){return _.assign({},e,{counter:o.counters[e.id]})});n=i("orderBy")(n,"counter.".concat(e,".count"),t),o.devices=_.map(n,function(e){return delete e.counter,e})},o.executeOperation=function(t,n){var i=_.cloneDeep(t.json);i.deviceId=n,t.isPending=t.isPending||{},a.createWithNotifications(i).then(function(e){t.isPending[n]=!0,e.created.then(function(){return r.success(f.getString('"{{description | translate}}" will be executed.',i))}),e.completed.then(function(e){t.isPending[n]=!1,e.status===a.status.SUCCESSFUL?r.info("".concat(f.getString('"{{description | translate}}" completed.',i)," ").concat(h(n))):e.status===a.status.FAILED&&r.danger("".concat(f.getString("{{description | translate}} failed.",i)," ").concat(h(n)))})})},o.statusIcon=t.statusIcon,o.statusClass=t.statusClass,o.tooltip=_.memoize(t.availabilityTooltip,function(e){return e.id}),o.$watch("child.config.options",function(e,t){e&&!_.isEqual(e,t)&&p(e)}),e.addListener(o.$id,o.realtimeChannel,"".concat(o.$id,"-subscribed"),function(){o.realtimeAnimation=!1,p(o.child.config.options)}),e.addListener(o.$id,o.realtimeChannel,e.realtimeActions().UPDATE,function(e,t){for(var n in o.realtimeAnimation=!0,o.devices)o.devices[n].id===t.id&&(o.devices[n]=t)}),e.switchRealtime(o.$id,o.realtimeChannel)}e.$inject=["$scope","$filter","$parse","c8yInventory","c8yDevices","c8yRealtime","c8yComparisons","c8yDeviceControl","c8yAlert","c8yBase","counterColumns","gettext","gettextCatalog"],angular.module("c8y.assets").controller("AssetsCtrl",e)}();
1
+ "use strict";!function(){function e(o,i,c,t,n,e,s,a,r,d,l,u,f){function m(e){o.counters={},_.forEach(e,function(i){o.counters[i.id]={},_.forEach(_.filter(l,g),function(e){var t,n;t=i,e=e,n=o.counters[t.id],t=e.counter({dateFrom:e.dateFrom,type:o.options.data[e.name].type,source:t.id}),(n[e.name]=t).onNotification(function(){o.realtimeAnimation=!0}),t.start()})}),o.devices=e}function v(e){_.forEach(e,function(n){_.forEach(l,function(e){var t=n;(t=o.counters[t.id][e.name])&&t.stop()})})}function g(e){return!!o.options.data[e.name]}function p(e){o.devices&&v(o.devices),o.options=e,e=o.options.assets,e=_.map(e,"id").join(","),t.list({ids:e}).then(m)}function h(e){return d.checkIfModulesExist(["c8y.deviceDetailControl","c8y.parts.deviceControlList"])?f.getString('To see the result click <a href="#/device/{{deviceId}}/control">here</a>',{deviceId:e}):""}o.counterColumns=l,o.realtimeChannel="/managedobjects/*",o.lastValidMessageIcon=n.lastValidMessageIcon,o.lastValidMessageColor=n.lastValidMessageColor,o.lastValidMessageTooltip=n.lastValidMessageTooltip,o.orderBy=function(e){o.devices=i("orderBy")(o.devices,e)},o.getIcon=function(e,n,i){var t;return e?(t=e,e=_.find(o.options.iconsMap,function(e){return e.id===t}),_.find(e.map,function(e){return s.compare(e.comparison,angular.lowercase(e.value),(e={obj:e=i},t=c("obj.".concat(t=n))(e),_.isObjectLike(t)&&(t=angular.toJson(t)),angular.lowercase(String(t))));var t})):{icon:"question-circle-o",color:"red"}},o.switchMaintenance=function(e){n.switchResponseInterval(e)},o.orderAlarms=function(e){o.devices=_.sortBy(o.devices,function(e){e=e.c8y_ActiveAlarmsStatus||{};return[e.critical,e.major,e.minor,e.warning]}),e&&o.devices.reverse()},o.orderLastValidMessage=function(e){o.devices=_.sortBy(o.devices,function(e){return n.isLastValidMessage(e)}),e&&o.devices.reverse()},o.orderByCount=function(e,t){var n=_.map(o.devices,function(e){return _.assign({},e,{counter:o.counters[e.id]})}),n=i("orderBy")(n,"counter.".concat(e,".count"),t);o.devices=_.map(n,function(e){return delete e.counter,e})},o.executeOperation=function(t,n){var i=_.cloneDeep(t.json);i.deviceId=n,t.isPending=t.isPending||{},a.createWithNotifications(i).then(function(e){t.isPending[n]=!0,e.created.then(function(){return r.success(f.getString('"{{description | translate}}" will be executed.',i))}),e.completed.then(function(e){t.isPending[n]=!1,e.status===a.status.SUCCESSFUL?r.info("".concat(f.getString('"{{description | translate}}" completed.',i)," ").concat(h(n))):e.status===a.status.FAILED&&r.danger("".concat(f.getString("{{description | translate}} failed.",i)," ").concat(h(n)))})})},o.statusIcon=n.statusIcon,o.statusClass=n.statusClass,o.tooltip=_.memoize(n.availabilityTooltip,function(e){return e.id}),o.$watch("child.config.options",function(e,t){e&&!_.isEqual(e,t)&&p(e)}),e.addListener(o.$id,o.realtimeChannel,"".concat(o.$id,"-subscribed"),function(){o.realtimeAnimation=!1,p(o.child.config.options)}),e.addListener(o.$id,o.realtimeChannel,e.realtimeActions().UPDATE,function(e,t){for(var n in o.realtimeAnimation=!0,o.devices)o.devices[n].id===t.id&&(o.devices[n]=t)}),e.switchRealtime(o.$id,o.realtimeChannel)}e.$inject=["$scope","$filter","$parse","c8yInventory","c8yDevices","c8yRealtime","c8yComparisons","c8yDeviceControl","c8yAlert","c8yBase","counterColumns","gettext","gettextCatalog"],angular.module("c8y.assets").controller("AssetsCtrl",e)}();
@@ -1 +1 @@
1
- "use strict";!function(){function n(e,t,o,i,a,c,n,s,r){var u={fragment:"",iconMap:"",label:""},l=[];function p(n){return t.all([o.childDevices(n),o.childAssets(n)]).then(_.flattenDeep)}function f(n){l=n,function(n){o.detail(n).then(a.getResData).then(d)}(e.config.options.parentId)}function d(n){c.isGroup(n)||l.push(n),function(n){e.assets=n}(function(n){return _.map(n,function(t){var n=_.find(e.config.options.assets,function(n){return n.id===t.id});return n&&_.assign(t,n),t})}(function(n){var t=["id","name","type"];return _.map(n,function(e){return _.reduce(t,function(n,t){return n[t]=e.managedObject?e.managedObject[t]:e[t],n},{})})}(l)))}function g(n){return _.filter(n,function(n){return n.__active})}function m(n){e.config.options.iconsMap=n}function h(n,t){n.operation=t}e.assets=[],e.updateOptions=function(){e.config.options.assets=g(e.assets)},e.addCustomColumn=function(){e.config.options.customColumns.push(_.cloneDeep(u))},e.addDeviceShellOperationButton=function(){e.config.options.deviceShellOperationButtons.push({label:""})},e.addOperation=function(n){return i({templateUrl:":::PLUGIN_PATH:::/views/addOperation.html",title:s("Add operation"),controller:"addOperationCtrl",resolve:{deviceTypes:function(){return function(n){return _(g(n)).filter("type").map("type").uniq().value()}(e.assets)},operation:function(){return n.operation||{}}}}).then(_.partial(h,n))},e.onDelete=function(n,t){n.splice(t,1)},e.addIconMap=function(){return i({templateUrl:":::PLUGIN_PATH:::/views/addIconMap.html",title:s("Add icon map"),controller:"addIconMapCtrl",resolve:{iconsMap:function(){return e.config.options.iconsMap||[]}},size:"lg"}).then(m)},e.countConfig=function(t){var n=e.$new(!0);n.type=e.config.options.data[t.name].type,n.title=r.getString("Configure column: {{label}}",t),i({templateUrl:":::PLUGIN_PATH:::/views/countConfig.html",size:"lg",scope:n}).then(function(n){e.config.options.data[t.name]=n&&{type:n}||!0})},e.counterColumns=n,e.$watch("config.device",function(n){n&&(e.config.options.parentId=n.id,p(n.id).then(f))}),e.config.options?p(e.config.options.parentId).then(f):e.config.options={data:{availability:!0,alarms:!0,communication:!0,location:!0,lastValidMessage:!0,maintenance:!0},customColumns:[],deviceShellOperationButtons:[]}}n.$inject=["$scope","$q","c8yInventory","c8yModal","c8yBase","c8yGroups","counterColumns","gettext","gettextCatalog"],angular.module("c8y.assets").controller("AssetsConfigCtrl",n)}();
1
+ "use strict";!function(){function n(e,t,o,i,a,c,n,s,r){var u={fragment:"",iconMap:"",label:""},l=[];function p(n){return t.all([o.childDevices(n),o.childAssets(n)]).then(_.flattenDeep)}function f(n){l=n,n=e.config.options.parentId,o.detail(n).then(a.getResData).then(d)}function d(n){var t;c.isGroup(n)||l.push(n),n=l,t=["id","name","type"],n=_.map(n,function(e){return _.reduce(t,function(n,t){return n[t]=(e.managedObject||e)[t],n},{})}),n=_.map(n,function(t){var n=_.find(e.config.options.assets,function(n){return n.id===t.id});return n&&_.assign(t,n),t}),e.assets=n}function g(n){return _.filter(n,function(n){return n.__active})}function m(n){e.config.options.iconsMap=n}function h(n,t){n.operation=t}e.assets=[],e.updateOptions=function(){e.config.options.assets=g(e.assets)},e.addCustomColumn=function(){e.config.options.customColumns.push(_.cloneDeep(u))},e.addDeviceShellOperationButton=function(){e.config.options.deviceShellOperationButtons.push({label:""})},e.addOperation=function(n){return i({templateUrl:":::PLUGIN_PATH:::/views/addOperation.html",title:s("Add operation"),controller:"addOperationCtrl",resolve:{deviceTypes:function(){return n=e.assets,_(g(n)).filter("type").map("type").uniq().value();var n},operation:function(){return n.operation||{}}}}).then(_.partial(h,n))},e.onDelete=function(n,t){n.splice(t,1)},e.addIconMap=function(){return i({templateUrl:":::PLUGIN_PATH:::/views/addIconMap.html",title:s("Add icon map"),controller:"addIconMapCtrl",resolve:{iconsMap:function(){return e.config.options.iconsMap||[]}},size:"lg"}).then(m)},e.countConfig=function(t){var n=e.$new(!0);n.type=e.config.options.data[t.name].type,n.title=r.getString("Configure column: {{label}}",t),i({templateUrl:":::PLUGIN_PATH:::/views/countConfig.html",size:"lg",scope:n}).then(function(n){e.config.options.data[t.name]=!n||{type:n}})},e.counterColumns=n,e.$watch("config.device",function(n){n&&(e.config.options.parentId=n.id,p(n.id).then(f))}),e.config.options?p(e.config.options.parentId).then(f):e.config.options={data:{availability:!0,alarms:!0,communication:!0,location:!0,lastValidMessage:!0,maintenance:!0},customColumns:[],deviceShellOperationButtons:[]}}n.$inject=["$scope","$q","c8yInventory","c8yModal","c8yBase","c8yGroups","counterColumns","gettext","gettextCatalog"],angular.module("c8y.assets").controller("AssetsConfigCtrl",n)}();
@@ -1 +1 @@
1
- "use strict";angular.module("c8y.assets").factory("c8yComparisons",["$q","c8yBase","gettext",function(e,a,E){var t=a.createEnum([{name:"EQUAL",value:"EQUAL",label:E("Equal")},{name:"NOT_EQUAL",value:"NOT_EQUAL",label:E("Not equal")},{name:"GREATER_THAN_OR_EQUAL",value:"GREATER_THAN_OR_EQUAL",label:E("Greater than or equal")},{name:"GREATER_THAN",value:"GREATER_THAN",label:E("Greater than")},{name:"LESS_THAN_OR_EQUAL",value:"LESS_THAN_OR_EQUAL",label:E("Less than or equal")},{name:"LESS_THAN",value:"LESS_THAN",label:E("Less than")}]),A={Equal:t.EQUAL.value,"Not equal":t.NOT_EQUAL.value,"Greater then or equal":t.LESS_THAN_OR_EQUAL.value,"Greater than":t.LESS_THAN.value,"Less than or equal":t.GREATER_THAN_OR_EQUAL.value,"Less than":t.GREATER_THAN.value};return{Comparisons:t,compare:function(e,a,E){var A,r=a,l=E,u=_.find(t.values(),{value:e})||t.EQUAL;switch(_.isNaN(Number(r))||(r=Number(r)),_.isNaN(Number(l))||(l=Number(l)),u){case t.EQUAL:A=r===l;break;case t.NOT_EQUAL:A=r!==l;break;case t.GREATER_THAN_OR_EQUAL:A=l<=r;break;case t.GREATER_THAN:A=l<r;break;case t.LESS_THAN_OR_EQUAL:A=r<=l;break;case t.LESS_THAN:A=r<l}return A},convertDeprecatedComparisonType:function(e){return A[e]||e}}}]);
1
+ "use strict";angular.module("c8y.assets").factory("c8yComparisons",["$q","c8yBase","gettext",function(e,a,E){var u=a.createEnum([{name:"EQUAL",value:"EQUAL",label:E("Equal")},{name:"NOT_EQUAL",value:"NOT_EQUAL",label:E("Not equal")},{name:"GREATER_THAN_OR_EQUAL",value:"GREATER_THAN_OR_EQUAL",label:E("Greater than or equal")},{name:"GREATER_THAN",value:"GREATER_THAN",label:E("Greater than")},{name:"LESS_THAN_OR_EQUAL",value:"LESS_THAN_OR_EQUAL",label:E("Less than or equal")},{name:"LESS_THAN",value:"LESS_THAN",label:E("Less than")}]),A={Equal:u.EQUAL.value,"Not equal":u.NOT_EQUAL.value,"Greater then or equal":u.LESS_THAN_OR_EQUAL.value,"Greater than":u.LESS_THAN.value,"Less than or equal":u.GREATER_THAN_OR_EQUAL.value,"Less than":u.GREATER_THAN.value};return{Comparisons:u,compare:function(e,a,E){var A,r=a,l=E,a=_.find(u.values(),{value:e})||u.EQUAL;switch(_.isNaN(Number(r))||(r=Number(r)),_.isNaN(Number(l))||(l=Number(l)),a){case u.EQUAL:A=r===l;break;case u.NOT_EQUAL:A=r!==l;break;case u.GREATER_THAN_OR_EQUAL:A=l<=r;break;case u.GREATER_THAN:A=l<r;break;case u.LESS_THAN_OR_EQUAL:A=r<=l;break;case u.LESS_THAN:A=r<l}return A},convertDeprecatedComparisonType:function(e){return A[e]||e}}}]);
@@ -1 +1 @@
1
- "use strict";angular.module("c8y.assets").service("counterColumns",["c8yBase","c8yAlarms","c8yEvents","gettext",function(t,e,a,o){var r=moment().subtract(1,"days").format(t.dateFullFormat),n=moment().subtract(3,"months").format(t.dateFullFormat);return[{name:"alarmCountToday",label:o("Alarms (today)"),dateFrom:r,counter:e.createCounter},{name:"alarmCount3Months",label:o("Alarms (3 mo.)"),dateFrom:n,counter:e.createCounter},{name:"eventCountToday",label:o("Events (today)"),dateFrom:r,counter:a.createCounter},{name:"eventCount3Months",label:o("Events (3 mo.)"),dateFrom:n,counter:a.createCounter}]}]);
1
+ "use strict";angular.module("c8y.assets").service("counterColumns",["c8yBase","c8yAlarms","c8yEvents","gettext",function(t,e,a,o){var r=moment().subtract(1,"days").format(t.dateFullFormat),t=moment().subtract(3,"months").format(t.dateFullFormat);return[{name:"alarmCountToday",label:o("Alarms (today)"),dateFrom:r,counter:e.createCounter},{name:"alarmCount3Months",label:o("Alarms (3 mo.)"),dateFrom:t,counter:e.createCounter},{name:"eventCountToday",label:o("Events (today)"),dateFrom:r,counter:a.createCounter},{name:"eventCount3Months",label:o("Events (3 mo.)"),dateFrom:t,counter:a.createCounter}]}]);
@@ -1 +1 @@
1
- "use strict";!function(){function n(o,n){var t=this,e="binaryId";function a(){n.downloadAndSaveAs({id:t.binaryId},t.details.length).then(function(){t.close({$value:"close"})})}_.assign(t,{$onInit:function(){_.assign(t,{binaryId:_.get(t.resolve,e),downloadBtnEnabled:!1,download:a,cancel:function(){t.dismiss({$value:"cancel"})}}),function(n){return o.detail(n,void 0,{silentError:!0}).then(function(n){return n.data}).then(function(n){return t.downloadBtnEnabled=!0,n}).catch(function(n){t.downloadBtnEnabled=!1,t.errorData=_.get(n,"data")})}(t.binaryId).then(function(n){t.details=n})}})}n.$inject=["c8yInventory","c8yBinary"],angular.module("c8y.binaryFileDownload").component("binaryFileDownload",{controller:n,controllerAs:"vm",templateUrl:":::PLUGIN_PATH:::/binary-file-download.html",bindings:{resolve:"<",close:"&",dismiss:"&"}})}();
1
+ "use strict";!function(){function n(o,n){var t=this;function e(){n.downloadAndSaveAs({id:t.binaryId},t.details.length).then(function(){t.close({$value:"close"})})}_.assign(t,{$onInit:function(){_.assign(t,{binaryId:_.get(t.resolve,"binaryId"),downloadBtnEnabled:!1,download:e,cancel:function(){t.dismiss({$value:"cancel"})}}),function(n){return o.detail(n,void 0,{silentError:!0}).then(function(n){return n.data}).then(function(n){return t.downloadBtnEnabled=!0,n}).catch(function(n){t.downloadBtnEnabled=!1,t.errorData=_.get(n,"data")})}(t.binaryId).then(function(n){t.details=n})}})}n.$inject=["c8yInventory","c8yBinary"],angular.module("c8y.binaryFileDownload").component("binaryFileDownload",{controller:n,controllerAs:"vm",templateUrl:":::PLUGIN_PATH:::/binary-file-download.html",bindings:{resolve:"<",close:"&",dismiss:"&"}})}();
@@ -1 +1 @@
1
- "use strict";!function(){function n(n,o,e,t,a,i){var r,c,u="download",s=(r=u,e.location.search.substring(1).split("&").forEach(function(n){var o=n.split("=");o[0]===r&&(c=decodeURIComponent(o[1]))}),c),l=_.get(o.search(),u),d=n.defer(),f=d.promise,h={},$=!1;a.$on("authStateChange",function(n,o){o.hasAuth&&d.resolve(o.hasAuth)}),a.$on("$routeChangeSuccess",function(n,o){if(o){var e=(l=_.get(o.params,u))||s;!e||h[e]||$&&!l||(h[e]=f.then(function(){return function(n){i({component:"binaryFileDownload",size:"sm",resolve:{binaryId:function(){return n}}})}(e)})),s&&($=!0)}})}n.$inject=["$q","$location","$window","$interval","$rootScope","c8yModal"],angular.module("c8y.binaryFileDownload",[]).run(n)}();
1
+ "use strict";!function(){function n(n,o,e,t,a,i){var r,c,s,u="download",l=(r=u,e.location.search.substring(1).split("&").forEach(function(n){n=n.split("=");n[0]===r&&(c=decodeURIComponent(n[1]))}),c),d=(_.get(o.search(),u),n.defer()),h=d.promise,f={},$=!1;a.$on("authStateChange",function(n,o){o.hasAuth&&d.resolve(o.hasAuth)}),a.$on("$routeChangeSuccess",function(n,o){var e;o&&(!(e=(s=_.get(o.params,u))||l)||f[e]||$&&!s||(f[e]=h.then(function(){var n;n=e,i({component:"binaryFileDownload",size:"sm",resolve:{binaryId:function(){return n}}})})),l)&&($=!0)})}n.$inject=["$q","$location","$window","$interval","$rootScope","c8yModal"],angular.module("c8y.binaryFileDownload",[]).run(n)}();
@@ -1 +1 @@
1
- "use strict";function binaryArtefactsListCtrl(e,n,i,t,a,r,o){var l,s=[];function c(t){e.files&&!e.refreshLoading||(e.files=[]),e.paging=t.paging,t.forEach(function(t){t.icon=a.icon(t),e.files.push(t)})}function f(){t.changeTitle({title:r("Files repository")})}function g(){e.refreshLoading=!0,e.paging.refresh().then(c).finally(function(){e.refreshLoading=!1})}function u(t){return s.indexOf(t)}function p(t){return-1<u(t)}e.loadNext=function(){e.paging.loading=!0,e.paging.next().then(c).finally(function(){e.paging.loading=!1})},e.refresh=g,e.toggle=function(t){p(t)?s.splice(u(t),1):(s.push(t),function(e){a.isImage(e)&&!e.dataUri&&a.downloadAsDataUri(e).then(function(t){e.dataUri=t})}(t))},e.isOpen=p,e.onClickDelete=function(t){n({title:r("Delete file"),body:o.getString('You are about to delete file "{{ name }}". Do you want to proceed?',t),status:"danger",labels:{ok:r("Delete")}}).then(angular.bind(a,a.removeBinary,t)).then(angular.bind(i,i.removeFromList,e.files,t))},e.upload=function(){n({templateUrl:":::PLUGIN_PATH:::/views/upload.html",controller:"binaryArtefactsUploadCtrl",title:r("Upload files"),backdrop:"static"}).then(g)},e.size=a.size,e.isImage=a.isImage,e.popoverTemplateUrl=":::PLUGIN_PATH:::/views/popover.html",e.isApplicationBinary=function(t){return _.has(t,"c8y_applications_storage")},a.list(l).then(c).then(f)}binaryArtefactsListCtrl.$inject=["$scope","c8yModal","c8yBase","c8yTitle","c8yBinary","gettext","gettextCatalog"],angular.module("c8y.binaryArtefactsManagement").controller("binaryArtefactsListCtrl",binaryArtefactsListCtrl);
1
+ "use strict";function binaryArtefactsListCtrl(e,n,i,t,a,r,o){var l=[];function s(t){e.files&&!e.refreshLoading||(e.files=[]),e.paging=t.paging,t.forEach(function(t){t.icon=a.icon(t),e.files.push(t)})}function c(){t.changeTitle({title:r("Files repository")})}function f(){e.refreshLoading=!0,e.paging.refresh().then(s).finally(function(){e.refreshLoading=!1})}function g(t){return l.indexOf(t)}function u(t){return-1<g(t)}e.loadNext=function(){e.paging.loading=!0,e.paging.next().then(s).finally(function(){e.paging.loading=!1})},e.refresh=f,e.toggle=function(t){var e;u(t)?l.splice(g(t),1):(l.push(t),e=t,a.isImage(e)&&!e.dataUri&&a.downloadAsDataUri(e).then(function(t){e.dataUri=t}))},e.isOpen=u,e.onClickDelete=function(t){n({title:r("Delete file"),body:o.getString('You are about to delete file "{{ name }}". Do you want to proceed?',t),status:"danger",labels:{ok:r("Delete")}}).then(angular.bind(a,a.removeBinary,t)).then(angular.bind(i,i.removeFromList,e.files,t))},e.upload=function(){n({templateUrl:":::PLUGIN_PATH:::/views/upload.html",controller:"binaryArtefactsUploadCtrl",title:r("Upload files"),backdrop:"static"}).then(f)},e.size=a.size,e.isImage=a.isImage,e.popoverTemplateUrl=":::PLUGIN_PATH:::/views/popover.html",e.isApplicationBinary=function(t){return _.has(t,"c8y_applications_storage")},a.list(void 0).then(s).then(c)}binaryArtefactsListCtrl.$inject=["$scope","c8yModal","c8yBase","c8yTitle","c8yBinary","gettext","gettextCatalog"],angular.module("c8y.binaryArtefactsManagement").controller("binaryArtefactsListCtrl",binaryArtefactsListCtrl);
@@ -1 +1 @@
1
- "use strict";!function(){function e(e,i,t){var a=t("Management"),n=t("Files repository"),r="files";e.addNavigation({parent:a,name:n,priority:1e3,path:r,icon:"c8y-archive",showIfPermissions:{anyRole:["ROLE_INVENTORY_READ","ROLE_INVENTORY_ADMIN"]}}),i.when("/".concat(r),{name:n,templateUrl:":::PLUGIN_PATH:::/views/list.html"})}e.$inject=["c8yNavigatorProvider","c8yViewsProvider","gettext"],angular.module("c8y.binaryArtefactsManagement",[]).config(e)}();
1
+ "use strict";!function(){function e(e,i,t){var a=t("Management"),t=t("Files repository"),n="files";e.addNavigation({parent:a,name:t,priority:1e3,path:n,icon:"c8y-archive",showIfPermissions:{anyRole:["ROLE_INVENTORY_READ","ROLE_INVENTORY_ADMIN"]}}),i.when("/".concat(n),{name:t,templateUrl:":::PLUGIN_PATH:::/views/list.html"})}e.$inject=["c8yNavigatorProvider","c8yViewsProvider","gettext"],angular.module("c8y.binaryArtefactsManagement",[]).config(e)}();
@@ -1 +1 @@
1
- "use strict";function _typeof(t){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 ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,o)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){_defineProperty(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _defineProperty(t,e,r){return(e=_toPropertyKey(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _toPropertyKey(t){var e=_toPrimitive(t,"string");return"symbol"===_typeof(e)?e:String(e)}function _toPrimitive(t,e){if("object"!==_typeof(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return("string"===e?String:Number)(t);var o=r.call(t,e||"default");if("object"!==_typeof(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}!function(){function t(t,e){var r={path:"/device/:deviceId/*",actionBar:!0};t.addUrlAction(_objectSpread(_objectSpread({},r),{},{text:e("Activate Cell ID information"),showIf:["$q","$routeParams","cellIdInformationActivator",function(t,e,r){return t.all({shown:r.shouldShowActivator(),activated:r.isActivatedFor(e.deviceId)}).then(function(t){var e=t.shown,r=t.activated;return e&&!r})}],action:["$routeParams","cellIdInformationActivator",function(t,e){e.activate(t.deviceId)}]})),t.addUrlAction(_objectSpread(_objectSpread({},r),{},{text:e("Deactivate Cell ID information"),showIf:["$q","$routeParams","cellIdInformationActivator",function(t,e,r){return t.all({shown:r.shouldShowActivator(),activated:r.isActivatedFor(e.deviceId)}).then(function(t){var e=t.shown,r=t.activated;return e&&r})}],action:["$routeParams","cellIdInformationActivator",function(t,e){e.deactivate(t.deviceId)}]}))}t.$inject=["c8yActionsProvider","gettext"],angular.module("c8y.cellIdInformationActivator").config(t)}();
1
+ "use strict";function _typeof(t){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 ownKeys(e,t){var r,o=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,r)),o}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){_defineProperty(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _defineProperty(t,e,r){return(e=_toPropertyKey(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _toPropertyKey(t){t=_toPrimitive(t,"string");return"symbol"===_typeof(t)?t:String(t)}function _toPrimitive(t,e){if("object"!==_typeof(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return("string"===e?String:Number)(t);r=r.call(t,e||"default");if("object"!==_typeof(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}!function(){function t(t,e){var r={path:"/device/:deviceId/*",actionBar:!0};t.addUrlAction(_objectSpread(_objectSpread({},r),{},{text:e("Activate Cell ID information"),showIf:["$q","$routeParams","cellIdInformationActivator",function(t,e,r){return t.all({shown:r.shouldShowActivator(),activated:r.isActivatedFor(e.deviceId)}).then(function(t){var e=t.shown,t=t.activated;return e&&!t})}],action:["$routeParams","cellIdInformationActivator",function(t,e){e.activate(t.deviceId)}]})),t.addUrlAction(_objectSpread(_objectSpread({},r),{},{text:e("Deactivate Cell ID information"),showIf:["$q","$routeParams","cellIdInformationActivator",function(t,e,r){return t.all({shown:r.shouldShowActivator(),activated:r.isActivatedFor(e.deviceId)}).then(function(t){var e=t.shown,t=t.activated;return e&&t})}],action:["$routeParams","cellIdInformationActivator",function(t,e){e.deactivate(t.deviceId)}]}))}t.$inject=["c8yActionsProvider","gettext"],angular.module("c8y.cellIdInformationActivator").config(t)}();
@@ -1 +1 @@
1
- "use strict";function _typeof(t){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 _regeneratorRuntime(){_regeneratorRuntime=function(){return a};var a={},t=Object.prototype,l=t.hasOwnProperty,c=Object.defineProperty||function(t,e,r){t[e]=r.value},e="function"==typeof Symbol?Symbol:{},o=e.iterator||"@@iterator",r=e.asyncIterator||"@@asyncIterator",n=e.toStringTag||"@@toStringTag";function i(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{i({},"")}catch(t){i=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var o=e&&e.prototype instanceof h?e:h,i=Object.create(o.prototype),a=new L(n||[]);return c(i,"_invoke",{value:function(i,a,c){var u="suspendedStart";return function(t,e){if("executing"===u)throw new Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return k()}for(c.method=t,c.arg=e;;){var r=c.delegate;if(r){var n=x(r,c);if(n){if(n===s)continue;return n}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===u)throw u="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);u="executing";var o=f(i,a,c);if("normal"===o.type){if(u=c.done?"completed":"suspendedYield",o.arg===s)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(u="completed",c.method="throw",c.arg=o.arg)}}}(t,r,a)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}a.wrap=u;var s={};function h(){}function p(){}function y(){}var v={};i(v,o,function(){return this});var d=Object.getPrototypeOf,g=d&&d(d(E([])));g&&g!==t&&l.call(g,o)&&(v=g);var m=y.prototype=h.prototype=Object.create(v);function w(t){["next","throw","return"].forEach(function(e){i(t,e,function(t){return this._invoke(e,t)})})}function b(u,s){var e;c(this,"_invoke",{value:function(r,n){function t(){return new s(function(t,e){!function e(t,r,n,o){var i=f(u[t],u,r);if("throw"!==i.type){var a=i.arg,c=a.value;return c&&"object"==_typeof(c)&&l.call(c,"__await")?s.resolve(c.__await).then(function(t){e("next",t,n,o)},function(t){e("throw",t,n,o)}):s.resolve(c).then(function(t){a.value=t,n(a)},function(t){return e("throw",t,n,o)})}o(i.arg)}(r,n,t,e)})}return e=e?e.then(t,t):t()}})}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),s;var o=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,s;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,s):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,s)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function E(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r<e.length;)if(l.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:k}}function k(){return{value:void 0,done:!0}}return c(m,"constructor",{value:p.prototype=y,configurable:!0}),c(y,"constructor",{value:p,configurable:!0}),p.displayName=i(y,n,"GeneratorFunction"),a.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},a.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,i(t,n,"GeneratorFunction")),t.prototype=Object.create(m),t},a.awrap=function(t){return{__await:t}},w(b.prototype),i(b.prototype,r,function(){return this}),a.AsyncIterator=b,a.async=function(t,e,r,n,o){void 0===o&&(o=Promise);var i=new b(u(t,e,r,n),o);return a.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},w(m),i(m,n,"Generator"),i(m,o,function(){return this}),i(m,"toString",function(){return"[object Generator]"}),a.keys=function(t){var r=Object(t),n=[];for(var e in r)n.push(e);return n.reverse(),function t(){for(;n.length;){var e=n.pop();if(e in r)return t.value=e,t.done=!1,t}return t.done=!0,t}},a.values=E,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&l.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var n=this;function t(t,e){return i.type="throw",i.arg=r,n.next=t,e&&(n.method="next",n.arg=void 0),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var o=this.tryEntries[e],i=o.completion;if("root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev){var a=l.call(o,"catchLoc"),c=l.call(o,"finallyLoc");if(a&&c){if(this.prev<o.catchLoc)return t(o.catchLoc,!0);if(this.prev<o.finallyLoc)return t(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return t(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return t(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;0<=r;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&l.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,s):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),s},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),s}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),s}},a}function asyncGeneratorStep(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function _asyncToGenerator(c){return function(){var t=this,a=arguments;return new Promise(function(e,r){var n=c.apply(t,a);function o(t){asyncGeneratorStep(n,e,r,o,i,"next",t)}function i(t){asyncGeneratorStep(n,e,r,o,i,"throw",t)}o(void 0)})}}!function(){function t(n,o,r,i,a,c,u,s){var l={true:{title:s.getString("Activate Cell ID information"),body:s.getString("Activating this feature will result in automatically updating the GPS position of the device when it sends new Cell ID data. Using this feature can result in additional costs."),status:"danger",labels:{ok:s.getString("Activate")}},false:{title:s.getString("Deactivate Cell ID information"),body:s.getString("Are you sure you want to deactivate Cell ID information for this device?"),status:"info",labels:{ok:s.getString("Deactivate")}}};return{shouldShowActivator:function(){return t.apply(this,arguments)},isActivatedFor:function(t){return e.apply(this,arguments)},activate:_.curry(f)(!0),deactivate:_.curry(f)(!1)};function t(){return(t=_asyncToGenerator(_regeneratorRuntime().mark(function t(){var e;return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.detailValue({category:"cellid",key:"operation.mode"});case 2:return e=t.sent,t.abrupt("return","manual"===e);case 4:case"end":return t.stop()}},t)}))).apply(this,arguments)}function e(){return(e=_asyncToGenerator(_regeneratorRuntime().mark(function t(e){var r;return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=_.isString(e),t.t0)return t.t1=a,t.next=5,i.detail(e);t.next=7;break;case 5:t.t2=t.sent,t.t0=t.t1.getResData.call(t.t1,t.t2);case 7:return r=t.t0,t.abrupt("return",!!_.get(r,"c8y_CellIdFeatureActive"));case 9:case"end":return t.stop()}},t)}))).apply(this,arguments)}function f(t,e){return h.apply(this,arguments)}function h(){return(h=_asyncToGenerator(_regeneratorRuntime().mark(function t(e,r){return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,p(e);case 3:if(t.sent)return t.next=7,o.post(a.url("service/cellid/devices/".concat(r)),{active:e});t.next=10;break;case 7:n.$broadcast("$routeChangeStart"),n.$broadcast("$routeChangeSuccess"),u.success(e?s.getString("Cell ID information activated"):s.getString("Cell ID information deactivated"));case 10:t.next=15;break;case 12:t.prev=12,t.t0=t.catch(0),console.error(t.t0.data.message);case 15:case"end":return t.stop()}},t,null,[[0,12]])}))).apply(this,arguments)}function p(t){return y.apply(this,arguments)}function y(){return(y=_asyncToGenerator(_regeneratorRuntime().mark(function t(e){return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,c(l[e]);case 3:return t.abrupt("return",t.sent);case 6:return t.prev=6,t.t0=t.catch(0),t.abrupt("return",0);case 9:case"end":return t.stop()}},t,null,[[0,6]])}))).apply(this,arguments)}}t.$inject=["$rootScope","$http","c8ySettings","c8yDevices","c8yBase","c8yModal","c8yAlert","gettextCatalog"],angular.module("c8y.cellIdInformationActivator").factory("cellIdInformationActivator",t)}();
1
+ "use strict";function _typeof(t){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 _regeneratorRuntime(){_regeneratorRuntime=function(){return a};var a={},t=Object.prototype,u=t.hasOwnProperty,s=Object.defineProperty||function(t,e,r){t[e]=r.value},e="function"==typeof Symbol?Symbol:{},n=e.iterator||"@@iterator",r=e.asyncIterator||"@@asyncIterator",o=e.toStringTag||"@@toStringTag";function i(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{i({},"")}catch(t){i=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var o,i,a,c,e=e&&e.prototype instanceof h?e:h,e=Object.create(e.prototype),n=new x(n||[]);return s(e,"_invoke",{value:(o=t,i=r,a=n,c="suspendedStart",function(t,e){if("executing"===c)throw new Error("Generator is already running");if("completed"===c){if("throw"===t)throw e;return S()}for(a.method=t,a.arg=e;;){var r=a.delegate;if(r){r=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;n=l(o,e.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,f;o=n.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,f)}(r,a);if(r){if(r===f)continue;return r}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===c)throw c="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);c="executing";r=l(o,i,a);if("normal"===r.type){if(c=a.done?"completed":"suspendedYield",r.arg===f)continue;return{value:r.arg,done:a.done}}"throw"===r.type&&(c="completed",a.method="throw",a.arg=r.arg)}})}),e}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}a.wrap=c;var f={};function h(){}function p(){}function y(){}var e={},d=(i(e,n,function(){return this}),Object.getPrototypeOf),d=d&&d(d(_([]))),v=(d&&d!==t&&u.call(d,n)&&(e=d),y.prototype=h.prototype=Object.create(e));function g(t){["next","throw","return"].forEach(function(e){i(t,e,function(t){return this._invoke(e,t)})})}function m(a,c){var e;s(this,"_invoke",{value:function(r,n){function t(){return new c(function(t,e){!function e(t,r,n,o){var i,t=l(a[t],a,r);if("throw"!==t.type)return(r=(i=t.arg).value)&&"object"==_typeof(r)&&u.call(r,"__await")?c.resolve(r.__await).then(function(t){e("next",t,n,o)},function(t){e("throw",t,n,o)}):c.resolve(r).then(function(t){i.value=t,n(i)},function(t){return e("throw",t,n,o)});o(t.arg)}(r,n,t,e)})}return e=e?e.then(t,t):t()}})}function w(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function b(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function _(e){if(e){var r,t=e[n];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return r=-1,(t=function t(){for(;++r<e.length;)if(u.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t}).next=t}return{next:S}}function S(){return{value:void 0,done:!0}}return s(v,"constructor",{value:p.prototype=y,configurable:!0}),s(y,"constructor",{value:p,configurable:!0}),p.displayName=i(y,o,"GeneratorFunction"),a.isGeneratorFunction=function(t){t="function"==typeof t&&t.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},a.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,i(t,o,"GeneratorFunction")),t.prototype=Object.create(v),t},a.awrap=function(t){return{__await:t}},g(m.prototype),i(m.prototype,r,function(){return this}),a.AsyncIterator=m,a.async=function(t,e,r,n,o){void 0===o&&(o=Promise);var i=new m(c(t,e,r,n),o);return a.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},g(v),i(v,o,"Generator"),i(v,n,function(){return this}),i(v,"toString",function(){return"[object Generator]"}),a.keys=function(t){var e,r=Object(t),n=[];for(e in r)n.push(e);return n.reverse(),function t(){for(;n.length;){var e=n.pop();if(e in r)return t.value=e,t.done=!1,t}return t.done=!0,t}},a.values=_,x.prototype={constructor:x,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(b),!t)for(var e in this)"t"===e.charAt(0)&&u.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var n=this;function t(t,e){return i.type="throw",i.arg=r,n.next=t,e&&(n.method="next",n.arg=void 0),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var o=this.tryEntries[e],i=o.completion;if("root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev){var a=u.call(o,"catchLoc"),c=u.call(o,"finallyLoc");if(a&&c){if(this.prev<o.catchLoc)return t(o.catchLoc,!0);if(this.prev<o.finallyLoc)return t(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return t(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return t(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;0<=r;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&u.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}var i=(o=o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc?null:o)?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),b(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r,n,o=this.tryEntries[e];if(o.tryLoc===t)return"throw"===(r=o.completion).type&&(n=r.arg,b(o)),n}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:_(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},a}function asyncGeneratorStep(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function _asyncToGenerator(c){return function(){var t=this,a=arguments;return new Promise(function(e,r){var n=c.apply(t,a);function o(t){asyncGeneratorStep(n,e,r,o,i,"next",t)}function i(t){asyncGeneratorStep(n,e,r,o,i,"throw",t)}o(void 0)})}}!function(){function t(n,o,r,i,a,c,u,s){var l={true:{title:s.getString("Activate Cell ID information"),body:s.getString("Activating this feature will result in automatically updating the GPS position of the device when it sends new Cell ID data. Using this feature can result in additional costs."),status:"danger",labels:{ok:s.getString("Activate")}},false:{title:s.getString("Deactivate Cell ID information"),body:s.getString("Are you sure you want to deactivate Cell ID information for this device?"),status:"info",labels:{ok:s.getString("Deactivate")}}};return{shouldShowActivator:function(){return t.apply(this,arguments)},isActivatedFor:function(t){return e.apply(this,arguments)},activate:_.curry(f)(!0),deactivate:_.curry(f)(!1)};function t(){return(t=_asyncToGenerator(_regeneratorRuntime().mark(function t(){var e;return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.detailValue({category:"cellid",key:"operation.mode"});case 2:return e=t.sent,t.abrupt("return","manual"===e);case 4:case"end":return t.stop()}},t)}))).apply(this,arguments)}function e(){return(e=_asyncToGenerator(_regeneratorRuntime().mark(function t(e){var r;return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=_.isString(e),t.t0)return t.t1=a,t.next=5,i.detail(e);t.next=7;break;case 5:t.t2=t.sent,t.t0=t.t1.getResData.call(t.t1,t.t2);case 7:return r=t.t0,t.abrupt("return",!!_.get(r,"c8y_CellIdFeatureActive"));case 9:case"end":return t.stop()}},t)}))).apply(this,arguments)}function f(t,e){return h.apply(this,arguments)}function h(){return(h=_asyncToGenerator(_regeneratorRuntime().mark(function t(e,r){return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,function(){return p.apply(this,arguments)}(e);case 3:if(t.sent)return t.next=7,o.post(a.url("service/cellid/devices/".concat(r)),{active:e});t.next=10;break;case 7:n.$broadcast("$routeChangeStart"),n.$broadcast("$routeChangeSuccess"),u.success(e?s.getString("Cell ID information activated"):s.getString("Cell ID information deactivated"));case 10:t.next=15;break;case 12:t.prev=12,t.t0=t.catch(0),console.error(t.t0.data.message);case 15:case"end":return t.stop()}},t,null,[[0,12]])}))).apply(this,arguments)}function p(){return(p=_asyncToGenerator(_regeneratorRuntime().mark(function t(e){return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,c(l[e]);case 3:return t.abrupt("return",t.sent);case 6:return t.prev=6,t.t0=t.catch(0),t.abrupt("return",0);case 9:case"end":return t.stop()}},t,null,[[0,6]])}))).apply(this,arguments)}}t.$inject=["$rootScope","$http","c8ySettings","c8yDevices","c8yBase","c8yModal","c8yAlert","gettextCatalog"],angular.module("c8y.cellIdInformationActivator").factory("cellIdInformationActivator",t)}();
@@ -1 +1 @@
1
- "use strict";function _typeof(t){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 _regeneratorRuntime(){_regeneratorRuntime=function(){return a};var a={},t=Object.prototype,l=t.hasOwnProperty,c=Object.defineProperty||function(t,e,r){t[e]=r.value},e="function"==typeof Symbol?Symbol:{},o=e.iterator||"@@iterator",r=e.asyncIterator||"@@asyncIterator",n=e.toStringTag||"@@toStringTag";function i(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{i({},"")}catch(t){i=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof h?e:h,i=Object.create(o.prototype),a=new x(n||[]);return c(i,"_invoke",{value:function(i,a,c){var s="suspendedStart";return function(t,e){if("executing"===s)throw new Error("Generator is already running");if("completed"===s){if("throw"===t)throw e;return I()}for(c.method=t,c.arg=e;;){var r=c.delegate;if(r){var n=_(r,c);if(n){if(n===u)continue;return n}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===s)throw s="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);s="executing";var o=f(i,a,c);if("normal"===o.type){if(s=c.done?"completed":"suspendedYield",o.arg===u)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(s="completed",c.method="throw",c.arg=o.arg)}}}(t,r,a)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}a.wrap=s;var u={};function h(){}function p(){}function y(){}var d={};i(d,o,function(){return this});var v=Object.getPrototypeOf,m=v&&v(v(T([])));m&&m!==t&&l.call(m,o)&&(d=m);var g=y.prototype=h.prototype=Object.create(d);function b(t){["next","throw","return"].forEach(function(e){i(t,e,function(t){return this._invoke(e,t)})})}function w(s,u){var e;c(this,"_invoke",{value:function(r,n){function t(){return new u(function(t,e){!function e(t,r,n,o){var i=f(s[t],s,r);if("throw"!==i.type){var a=i.arg,c=a.value;return c&&"object"==_typeof(c)&&l.call(c,"__await")?u.resolve(c.__await).then(function(t){e("next",t,n,o)},function(t){e("throw",t,n,o)}):u.resolve(c).then(function(t){a.value=t,n(a)},function(t){return e("throw",t,n,o)})}o(i.arg)}(r,n,t,e)})}return e=e?e.then(t,t):t()}})}function _(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),u;var o=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,u;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,u):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,u)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function T(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r<e.length;)if(l.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:I}}function I(){return{value:void 0,done:!0}}return c(g,"constructor",{value:p.prototype=y,configurable:!0}),c(y,"constructor",{value:p,configurable:!0}),p.displayName=i(y,n,"GeneratorFunction"),a.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},a.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,i(t,n,"GeneratorFunction")),t.prototype=Object.create(g),t},a.awrap=function(t){return{__await:t}},b(w.prototype),i(w.prototype,r,function(){return this}),a.AsyncIterator=w,a.async=function(t,e,r,n,o){void 0===o&&(o=Promise);var i=new w(s(t,e,r,n),o);return a.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},b(g),i(g,n,"Generator"),i(g,o,function(){return this}),i(g,"toString",function(){return"[object Generator]"}),a.keys=function(t){var r=Object(t),n=[];for(var e in r)n.push(e);return n.reverse(),function t(){for(;n.length;){var e=n.pop();if(e in r)return t.value=e,t.done=!1,t}return t.done=!0,t}},a.values=T,x.prototype={constructor:x,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&l.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var n=this;function t(t,e){return i.type="throw",i.arg=r,n.next=t,e&&(n.method="next",n.arg=void 0),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var o=this.tryEntries[e],i=o.completion;if("root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev){var a=l.call(o,"catchLoc"),c=l.call(o,"finallyLoc");if(a&&c){if(this.prev<o.catchLoc)return t(o.catchLoc,!0);if(this.prev<o.finallyLoc)return t(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return t(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return t(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;0<=r;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&l.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),u},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),u}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:T(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},a}function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(t,e):void 0}}function _iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function asyncGeneratorStep(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void r(t)}c.done?e(s):Promise.resolve(s).then(n,o)}function _asyncToGenerator(c){return function(){var t=this,a=arguments;return new Promise(function(e,r){var n=c.apply(t,a);function o(t){asyncGeneratorStep(n,e,r,o,i,"next",t)}function i(t){asyncGeneratorStep(n,e,r,o,i,"throw",t)}o(void 0)})}}!function(){function t(e,i,o,r,n,a,c,s,u){var l=this;function t(){return(t=_asyncToGenerator(_regeneratorRuntime().mark(function t(){return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n.changeTitle({title:u("Cell ID usage statistics")}),t.next=3,f();case 3:case"end":return t.stop()}},t)}))).apply(this,arguments)}function f(){return h.apply(this,arguments)}function h(){return(h=_asyncToGenerator(_regeneratorRuntime().mark(function t(){return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return p(),t.next=3,y();case 3:l.subtenantList.columns=s.getSubtenantListColumns(),l.subtenantList.csvHeaders=_.map(l.subtenantList.columns,function(t){return _.get(t,"header.csv")||_.get(t,"header.text")||_.get(t,"header")}),l.subtenantList.filteredSortedStatisticsItems=m(),e.$apply();case 7:case"end":return t.stop()}},t)}))).apply(this,arguments)}function p(){var t=o.dateFrom,e=o.dateTo,r=moment().startOf("month").toDate(),n=moment().add(1,"day").toDate();l.dateFrom=c.stringToDate(t)||r,l.dateTo=c.stringToDate(e)||n}function y(){return d.apply(this,arguments)}function d(){return(d=_asyncToGenerator(_regeneratorRuntime().mark(function t(){var e,r,n,o;return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=v(),t.next=3,i.all({tenantStatistics:s.getTenantStatisticsFor(e),subtenantsStatistics:s.getSubtenantsStatisticsFor(e)});case 3:r=t.sent,n=r.tenantStatistics,o=r.subtenantsStatistics,l.tenantStatistics=n,l.subtenantList.statisticsItems=o;case 8:case"end":return t.stop()}},t)}))).apply(this,arguments)}function v(){return{dateFrom:c.dateToString(l.dateFrom),dateTo:c.dateToString(l.dateTo)}}function m(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:l.subtenantList.columnsConfig;l.subtenantList.columnsConfig=t;var e=l.subtenantList,r=e.statisticsItems,n=e.columns;return a.filterSort(r,n,t)}_.assign(l,{$onInit:function(){return t.apply(this,arguments)},refresh:f,doFilter:function(){var t=v();t.dateFrom&&t.dateTo&&r.search(t)},clearFilter:function(){r.search({})},tenantStatistics:{tenantId:void 0,apiRequests:0,activeDevices:0},subtenantList:{csvHeaders:[],csvData:function(){return _.map([l.tenantStatistics].concat(_toConsumableArray(l.subtenantList.filteredSortedStatisticsItems)),function(t){return _.at(t,["tenantId","apiRequests","activeDevices"])})},columns:[],columnsConfig:{},onColumnsConfigChanged:function(t){l.subtenantList.filteredSortedStatisticsItems=m(t)},statisticsItems:[],filteredSortedStatisticsItems:[],goToSubtenant:function(t){var e=t.tenantId;r.path("/tenants/".concat(e))}}})}t.$inject=["$rootScope","$q","$routeParams","$location","c8yTitle","c8yFilteringSortingCollections","c8yUtil","cellIdUsageStatisticsService","gettext"],angular.module("c8y.cellIdUsageStatistics").component("c8yCellIdUsageStatistics",{templateUrl:":::PLUGIN_PATH:::/cell-id-usage-statistics.html",controllerAs:"vm",controller:t})}();
1
+ "use strict";function _typeof(t){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 _regeneratorRuntime(){_regeneratorRuntime=function(){return a};var a={},t=Object.prototype,s=t.hasOwnProperty,u=Object.defineProperty||function(t,e,r){t[e]=r.value},e="function"==typeof Symbol?Symbol:{},n=e.iterator||"@@iterator",r=e.asyncIterator||"@@asyncIterator",o=e.toStringTag||"@@toStringTag";function i(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{i({},"")}catch(t){i=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var o,i,a,c,e=e&&e.prototype instanceof h?e:h,e=Object.create(e.prototype),n=new _(n||[]);return u(e,"_invoke",{value:(o=t,i=r,a=n,c="suspendedStart",function(t,e){if("executing"===c)throw new Error("Generator is already running");if("completed"===c){if("throw"===t)throw e;return L()}for(a.method=t,a.arg=e;;){var r=a.delegate;if(r){r=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;n=l(o,e.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,f;o=n.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,f)}(r,a);if(r){if(r===f)continue;return r}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===c)throw c="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);c="executing";r=l(o,i,a);if("normal"===r.type){if(c=a.done?"completed":"suspendedYield",r.arg===f)continue;return{value:r.arg,done:a.done}}"throw"===r.type&&(c="completed",a.method="throw",a.arg=r.arg)}})}),e}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}a.wrap=c;var f={};function h(){}function p(){}function y(){}var e={},d=(i(e,n,function(){return this}),Object.getPrototypeOf),d=d&&d(d(S([]))),m=(d&&d!==t&&s.call(d,n)&&(e=d),y.prototype=h.prototype=Object.create(e));function v(t){["next","throw","return"].forEach(function(e){i(t,e,function(t){return this._invoke(e,t)})})}function g(a,c){var e;u(this,"_invoke",{value:function(r,n){function t(){return new c(function(t,e){!function e(t,r,n,o){var i,t=l(a[t],a,r);if("throw"!==t.type)return(r=(i=t.arg).value)&&"object"==_typeof(r)&&s.call(r,"__await")?c.resolve(r.__await).then(function(t){e("next",t,n,o)},function(t){e("throw",t,n,o)}):c.resolve(r).then(function(t){i.value=t,n(i)},function(t){return e("throw",t,n,o)});o(t.arg)}(r,n,t,e)})}return e=e?e.then(t,t):t()}})}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function S(e){if(e){var r,t=e[n];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return r=-1,(t=function t(){for(;++r<e.length;)if(s.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t}).next=t}return{next:L}}function L(){return{value:void 0,done:!0}}return u(m,"constructor",{value:p.prototype=y,configurable:!0}),u(y,"constructor",{value:p,configurable:!0}),p.displayName=i(y,o,"GeneratorFunction"),a.isGeneratorFunction=function(t){t="function"==typeof t&&t.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},a.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,i(t,o,"GeneratorFunction")),t.prototype=Object.create(m),t},a.awrap=function(t){return{__await:t}},v(g.prototype),i(g.prototype,r,function(){return this}),a.AsyncIterator=g,a.async=function(t,e,r,n,o){void 0===o&&(o=Promise);var i=new g(c(t,e,r,n),o);return a.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},v(m),i(m,o,"Generator"),i(m,n,function(){return this}),i(m,"toString",function(){return"[object Generator]"}),a.keys=function(t){var e,r=Object(t),n=[];for(e in r)n.push(e);return n.reverse(),function t(){for(;n.length;){var e=n.pop();if(e in r)return t.value=e,t.done=!1,t}return t.done=!0,t}},a.values=S,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!t)for(var e in this)"t"===e.charAt(0)&&s.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var n=this;function t(t,e){return i.type="throw",i.arg=r,n.next=t,e&&(n.method="next",n.arg=void 0),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var o=this.tryEntries[e],i=o.completion;if("root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev){var a=s.call(o,"catchLoc"),c=s.call(o,"finallyLoc");if(a&&c){if(this.prev<o.catchLoc)return t(o.catchLoc,!0);if(this.prev<o.finallyLoc)return t(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return t(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return t(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;0<=r;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&s.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}var i=(o=o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc?null:o)?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),w(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r,n,o=this.tryEntries[e];if(o.tryLoc===t)return"throw"===(r=o.completion).type&&(n=r.arg,w(o)),n}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},a}function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(t,e){var r;if(t)return"string"==typeof t?_arrayLikeToArray(t,e):"Map"===(r="Object"===(r=Object.prototype.toString.call(t).slice(8,-1))&&t.constructor?t.constructor.name:r)||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(t,e):void 0}function _iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function asyncGeneratorStep(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void r(t)}c.done?e(s):Promise.resolve(s).then(n,o)}function _asyncToGenerator(c){return function(){var t=this,a=arguments;return new Promise(function(e,r){var n=c.apply(t,a);function o(t){asyncGeneratorStep(n,e,r,o,i,"next",t)}function i(t){asyncGeneratorStep(n,e,r,o,i,"throw",t)}o(void 0)})}}!function(){function t(i,o,a,e,r,n,c,s,u){var l=this;function t(){return(t=_asyncToGenerator(_regeneratorRuntime().mark(function t(){return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r.changeTitle({title:u("Cell ID usage statistics")}),t.next=3,f();case 3:case"end":return t.stop()}},t)}))).apply(this,arguments)}function f(){return h.apply(this,arguments)}function h(){return(h=_asyncToGenerator(_regeneratorRuntime().mark(function t(){return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=n=r=e=void 0,e=a.dateFrom,r=a.dateTo,n=moment().startOf("month").toDate(),o=moment().add(1,"day").toDate(),l.dateFrom=c.stringToDate(e)||n,l.dateTo=c.stringToDate(r)||o,t.next=3,function(){return p.apply(this,arguments)}();case 3:l.subtenantList.columns=s.getSubtenantListColumns(),l.subtenantList.csvHeaders=_.map(l.subtenantList.columns,function(t){return _.get(t,"header.csv")||_.get(t,"header.text")||_.get(t,"header")}),l.subtenantList.filteredSortedStatisticsItems=d(),i.$apply();case 7:case"end":return t.stop()}var e,r,n,o},t)}))).apply(this,arguments)}function p(){return(p=_asyncToGenerator(_regeneratorRuntime().mark(function t(){var e,r,n;return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=y(),t.next=3,o.all({tenantStatistics:s.getTenantStatisticsFor(e),subtenantsStatistics:s.getSubtenantsStatisticsFor(e)});case 3:e=t.sent,r=e.tenantStatistics,n=e.subtenantsStatistics,l.tenantStatistics=r,l.subtenantList.statisticsItems=n;case 8:case"end":return t.stop()}},t)}))).apply(this,arguments)}function y(){return{dateFrom:c.dateToString(l.dateFrom),dateTo:c.dateToString(l.dateTo)}}function d(t){var t=0<arguments.length&&void 0!==t?t:l.subtenantList.columnsConfig,e=(l.subtenantList.columnsConfig=t,l.subtenantList),r=e.statisticsItems,e=e.columns;return n.filterSort(r,e,t)}_.assign(l,{$onInit:function(){return t.apply(this,arguments)},refresh:f,doFilter:function(){var t=y();t.dateFrom&&t.dateTo&&e.search(t)},clearFilter:function(){e.search({})},tenantStatistics:{tenantId:void 0,apiRequests:0,activeDevices:0},subtenantList:{csvHeaders:[],csvData:function(){return _.map([l.tenantStatistics].concat(_toConsumableArray(l.subtenantList.filteredSortedStatisticsItems)),function(t){return _.at(t,["tenantId","apiRequests","activeDevices"])})},columns:[],columnsConfig:{},onColumnsConfigChanged:function(t){l.subtenantList.filteredSortedStatisticsItems=d(t)},statisticsItems:[],filteredSortedStatisticsItems:[],goToSubtenant:function(t){t=t.tenantId;e.path("/tenants/".concat(t))}}})}t.$inject=["$rootScope","$q","$routeParams","$location","c8yTitle","c8yFilteringSortingCollections","c8yUtil","cellIdUsageStatisticsService","gettext"],angular.module("c8y.cellIdUsageStatistics").component("c8yCellIdUsageStatistics",{templateUrl:":::PLUGIN_PATH:::/cell-id-usage-statistics.html",controllerAs:"vm",controller:t})}();
@@ -1 +1 @@
1
- "use strict";function _typeof(t){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 _regeneratorRuntime(){_regeneratorRuntime=function(){return a};var a={},t=Object.prototype,l=t.hasOwnProperty,c=Object.defineProperty||function(t,e,r){t[e]=r.value},e="function"==typeof Symbol?Symbol:{},o=e.iterator||"@@iterator",r=e.asyncIterator||"@@asyncIterator",n=e.toStringTag||"@@toStringTag";function i(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{i({},"")}catch(t){i=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var o=e&&e.prototype instanceof h?e:h,i=Object.create(o.prototype),a=new x(n||[]);return c(i,"_invoke",{value:function(i,a,c){var u="suspendedStart";return function(t,e){if("executing"===u)throw new Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return T()}for(c.method=t,c.arg=e;;){var r=c.delegate;if(r){var n=b(r,c);if(n){if(n===s)continue;return n}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===u)throw u="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);u="executing";var o=f(i,a,c);if("normal"===o.type){if(u=c.done?"completed":"suspendedYield",o.arg===s)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(u="completed",c.method="throw",c.arg=o.arg)}}}(t,r,a)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}a.wrap=u;var s={};function h(){}function p(){}function y(){}var v={};i(v,o,function(){return this});var d=Object.getPrototypeOf,g=d&&d(d(L([])));g&&g!==t&&l.call(g,o)&&(v=g);var m=y.prototype=h.prototype=Object.create(v);function w(t){["next","throw","return"].forEach(function(e){i(t,e,function(t){return this._invoke(e,t)})})}function _(u,s){var e;c(this,"_invoke",{value:function(r,n){function t(){return new s(function(t,e){!function e(t,r,n,o){var i=f(u[t],u,r);if("throw"!==i.type){var a=i.arg,c=a.value;return c&&"object"==_typeof(c)&&l.call(c,"__await")?s.resolve(c.__await).then(function(t){e("next",t,n,o)},function(t){e("throw",t,n,o)}):s.resolve(c).then(function(t){a.value=t,n(a)},function(t){return e("throw",t,n,o)})}o(i.arg)}(r,n,t,e)})}return e=e?e.then(t,t):t()}})}function b(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),s;var o=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,s;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,s):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,s)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function L(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r<e.length;)if(l.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:T}}function T(){return{value:void 0,done:!0}}return c(m,"constructor",{value:p.prototype=y,configurable:!0}),c(y,"constructor",{value:p,configurable:!0}),p.displayName=i(y,n,"GeneratorFunction"),a.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},a.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,i(t,n,"GeneratorFunction")),t.prototype=Object.create(m),t},a.awrap=function(t){return{__await:t}},w(_.prototype),i(_.prototype,r,function(){return this}),a.AsyncIterator=_,a.async=function(t,e,r,n,o){void 0===o&&(o=Promise);var i=new _(u(t,e,r,n),o);return a.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},w(m),i(m,n,"Generator"),i(m,o,function(){return this}),i(m,"toString",function(){return"[object Generator]"}),a.keys=function(t){var r=Object(t),n=[];for(var e in r)n.push(e);return n.reverse(),function t(){for(;n.length;){var e=n.pop();if(e in r)return t.value=e,t.done=!1,t}return t.done=!0,t}},a.values=L,x.prototype={constructor:x,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&l.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var n=this;function t(t,e){return i.type="throw",i.arg=r,n.next=t,e&&(n.method="next",n.arg=void 0),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var o=this.tryEntries[e],i=o.completion;if("root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev){var a=l.call(o,"catchLoc"),c=l.call(o,"finallyLoc");if(a&&c){if(this.prev<o.catchLoc)return t(o.catchLoc,!0);if(this.prev<o.finallyLoc)return t(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return t(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return t(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;0<=r;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&l.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,s):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),s},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),s}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:L(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),s}},a}function asyncGeneratorStep(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function _asyncToGenerator(c){return function(){var t=this,a=arguments;return new Promise(function(e,r){var n=c.apply(t,a);function o(t){asyncGeneratorStep(n,e,r,o,i,"next",t)}function i(t){asyncGeneratorStep(n,e,r,o,i,"throw",t)}o(void 0)})}}!function(){function t(n,o,t,e){var i=e.TENANT_STATS_SERVICE_ENDPOINT,a=e.SUBTENANTS_STATS_SERVICE_ENDPOINT,r=e.SUBTENANT_STATS_COLUMNS;return{getSubtenantListColumns:function(){return[t.getColumn(r.tenantId),t.getColumn(r.apiRequests),t.getColumn(r.activeDevices)]},getTenantStatisticsFor:function(t){return c.apply(this,arguments)},getSubtenantsStatisticsFor:function(t){return u.apply(this,arguments)},isCellIDMicroserviceAvailable:function(){return l.apply(this,arguments)}};function c(){return(c=_asyncToGenerator(_regeneratorRuntime().mark(function t(e){var r;return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.t0=o,t.next=4,n.get(o.url(i),{params:o.timeOrderFilter(o.pageSizeNoTotalFilter(e)),silentError:!0});case 4:return t.t1=t.sent,r=t.t0.getResData.call(t.t0,t.t1),t.abrupt("return",s(r));case 9:return t.prev=9,t.t2=t.catch(0),t.abrupt("return",s({}));case 12:case"end":return t.stop()}},t,null,[[0,9]])}))).apply(this,arguments)}function u(){return(u=_asyncToGenerator(_regeneratorRuntime().mark(function t(e){var r;return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.t0=o,t.next=4,n.get(o.url(a),{params:o.timeOrderFilter(o.pageSizeNoTotalFilter(e)),silentError:!0});case 4:return t.t1=t.sent,r=t.t0.getResData.call(t.t0,t.t1),t.abrupt("return",_.map(r,s));case 9:return t.prev=9,t.t2=t.catch(0),t.abrupt("return",[]);case 12:case"end":return t.stop()}},t,null,[[0,9]])}))).apply(this,arguments)}function s(t){return{tenantId:_.get(t,"tenant"),apiRequests:_.get(t,"statistics.apiRequests",0),activeDevices:_.get(t,"statistics.activeDevices",0)}}function l(){return(l=_asyncToGenerator(_regeneratorRuntime().mark(function t(){return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,n.get(o.url(i),{params:{dateFrom:moment().format(o.dateFormat)},silentError:!0});case 3:return t.abrupt("return",!0);case 6:return t.prev=6,t.t0=t.catch(0),t.abrupt("return",!1);case 9:case"end":return t.stop()}},t,null,[[0,6]])}))).apply(this,arguments)}}t.$inject=["$http","c8yBase","c8yFilteringSortingCollections","cellIdUsageStatisticsConstants"],angular.module("c8y.cellIdUsageStatistics").factory("cellIdUsageStatisticsService",t)}();
1
+ "use strict";function _typeof(t){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 _regeneratorRuntime(){_regeneratorRuntime=function(){return a};var a={},t=Object.prototype,u=t.hasOwnProperty,s=Object.defineProperty||function(t,e,r){t[e]=r.value},e="function"==typeof Symbol?Symbol:{},n=e.iterator||"@@iterator",r=e.asyncIterator||"@@asyncIterator",o=e.toStringTag||"@@toStringTag";function i(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{i({},"")}catch(t){i=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var o,i,a,c,e=e&&e.prototype instanceof h?e:h,e=Object.create(e.prototype),n=new b(n||[]);return s(e,"_invoke",{value:(o=t,i=r,a=n,c="suspendedStart",function(t,e){if("executing"===c)throw new Error("Generator is already running");if("completed"===c){if("throw"===t)throw e;return E()}for(a.method=t,a.arg=e;;){var r=a.delegate;if(r){r=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;n=l(o,e.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,f;o=n.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,f)}(r,a);if(r){if(r===f)continue;return r}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===c)throw c="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);c="executing";r=l(o,i,a);if("normal"===r.type){if(c=a.done?"completed":"suspendedYield",r.arg===f)continue;return{value:r.arg,done:a.done}}"throw"===r.type&&(c="completed",a.method="throw",a.arg=r.arg)}})}),e}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}a.wrap=c;var f={};function h(){}function p(){}function y(){}var e={},v=(i(e,n,function(){return this}),Object.getPrototypeOf),v=v&&v(v(S([]))),d=(v&&v!==t&&u.call(v,n)&&(e=v),y.prototype=h.prototype=Object.create(e));function g(t){["next","throw","return"].forEach(function(e){i(t,e,function(t){return this._invoke(e,t)})})}function m(a,c){var e;s(this,"_invoke",{value:function(r,n){function t(){return new c(function(t,e){!function e(t,r,n,o){var i,t=l(a[t],a,r);if("throw"!==t.type)return(r=(i=t.arg).value)&&"object"==_typeof(r)&&u.call(r,"__await")?c.resolve(r.__await).then(function(t){e("next",t,n,o)},function(t){e("throw",t,n,o)}):c.resolve(r).then(function(t){i.value=t,n(i)},function(t){return e("throw",t,n,o)});o(t.arg)}(r,n,t,e)})}return e=e?e.then(t,t):t()}})}function w(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function b(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function S(e){if(e){var r,t=e[n];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return r=-1,(t=function t(){for(;++r<e.length;)if(u.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t}).next=t}return{next:E}}function E(){return{value:void 0,done:!0}}return s(d,"constructor",{value:p.prototype=y,configurable:!0}),s(y,"constructor",{value:p,configurable:!0}),p.displayName=i(y,o,"GeneratorFunction"),a.isGeneratorFunction=function(t){t="function"==typeof t&&t.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},a.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,i(t,o,"GeneratorFunction")),t.prototype=Object.create(d),t},a.awrap=function(t){return{__await:t}},g(m.prototype),i(m.prototype,r,function(){return this}),a.AsyncIterator=m,a.async=function(t,e,r,n,o){void 0===o&&(o=Promise);var i=new m(c(t,e,r,n),o);return a.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},g(d),i(d,o,"Generator"),i(d,n,function(){return this}),i(d,"toString",function(){return"[object Generator]"}),a.keys=function(t){var e,r=Object(t),n=[];for(e in r)n.push(e);return n.reverse(),function t(){for(;n.length;){var e=n.pop();if(e in r)return t.value=e,t.done=!1,t}return t.done=!0,t}},a.values=S,b.prototype={constructor:b,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!t)for(var e in this)"t"===e.charAt(0)&&u.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var n=this;function t(t,e){return i.type="throw",i.arg=r,n.next=t,e&&(n.method="next",n.arg=void 0),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var o=this.tryEntries[e],i=o.completion;if("root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev){var a=u.call(o,"catchLoc"),c=u.call(o,"finallyLoc");if(a&&c){if(this.prev<o.catchLoc)return t(o.catchLoc,!0);if(this.prev<o.finallyLoc)return t(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return t(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return t(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;0<=r;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&u.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}var i=(o=o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc?null:o)?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),_(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r,n,o=this.tryEntries[e];if(o.tryLoc===t)return"throw"===(r=o.completion).type&&(n=r.arg,_(o)),n}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},a}function asyncGeneratorStep(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function _asyncToGenerator(c){return function(){var t=this,a=arguments;return new Promise(function(e,r){var n=c.apply(t,a);function o(t){asyncGeneratorStep(n,e,r,o,i,"next",t)}function i(t){asyncGeneratorStep(n,e,r,o,i,"throw",t)}o(void 0)})}}!function(){function t(n,o,t,e){var i=e.TENANT_STATS_SERVICE_ENDPOINT,a=e.SUBTENANTS_STATS_SERVICE_ENDPOINT,r=e.SUBTENANT_STATS_COLUMNS;return{getSubtenantListColumns:function(){return[t.getColumn(r.tenantId),t.getColumn(r.apiRequests),t.getColumn(r.activeDevices)]},getTenantStatisticsFor:function(t){return c.apply(this,arguments)},getSubtenantsStatisticsFor:function(t){return u.apply(this,arguments)},isCellIDMicroserviceAvailable:function(){return l.apply(this,arguments)}};function c(){return(c=_asyncToGenerator(_regeneratorRuntime().mark(function t(e){var r;return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.t0=o,t.next=4,n.get(o.url(i),{params:o.timeOrderFilter(o.pageSizeNoTotalFilter(e)),silentError:!0});case 4:return t.t1=t.sent,r=t.t0.getResData.call(t.t0,t.t1),t.abrupt("return",s(r));case 9:return t.prev=9,t.t2=t.catch(0),t.abrupt("return",s({}));case 12:case"end":return t.stop()}},t,null,[[0,9]])}))).apply(this,arguments)}function u(){return(u=_asyncToGenerator(_regeneratorRuntime().mark(function t(e){var r;return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.t0=o,t.next=4,n.get(o.url(a),{params:o.timeOrderFilter(o.pageSizeNoTotalFilter(e)),silentError:!0});case 4:return t.t1=t.sent,r=t.t0.getResData.call(t.t0,t.t1),t.abrupt("return",_.map(r,s));case 9:return t.prev=9,t.t2=t.catch(0),t.abrupt("return",[]);case 12:case"end":return t.stop()}},t,null,[[0,9]])}))).apply(this,arguments)}function s(t){return{tenantId:_.get(t,"tenant"),apiRequests:_.get(t,"statistics.apiRequests",0),activeDevices:_.get(t,"statistics.activeDevices",0)}}function l(){return(l=_asyncToGenerator(_regeneratorRuntime().mark(function t(){return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,n.get(o.url(i),{params:{dateFrom:moment().format(o.dateFormat)},silentError:!0});case 3:return t.abrupt("return",!0);case 6:return t.prev=6,t.t0=t.catch(0),t.abrupt("return",!1);case 9:case"end":return t.stop()}},t,null,[[0,6]])}))).apply(this,arguments)}}t.$inject=["$http","c8yBase","c8yFilteringSortingCollections","cellIdUsageStatisticsConstants"],angular.module("c8y.cellIdUsageStatistics").factory("cellIdUsageStatisticsService",t)}();
@@ -1 +1 @@
1
- "use strict";!function(){angular.module("c8y.cockpit.assetcount").factory("assetCount",["c8yInventory","c8yDevices","c8yDeviceStatus","c8yAlarms",function(t,e,n,u){return{totalGroups:function(){return t.getCount({fragmentType:r})},totalDevices:function(){return e.getCount()},online:function(){return e.list({pageSize:1e3}).then(function(t){return _.filter(t,function(t){return n.isDeviceAvailable(t)}).length})},withCritical:function(){return t=u.status.CRITICAL,1e3,e=u.status.ACTIVE,u.list({severity:t,status:e,pageSize:1e3}).then(function(t){return _.reduce(t,function(t,e){var n=e.source.id;return-1===t.indexOf(n)&&t.push(n),t},[]).length});var t,e}}}]);var r="c8y_IsDeviceGroup"}();
1
+ "use strict";!function(){angular.module("c8y.cockpit.assetcount").factory("assetCount",["c8yInventory","c8yDevices","c8yDeviceStatus","c8yAlarms",function(t,e,n,u){return{totalGroups:function(){return t.getCount({fragmentType:r})},totalDevices:function(){return e.getCount()},online:function(){return e.list({pageSize:1e3}).then(function(t){return _.filter(t,function(t){return n.isDeviceAvailable(t)}).length})},withCritical:function(){return t=u.status.CRITICAL,e=u.status.ACTIVE,u.list({severity:t,status:e,pageSize:1e3}).then(function(t){return _.reduce(t,function(t,e){e=e.source.id;return-1===t.indexOf(e)&&t.push(e),t},[]).length});var t,e}}}]);var r="c8y_IsDeviceGroup"}();
@@ -1 +1 @@
1
- "use strict";!function(){function n(t){function i(i){return t.findNode(function(n){return n.name===i})}return{configure:function(){!function(){var n=i("Alarms");n&&(delete n._parent,n.update({priority:100})),function(){var n=i("Overviews");t.removeNavigation(n)}()}(),function(){var n=t.findNode("Data point library"),i=t.findNode("Business rules"),o=t.findNode("Configuration");o&&n&&o.addChild(n),i&&t.removeNavigation(i)}()}}}n.$inject=["c8yNavigator"],angular.module("c8y.cockpit.config").factory("cockpitNavigatorConfigSvc",n)}();
1
+ "use strict";!function(){function i(e){function t(n){return e.findNode(function(i){return i.name===n})}return{configure:function(){(i=t("Alarms"))&&(delete i._parent,i.update({priority:100}));var i=t("Overviews"),i=(e.removeNavigation(i),e.findNode("Data point library")),n=e.findNode("Business rules"),o=e.findNode("Configuration");o&&i&&o.addChild(i),n&&e.removeNavigation(n)}}}i.$inject=["c8yNavigator"],angular.module("c8y.cockpit.config").factory("cockpitNavigatorConfigSvc",i)}();
@@ -1 +1 @@
1
- "use strict";!function(){t.$inject=["$q","$uibModal","c8yBase","c8yInventory","c8yNavigator","dashboardSvc","gettext"],angular.module("c8y.cockpit.reports").factory("c8yReports",t);var g="c8y_Report",y={fragmentType:g,pageSize:1e3},R="reports/";function t(n,r,a,o,i,e,u){function t(){return o.list(y)}function c(){var t=i.findNode(d);t&&t.update({sortAlphabetically:!0})}function d(t){return"Reports"===t.name}function f(t){i.addNavigation(_.map(t,p))}function p(t){return{report_id:t.id,path:R+t.id,name:t.name,icon:t.icon,parent:{name:u("Reports")}}}function s(e){return function(t){return t.report_id===e.id}}function l(t){return e.named(h(t)).then(e.remove)}function m(t){return o.remove(t)}function v(t){var e={templateUrl:":::PLUGIN_PATH:::/views/edit.html",controller:"ReportDetailCtrl",resolve:{report:function(){return t?o.detail(t).then(a.getResData):{}}}};return r.open(e).result}function h(t){if(!t)throw new Error("Must define a report");return"report_".concat(t.id||t)}return{initialize:function(){return t().then(f).then(c)},save:function(t){!function(t){t[g]||(t[g]={})}(t);var e=o[t.id?"save":"createConfirm"](t);return t.id?i.findNode(s(t)).update(t):e.then(a.getResData).then(function(t){i.addNavigation(p(t))}),e},list:t,remove:function(t){return function(t){var e=i.findNode(s(t));return n.when(i.removeNavigation(e))}(t).then(_.partial(l,t)).then(_.partial(m,t))},detail:o.detail,createUI:v,editUI:v,isReport:function(t){return!!t[g]},dashboardName:h,getReportFromDashboard:function(t){var e=_(t).keys().map(function(t){return _.get(t.match(/^c8y_Dashboard!name!report_(\d+)/),1)}).compact().first();return o.detail(e).then(a.getResData)}}}}();
1
+ "use strict";!function(){t.$inject=["$q","$uibModal","c8yBase","c8yInventory","c8yNavigator","dashboardSvc","gettext"],angular.module("c8y.cockpit.reports").factory("c8yReports",t);var g="c8y_Report",y={fragmentType:g,pageSize:1e3},R="reports/";function t(e,n,r,o,i,a,u){function t(){return o.list(y)}function c(){var t=i.findNode(d);t&&t.update({sortAlphabetically:!0})}function d(t){return"Reports"===t.name}function f(t){i.addNavigation(_.map(t,p))}function p(t){return{report_id:t.id,path:R+t.id,name:t.name,icon:t.icon,parent:{name:u("Reports")}}}function s(e){return function(t){return t.report_id===e.id}}function l(t){return a.named(v(t)).then(a.remove)}function m(t){return o.remove(t)}function h(t){return n.open({templateUrl:":::PLUGIN_PATH:::/views/edit.html",controller:"ReportDetailCtrl",resolve:{report:function(){return t?o.detail(t).then(r.getResData):{}}}}).result}function v(t){if(t)return"report_".concat(t.id||t);throw new Error("Must define a report")}return{initialize:function(){return t().then(f).then(c)},save:function(t){(e=t)[g]||(e[g]={});var e=o[t.id?"save":"createConfirm"](t);return t.id?i.findNode(s(t)).update(t):e.then(r.getResData).then(function(t){i.addNavigation(p(t))}),e},list:t,remove:function(t){return function(t){t=i.findNode(s(t));return e.when(i.removeNavigation(t))}(t).then(_.partial(l,t)).then(_.partial(m,t))},detail:o.detail,createUI:h,editUI:h,isReport:function(t){return!!t[g]},dashboardName:v,getReportFromDashboard:function(t){return t=_(t).keys().map(function(t){return _.get(t.match(/^c8y_Dashboard!name!report_(\d+)/),1)}).compact().first(),o.detail(t).then(r.getResData)}}}}();
@@ -1 +1 @@
1
- "use strict";!function(){a.$inject=["c8yUiUtil","c8yNavigator"],e.$inject=["c8yNavigatorProvider","c8yViewsProvider","c8yTitleProvider","c8yBreadcrumbsProvider","smartRulesTemplateBasePath","gettext"],angular.module("c8y.smartRulesUI",["c8y.smartRules"]).config(e).run(a);var m="rules";function e(e,a,t,n,i,r){d.$inject=["$q","c8yPermissions","c8ySmartRulesAvailability"];var l=i,o="/device/:deviceId",c=[o];function s(e){return{title:e}}function u(e){a.when(e,{priority:1e3,name:r("Smart rules"),icon:"c8y-smart-rules",showIf:["c8ySmartRulesAvailability",function(e){return e.shouldShowLocalSmartRules()}],templateUrl:"".concat(l,"list.html"),featureId:"smartRules"})}function d(e,a,t){var n={hasInventoryReadAdminCreate:a.isAllowed({anyRole:["ROLE_INVENTORY_READ","ROLE_INVENTORY_ADMIN","ROLE_INVENTORY_CREATE"]}),hasSmartRuleReadAdmin:a.isAllowed({anyRole:["ROLE_SMARTRULE_READ","ROLE_SMARTRULE_ADMIN"]}),hasCepManagementAdmin:a.isAllowed({anyRole:["ROLE_CEP_MANAGEMENT_ADMIN"]}),isApplicationAvailable:t.isApplicationAvailable()};return e.all(n).then(function(e){return e.hasInventoryReadAdminCreate&&e.isApplicationAvailable&&(e.hasSmartRuleReadAdmin||e.hasCepManagementAdmin)})}t.addTitle(o,{data:["$routeParams","c8yBase","c8yDevices",function(e,a,t){var n=e.deviceId;return n?t.detailCached(n).then(a.getResData).then(t.properName).then(s):{}}]}),a.when("/".concat(m),{templateUrl:"".concat(l,"list.html")}),c.forEach(u),e.addNavigation({parent:{name:r("Configuration"),icon:"c8y-tools"},name:r("Global smart rules"),path:m,icon:"c8y-smart-rules",showIf:d,featureId:"globalSmartRules"}),n.addBreadcrumbs(o,{data:["$routeParams","c8yDevices",function(e,a){var t=e.deviceId;return a.getBreadcrumbsData(t)}]})}function a(e,a){e.shouldShowSmartRules().then(function(e){e||a.removeNavigation(a.findNode(function(e){return e.path===m}))})}}();
1
+ "use strict";!function(){a.$inject=["c8yUiUtil","c8yNavigator"],e.$inject=["c8yNavigatorProvider","c8yViewsProvider","c8yTitleProvider","c8yBreadcrumbsProvider","smartRulesTemplateBasePath","gettext"],angular.module("c8y.smartRulesUI",["c8y.smartRules"]).config(e).run(a);var d="rules";function e(e,a,t,n,i,r){u.$inject=["$q","c8yPermissions","c8ySmartRulesAvailability"];var l=i,i="/device/:deviceId",o=[i];function c(e){return{title:e}}function s(e){a.when(e,{priority:1e3,name:r("Smart rules"),icon:"c8y-smart-rules",showIf:["c8ySmartRulesAvailability",function(e){return e.shouldShowLocalSmartRules()}],templateUrl:"".concat(l,"list.html"),featureId:"smartRules"})}function u(e,a,t){a={hasInventoryReadAdminCreate:a.isAllowed({anyRole:["ROLE_INVENTORY_READ","ROLE_INVENTORY_ADMIN","ROLE_INVENTORY_CREATE"]}),hasSmartRuleReadAdmin:a.isAllowed({anyRole:["ROLE_SMARTRULE_READ","ROLE_SMARTRULE_ADMIN"]}),hasCepManagementAdmin:a.isAllowed({anyRole:["ROLE_CEP_MANAGEMENT_ADMIN"]}),isApplicationAvailable:t.isApplicationAvailable()};return e.all(a).then(function(e){return e.hasInventoryReadAdminCreate&&e.isApplicationAvailable&&(e.hasSmartRuleReadAdmin||e.hasCepManagementAdmin)})}t.addTitle(i,{data:["$routeParams","c8yBase","c8yDevices",function(e,a,t){e=e.deviceId;return e?t.detailCached(e).then(a.getResData).then(t.properName).then(c):{}}]}),a.when("/".concat(d),{templateUrl:"".concat(l,"list.html")}),o.forEach(s),e.addNavigation({parent:{name:r("Configuration"),icon:"c8y-tools"},name:r("Global smart rules"),path:d,icon:"c8y-smart-rules",showIf:u,featureId:"globalSmartRules"}),n.addBreadcrumbs(i,{data:["$routeParams","c8yDevices",function(e,a){e=e.deviceId;return a.getBreadcrumbsData(e)}]})}function a(e,a){e.shouldShowSmartRules().then(function(e){e||a.removeNavigation(a.findNode(function(e){return e.path===d}))})}}();
@@ -1 +1 @@
1
- "use strict";function _typeof(e){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 _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"===_typeof(t)?t:String(t)}function _toPrimitive(e,t){if("object"!==_typeof(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);var n=r.call(e,t||"default");if("object"!==_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}!function(){function e(e,t,r,n,a,o,i,l){var m,y,c=this,u=[],d=n.getDeliveryTypes().defaultDeliveryType,s=n.getDeliveryTypes().standardDeliveryTypes;function p(e){u.length=0,_.forEach(e,function(e){var t=!!e.id;u.push({name:t?e.name:l.getString(e.name),command:e.command,category:t?e.category:l.getString(e.category),deliveryTypes:e.deliveryTypes,id:e.id})})}function f(e){c.result.commandTemplate=e,_.difference(e.deliveryTypes,s)||c.standardDeliveryTypes.push(e.deliveryType),c.commandDeliveryType=_.first(e.deliveryTypes)||d}_.assign(c,{commandTemplates:u,standardDeliveryTypes:s,defaultDeliveryType:d,commandDeliveryTypesSelected:{},validateSelectedDeliveryTypes:function(){return _.isEmpty(_.pickBy(c.commandDeliveryTypesSelected))},result:{action:null,commandTemplate:null},forms:{},onTemplateSelected:f,use:function(e){c.result.action="USE",c.result.deliveryType=e!==d&&e,c.result.commandTemplate=_.clone(c.result.commandTemplate);var t=c.result.commandTemplate;t.text=t.text||t.command,c.close(c.result)},execute:function(e){c.result.action="EXECUTE",c.result.deliveryType=e!==d&&e,c.result.commandTemplate=_.clone(c.result.commandTemplate);var t=c.result.commandTemplate;t.text=t.command,c.close(c.result)},cancel:function(){c.newCommandTemplate?delete c.newCommandTemplate:c.dismiss()},save:function(){c.newCommandTemplate.deliveryTypes=_.keys(_.pickBy(c.commandDeliveryTypesSelected)),n.saveTemplate(c.newCommandTemplate).then(t.getResData).then(function(e){var t=_.pick(e,["id","name","category","command","text","deliveryTypes"]),r=_.find(u,{id:t.id});r?_.assign(r,t):u.unshift(t),f(c.result.commandTemplate=t),delete c.newCommandTemplate})},addNew:function(){c.newCommandTemplate={deviceType:m},c.commandDeliveryTypesSelected=_defineProperty({},d,!0)},hideAddButton:function(){return!!c.newCommandTemplate},edit:function(e){var t;t=_.isEmpty(e.deliveryTypes)?s:e.deliveryTypes;_.forEach(t,function(e){_.assign(c.commandDeliveryTypesSelected,_defineProperty({},e,!0))}),c.newCommandTemplate=e},remove:function(e){c.result.commandTemplate===e&&delete c.result.commandTemplate;n.removeTemplate(e).then(function(){_.pull(u,e)}).then(function(){o.success(i("Shell command template deleted."))})},isDeliveryTypeSupported:function(e,t){var r=_.get(t,"deliveryTypes");return _.isEmpty(r)||_.includes(r,e)},getExecuteButtonLabel:function(e){return e!==d?l.getString("Execute (via {{ deliveryType | translate }})",{deliveryType:e}):l.getString("Execute")},appendToEl:document.getElementsByClassName("modal"),getCommandPlaceholder:function(){return l.getString("e.g. {{ example }}",{example:"ls"})}}),(y=e.deviceId,r.detailCached(y).then(t.getResData).then(function(e){return m=_.concat(e.type,e.c8y_DeviceTypes||[]),n.getCommandTemplatesForDeviceType.apply(n,_toConsumableArray(m))})).then(p),n.canSendCommandsViaSMS().then(function(e){c.smsEnabled=e}),a.hasAnyRole(["ROLE_INVENTORY_ADMIN"]).then(function(e){c.canWrite=e})}e.$inject=["$routeParams","c8yBase","c8yDevices","c8yDeviceShell","c8yPermissions","c8yAlert","gettext","gettextCatalog"],angular.module("c8y.commandTemplates").controller("commandTemplatesCtrl",e)}();
1
+ "use strict";function _typeof(e){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 _defineProperty(e,t,n){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"===_typeof(e)?e:String(e)}function _toPrimitive(e,t){if("object"!==_typeof(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!==_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){var n;if(e)return"string"==typeof e?_arrayLikeToArray(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}!function(){function e(e,t,n,r,o,a,i,l){var m,y=this,c=[],u=r.getDeliveryTypes().defaultDeliveryType,d=r.getDeliveryTypes().standardDeliveryTypes;function s(e){c.length=0,_.forEach(e,function(e){var t=!!e.id;c.push({name:t?e.name:l.getString(e.name),command:e.command,category:t?e.category:l.getString(e.category),deliveryTypes:e.deliveryTypes,id:e.id})})}function p(e){y.result.commandTemplate=e,_.difference(e.deliveryTypes,d)||y.standardDeliveryTypes.push(e.deliveryType),y.commandDeliveryType=_.first(e.deliveryTypes)||u}_.assign(y,{commandTemplates:c,standardDeliveryTypes:d,defaultDeliveryType:u,commandDeliveryTypesSelected:{},validateSelectedDeliveryTypes:function(){return _.isEmpty(_.pickBy(y.commandDeliveryTypesSelected))},result:{action:null,commandTemplate:null},forms:{},onTemplateSelected:p,use:function(e){y.result.action="USE",y.result.deliveryType=e!==u&&e,y.result.commandTemplate=_.clone(y.result.commandTemplate);e=y.result.commandTemplate;e.text=e.text||e.command,y.close(y.result)},execute:function(e){y.result.action="EXECUTE",y.result.deliveryType=e!==u&&e,y.result.commandTemplate=_.clone(y.result.commandTemplate);e=y.result.commandTemplate;e.text=e.command,y.close(y.result)},cancel:function(){y.newCommandTemplate?delete y.newCommandTemplate:y.dismiss()},save:function(){y.newCommandTemplate.deliveryTypes=_.keys(_.pickBy(y.commandDeliveryTypesSelected)),r.saveTemplate(y.newCommandTemplate).then(t.getResData).then(function(e){var e=_.pick(e,["id","name","category","command","text","deliveryTypes"]),t=_.find(c,{id:e.id});t?_.assign(t,e):c.unshift(e),y.result.commandTemplate=e,p(e),delete y.newCommandTemplate})},addNew:function(){y.newCommandTemplate={deviceType:m},y.commandDeliveryTypesSelected=_defineProperty({},u,!0)},hideAddButton:function(){return!!y.newCommandTemplate},edit:function(e){var t;t=_.isEmpty(e.deliveryTypes)?d:e.deliveryTypes;_.forEach(t,function(e){_.assign(y.commandDeliveryTypesSelected,_defineProperty({},e,!0))}),y.newCommandTemplate=e},remove:function(e){y.result.commandTemplate===e&&delete y.result.commandTemplate;r.removeTemplate(e).then(function(){_.pull(c,e)}).then(function(){a.success(i("Shell command template deleted."))})},isDeliveryTypeSupported:function(e,t){t=_.get(t,"deliveryTypes");return _.isEmpty(t)||_.includes(t,e)},getExecuteButtonLabel:function(e){return e!==u?l.getString("Execute (via {{ deliveryType | translate }})",{deliveryType:e}):l.getString("Execute")},appendToEl:document.getElementsByClassName("modal"),getCommandPlaceholder:function(){return l.getString("e.g. {{ example }}",{example:"ls"})}}),function(e){return n.detailCached(e).then(t.getResData).then(function(e){return m=_.concat(e.type,e.c8y_DeviceTypes||[]),r.getCommandTemplatesForDeviceType.apply(r,_toConsumableArray(m))})}(e.deviceId).then(s),r.canSendCommandsViaSMS().then(function(e){y.smsEnabled=e}),o.hasAnyRole(["ROLE_INVENTORY_ADMIN"]).then(function(e){y.canWrite=e})}e.$inject=["$routeParams","c8yBase","c8yDevices","c8yDeviceShell","c8yPermissions","c8yAlert","gettext","gettextCatalog"],angular.module("c8y.commandTemplates").controller("commandTemplatesCtrl",e)}();
@@ -1 +1 @@
1
- "use strict";!function(){function e(n,r,i,t,o){var u="c8y_ConfigurationDump";return{getEmpty:function(){return{name:"",description:"",url:"",type:u}},list:function(e){var t=function(e){return _.assign({type:u},e||{})}(e);return r.list(t)},listQuery:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=1<arguments.length?arguments[1]:void 0;return e.type=u,r.listQuery(e,t,!0)},save:function(e){return e.type=u,n.when(e).then(_.partialRight(r.addGlobalFlag,!0)).then(l).then(c).then(r.save).then(function(){t.success(o("Configuration snapshot saved."))})},remove:function(e){return r.remove(e)}};function l(e){var t=i.getIdFromUrl(e.selectedFile.url);return(t?i.setGlobalFlag(t,!0):n.when()).then(_.constant(e))}function c(e){return e.selectedFile.url&&(e.url=e.selectedFile.url,delete e.selectedFile),n.when(e)}}e.$inject=["$q","c8yInventory","c8yBinary","c8yAlert","gettext"],angular.module("c8y.configurationRepository").factory("configurationRepositorySvc",e)}();
1
+ "use strict";!function(){function e(n,r,i,t,o){var u="c8y_ConfigurationDump";return{getEmpty:function(){return{name:"",description:"",url:"",type:u}},list:function(e){e=function(e){return _.assign({type:u},e||{})}(e);return r.list(e)},listQuery:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=1<arguments.length?arguments[1]:void 0;return e.type=u,r.listQuery(e,t,!0)},save:function(e){return e.type=u,n.when(e).then(_.partialRight(r.addGlobalFlag,!0)).then(l).then(c).then(r.save).then(function(){t.success(o("Configuration snapshot saved."))})},remove:function(e){return r.remove(e)}};function l(e){var t=i.getIdFromUrl(e.selectedFile.url);return(t?i.setGlobalFlag(t,!0):n.when()).then(_.constant(e))}function c(e){return e.selectedFile.url&&(e.url=e.selectedFile.url,delete e.selectedFile),n.when(e)}}e.$inject=["$q","c8yInventory","c8yBinary","c8yAlert","gettext"],angular.module("c8y.configurationRepository").factory("configurationRepositorySvc",e)}();
@@ -1 +1 @@
1
- "use strict";!function(){function n(t,e,n,i,o,a,r,u,s,c,g){var f,l=this,d=[],p="#add-configuration-snapshot-btn";function h(n){var t=n.then(function(n){return{title:c("Configuration snapshots repository"),subtitle:!_.isUndefined(n)&&0<n?g.getPlural(n,"1 snapshot","{{$count}} snapshots",{}):""}});r.changeTitle(t)}function y(n){t.configurations&&!t.refreshLoading||(t.configurations=[]),t.paging=n.paging,n.forEach(function(n){t.configurations.push(n),n.id===i.id&&d.push(n)}),h(e.when(n.length))}function C(){t.refreshLoading=!0,t.paging.refresh().then(y).finally(function(){t.refreshLoading=!1})}function m(n){return d.indexOf(n)}function v(n){return-1<m(n)}function b(){$(p).attr("aria-expanded","false"),l.dropdownOpen=!1,l.newCfg=null}t.onToggle=function(n){n&&(l.newCfgForm.$setPristine(),l.newCfgForm.$setUntouched())},t.loadNext=function(){t.paging.loading=!0,t.paging.next().then(y).finally(function(){t.paging.loading=!1})},t.refresh=C,t.toggle=function(n){v(n)?d.splice(m(n),1):d.push(n)},t.isOpen=v,t.onClickDelete=function(n){u({title:c("Delete configuration"),body:g.getString('You are about to delete the configuration "{{name}}". Do you want to proceed?',n),status:"danger",labels:{ok:c("Delete")},size:"sm"}).then(angular.bind(s,s.remove,n)).then(angular.bind(a,a.removeFromList,t.configurations,n)).then(function(){o.success(c("Configuration deleted.")),h(e.when(t.configurations.length))})},t.save=function(n){s.save(n).then(angular.bind({},C)).finally(b)},t.add=function(){l.newCfg=s.getEmpty(),l.newCfg.deviceType=i.type},t.cancelAdd=b,t.invalid=angular.bind(a,a.invalid,t),t.getConfigurationsCopy=function(n){return _.cloneDeep(n)},t.status={isOpen:!1},s.list(f).then(y),i.add&&n(function(){$(p).click()})}n.$inject=["$scope","$q","$timeout","$routeParams","c8yAlert","c8yBase","c8yTitle","c8yModal","configurationRepositorySvc","gettext","gettextCatalog"],angular.module("c8y.configurationRepository").controller("configurationRepositoryListCtrl",n)}();
1
+ "use strict";!function(){function n(t,e,n,i,o,a,r,u,s,c,g){var f=this,l=[],d="#add-configuration-snapshot-btn";function p(n){n=n.then(function(n){return{title:c("Configuration snapshots repository"),subtitle:!_.isUndefined(n)&&0<n?g.getPlural(n,"1 snapshot","{{$count}} snapshots",{}):""}});r.changeTitle(n)}function h(n){t.configurations&&!t.refreshLoading||(t.configurations=[]),t.paging=n.paging,n.forEach(function(n){t.configurations.push(n),n.id===i.id&&l.push(n)}),p(e.when(n.length))}function y(){t.refreshLoading=!0,t.paging.refresh().then(h).finally(function(){t.refreshLoading=!1})}function C(n){return l.indexOf(n)}function m(n){return-1<C(n)}function v(){$(d).attr("aria-expanded","false"),f.dropdownOpen=!1,f.newCfg=null}t.onToggle=function(n){n&&(f.newCfgForm.$setPristine(),f.newCfgForm.$setUntouched())},t.loadNext=function(){t.paging.loading=!0,t.paging.next().then(h).finally(function(){t.paging.loading=!1})},t.refresh=y,t.toggle=function(n){m(n)?l.splice(C(n),1):l.push(n)},t.isOpen=m,t.onClickDelete=function(n){u({title:c("Delete configuration"),body:g.getString('You are about to delete the configuration "{{name}}". Do you want to proceed?',n),status:"danger",labels:{ok:c("Delete")},size:"sm"}).then(angular.bind(s,s.remove,n)).then(angular.bind(a,a.removeFromList,t.configurations,n)).then(function(){o.success(c("Configuration deleted.")),p(e.when(t.configurations.length))})},t.save=function(n){s.save(n).then(angular.bind({},y)).finally(v)},t.add=function(){f.newCfg=s.getEmpty(),f.newCfg.deviceType=i.type},t.cancelAdd=v,t.invalid=angular.bind(a,a.invalid,t),t.getConfigurationsCopy=function(n){return _.cloneDeep(n)},t.status={isOpen:!1},s.list(void 0).then(h),i.add&&n(function(){$(d).click()})}n.$inject=["$scope","$q","$timeout","$routeParams","c8yAlert","c8yBase","c8yTitle","c8yModal","configurationRepositorySvc","gettext","gettextCatalog"],angular.module("c8y.configurationRepository").controller("configurationRepositoryListCtrl",n)}();
@@ -1 +1 @@
1
- "use strict";!function(){function t(n,t,e,r,i){var o=this,c=i.getThisMonth(),a=i.getThisDay();function u(t){o.supportedFunctionalities=t}function s(t){o.currentProvider=t.providerName}function v(){var t,e=0<arguments.length&&void 0!==arguments[0]&&arguments[0];return"ericsson"===o.currentProvider&&(_.set(o,"commonData.currentDayDataUsage",i.getThisDayDataUsage(n.deviceId,a,e)),t=_.get(o,"commonData.currentDayDataUsage")),"ericsson"!==o.currentProvider&&"comarch"!==o.currentProvider&&(_.set(o,"commonData.currentMonthDataUsage",r.getTerminalDataUsage(n.deviceId,{},c)),t=_.get(o,"commonData.currentMonthDataUsage")),t}_.assign(o,{$onInit:function(){r.ping().then(function(){return i.isDeviceSupportedByCurrentProvider(n.deviceId)}).then(function(){return i.checkConnectivityCache(n.deviceId)}).then(i.getCurrentProviderDetails).then(s).then(function(){return v()}).then(_.constant(!0)).catch(_.constant(!1)).then(function(t){o.available=t}),i.getProviderSupportedFunctionalities().then(u)},available:!1,reload:function(){o.available=!1,(v(!0)||e.resolve()).then(function(){t(function(){o.available=!0},100)})},supportedFunctionalities:{},currentProvider:{}})}t.$inject=["$routeParams","$timeout","$q","c8yConnectivity","connectivityService"],angular.module("c8y.connectivityV2").component("c8yConnectivityV2",{controller:t,controllerAs:"vm",templateUrl:":::PLUGIN_PATH:::/connectivityV2.html"})}();
1
+ "use strict";!function(){function t(n,t,e,r,i){var o=this,c=i.getThisMonth(),a=i.getThisDay();function u(t){o.supportedFunctionalities=t}function s(t){o.currentProvider=t.providerName}function v(t){var e;return"ericsson"===o.currentProvider&&(_.set(o,"commonData.currentDayDataUsage",i.getThisDayDataUsage(n.deviceId,a,0<arguments.length&&void 0!==t&&t)),e=_.get(o,"commonData.currentDayDataUsage")),"ericsson"!==o.currentProvider&&"comarch"!==o.currentProvider&&(_.set(o,"commonData.currentMonthDataUsage",r.getTerminalDataUsage(n.deviceId,{},c)),e=_.get(o,"commonData.currentMonthDataUsage")),e}_.assign(o,{$onInit:function(){r.ping().then(function(){return i.isDeviceSupportedByCurrentProvider(n.deviceId)}).then(function(){return i.checkConnectivityCache(n.deviceId)}).then(i.getCurrentProviderDetails).then(s).then(function(){return v()}).then(_.constant(!0)).catch(_.constant(!1)).then(function(t){o.available=t}),i.getProviderSupportedFunctionalities().then(u)},available:!1,reload:function(){o.available=!1,(v(!0)||e.resolve()).then(function(){t(function(){o.available=!0},100)})},supportedFunctionalities:{},currentProvider:{}})}t.$inject=["$routeParams","$timeout","$q","c8yConnectivity","connectivityService"],angular.module("c8y.connectivityV2").component("c8yConnectivityV2",{controller:t,controllerAs:"vm",templateUrl:":::PLUGIN_PATH:::/connectivityV2.html"})}();
@@ -1 +1 @@
1
- "use strict";!function(){function n(n,e,t){function c(n,e){return e.getSource(n).then(function(n){return n.url})}n.when("/device/:deviceId",{template:"<c8y-connectivity-v2 />",name:t("Connectivity"),icon:"plug",showIfPermissions:{anyRole:["ROLE_CONNECTIVITY_READ"]},showIf:["$routeParams","connectivityService",function(n,e){var t=n.deviceId;return e.shouldShowConnectivityTabInDM(t)}]}),e.addUrlAction({path:"/device/:deviceId",text:t("SIM details"),actionBar:!0,priority:1e3,showIfPermissions:{anyRole:["ROLE_CONNECTIVITY_READ"]},showIf:["$q","$routeParams","connectivityService","c8yConnectivity",function(n,e,t,i){var o=e.deviceId;return t.shouldShowConnectivityTabInDM(o).then(function(n){return n&&function(n,e){return c(n,e).then(function(n){return!_.isUndefined(n)})}(o,i)})}],action:["$routeParams","c8yConnectivity",function(n,e){c(n.deviceId,e).then(function(n){window.open(n,"_blank","noopener,noreferrer")})}]})}n.$inject=["c8yViewsProvider","c8yActionsProvider","gettext"],angular.module("c8y.connectivityV2",[]).config(n)}();
1
+ "use strict";!function(){function n(n,e,t){function c(n,e){return e.getSource(n).then(function(n){return n.url})}n.when("/device/:deviceId",{template:"<c8y-connectivity-v2 />",name:t("Connectivity"),icon:"plug",showIfPermissions:{anyRole:["ROLE_CONNECTIVITY_READ"]},showIf:["$routeParams","connectivityService",function(n,e){n=n.deviceId;return e.shouldShowConnectivityTabInDM(n)}]}),e.addUrlAction({path:"/device/:deviceId",text:t("SIM details"),actionBar:!0,priority:1e3,showIfPermissions:{anyRole:["ROLE_CONNECTIVITY_READ"]},showIf:["$q","$routeParams","connectivityService","c8yConnectivity",function(n,e,t,i){var o=e.deviceId;return t.shouldShowConnectivityTabInDM(o).then(function(n){return n&&c(o,i).then(function(n){return!_.isUndefined(n)})})}],action:["$routeParams","c8yConnectivity",function(n,e){c(n.deviceId,e).then(function(n){window.open(n,"_blank","noopener,noreferrer")})}]})}n.$inject=["c8yViewsProvider","c8yActionsProvider","gettext"],angular.module("c8y.connectivityV2",[]).config(n)}();
@@ -1 +1 @@
1
- "use strict";!function(){function t(n,t,e,r,a,i,o,c,s){var u={getThisMonth:function(){var t=e.monthFilter();return _.unset(t,"dataTo"),m(t)},getLastMonth:function(){return m(e.monthFilter({},1))},getThisDay:function(){return{dateFrom:moment().startOf("day").format("YYYY-MM-DD")}},getTerminalUsage:function(t){1<arguments.length&&void 0!==arguments[1]&&arguments[1]&&d.cache.delete(t);return d(t)},getUsageTooltip:function(t,e,n){var r=[];if(!_.isUndefined(t)){var i={thisMonthEnd:t.dateTo,thisMonthStart:t.dateFrom};r.push(a.getString("Usage in this month to date ({{thisMonthStart}} - {{thisMonthEnd}})",i))}if(!_.isUndefined(n)){var o={thisMonthEnd:t.dateTo,thisMonthStart:t.dateFrom,lastMonthStart:e.dateFrom,lastMonthEnd:e.dateTo,lastMonthUsage:n};r.push(a.getString("Usage in the last month ({{lastMonthStart}} - {{lastMonthEnd}}): {{lastMonthUsage}}",o))}return r.join("\n")},getTodaysUsageTooltip:function(){return t("Recent data")},processUsageData:function(t,n){var e=t?_.reduce(t,function(t,e){return t+_.get(e,n)},0).toFixed(3):0;return 0<e?e:0},isAdmin:function t(){t.promise||(t.promise=r.hasAnyRole(["ROLE_CONNECTIVITY_ADMIN"]));return t.promise},getProviderSupportedFunctionalities:function t(){t.promise||(t.promise=i.getProviderSupportedFunctionalities().then(function(t){var e,n=t.functionalities;return e=n,_.reduce(e,function(t,e){return t[e]=!0,t},{})}));return t.promise},getCurrentProviderDetails:function t(){t.promise||(t.promise=o.detail());return t.promise},getThisDayDataUsage:function(t,e){2<arguments.length&&void 0!==arguments[2]&&arguments[2]&&h.cache.delete("".concat(t,"_").concat(e));return h(t,e)},shouldShowConnectivityTabInDM:function(t){return c.detailCached(t).then(e.getResData).then(f).then(g).then(i.ping).then(i.isConnectivitySubscribed).then(_.constant(!0)).catch(_.constant(!1))},isDeviceSupportedByCurrentProvider:function(t){return i.getTerminalDetails(t,{},{},{silentError:!0}).catch(function(t){return 400!==t.status&&s.danger(e.getResErrorMessage(t)),n.reject(t)})},checkConnectivityCache:function(t){return c.detailCached(t).then(e.getResData).then(function(e){return _.get(e,"c8y_Mobile.c8y_IsConnectivity")?n.when():i.getTerminalDetails(t,{},{},{silentError:!0}).then(function(){return _.set(e,"c8y_Mobile.c8y_IsConnectivity",{}),r.canAdminMOs([e]).then(function(t){return t?c.save(e):n.when(e)})})})}},h=_.memoize(function(t,e){return i.getTerminalDataUsage(t,{},e)},function(t,e){return"".concat(t,"_").concat(e)}),d=_.memoize(function(t){return i.getTerminalUsage(t,{},{})});return u;function m(t){if(t.dateFrom){var e=t.dateFrom;t.dateFrom=moment(e).format("YYYY-MM-DD"),t.cycleStartDate=moment(e).format("YYYY-MM-DD")}return t.dateTo?t.dateTo=moment(t.dateTo).format("YYYY-MM-DD"):t.dateTo=moment().format("YYYY-MM-DD"),t}function g(){return r.hasAnyRole(["ROLE_CONNECTIVITY_READ"]).then(function(t){return t?n.when():n.reject()})}function f(t){var e=t;return _.get(e,"c8y_Mobile.iccid")||_.get(e,"c8y_Mobile.msisdn")?n.when():n.reject()}}t.$inject=["$q","gettext","c8yBase","c8yPermissions","gettextCatalog","c8yConnectivity","c8yConnectivitySettings","c8yDevices","c8yAlert"],angular.module("c8y.connectivityV2").factory("connectivityService",t)}();
1
+ "use strict";!function(){function t(n,t,e,r,i,o,a,c,s){var u={getThisMonth:function(){var t=e.monthFilter();return _.unset(t,"dataTo"),m(t)},getLastMonth:function(){return m(e.monthFilter({},1))},getThisDay:function(){return{dateFrom:moment().startOf("day").format("YYYY-MM-DD")}},getTerminalUsage:function(t){1<arguments.length&&void 0!==arguments[1]&&arguments[1]&&d.cache.delete(t);return d(t)},getUsageTooltip:function(t,e,n){var r=[];_.isUndefined(t)||(o={thisMonthEnd:t.dateTo,thisMonthStart:t.dateFrom},r.push(i.getString("Usage in this month to date ({{thisMonthStart}} - {{thisMonthEnd}})",o)));{var o;_.isUndefined(n)||(o={thisMonthEnd:t.dateTo,thisMonthStart:t.dateFrom,lastMonthStart:e.dateFrom,lastMonthEnd:e.dateTo,lastMonthUsage:n},r.push(i.getString("Usage in the last month ({{lastMonthStart}} - {{lastMonthEnd}}): {{lastMonthUsage}}",o)))}return r.join("\n")},getTodaysUsageTooltip:function(){return t("Recent data")},processUsageData:function(t,n){t=t?_.reduce(t,function(t,e){return t+_.get(e,n)},0).toFixed(3):0;return 0<t?t:0},isAdmin:g,getProviderSupportedFunctionalities:l,getCurrentProviderDetails:f,getThisDayDataUsage:function(t,e){2<arguments.length&&void 0!==arguments[2]&&arguments[2]&&h.cache.delete("".concat(t,"_").concat(e));return h(t,e)},shouldShowConnectivityTabInDM:function(t){return c.detailCached(t).then(e.getResData).then(y).then(M).then(o.ping).then(o.isConnectivitySubscribed).then(_.constant(!0)).catch(_.constant(!1))},isDeviceSupportedByCurrentProvider:function(t){return o.getTerminalDetails(t,{},{},{silentError:!0}).catch(function(t){return 400!==t.status&&s.danger(e.getResErrorMessage(t)),n.reject(t)})},checkConnectivityCache:function(t){return c.detailCached(t).then(e.getResData).then(function(e){return _.get(e,"c8y_Mobile.c8y_IsConnectivity")?n.when():o.getTerminalDetails(t,{},{},{silentError:!0}).then(function(){return _.set(e,"c8y_Mobile.c8y_IsConnectivity",{}),r.canAdminMOs([e]).then(function(t){return t?c.save(e):n.when(e)})})})}},h=_.memoize(function(t,e){return o.getTerminalDataUsage(t,{},e)},function(t,e){return"".concat(t,"_").concat(e)}),d=_.memoize(function(t){return o.getTerminalUsage(t,{},{})});return u;function m(t){var e;return t.dateFrom&&(e=t.dateFrom,t.dateFrom=moment(e).format("YYYY-MM-DD"),t.cycleStartDate=moment(e).format("YYYY-MM-DD")),t.dateTo?t.dateTo=moment(t.dateTo).format("YYYY-MM-DD"):t.dateTo=moment().format("YYYY-MM-DD"),t}function g(){return g.promise=g.promise?g.promise:r.hasAnyRole(["ROLE_CONNECTIVITY_ADMIN"])}function l(){return l.promise=l.promise?l.promise:o.getProviderSupportedFunctionalities().then(function(t){t=t.functionalities;return _.reduce(t,function(t,e){return t[e]=!0,t},{})})}function f(){return f.promise=f.promise?f.promise:a.detail()}function M(){return r.hasAnyRole(["ROLE_CONNECTIVITY_READ"]).then(function(t){return t?n.when():n.reject()})}function y(t){return _.get(t,"c8y_Mobile.iccid")||_.get(t,"c8y_Mobile.msisdn")?n.when():n.reject()}}t.$inject=["$q","gettext","c8yBase","c8yPermissions","gettextCatalog","c8yConnectivity","c8yConnectivitySettings","c8yDevices","c8yAlert"],angular.module("c8y.connectivityV2").factory("connectivityService",t)}();
@@ -1 +1 @@
1
- "use strict";!function(){function e(n,e,i,t,s,r,c,o){var a=this,d=c.getThisMonth(),u={required:o("This field is required.")};function l(e){a.isAdmin=e}function v(){var e=n.resolve();return"comarch"!==a.provider&&(e=t.getSms(i.deviceId,{},d).then(m)),e}function m(e){return a.smss=e.entries,a.smss}function f(){var e=o("SMS sent.");return a.message.text="",s.success(e)}e.invalid=_.bind(r.invalid,r,e.forms,"messageForm"),_.assign(a,{$onInit:function(){o("Delivered"),o("Received"),o("Pending"),o("Failed")},$onChanges:function(e){_.get(e,"available.currentValue")&&(v(),c.isAdmin().then(l))},sendSms:function(e){return t.sendSms(i.deviceId,e).then(v).then(f)},validationHints:function(e){return r.validationHints(e,u)}})}e.$inject=["$q","$scope","$routeParams","c8yConnectivity","c8yAlert","c8yBase","connectivityService","gettext"],angular.module("c8y.connectivityV2").component("c8yConnectivitySms",{controller:e,controllerAs:"vm",templateUrl:":::PLUGIN_PATH:::/sms.html",bindings:{available:"<",provider:"<"}})}();
1
+ "use strict";!function(){function e(n,e,i,t,s,r,c,o){var a=this,d=c.getThisMonth(),u={required:o("This field is required.")};function l(e){a.isAdmin=e}function v(){var e=n.resolve();return e="comarch"!==a.provider?t.getSms(i.deviceId,{},d).then(m):e}function m(e){return a.smss=e.entries,a.smss}function f(){var e=o("SMS sent.");return a.message.text="",s.success(e)}e.invalid=_.bind(r.invalid,r,e.forms,"messageForm"),_.assign(a,{$onInit:function(){o("Delivered"),o("Received"),o("Pending"),o("Failed")},$onChanges:function(e){_.get(e,"available.currentValue")&&(v(),c.isAdmin().then(l))},sendSms:function(e){return t.sendSms(i.deviceId,e).then(v).then(f)},validationHints:function(e){return r.validationHints(e,u)}})}e.$inject=["$q","$scope","$routeParams","c8yConnectivity","c8yAlert","c8yBase","connectivityService","gettext"],angular.module("c8y.connectivityV2").component("c8yConnectivitySms",{controller:e,controllerAs:"vm",templateUrl:":::PLUGIN_PATH:::/sms.html",bindings:{available:"<",provider:"<"}})}();