123456789101112131415161718192021222324252627282930 |
- "use strict";
- /**
- * Licensed Materials - Property of IBM
- * IBM Cognos Products: Cognos Analytics
- * Copyright IBM Corp. 2017, 2017
- * US Government Users Restricted Rights - Use, duplication or disclosure
- * restricted by GSA ADP Schedule Contract with IBM Corp.
- */
- define(['underscore', 'bi/commons/ui/core/Class'], function (_, Class) {
- var GlobalParametersService = Class.extend({
- init: function init(options) {
- GlobalParametersService.inherited('init', this, arguments);
- _.extend(this, options);
- this.fetchService = options.glassContext.services.fetch;
- },
- getSystemUserProfileSettings: function getSystemUserProfileSettings(data) {
- return this.fetchService.post('v1/reports', {
- 'headers': {
- 'SOAPAction': 'http://www.ibm.com/xmlns/prod/cognos/contentManagerService/201703/'
- },
- 'contentType': 'text/xml; charset=UTF-8',
- 'data': data
- });
- }
- });
- return GlobalParametersService;
- });
|