"use strict"; /** * Value object for sla. * * @constructor */ function PersonVO() { this.type = EntityVO.TYPE_PERSON; this.firstName = ''; this.lastName = ''; this.fullName = ''; this.department = ''; this.email = ''; this.company = null; this.phone = ''; this.thumbnailMime = ''; this.thumbnail = ''; this.site = null; this.organization = ''; this.loginId = ''; this.personId = ''; this.available = ''; this.jid = ''; this.supportGroups = null; } // inherit BaseVO PersonVO.prototype = new BaseVO(); // correct the constructor pointer PersonVO.prototype.constructor = PersonVO; /** * @override * @return {Array} */ PersonVO.prototype.getProps = function () { return BaseVO.prototype.getProps().concat('firstName', 'lastName', 'fullName', 'department', 'email', 'company', 'phone', 'thumbnailMime', 'thumbnail', 'site', 'organization', 'loginId', 'personId', 'available', 'jid', 'supportGroups'); }; PersonVO.prototype.postBuild = function () { if (this.supportGroups && this.supportGroups[0] && this.supportGroups[0].name) { this.supportGroup = this.supportGroups[0].name; this.supportGroupId = this.supportGroups[0].id; this.supportOrganization = this.supportGroups[0].organization ? this.supportGroups[0].organization : ''; } };