StoryAPIImpl.js 1.7 KB

123456789101112131415161718192021222324252627282930313233
  1. 'use strict';
  2. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  3. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  4. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  5. /**
  6. * Licensed Materials - Property of IBM
  7. * IBM Cognos Products: BI Cloud (C) Copyright IBM Corp. 2019
  8. * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  9. */
  10. define(['gemini/lib/@waca/dashboard-common/dist/core/APIFactory', '../../StoryPaneController', '../StoryAPI'], function (APIFactory, Controller, StoryAPI) {
  11. var StoryAPIImpl = function (_Controller) {
  12. _inherits(StoryAPIImpl, _Controller);
  13. function StoryAPIImpl() {
  14. _classCallCheck(this, StoryAPIImpl);
  15. return _possibleConstructorReturn(this, _Controller.apply(this, arguments));
  16. }
  17. StoryAPIImpl.prototype.getAPI = function getAPI() {
  18. return APIFactory.createAPI(this, [StoryAPI]);
  19. };
  20. return StoryAPIImpl;
  21. }(Controller);
  22. return StoryAPIImpl;
  23. });
  24. //# sourceMappingURL=StoryAPIImpl.js.map