"use strict"; (function () { 'use strict'; angular.module('myitsmApp').constant('accelerators', { ticket: [ { key: 'email.accelerators.key.casualCI', desc: 'email.accelerators.label.casualCI', valueExpr: 'exprContext.causalCI.name' }, { key: 'email.accelerators.key.affectedService', desc: 'email.accelerators.label.affectedService', valueExpr: 'exprContext.impactedService.name' }, { key: 'email.accelerators.key.assignedGroup', desc: 'email.accelerators.label.assignedGroup', valueExpr: 'exprContext.supportGroup.name', onlyFor: [EntityVO.TYPE_WORKORDER, EntityVO.TYPE_SERVICEREQUEST, EntityVO.TYPE_INCIDENT, EntityVO.TYPE_TASK, EntityVO.TYPE_KNOWLEDGE, EntityVO.TYPE_PROBLEM] }, { key: 'email.accelerators.key.assignee', desc: 'email.accelerators.label.assignee', valueExpr: 'exprContext.assignee.fullName || exprContext.assignee.firstName+\' \'+exprContext.assignee.lastName', onlyFor: [EntityVO.TYPE_WORKORDER, EntityVO.TYPE_SERVICEREQUEST, EntityVO.TYPE_INCIDENT, EntityVO.TYPE_TASK, EntityVO.TYPE_KNOWLEDGE, EntityVO.TYPE_PROBLEM, EntityVO.TYPE_KNOWNERROR] }, { key: 'email.accelerators.key.coordinatorGroup', desc: 'email.accelerators.label.coordinatorGroup', valueExpr: 'exprContext.supportGroup.name || exprContext.coordinatorGroup.name', onlyFor: [EntityVO.TYPE_CHANGE, EntityVO.TYPE_KNOWNERROR, EntityVO.TYPE_RELEASE] }, { key: 'email.accelerators.key.changeRequestCoordinator', desc: 'email.accelerators.label.changeRequestCoordinator', valueExpr: 'exprContext.assignee.fullName || exprContext.assignee.firstName+\' \'+exprContext.assignee.lastName', onlyFor: [EntityVO.TYPE_CHANGE] }, { key: 'email.accelerators.key.changeRequestManager', desc: 'email.accelerators.label.changeRequestManager', valueExpr: 'exprContext.manager.fullName || exprContext.manager.firstName+\' \'+exprContext.manager.lastName', onlyFor: [EntityVO.TYPE_CHANGE] }, { key: 'email.accelerators.key.company', desc: 'email.accelerators.label.company', valueExpr: 'exprContext.company.name' }, { key: 'email.accelerators.key.requestedFor', desc: 'email.accelerators.label.requestedFor', valueExpr: 'exprContext.customer.fullName || exprContext.customer.firstName+\' \'+exprContext.customer.lastName', onlyFor: [EntityVO.TYPE_CHANGE] }, { key: 'email.accelerators.key.contact', desc: 'email.accelerators.label.contact', valueExpr: 'exprContext.contact.fullName || exprContext.contact.firstName+\' \'+exprContext.contact.lastName', onlyFor: [EntityVO.TYPE_WORKORDER, EntityVO.TYPE_SERVICEREQUEST, EntityVO.TYPE_INCIDENT, EntityVO.TYPE_TASK, EntityVO.TYPE_KNOWLEDGE, EntityVO.TYPE_CHANGE] }, { key: 'email.accelerators.key.customer', desc: 'email.accelerators.label.customer', valueExpr: 'exprContext.customer.fullName || exprContext.customer.firstName+\' \'+exprContext.customer.lastName', onlyFor: [EntityVO.TYPE_WORKORDER, EntityVO.TYPE_SERVICEREQUEST, EntityVO.TYPE_INCIDENT, EntityVO.TYPE_TASK, EntityVO.TYPE_KNOWLEDGE] }, { key: 'email.accelerators.key.desc', desc: 'email.accelerators.label.desc', valueExpr: 'exprContext.desc' }, { key: 'email.accelerators.key.displayId', desc: 'email.accelerators.label.displayId', valueExpr: 'exprContext.displayId' }, { key: 'email.accelerators.key.investigationDriver', desc: 'email.accelerators.label.investigationDriver', valueExpr: 'exprContext.investigationDriver' }, { key: 'email.accelerators.key.location', desc: 'email.accelerators.label.location', valueExpr: 'exprContext.location.name' }, { key: 'email.accelerators.key.priority', desc: 'email.accelerators.label.priority', valueExpr: 'exprContext.priority', type: 'priority' }, { key: 'email.accelerators.key.problemCoordinator', desc: 'email.accelerators.label.problemCoordinator', valueExpr: 'exprContext.coordinator.fullName || exprContext.coordinator.firstName+\' \'+exprContext.coordinator.lastName', onlyFor: [EntityVO.TYPE_KNOWNERROR, EntityVO.TYPE_PROBLEM] }, { key: 'email.accelerators.key.status', desc: 'email.accelerators.label.status', valueExpr: 'exprContext.status.value', type: 'status' }, { key: 'email.accelerators.key.summary', desc: 'email.accelerators.label.summary', valueExpr: 'exprContext.summary' }, { key: 'email.accelerators.key.actualStart', desc: 'email.accelerators.label.actualStart', valueExpr: 'exprContext.actualStartDateHumanized' }, { key: 'email.accelerators.key.actualEnd', desc: 'email.accelerators.label.actualEnd', valueExpr: 'exprContext.actualEndDateHumanized' }, { key: 'email.accelerators.key.scheduledStart', desc: 'email.accelerators.label.scheduledStart', valueExpr: 'exprContext.scheduledStartDateHumanized' }, { key: 'email.accelerators.key.scheduledEnd', desc: 'email.accelerators.label.scheduledEnd', valueExpr: 'exprContext.scheduledEndDateHumanized' }, { key: 'email.accelerators.key.targetDate', desc: 'email.accelerators.label.targetDate', valueExpr: 'exprContext.targetDateHumanized' }, { key: 'email.accelerators.key.requestManager', desc: 'email.accelerators.label.requestManager', valueExpr: 'exprContext.manager.fullName', onlyFor: [EntityVO.TYPE_WORKORDER, EntityVO.TYPE_SERVICEREQUEST, EntityVO.TYPE_INCIDENT, EntityVO.TYPE_TASK, EntityVO.TYPE_KNOWLEDGE] }, { key: 'email.accelerators.key.requestGroup', desc: 'email.accelerators.label.requestGroup', valueExpr: 'exprContext.managerGroup.name', onlyFor: [EntityVO.TYPE_WORKORDER, EntityVO.TYPE_SERVICEREQUEST, EntityVO.TYPE_INCIDENT, EntityVO.TYPE_TASK, EntityVO.TYPE_KNOWLEDGE] }, { key: 'email.accelerators.key.releaseCoordinator', desc: 'email.accelerators.label.releaseCoordinator', valueExpr: 'exprContext.coordinator.fullName', onlyFor: [EntityVO.TYPE_RELEASE] }, { key: 'email.accelerators.key.requestCoordinator', desc: 'email.accelerators.label.requestCoordinator', valueExpr: 'exprContext.assignee.fullName', onlyFor: [EntityVO.TYPE_SERVICEREQUEST] }, { key: 'email.accelerators.key.requestCoordinatorGroup', desc: 'email.accelerators.label.requestCoordinatorGroup', valueExpr: 'exprContext.supportGroup.name', onlyFor: [EntityVO.TYPE_SERVICEREQUEST] }, { key: 'email.accelerators.key.resolution', desc: 'email.accelerators.label.resolution', valueExpr: 'exprContext.resolution', onlyFor: [EntityVO.TYPE_KNOWNERROR, EntityVO.TYPE_PROBLEM] }, { key: 'email.accelerators.key.rootCause', desc: 'email.accelerators.label.rootCause', valueExpr: 'exprContext.rootCause', onlyFor: [EntityVO.TYPE_KNOWNERROR, EntityVO.TYPE_PROBLEM] }, { key: 'email.accelerators.key.workaround', desc: 'email.accelerators.label.workaround', valueExpr: 'exprContext.workaround', onlyFor: [EntityVO.TYPE_KNOWNERROR, EntityVO.TYPE_PROBLEM] }, { key: 'email.accelerators.key.viewAccess', desc: 'email.accelerators.label.viewAccess', valueExpr: 'exprContext.viewAccess', onlyFor: [EntityVO.TYPE_KNOWNERROR] } ] }); })();