<%= jMessageDetails[0].MessageTitle %><%= jMessageDetails[0].ScheduledDate %>
<% if (jMessageDetails && jMessageDetails.length > 0 && !jMessageDetails[0].IsQuestionType && jMessageDetails[0].MessagingButtonType != 3) { %>
<% if (jMessageDetails[0].IsSmallVideo || jMessageDetails[0].WatchVideoType) {%>
<%}%>
<%} %>
<% if (jMessageDetails[0].IsFDA && fdaImgList && fdaImgList.length > 0) {%>
<%} if (jMessageDetails && jMessageDetails.length > 0 && jMessageDetails[0].IsQuestionType == 1 && jMessageDetails[0].MessagingButtonType != 3) { %>
<%= jMessageDetails[0].MessageDescription %>
<% if (jMessageDetails[0].Id == '1' && jMessageDetails[0].IsAdhoc == 0) { %>
<% _.each(fdaImgList, function(record){ %>
<% if(record.Content) { %>
<%= record.Content%>
<% } %>
<% }); %>
<%} %>
<%= jMessageDetails[0].MessageDescription %>
<% var count = 0; %> <% _.each(jMessageDetails, function(record) { %> <% count = count + 1; %>
<% if (msgSmileylist && msgSmileylist.length > 0 && record.QueSmileyTextGood && record.QueSmileyTextBad) { %>
<%=record.QueSmileyTextGood%><%=record.QueSmileyTextBad%>
<%} %>
<%});%>
<%} %>
<%} %>
<% });%>
<% _.each(msgSmileylist, function(smileyRecord){ %>
<% }); %>
<%} else {%>
<% if (adHocQuestionOptionList && adHocQuestionOptionList.length > 0) { %>
<% _.each(adHocQuestionOptionList,function(adHocQRecord){ %>
<% if (adHocQRecord.AdHocQuestionId == record.QuestionId) { %>
<%= jMessageDetails[0].MessageDescription %>
<% if (queAnsChartList && queAnsChartList.length > 0 && msgSmileylist && msgSmileylist.length > 0) { %> <% var count = 0; %> <% _.each(queAnsChartList, function(record){%> <% count = count + 1; %><%=count%>. <%=record.Questiontext%>
<% if (record.QuestionId < 4) {%>
<% if (record.MsgQuestionAnswerList && record.MsgQuestionAnswerList.length > 0) {%>
<% _.each(record.MsgQuestionAnswerList, function(qaList){%>
<%} %>
<%});%>
<%} %>
<% _.each(msgSmileylist, function(smileyList) {%>
<%}); %>
<% if (record.QuestionId < 4) {%>
<%= record.QueSmileyTextGood %><%= record.QueSmileyTextBad %>
<%} %>