supersaas-api-client
Version:
Online bookings/appointments/calendars in NodeJS using the SuperSaaS scheduling platform.
22 lines (17 loc) • 445 B
JavaScript
(function() {
const Form = require('./Form');
const User = function User(attributes) {
if (!attributes) return;
for (const key in attributes) {
if (attributes.hasOwnProperty(key)) {
if (key === 'form') {
this[key] = new Form(attributes[key]);
} else {
this[key] = attributes[key];
}
}
}
};
User.prototype.ROLES = [3, 4, -1];
module.exports = User;
}).call(this);