% var trans = obj[0]; %> <% var videoUrl = obj[2].Url != null ? obj[2].Url : '' %> <% var productMessage = obj[3] != '' && obj[3] != null && obj[3].length != 0 ? obj[3] : '';%> <% var messageCounter = 0; %> <% var isRegistered = obj[4]; %> <% if(productMessage != '') {%> <% if(productMessage[0].GenericMessages.length > 0) {%> <% _.each(productMessage[0].GenericMessages, function(record) { %> <% if(session.criteria.genmessageType == 'ProductMessages') {%> <% if((session.pharmacy.Messages == '1' || session.pharmacy.Messages == 'True' || session.pharmacy.Messages != null) && (record.MessageStatus == 9262 && record.DisplayText == 'UnRead' && record.IsVIM == true) && record.IsWeb == true && session.tempdata.usertype == 0 && messageCounter == 0) { messageCounter = messageCounter + 1; %>
<% } %> <% } else { %> <% if((session.pharmacy.Messages == '1' || session.pharmacy.Messages == 'True' || session.pharmacy.Messages != null) && record.MessageStatus == 9262 && record.IsWeb == true && session.tempdata.usertype == 0 && messageCounter == 0 && record.IsVIM == true) { messageCounter = messageCounter + 1; %> <% } %> <% } %> <% }); %> <%}}%>