<%= _.isUndefined(i18n['Rule name']) ? 'Rule name' : i18n['Rule name'] %>: <%= scoreRuleModel.rule_name %>

<%= _.isUndefined(i18n['Created on']) ? 'Created on' : i18n['Created on'] %>:
<%= (moment(scoreRuleModel.createdAt, 'YYYY-MM-DD HH:mm:ss').format('DD MMMM YYYY') === 'Invalid date') ? '': moment(scoreRuleModel.createdAt, 'YYYY-MM-DD HH:mm:ss').format('DD MMM YYYY') %>
<%= _.isUndefined(i18n['Created by']) ? 'Created by' : i18n['Created by'] %>:
<%= (!_.isEmpty(scoreRuleModel.creatorName) ? scoreRuleModel.creatorName :'') %>
<%= _.isUndefined(i18n['Last updated on']) ? 'Last updated on' : i18n['Last updated on'] %>:
<%= (moment(scoreRuleModel.updatedAt, 'YYYY-MM-DD HH:mm:ss').format('DD MMMM YYYY') === 'Invalid date') ? '': moment(scoreRuleModel.updatedAt, 'YYYY-MM-DD HH:mm:ss').format('DD MMM YYYY') %>
<%= _.isUndefined(i18n['Last updated by']) ? 'Last updated by' : i18n['Last updated by'] %>:
<%= ((!_.isEmpty(scoreRuleModel.editorName) && !_.isNull(scoreRuleModel.editorName)) ? scoreRuleModel.editorName :'') %>
<%= _.isUndefined(i18n['Properties/actions']) ? 'Properties/actions' : i18n['Properties/actions'] %>

<%= _.isUndefined(i18n['Property/action condition']) ? 'Property/action condition' : i18n['Property/action condition'] %>
2. <%= _.isUndefined(i18n['Action taken']) ? 'Action taken' : i18n['Action taken'] %>:
<% ownerDisabled = '1' %> <% if(!_.isUndefined(scoreRuleModel.actionsData.assign_owner)) { %> <% assignOwnerConfig = JSON.parse(scoreRuleModel.actionsData.assign_owner.action_config) %> <% } else { %> <% assignOwnerConfig = '' %> <% } %> <% var disabledAttr = 'disabled'; if (!_.isEmpty(scoreRuleModel.leadOwners)) { _.each(scoreRuleModel.leadOwners, function(leadOwner) { if(!_.isEmpty(assignOwnerConfig) && (assignOwnerConfig.assign_to == leadOwner[0])){ disabledAttr = ''; } }); } %> <% if (ownerDisabled == '1' && assignOwnerConfig != '') {%> <% } %>
<% var serviceName = ''%> <% var serviceValue = ''%> <% var requestType = 'assign'%> <% if(!_.isUndefined(scoreRuleModel.actionsData.assign_email_list)) { var serviceNameParam = JSON.parse(scoreRuleModel.actionsData.assign_email_list.action_config); serviceName = serviceNameParam.serviceName; serviceValue = serviceNameParam.lists; requestType = serviceNameParam.requestType; } %> <% var requestType = 'assign'%> <% if(!_.isUndefined(scoreRuleModel.actionsData.assign_remarketing_list)) { var serviceNameRemarketingParam = JSON.parse(scoreRuleModel.actionsData.assign_remarketing_list.action_config); requestType = serviceNameRemarketingParam.requestType; }%>
<% if (scoreRuleModel.limitedAccess) { %> <%= _.isUndefined(i18n['Update lead workflow']) ? 'Update lead workflow' : i18n['Update lead workflow'] %> <% } else { %> <%= _.isUndefined(i18n['Update lead workflow']) ? 'Update lead workflow' : i18n['Update lead workflow'] %> <% } %>