"use strict"; function ReleaseVO() { this.type = EntityVO.TYPE_RELEASE; this.crossLaunchURL = ''; this.impactedService = null; this.businessJustification = ''; this.coordinator = null; this.coordinatorGroup = null; this.timing = ''; this.timingReason = ''; this.manager = null; this.completedDate = null; this.scheduledEndDate = null; this.scheduledStartDate = null; this.actualStartDate = null; this.actualEndDate = null; this.deploymentStartDate; this.deploymentEndDate; this.targetDate = null; this.riskLevel = ''; this.riskIsUserSpecified = null; this.impact = ''; this.urgency = ''; this.priority = ''; this.managerGroup = null; this.location = null; this.questionResponses = null; this.impactedAreas = null; this.templateId = null; this.templateGuid = null; this.taskPhaseId = null; this.previousStatus = null; this.isPasswordEnabled = false; this.isAutomatic = false; this.releaseType = null; this.milestone = null; } ReleaseVO.prototype = new TicketVO(); ReleaseVO.prototype.constructor = ReleaseVO; /** * @override * @return {Array} properties */ ReleaseVO.prototype.getProps = function () { return TicketVO.prototype.getProps().concat('type', 'crossLaunchURL', 'impactedService', 'businessJustification', 'coordinator', 'coordinatorGroup', 'timing', 'timingReason', 'manager', 'completedDate', 'scheduledStartDate', 'scheduledEndDate', 'targetDate', 'riskIsUserSpecified', 'actualStartDate', 'actualEndDate', 'deploymentEndDate', 'deploymentStartDate', 'riskLevel', 'impact', 'urgency', 'managerGroup', 'location', 'questionResponses', 'impactedAreas', 'templateId', 'templateGuid', 'isInApproval', 'isPasswordEnabled', 'isAutomatic', 'taskPhaseId', 'previousStatus', 'approvalProcessName', 'milestone', 'priority', 'releaseType'); }; /** * @override */ ReleaseVO.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; };