<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
	<virtualType name="CTSG\Account\Model\ResourceModel\SourceAddress\Grid\Collection" type="Magento\Framework\View\Element\UiComponent\DataProvider\SearchResult">
		<arguments>
			<argument name="mainTable" xsi:type="string">ctsg_source_address_entity</argument>
			<argument name="resourceModel" xsi:type="string">CTSG\Account\Model\ResourceModel\SourceAddress\Collection</argument>
		</arguments>
	</virtualType>
	<type name="Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory">
		<arguments>
			<argument name="collections" xsi:type="array">
				<item name="ctsg_source_address_listing_data_source" xsi:type="string">CTSG\Account\Model\ResourceModel\SourceAddress\Grid\Collection</item>
			</argument>
		</arguments>
	</type>
	<virtualType name="CTSG\Account\Model\ResourceModel\PreviousLabels\Grid\Collection" type="Magento\Framework\View\Element\UiComponent\DataProvider\SearchResult">
		<arguments>
			<argument name="mainTable" xsi:type="string">ch_shipment_additional</argument>
			<argument name="resourceModel" xsi:type="string">CTSG\Account\Model\ResourceModel\ChShipmentAdditional\Grid\Collection</argument>
		</arguments>
	</virtualType>
	<type name="Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory">
		<arguments>
			<argument name="collections" xsi:type="array">
				<item name="ctsg_previous_labels_listing_data_source" xsi:type="string">CTSG\Account\Model\ResourceModel\PreviousLabels\Grid\Collection</item>
			</argument>
		</arguments>
	</type>
    <preference for="CTSG\Account\Api\ChShipmentAdditionalRepositoryInterface" type="CTSG\Account\Model\ChShipmentAdditionalRepository"/>
    <preference for="CTSG\Account\Api\Data\ChShipmentAdditionalInterface" type="CTSG\Account\Model\Data\ChShipmentAdditional"/>
    <preference for="CTSG\Account\Api\Data\ChShipmentAdditionalSearchResultsInterface" type="Magento\Framework\Api\SearchResults"/>

    <preference for="Magento\Customer\Model\Customer\DataProviderWithDefaultAddresses" type="CTSG\Account\Model\DataProvider\CustomerDataProviderWithDefaultAddresses"/>
</config>
