ContentServiceability.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. 'use strict';
  2. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  3. /**
  4. * Licensed Materials - Property of IBM
  5. * IBM Business Analytics (C) Copyright IBM Corp. 2019
  6. * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. */
  8. /**
  9. * @class ContentServiceability
  10. * @hideconstructor
  11. * @classdesc API class that is used to control transactional operations across API calls
  12. */
  13. define(['underscore', '../../../lib/@waca/dashboard-common/dist/core/APIFactory', './ContentServiceabilityAPI', './impl/ContentServiceabilityImpl'], function (_, APIFactory, ContentServiceabilityApi, ContentServiceabilityImpl) {
  14. var ContentServiceability = function () {
  15. function ContentServiceability(options) {
  16. _classCallCheck(this, ContentServiceability);
  17. this._api = APIFactory.createAPI(new ContentServiceabilityImpl(options), [ContentServiceabilityApi]);
  18. }
  19. ContentServiceability.prototype.getAPI = function getAPI() {
  20. return this._api;
  21. };
  22. ContentServiceability.prototype.destroy = function destroy() {
  23. this._api = null;
  24. };
  25. return ContentServiceability;
  26. }();
  27. return ContentServiceability;
  28. });
  29. //# sourceMappingURL=ContentServiceability.js.map