hardlounge/lib/models/msg.js

14 lines
215 B
JavaScript
Raw Normal View History

var _ = require("lodash");
var moment = require("moment");
module.exports = Msg;
function Msg(attr) {
_.merge(this, _.extend({
time: moment().format("HH:mm"),
type: "",
from: "",
text: "",
}, attr));
};