| Line 537... |
Line 537... |
| 537 |
activity.setMessage(message);
|
537 |
activity.setMessage(message);
|
| 538 |
activity.setCreatedBy(authUser.getId());
|
538 |
activity.setCreatedBy(authUser.getId());
|
| 539 |
activity.setCreateTimestamp(LocalDateTime.now());
|
539 |
activity.setCreateTimestamp(LocalDateTime.now());
|
| 540 |
if (internal) {
|
540 |
if (internal) {
|
| 541 |
activity.setType(ActivityType.COMMUNICATION_INTERNAL);
|
541 |
activity.setType(ActivityType.COMMUNICATION_INTERNAL);
|
| - |
|
542 |
String subject = String.format(ACTIVITY_SUBJECT, ticket.getId());
|
| - |
|
543 |
if (authUser.getId() == ticket.getL1AuthUser()) {
|
| - |
|
544 |
String cc[] = { authRepository.selectById(ticket.getL3AuthUser()).getEmailId() };
|
| - |
|
545 |
this.activityRelatedMail(authRepository.selectById(ticket.getL2AuthUser()).getEmailId(), cc,
|
| - |
|
546 |
subject, message);
|
| - |
|
547 |
} else if (authUser.getId() == ticket.getL2AuthUser()) {
|
| - |
|
548 |
String cc[] = { authRepository.selectById(ticket.getL3AuthUser()).getEmailId() };
|
| - |
|
549 |
this.activityRelatedMail(authRepository.selectById(ticket.getL1AuthUser()).getEmailId(), cc,
|
| - |
|
550 |
subject, message);
|
| - |
|
551 |
} else {
|
| - |
|
552 |
String cc[] = { authRepository.selectById(ticket.getL2AuthUser()).getEmailId() };
|
| - |
|
553 |
this.activityRelatedMail(authRepository.selectById(ticket.getL1AuthUser()).getEmailId(), cc,
|
| - |
|
554 |
subject, message);
|
| - |
|
555 |
}
|
| 542 |
|
556 |
|
| 543 |
} else {
|
557 |
} else {
|
| 544 |
|
558 |
|
| 545 |
activity.setType(ActivityType.COMMUNICATION_OUT);
|
559 |
activity.setType(ActivityType.COMMUNICATION_OUT);
|
| 546 |
String subject = String.format(ACTIVITY_SUBJECT, ticket.getId());
|
560 |
String subject = String.format(ACTIVITY_SUBJECT, ticket.getId());
|