'Return the review event type constant.
This is determined by the app type and the queue the addon is
currently in (which is determined from the status).
Note: We\'re not using addon.status because this is called after the
status has been updated by the reviewer action.'

@classmethod
def get_event(cls, addon, status, **kwargs):

    if addon.is_packaged:
        if (status in mkt.WEBAPPS_APPROVED_STATUSES):
            if (addon.app_type_id == mkt.ADDON_WEBAPP_PRIVILEGED):
                return mkt.REVIEWED_WEBAPP_PRIVILEGED_UPDATE
            else:
                return mkt.REVIEWED_WEBAPP_UPDATE
        elif (addon.app_type_id == mkt.ADDON_WEBAPP_PRIVILEGED):
            return mkt.REVIEWED_WEBAPP_PRIVILEGED
        else:
            return mkt.REVIEWED_WEBAPP_PACKAGED
    else:
        in_rereview = kwargs.pop('in_rereview', False)
        if ((status in mkt.WEBAPPS_APPROVED_STATUSES) and in_rereview):
            return mkt.REVIEWED_WEBAPP_REREVIEW
        else:
            return mkt.REVIEWED_WEBAPP_HOSTED
