Feat/5733 Add private note action in macros (#5805)

This commit is contained in:
Tejaswini Chile
2022-11-07 22:12:10 +05:30
committed by GitHub
parent 894234e777
commit a23974d8b9
5 changed files with 33 additions and 2 deletions

View File

@@ -33,7 +33,7 @@ class Macro < ApplicationRecord
validate :json_actions_format
ACTIONS_ATTRS = %w[send_message add_label assign_team assign_best_agent mute_conversation change_status
resolve_conversation snooze_conversation send_email_transcript send_attachment].freeze
resolve_conversation snooze_conversation send_email_transcript send_attachment add_private_note].freeze
def set_visibility(user, params)
self.visibility = params[:visibility]