<% if ( interaction.state !== 'done' && interaction.current_service.type !== 'CAMPIN' && interaction.current_service.type !== 'SERVINT' && interaction.current_service.type !== 'CHAT' && (interaction?.media?.is_draft !== true ||interaction.attached_ref === interaction.task_ref) ) {%> <% } %>