/* global conjur */ (function(conjur) { 'use strict'; this.VariableList = function() { var options = { namespaceSelector: function(member) { var idTokens = member.id.split('@'); if (idTokens.length > 1) { return idTokens.slice(1, idTokens.length-1).join['@']; } else { return null; } } }; var list = conjur.models.ResourceList('variable', options); return list; }; }).bind(conjur.models) ( conjur );