feat: Add agents filter in CSAT reports (#4106)
* add agents filter in csat reports
This commit is contained in:
@@ -40,4 +40,7 @@ class CsatSurveyResponse < ApplicationRecord
|
||||
validates :account_id, presence: true
|
||||
validates :contact_id, presence: true
|
||||
validates :conversation_id, presence: true
|
||||
|
||||
scope :filter_by_created_at, ->(range) { where(created_at: range) if range.present? }
|
||||
scope :filter_by_assigned_agent_id, ->(user_ids) { where(assigned_agent_id: user_ids) if user_ids.present? }
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user