2018-07-08 21:22:10 -04:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
const Backbone = require('backbone');
|
|
|
|
|
|
|
|
const model = Backbone.Model.extend({
|
|
|
|
idAttribute: 'id',
|
|
|
|
|
|
|
|
defaults: function () {
|
|
|
|
return {
|
2018-08-22 00:31:03 -04:00
|
|
|
id: undefined,
|
|
|
|
created_on: null,
|
|
|
|
modified_on: null,
|
|
|
|
domain_names: [],
|
|
|
|
certificate_id: 0,
|
|
|
|
ssl_forced: false,
|
2018-11-20 17:04:31 -05:00
|
|
|
http2_support: false,
|
2019-01-03 06:04:11 -05:00
|
|
|
enabled: true,
|
2018-08-22 00:31:03 -04:00
|
|
|
meta: {},
|
|
|
|
advanced_config: '',
|
2018-07-25 18:23:32 -04:00
|
|
|
// The following are expansions:
|
2018-08-22 00:31:03 -04:00
|
|
|
owner: null,
|
|
|
|
certificate: null
|
2018-07-08 21:22:10 -04:00
|
|
|
};
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
Model: model,
|
|
|
|
Collection: Backbone.Collection.extend({
|
|
|
|
model: model
|
|
|
|
})
|
|
|
|
};
|