2026-01-02 13:41:09 +00:00
|
|
|
# Copyright (C) 2012-2026 Zammad Foundation, https://zammad-foundation.org/
|
2025-08-12 14:47:01 +00:00
|
|
|
|
|
|
|
|
class AITextToolsController < ApplicationController
|
|
|
|
|
prepend_before_action :authenticate_and_authorize!
|
|
|
|
|
|
|
|
|
|
def index
|
|
|
|
|
model_index_render(AI::TextTool, params)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def show
|
|
|
|
|
model_show_render(AI::TextTool, params)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def create
|
|
|
|
|
model_create_render(AI::TextTool, params)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def update
|
|
|
|
|
model_update_render(AI::TextTool, params)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def search
|
|
|
|
|
model_search_render(AI::TextTool, params)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def destroy
|
|
|
|
|
model_destroy_render(AI::TextTool, params)
|
|
|
|
|
end
|
2026-03-30 19:04:43 +00:00
|
|
|
|
|
|
|
|
def reset_analytics
|
|
|
|
|
AI::TextTool
|
|
|
|
|
.find(params[:id])
|
|
|
|
|
.reset_analytics_timestamp!
|
|
|
|
|
|
|
|
|
|
render json: { success: true }
|
|
|
|
|
end
|
2025-08-12 14:47:01 +00:00
|
|
|
end
|