"use strict"; /** * Value object for ticket item. * * @constructor */ function HistoryVO() { this.type = ''; this.ticketType = ''; this.summary = ''; this.id = ''; this.displayId = ''; this.priority = ''; this.articleId = ''; this.title = ''; } HistoryVO.prototype = Object.create(BaseVO.prototype); HistoryVO.prototype.constructor = HistoryVO; HistoryVO.prototype.getProps = function () { var keys = Object.keys(new HistoryVO()); return BaseVO.prototype.getProps().concat(keys); }; HistoryVO.prototype.postBuild = function () { this.ticketType = this.type; if (this.type === EntityVO.TYPE_KNOWLEDGE) { this.summary = this.title; this.displayId = this.articleId; } else { this.type = EntityVO.TYPE_TICKET; } };