SmartIT_Extensions/BMC/smart-it-full-helix/scripts/app/ticket/known-error-vo.js

23 lines
915 B
JavaScript

"use strict";
function KnownErrorVO() {
this.type = EntityVO.TYPE_KNOWNERROR;
this.crossLaunchURL = '';
this.icon = 'icon-file_exclamation_o';
this.label = 'Known Error';
this.rootCause = '';
this.targetDate = null;
}
KnownErrorVO.prototype = new TicketVO();
KnownErrorVO.prototype.constructor = KnownErrorVO;
/**
* @override
* @return {Array} properties
*/
KnownErrorVO.prototype.getProps = function () {
return TicketVO.prototype.getProps().concat('type', 'crossLaunchURL', 'coordinator', 'coordinatorGroup', 'causalCI', 'viewAccess', 'rootCause', 'workaround', 'searchable', 'impactedService', 'resolution', 'impact', 'priority', 'urgency', 'targetDate', 'brokerVendorName');
};
KnownErrorVO.prototype.postBuild = function () {
TicketVO.prototype.postBuild.call(this);
this.targetDateHumanized = this.targetDate ? moment(new Date(this.targetDate)).format('lll') : null;
};