Sha256: 189f3cce7f7d44a56ed6d28bff5ff292e6e450d7dc669ad41ffe504eed2ba6b1

Contents?: true

Size: 720 Bytes

Versions: 51

Compression:

Stored size: 720 Bytes

Contents

/*global angular, $scope */

(function() {
    'use strict';

    var conf_url = '/redhat_access/telemetry_configuration';

    angular.module('RedhatAccessInsights').factory('ConfigurationService', ['$http','InsightsConfig', function($http,InsightsConfig) {

        var postConfig = function(data) {
            return $http.put(conf_url, data);
        };

        var getConfig = function() {
            return $http.get(conf_url);
        };

        var getAccountInfo = function(){
           return $http.get(InsightsConfig.apiRoot + 'me');
        };

        return{
            getConfig : getConfig,
            postConfig : postConfig,
            getAccountInfo : getAccountInfo
        };
    }]);
}());

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
redhat_access-2.0.10 app/assets/javascripts/insights/configuration.service.js
redhat_access-2.0.9 app/assets/javascripts/insights/configuration.service.js
redhat_access-2.0.8 app/assets/javascripts/insights/configuration.service.js
redhat_access-2.0.7 app/assets/javascripts/insights/configuration.service.js
redhat_access-2.0.6 app/assets/javascripts/insights/configuration.service.js
redhat_access-2.0.5 app/assets/javascripts/insights/configuration.service.js
redhat_access-2.0.4 app/assets/javascripts/insights/configuration.service.js
redhat_access-2.0.3 app/assets/javascripts/insights/configuration.service.js
redhat_access-2.0.2 app/assets/javascripts/insights/configuration.service.js
redhat_access-2.0.1 app/assets/javascripts/insights/configuration.service.js
redhat_access-2.0.0 app/assets/javascripts/insights/configuration.service.js