feat: Phone number based automation conditions (#6783)

This commit is contained in:
Tejaswini Chile
2023-04-02 10:54:51 +05:30
committed by GitHub
parent 21da03fe5b
commit d1ac33e98c
9 changed files with 119 additions and 18 deletions

View File

@@ -31,7 +31,7 @@ class AutomationRule < ApplicationRecord
scope :active, -> { where(active: true) }
CONDITIONS_ATTRS = %w[content email country_code status message_type browser_language assignee_id team_id referer city company inbox_id
mail_subject].freeze
mail_subject phone_number].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 send_email_transcript].freeze