l#g^ddlmZddlmZmZmZddlmZmZddlm Z GddeZ dS))time) CharField IntegerField BooleanField)instanceModel) FilenameFieldceZdZdZGddZedZedZe ddZ e dZ e d Ze dd Ze d Zd Zd S) EventHookzwImunify Hooks v1.0 configuration. .. deprecated:: 4.10 A new notification system was implemented in DEF-11680 c eZdZejZdZdS)EventHook.Meta event_hookN)__name__ __module__ __qualname__rdbdatabasedb_tableU/opt/imunify360/venv/lib/python3.11/site-packages/defence360agent/model/event_hook.pyMetar s;rrF)nullc8ttSN)intrrrrzEventHook.ss466{{r)rdefault)rc|}|dkr||j|k}t|S)Nall)selectwhereeventlistdicts)clsr#qs r list_eventszEventHook.list_eventssD JJLL E>> U*++AAGGIIrc||j|k|j|kz}|rdS||||}|S)N)r#pathnative)r!r"r#r*existscreateas_dict)r&r#r*r+r'hooks radd_hookzEventHook.add_hook$sj JJLL   U 2sx47GH I I 88:: 4zzDz@@||~~rc"||j|k|j|kz}|sdS|}|}||Sr)r!r"r#r*r,getr.delete_instance)r&r#r*r'r/datas r delete_hookzEventHook.delete_hook,sv JJLL   U 2sx47GH I Ixxzz 4uuww||~~  rc8|j|j|j|jdS)Nr*r#createdr+r7)selfs rr.zEventHook.as_dict6s%IZ|k    rN)F)rrr__doc__rr r*rr#rr8rr+ classmethodr(r0r5r.rrrr r s         =e $ $ $D I5 ! ! !El/B/BCCCG\% ( ( (F[ [[     rr N) rpeeweerrrdefence360agent.modelrr$defence360agent.model.simplificationr r rrrr?s888888888811111111>>>>>>3 3 3 3 3 3 3 3 3 3 r