i801_smbus
  5   ˆl–ßi~” T¾R( 	ÅåÆÃq±)‹Fÿ�þB gí¶ì…%{ùÌƒh¹Ë¿É      3000
  D   ˆl–ß=¿Jå2ÛR‚ œPA¸&n41hß�þ\x‹8ÛOHA´ËA#¿ÏÍƒŽ¹Ì_�uÐb&=LyZËcõÁË Œ    # Copyright (C) 2012-2026 Zammad Foundation, https://zammad-foundation.org/

class ChannelsAdmin::WhatsappController < ChannelsAdmin::BaseController
  SENSITIVE_FIELDS = %w[access_token app_secret].freeze

  def area
    'WhatsApp::Business'.freeze
  end

  def create
    channel = Service::Channel::Whatsapp::Create
      .execute(params: params.permit!)

    render json: mask_sensitive_values(channel.as_json, channel)
  rescue => e
    raise Exceptions::UnprocessableContent, e.message
  end

  def update
    channel          = Channel.in_area(area).find(params[:id])
    unmasked_params  = unmask_sensitive_params(params.permit!.to_h, channel.options)

    channel = Service::Channel::Whatsapp::Update
      .execute(params: unmasked_params, channel_id: params[:id])

    render json: mask_sensitive_values(channel.as_json, channel)
  rescue => e
    raise Exceptions::UnprocessableContent, e.message
  end

  def preload
    unmasked = unmask_preload_params

    data = Service::Channel::Whatsapp::Preload
      .execute(business_id: unmasked[:business_id], access_token: unmasked[:access_token])

    render json: { data: }
  end

  private

  def unmask_preload_params
    return params if params[:channel_id].blank?

    channel = Channel.in_area(area).find(params[:channel_id])
    unmask_sensitive_params(params.permit!.to_h, channel.options)
  end

  # Masking uses dotted paths (Channel::SENSITIVE_FIELDS) for nested channel JSON responses.
  # Unmasking uses flat keys (SENSITIVE_FIELDS) for params/channel.options hashes.
  def sensitive_attributes(_input, object)
    return Channel::SENSITIVE_FIELDS if object.is_a?(Channel)

    SENSITIVE_FIELDS
  end
end
  C   ˆl–Ým_J *_)ú‚Æ\¸TÅ£’þB ,Ûïn>Ülˆ€Zof¯ùÏÉÈÎ234_‡I|¥ŠèªÃÍ  ê    ‹      u�AKÃ@„ïû+¼(4A¡xôPÛ…¢%�‚ÇWóbw÷…Ý—†ü{·ˆG¯ÃÌ73kÕX®�“‰»†�i?u'ò=æ½nŽ»×—
åcyo¶õóúmßV i¾½3E±­�›fwh³«(ÌÞ&…ô _z‰Å�|Žžƒ"²#µÒÙ	6@Ï|Ay†=�Ê%6â½s!7r‚§'F�^®PHÄmÐO3:îitºÈ›q	ì�ðLÁ†¯,“æ¨ù§Ÿ"ÿM-ó—\¬¯ÀŠ4­–HšVKóÓÌÏ»     5   ˆl–ß=¿JÅ!¶e8 �q°\ŠbÑ¿�þ\+Ë8ÛÎ:œ�¢ ÏÑƒ®=ÐÄÎ è       ˆ1R9¦%eÖF,æõ\      "ótj    ¨      Zï’[^%·Aþ  p…?aˆU  YARB      ¨            Ð  ,  l  )#i‹§ ÿÿÿÿÿÿÿÿ    C3©;3 ÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿ)#i‹Ÿ; ÿÿÿÿÿÿÿÿ	       I9		¥;9 ÿÿÿÿÿÿÿÿ)i!‹				—9 ÿÿÿÿÿÿÿÿ		  I7�97	 ÿÿÿÿÿÿÿÿ%'sOk	kk'‹Y1‹1‹7 ÿÿÿÿÿÿÿÿ	  )%�#_	•		7_ ÿÿÿÿÿÿÿÿe‘	7Õ	%ÑÑÑ	… ÿÿÿÿÿÿÿÿOÑQ!‹     
                                                 Ð      è      %!#G/3;GKI ÿÿÿÿÿÿÿÿ!		           
                            $#%7×EBµøQÑa ÿÿÿÿÿÿÿÿ	 ÿÿÿÿÿÿÿÿ	'/%s'1%sK	Õ%… ÿÿÿÿÿÿÿÿ'3ÑKs‹_a!g!io]'q'q)s)u'{'- ÿÿÿÿÿÿÿÿ!            997!7õ?B ·--…-·Y5% ÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿ%		';‹3�5 ÿÿÿÿÿÿÿÿ!      5/991‘15/ ÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿ   I   ©     u  €  :  ‘  ñ	  E¥/home/pacs/hsh12/users/zammad/.rbenv/versions/3.4.9/lib/ruby/gems/3.4.0/gems/graphql-2.6.7/lib/graphql/static_validation/rules/input_object_names_are_unique_error.rb   E<main>   GraphQL  E!<module:GraphQL> !StaticValidation E3<module:StaticValidation>==InputObjectNamesAreUniqueError   EM<class:InputObjectNamesAreUniqueError>   	name initialize   	to_h 	code attr_reader  Einitialize   @name	path nodesöI  message  õ ÿßÿŸ E	to_h E	code E	name Eextensions   extensions   mergeE	code E'inputFieldNotUnique  Errorì  ð  œ  ¨  ´  È  Ü  ø  ü     L  T  d  l  t  „  ”  œ  ¤  ¬  °  ¼  Ä  Ì  Ô  Ü  ì  ü      $    9   ˆl–Ðz¾”jClÊm@·p\iµ1hß‘þ_Ùyg‘�•×j6�üÿÒ…q–Z ?ÑÅÏ ?÷     ELF       