feat: allow automation rules to remove labels (#8346)

This commit is contained in:
Shivam Mishra
2023-11-13 13:10:55 +05:30
committed by GitHub
parent 6c79642450
commit cd217a3f86
3 changed files with 13 additions and 2 deletions

View File

@@ -32,8 +32,8 @@ class AutomationRule < ApplicationRecord
CONDITIONS_ATTRS = %w[content email country_code status message_type browser_language assignee_id team_id referer city company inbox_id
mail_subject phone_number priority conversation_language].freeze
ACTIONS_ATTRS = %w[send_message add_label send_email_to_team assign_team assign_agent send_webhook_event mute_conversation send_attachment
change_status resolve_conversation snooze_conversation change_priority send_email_transcript].freeze
ACTIONS_ATTRS = %w[send_message add_label remove_label send_email_to_team assign_team assign_agent send_webhook_event mute_conversation
send_attachment change_status resolve_conversation snooze_conversation change_priority send_email_transcript].freeze
def file_base_data
files.map do |file|