Edit File: smart_advice.cpython-311.pyc
� ��\h � �l � d dl mZ d dlmZ d dlmZ d dlmZmZ d dl m Z G d� dej � � ZdS ) � )�lookup)�Scope)�ControlPanelConfig)�get_advice_notifications�make_advice)�sync_advicesc � � e Zd Zej Z ej dd� � d� � � Z ej dd� � d� � � Z ej dd� � d� � � Z dS ) �SmartAdviceEndpointszsmart-advice� notificationsc � �J K � t j sg S t � � � d {V ��S )N)r �SMART_ADVICE_ALLOWEDr ��selfs �R/opt/imunify360/venv/lib/python3.11/site-packages/im360/simple_rpc/smart_advice.py�smart_advice_notificationsz/SmartAdviceEndpoints.smart_advice_notifications s4 � � � �!�6� ��I�-�/�/�/�/�/�/�/�/�/� zget-optionsc � �8 K � t j t j d�S )N)�mu_plugin_installation�advice_email_notification)r r �ADVICE_EMAIL_NOTIFICATIONr s r �smart_advice_get_optionsz-SmartAdviceEndpoints.smart_advice_get_options s# � � � � '9�&M�);�)U� � � r �syncc � � K � t j sg S t � � � d {V ��}t |� � � d {V ��}|rg S t d� � �)NzFailed to sync advices)r r r r � Exception)r �advices�oks r �sync_smart_advicez&SmartAdviceEndpoints.sync_smart_advice sl � � � �!�6� ��I�#� � �%�%�%�%�%�%����(�(� (� (� (� (� (� (�� � 6��I��4�5�5�5r N)�__name__� __module__�__qualname__r �IM360�SCOPEr �bindr r r � r r r r s� � � � � � ��K�E��V�[���1�1�0� 0� 2�1�0� �V�[���/�/� � � 0�/� � �V�[���(�(�6� 6� )�(�6� 6� 6r r N) �defence360agent.rpc_toolsr �defence360agent.utilsr � defence360agent.contracts.configr �/defence360agent.myimunify.advice.advice_managerr r �9defence360agent.myimunify.advice.hosting_smart_advice_apir � RootEndpointsr r$ r r �<module>r+ s� �� ,� ,� ,� ,� ,� ,� '� '� '� '� '� '� ?� ?� ?� ?� ?� ?�� � � � � � � �� � � � � � 6� 6� 6� 6� 6�6�/� 6� 6� 6� 6� 6r