.ܟ l d dl mZ d dlmZ d dlmZ d dlmZmZ d dl m
Z
G d dej ZdS ) )lookup)Scope)ControlPanelConfig)get_advice_notificationsmake_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.pysmart_advice_notificationsz/SmartAdviceEndpoints.smart_advice_notifications s4 !6 I-///////// zget-optionsc 8 K t j t j dS )N)mu_plugin_installationadvice_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 advicesoks r sync_smart_advicez&SmartAdviceEndpoints.sync_smart_advice sl !6 I#
%%%%%%((
(
(
(
(
(
(
6I4555r N)__name__
__module____qualname__r IM360SCOPEr bindr r r r r r
r
s KEV[110 0 210
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