'use strict'; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } /** * Licensed Materials - Property of IBM * IBM Cognos Products: BI Cloud (C) Copyright IBM Corp. 2019 * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. */ define(['../../../lib/@waca/dashboard-common/dist/core/APIFactory', './api/VisIndicatorsAPI', 'underscore'], function (APIFactory, VisIndicatorsAPI, _) { var VisIndicators = function () { function VisIndicators() { _classCallCheck(this, VisIndicators); this.api = APIFactory.createAPI(this, [VisIndicatorsAPI]); this.providers = []; } VisIndicators.prototype.registerProvider = function registerProvider(provider) { this.providers.push(provider); }; VisIndicators.prototype.getIndicatorList = function getIndicatorList() { var indicators = []; _.each(this.providers, function (provider) { if (provider.getIndicatorList) { indicators.push.apply(indicators, provider.getIndicatorList()); } }); return indicators; }; VisIndicators.prototype.getAPI = function getAPI() { return this.api; }; return VisIndicators; }(); return VisIndicators; }); //# sourceMappingURL=VisIndicators.js.map