l#gddlZddlmZmZmZddlmZddlmZm Z ddl m Z m Z ej e eje iZGddeZdS)N) CharField IntegerField CompositeKey)IContactMessageType)Modelinstance)DAYWEEKceZdZGddZeZedZedZe d dZ e d d Z dS) IContactThrottlec8eZdZejZdZeddZdS)IContactThrottle.Metaicontact_throttle message_typeuserN) __name__ __module__ __qualname__rdbdatabasedb_tabler primary_keyS/opt/imunify360/venv/lib/python3.11/site-packages/defence360agent/model/icontact.pyMetars+;&"l>6:: rrT)nullr)defaultNct|||\}}tj|jz |kS)N)rr) get_or_createtime timestamp)clsr period_limitrobj_s rmay_be_notifiedz IContactThrottle.may_be_notifieds6"" 4"HHQ cm+|;;rc|tj|j|k||jdn |j|kdS)N)r"T)updater!whererris_nullexecute)r#rrs rrefreshzIContactThrottle.refreshsh TY[[ ))//   ,&*lCH  T " " "D8H   ')))))r)N) rrrrrrrrr" classmethodr'r-rrrr r s;;;;;;;; 9;;L 9$   D Q'''I<<<[<[rr )r!peeweerrr defence360agent.contracts.configrdefence360agent.modelrrdefence360agent.utils.commonr r MALWARE_FOUNDSCAN_NOT_SCHEDULEDTHROTTLING_PERIODr rrrr6s 8888888888@@@@@@1111111122222222%s*D ur