'use strict';

(function() {
  angular.module('ncsaas')
    .factory('RawKey', ['ENV', '$resource', RawKey]);

    function RawKey(ENV, $resource) {
      return $resource(ENV.apiEndpoint + 'api/keys/:keyUUID/', {keyUUID:'@uuid'});
    }

})();

'use strict';

(function() {
  angular.module('ncsaas')
    .service('keysService', ['RawKey', keysService]);

  function keysService(RawKey) {
    /*jshint validthis: true */
    var vm = this;
    vm.getKeyList = getKeyList;

    function getKeyList() {
      return RawKey.query();
    }

  }

})();

(function() {
  angular.module('ncsaas')
    .factory('RawKey', ['ENV', '$resource', RawKey]);

    function RawKey(ENV, $resource) {
      return $resource(ENV.apiEndpoint + 'api/keys/:keyUUID/', {keyUUID:'@uuid'});
    }

})();

Add keysService (saas-128)