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-07-18 19:47:55 -04:00
|
|
|
id: 0,
|
2018-07-08 21:22:10 -04:00
|
|
|
created_on: null,
|
|
|
|
modified_on: null,
|
|
|
|
owner: null,
|
|
|
|
incoming_port: 0,
|
|
|
|
forward_ip: '',
|
|
|
|
forwarding_port: 0,
|
|
|
|
tcp_forwarding: true,
|
|
|
|
udp_forwarding: false,
|
|
|
|
meta: []
|
|
|
|
};
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
Model: model,
|
|
|
|
Collection: Backbone.Collection.extend({
|
|
|
|
model: model
|
|
|
|
})
|
|
|
|
};
|