Ӻh dZddlZddlmZddlmZedkreejeZe dZ e d d Z e d d dde dddde dd Ze d d dde dddde dddde ddddde dd Ze d d dde ddddeZeZejd kr"eejejdSejdkr/eejejejej!dSejdkr"eejejdSedS)"z Domain POST modification hook. This script must be called AFTER different domain-related changes in control panel. See --help and docs for detailed description of actions and parameters. N)ModifyDomainHook)setup_logger_and_sentry__main__) descriptioncommand)destcreatezH[NOT FOR VENDORS PANELS INTEGRATION] Call when domain record is created.)helpz --usernamez-uTzUser that owns domain.)requiredr z--domainz-dsz"Domain name e.g.: `userdomain.com`modifyzhCall when domain record is updated (e.g all sites that have worked on old domain now work on a new one).z1Domain name before rename, e.g.: `userdomain.com`z --new-domainz-dtz0Domain name after rename, e.g.: `userdomain2.eu`z--include-subdomainsF store_truezIf set, we will also process all domains that end with domain name (subdomains). E.g. when renaming olddomain.com -> newdomain.eu we will also rename sub.olddomain.com to sub.newdomain.eu)r defaultactionr deletezG[NOT FOR INTEGRATED CONTROL PANELS] Call when domain record is deleted.)include_subdomains)__doc__argparseclcommon.public_hooks.librclcommon.public_hooksr__name__ArgumentParserparseradd_subparsers subparsers add_parser create_domain add_argument modify_domain parse_argsargshookrpost_create_domainusernamedomainpost_modify_domain new_domainrpost_delete_domainNotImplementedError/builddir/build/BUILD/imunify360-venv-2.5.2/opt/imunify360/venv/lib/python3.11/site-packages/clcommon/public_hooks/bin/post_modify_domain.pyr,s 666666999999 z $X $ 9 9 9F&&I&66J))a*ccM|TDG_```z54$HJJJ))1*22M|TDG_```z54$WYYY~ut$VXXXlIJJJ))`*bbM|TDG_```z54$WYYY     D    D |x  M4; ( ( ( ( (  ! !  M4;#6  8 8 8 8 8  ! !  t{;;;;;!!ar*