<?xml version="1.0"?>
<!--
/**
 * BSS Commerce Co.
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the EULA
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://bsscommerce.com/Bss-Commerce-License.txt
 *
 * @category   BSS
 * @package    Bss_QuoteExtension
 * @author     Extension Team
 * @copyright  Copyright (c) 2018-2019 BSS Commerce Co. ( http://bsscommerce.com )
 * @license    http://bsscommerce.com/Bss-Commerce-License.txt
 */
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
    <event name="customer_login">
        <observer name="Bss\QuoteExtension\Observer\LoadCustomerQuoteObserver" instance="Bss\QuoteExtension\Observer\LoadCustomerQuoteObserver" />
    </event>
    <event name="customer_logout">
        <observer name="Bss\QuoteExtension\Observer\UnsetAllObserver" instance="Bss\QuoteExtension\Observer\UnsetAllObserver" />
    </event>
    <event name="catalog_product_load_after">
        <observer name="Bss\QuoteExtension\Observer\ApplyQuoteOnProductAfterLoadObserver" instance="Bss\QuoteExtension\Observer\ApplyQuoteOnProductAfterLoadObserver"/>
    </event>
    <event name="catalog_product_collection_load_after">
    	<observer name="set_product_in_collection" instance="Bss\QuoteExtension\Observer\ApplyAddToQuoteCollection"/>
    </event>

    <event name="customer_save_after_data_object">
        <observer
            name="quoteextension_assign_quoteextension_to_customer"
            instance="Bss\QuoteExtension\Observer\Customer\AssignQuoteExtension" />
    </event>

    <event name="customer_register_success">
        <observer name="save_address_book_after_success"
                  instance="Bss\QuoteExtension\Observer\QuoteExtension\SaveAddressBook"/>
    </event>
</config>
