<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
    <event name="customer_register_success">
        <observer name="liveprawn_customerrewards_create_profile"
                  instance="LivePrawn\CustomerRewards\Observer\CreateCustomerProfileOnRegister"/>
        <observer name="liveprawn_customerrewards_process_referral"
                  instance="LivePrawn\CustomerRewards\Observer\ProcessReferralOnRegister"/>
    </event>
    <event name="sales_order_save_after">
        <observer name="liveprawn_customerrewards_premium_activation"
                  instance="LivePrawn\CustomerRewards\Observer\ProcessPremiumActivationOnOrderComplete"/>
        <observer name="liveprawn_customerrewards_restaurant_commission"
                  instance="LivePrawn\CustomerRewards\Observer\ProcessRestaurantCommissionOnOrderComplete"/>
    </event>
</config>
