
    >h                        S SK JrJrJr  S SKJr  S SKJr  S SKJ	r
  \" 5       r\R                  S\S9\" \R                  5      4S\S\R                  4S	 jj5       r\R#                  S\S9\" \R                  5      4S\S
\4S jj5       rg)    )	APIRouterDependsHTTPException)database)CommunicationSettings)communicationz/{account_id})response_model
account_iddbc                 z     [         R                  " X5      $ ! [         a  n[        S[	        U5      S9eS nAff = f)Ni  )status_codedetail)communication_serviceget_communication_settings	Exceptionr   str)r
   r   es      SC:\Suresh\moveshuttle\MDcreated\moveengine\app\v1\routers\platform\communication.pyget_settingsr      s9    <$??
OO <CF;;<s    
:5:settingsc                 L    [         R                  " XR                  5       U5      $ )N)r   update_communication_settingsdict)r
   r   r   s      r   update_settingsr      s     >>z==?\^__    N)fastapir   r   r   app.dbr   $app.v1.models.platform.communicationr   app.v1.services.platformr   r   routergetget_mongo_dbr   MongoDBr   postr    r   r   <module>r&      s    5 5  F K	O,AB9@AVAV9W <S <h&6&6 < C< _-BCIPQYQfQfIg ` `/D ` D`r   