"use strict"; /** * Value object for sla. * * @constructor */ function SupportGroupVO() { // simple fields this.name = ''; this.organization = ''; this.cognitiveFlag = ''; this.autoRecommended = false; // complex fields this.company = {}; } // inherit BaseVO SupportGroupVO.prototype = new BaseVO(); // correct the constructor pointer SupportGroupVO.prototype.constructor = SupportGroupVO; /** * @override * @return {Array} */ SupportGroupVO.prototype.getProps = function () { return BaseVO.prototype.getProps().concat('name', 'organization', 'cognitiveFlag', 'autoRecommended', 'company'); }; /** * @override */ SupportGroupVO.prototype.postBuild = function () { this.companyName = this.company.name; if (this.companyName && this.organization) { this.companyAndOrganization = this.companyName + ' > ' + this.organization; } };