2013-06-10 21:14:57 -04:00
|
|
|
define(['backbone', 'js/app-config', 'js/model/folder-model'], function(Backbone, app) {
|
2013-04-01 18:12:15 -04:00
|
|
|
'use strict';
|
2013-03-13 11:58:46 -04:00
|
|
|
|
2013-04-01 18:12:15 -04:00
|
|
|
app.model.Account = Backbone.Model.extend({
|
2013-03-13 11:58:46 -04:00
|
|
|
|
2013-04-01 18:12:15 -04:00
|
|
|
defaults: {
|
|
|
|
emailAddress: null,
|
|
|
|
symKeySize: null,
|
|
|
|
symIvSize: null,
|
2013-05-18 19:33:59 -04:00
|
|
|
ssymKeySize: null,
|
2013-04-01 18:12:15 -04:00
|
|
|
folders: null
|
|
|
|
},
|
2013-03-13 11:58:46 -04:00
|
|
|
|
2013-04-01 18:12:15 -04:00
|
|
|
initialize: function() {
|
|
|
|
this.set('folders', new app.model.FolderCollection());
|
|
|
|
}
|
2013-03-13 11:58:46 -04:00
|
|
|
|
2013-04-01 18:12:15 -04:00
|
|
|
});
|
2013-03-13 11:58:46 -04:00
|
|
|
|
2013-04-01 18:12:15 -04:00
|
|
|
app.model.AccountCollection = Backbone.Collection.extend({
|
2013-03-13 11:58:46 -04:00
|
|
|
|
2013-04-19 05:45:53 -04:00
|
|
|
model: app.model.Account
|
2013-04-01 18:12:15 -04:00
|
|
|
|
|
|
|
});
|
|
|
|
|
2013-08-19 15:13:32 -04:00
|
|
|
return app.model.Account;
|
2013-06-10 17:50:26 -04:00
|
|
|
});
|