2020-04-03 07:34:58 +00:00
|
|
|
class Api::V1::Widget::ContactsController < Api::V1::Widget::BaseController
|
|
|
|
def update
|
|
|
|
contact_identify_action = ContactIdentifyAction.new(
|
|
|
|
contact: @contact,
|
|
|
|
params: permitted_params.to_h.deep_symbolize_keys
|
|
|
|
)
|
|
|
|
render json: contact_identify_action.perform
|
|
|
|
end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def permitted_params
|
2020-08-21 14:00:27 +00:00
|
|
|
params.permit(:website_token, :identifier, :email, :name, :avatar_url, custom_attributes: {})
|
2020-04-03 07:34:58 +00:00
|
|
|
end
|
|
|
|
end
|