"use strict"; function ChangeVO() { this.type = EntityVO.TYPE_CHANGE; this.crossLaunchURL = ''; this.icon = 'CRQ'; this.label = 'Change'; this.impactedService = null; this.changeReason = ''; this.timing = ''; this.timingReason = ''; this.manager = null; this.scheduledEndDate = null; this.scheduledStartDate = null; this.actualStartDate = null; this.actualEndDate = null; this.targetDate = null; this.earliestStartDate = null; this.riskLevel = ''; this.riskIsUserSpecified = null; this.impact = ''; this.urgency = ''; this.managerGroup = null; this.location = null; this.questionResponses = null; this.impactedAreas = null; this.templateId = null; this.taskPhaseId = null; this.previousStatus = null; this.requestedByCompany = ''; this.isPasswordEnabled = false; this.isAutomatic = false; this.brokerVendorName = ''; this.templateName = ''; this.parentId = null; this.leadTime = 0; this.createdfromParentTemplate = null; this.copyTasks = null; } ChangeVO.prototype = new TicketVO(); ChangeVO.prototype.constructor = ChangeVO; /** * @override * @return {Array} properties */ ChangeVO.prototype.getProps = function () { return TicketVO.prototype.getProps().concat('type', 'crossLaunchURL', 'impactedService', 'changeReason', 'timing', 'timingReason', 'manager', 'scheduledStartDate', 'scheduledEndDate', 'targetDate', 'earliestStartDate', 'riskIsUserSpecified', 'actualStartDate', 'actualEndDate', 'riskLevel', 'impact', 'urgency', 'managerGroup', 'location', 'questionResponses', 'impactedAreas', 'templateId', 'isInApproval', 'isPasswordEnabled', 'isAutomatic', 'taskPhaseId', 'previousStatus', 'requestedByCompany', 'approvalProcessName', 'brokerVendorName', 'templateName', 'parentId', 'leadTime', 'createdfromParentTemplate', 'copyTasks'); }; /** * @override */ ChangeVO.prototype.postBuild = function () { TicketVO.prototype.postBuild.call(this); this.scheduledStartDate = this.scheduledStartDate ? new Date(this.scheduledStartDate) : null; this.scheduledEndDate = this.scheduledEndDate ? new Date(this.scheduledEndDate) : null; this.actualStartDate = this.actualStartDate ? new Date(this.actualStartDate) : null; this.actualEndDate = this.actualEndDate ? new Date(this.actualEndDate) : null; this.targetDate = this.targetDate ? new Date(this.targetDate) : null; this.scheduledStartDateHumanized = this.scheduledStartDate ? moment(this.scheduledStartDate).format('lll') : null; this.scheduledEndDateHumanized = this.scheduledEndDate ? moment(this.scheduledEndDate).format('lll') : null; this.targetDateHumanized = this.targetDate ? moment(this.targetDate).format('lll') : null; this.actualStartDateHumanized = this.actualStartDate ? moment(this.actualStartDate).format('lll') : null; this.actualEndDateHumanized = this.actualEndDate ? moment(this.actualEndDate).format('lll') : null; };