/** * Service which provides helper methods for working with the vulnerability system. */ angular.module('quay').factory('VulnerabilityService', ['Config', function(Config) { var vulnService = {}; vulnService.LEVELS = window.__vuln_priority; vulnService.getLevels = function() { return Object.keys(vulnService.LEVELS).map(function(key) { return vulnService.LEVELS[key]; }); }; return vulnService; }]);