<?xml version="1.0"?>
<!--
/**
 * @author Amasty Team
 * @copyright Copyright (c) Amasty (https://www.amasty.com)
 * @package Store Locator for Magento 2
 */-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_AdminGws:etc/admingws.xsd">
    <group name="model_save_before" processor="Amasty\Storelocator\Model\AdminGWS\LocationPermissionsChecker">
        <callback class="Amasty\Storelocator\Model\Location" method="locationSaveBefore" />
    </group>
    <group name="model_delete_before" processor="Amasty\Storelocator\Model\AdminGWS\LocationPermissionsChecker">
        <callback class="Amasty\Storelocator\Model\Location" method="locationDeleteBefore" />
    </group>
</config>
