| Line 1097... |
Line 1097... |
| 1097 |
for (var i = 0; i < response.length; i++) {
|
1097 |
for (var i = 0; i < response.length; i++) {
|
| 1098 |
console.log(response[i].activityAttachment.length);
|
1098 |
console.log(response[i].activityAttachment.length);
|
| 1099 |
var activityAttachment = []
|
1099 |
var activityAttachment = []
|
| 1100 |
var attachments = "";
|
1100 |
var attachments = "";
|
| 1101 |
if (response[i].activityAttachment.length > 0) {
|
1101 |
if (response[i].activityAttachment.length > 0) {
|
| - |
|
1102 |
response
|
| 1102 |
for (var j = 0; j < response[i].activityAttachment.length; j++) {
|
1103 |
for (var j = 0; j < response[i].activityAttachment.length; j++) {
|
| 1103 |
var assigneeAttachment = "<a href=\"javascript:void(0)\" style=\"color:#337ab7;float:right;\"onclick=\"downloadDocument("
|
1104 |
var assigneeAttachment = "<a href=\"javascript:void(0)\" style=\"color:#337ab7;float:right;\"onclick=\"downloadDocument("
|
| 1104 |
+ response[i].activityAttachment[j].documentId
|
1105 |
+ response[i].activityAttachment[j].documentId
|
| 1105 |
+ ",\`"
|
1106 |
+ ",\`"
|
| 1106 |
+ response[i].activityAttachment[j].documentName
|
1107 |
+ response[i].activityAttachment[j].documentName
|
| Line 1120... |
Line 1121... |
| 1120 |
+ "<div class=\"received_msg\">"
|
1121 |
+ "<div class=\"received_msg\">"
|
| 1121 |
+ "<div class=\"received_withd_msg\">" + "<p>"
|
1122 |
+ "<div class=\"received_withd_msg\">" + "<p>"
|
| 1122 |
+ response[i].message + "</p><div>"
|
1123 |
+ response[i].message + "</p><div>"
|
| 1123 |
+ `${attachments}`
|
1124 |
+ `${attachments}`
|
| 1124 |
+ "</div> <span class=\"time_date\"> "
|
1125 |
+ "</div> <span class=\"time_date\"> "
|
| 1125 |
+ response[i].createTimestamp.hour + ":"
|
- |
|
| 1126 |
+ response[i].createTimestamp.minute + "|"
|
- |
|
| 1127 |
+ response[i].createTimestamp.dayOfMonth + "/"
|
- |
|
| 1128 |
+ response[i].createTimestamp.monthValue + "/"
|
1126 |
+ moment(response[i].createTimestamp).format('DD/MM/YYYY, h:mm:ss a')
|
| 1129 |
+ response[i].createTimestamp.year
|
- |
|
| 1130 |
+ "</span></div>" + "</div>" + "</div>";
|
1127 |
+ "</span></div>" + "</div>" + "</div>";
|
| 1131 |
$(".activity-container .modal-body").append(
|
1128 |
$(".activity-container .modal-body").append(
|
| 1132 |
partnerMessage);
|
1129 |
partnerMessage);
|
| 1133 |
|
1130 |
|
| 1134 |
} else if (response[i].type == "COMMUNICATION_OUT") {
|
1131 |
} else if (response[i].type == "COMMUNICATION_OUT") {
|
| Line 1139... |
Line 1136... |
| 1139 |
+ (response[i].name ? response[i].name
|
1136 |
+ (response[i].name ? response[i].name
|
| 1140 |
: "Support") + "<p>"
|
1137 |
: "Support") + "<p>"
|
| 1141 |
+ response[i].message + "</span> </p><div>"
|
1138 |
+ response[i].message + "</span> </p><div>"
|
| 1142 |
+ `${attachments}`
|
1139 |
+ `${attachments}`
|
| 1143 |
+ "</div> <span class=\"time_date\">"
|
1140 |
+ "</div> <span class=\"time_date\">"
|
| 1144 |
+ response[i].createTimestamp.hour + ":"
|
- |
|
| 1145 |
+ response[i].createTimestamp.minute + "|"
|
- |
|
| 1146 |
+ response[i].createTimestamp.dayOfMonth + "/"
|
- |
|
| 1147 |
+ response[i].createTimestamp.monthValue + "/"
|
1141 |
+ moment(response[i].createTimestamp).format('DD/MM/YYYY, h:mm:ss a')
|
| 1148 |
+ response[i].createTimestamp.year
|
- |
|
| 1149 |
+ "</span> </div>" + "</div>";
|
1142 |
+ "</span> </div>" + "</div>";
|
| 1150 |
$(".activity-container .modal-body").append(
|
1143 |
$(".activity-container .modal-body").append(
|
| 1151 |
assigneeMessage);
|
1144 |
assigneeMessage);
|
| 1152 |
|
1145 |
|
| 1153 |
} else if (response[i].name
|
1146 |
} else if (response[i].name
|