Class: Livechat::DashboardController
- Inherits:
-
Object
- Object
- Livechat::DashboardController
- Includes:
- RequestContext
- Defined in:
- app/controllers/livechat/dashboard_controller.rb
Overview
Root of the AGENT surface: the inbox and agent replies.
Inherits from config.base_controller_class — by default a plain
ActionController::Base, which is why authorize_agent exists. Point it at
the controller your own admin already inherits from and the inbox picks up
that stack wholesale: your layout, your helpers, your authentication, and
whatever request context your before_actions establish.
Only the inbox hangs off it. The widget's endpoints stay on ApplicationController, so wiring an admin base controller here can never demand a staff session from a visitor starting a chat.