PATH:
opt
/
imunify360
/
venv
/
lib
/
python3.11
/
site-packages
/
im360
/
simple_rpc
/
__pycache__
� ��i � �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
[+]
..
[-] whitelist_rbl.cpython-311.opt-1.pyc
[edit]
[-] whitelisted_crawlers.cpython-311.opt-1.pyc
[edit]
[-] __init__.cpython-311.pyc
[edit]
[-] conflicts.cpython-311.pyc
[edit]
[-] feature.cpython-311.opt-1.pyc
[edit]
[-] whitelist_rbl.cpython-311.pyc
[edit]
[-] control_panel.cpython-311.pyc
[edit]
[-] hosting_panel.cpython-311.opt-1.pyc
[edit]
[-] remote_proxy.cpython-311.pyc
[edit]
[-] lists.cpython-311.opt-1.pyc
[edit]
[-] health.cpython-311.opt-1.pyc
[edit]
[-] middleware.cpython-311.opt-1.pyc
[edit]
[-] schema.cpython-311.opt-1.pyc
[edit]
[-] unavailable_on_freemium.cpython-311.pyc
[edit]
[-] uninstall_cleanup.cpython-311.opt-1.pyc
[edit]
[-] hosting_panel.cpython-311.pyc
[edit]
[-] incidents.cpython-311.opt-1.pyc
[edit]
[-] unavailable_on_freemium.cpython-311.opt-1.pyc
[edit]
[-] resident_socket.cpython-311.opt-1.pyc
[edit]
[-] kcarectl.cpython-311.pyc
[edit]
[-] smtp_blocking.cpython-311.opt-1.pyc
[edit]
[-] whitelisted_domains.cpython-311.pyc
[edit]
[-] smtp_blocking.cpython-311.pyc
[edit]
[-] whitelisted_crawlers.cpython-311.pyc
[edit]
[-] custom_lists.cpython-311.opt-1.pyc
[edit]
[-] configuration_management.cpython-311.pyc
[edit]
[-] smart_advice.cpython-311.pyc
[edit]
[-] kcarectl.cpython-311.opt-1.pyc
[edit]
[-] whitelisted_domains.cpython-311.opt-1.pyc
[edit]
[-] conflicts.cpython-311.opt-1.pyc
[edit]
[-] countries.cpython-311.pyc
[edit]
[-] schema.cpython-311.pyc
[edit]
[-] proactive.cpython-311.opt-1.pyc
[edit]
[-] configuration_management.cpython-311.opt-1.pyc
[edit]
[-] health.cpython-311.pyc
[edit]
[-] lists.cpython-311.pyc
[edit]
[-] disabled_rules.cpython-311.opt-1.pyc
[edit]
[-] custom_lists.cpython-311.pyc
[edit]
[-] proactive.cpython-311.pyc
[edit]
[-] remote_proxy.cpython-311.opt-1.pyc
[edit]
[-] __init__.cpython-311.opt-1.pyc
[edit]
[-] malware.cpython-311.opt-1.pyc
[edit]
[-] countries.cpython-311.opt-1.pyc
[edit]
[-] feature.cpython-311.pyc
[edit]
[-] resident_socket.cpython-311.pyc
[edit]
[-] validate.cpython-311.opt-1.pyc
[edit]
[-] smart_advice.cpython-311.opt-1.pyc
[edit]
[-] malware.cpython-311.pyc
[edit]
[-] disabled_rules.cpython-311.pyc
[edit]
[-] incidents.cpython-311.pyc
[edit]
[-] control_panel.cpython-311.opt-1.pyc
[edit]
[-] validate.cpython-311.pyc
[edit]
[-] csf_imports.cpython-311.pyc
[edit]
[-] uninstall_cleanup.cpython-311.pyc
[edit]
[-] csf_imports.cpython-311.opt-1.pyc
[edit]
[-] middleware.cpython-311.pyc
[edit]