define(['backbone', 'utils/kvcollection'], function(Backbone, KVCollection) {

	return Backbone.Collection.extend(_.extend({}, KVCollection, {
		url: function() { return '/mc/users/visit/'+this.visit },

		keyAttribute: 'NAME',
		valueAttribute: 'PERSONID',

		initialize: function(models, options) {
			this.visit = options.visit
		},

	}))


})
define(['backbone', 'utils/kvcollection'], function(Backbone, KVCollection) {

	return Backbone.Collection.extend(_.extend({}, KVCollection, {
		url: function() { return '/mc/users/visit/'+this.visit },

		keyAttribute: 'NAME',
		valueAttribute: 'PERSONID',

		state: {
	      pageSize: 9999,
	    },

		initialize: function(models, options) {
			this.visit = options.visit
		},

	}))


})
increase pagesize for users (incase > 25 users on a visit)