<?xml version="1.0" ?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
	<preference for="Olegnax\InstagramFeedPro\Api\IntsPostRepositoryInterface" type="Olegnax\InstagramFeedPro\Model\IntsPostRepository"/>
	<preference for="Olegnax\InstagramFeedPro\Api\Data\IntsPostInterface" type="Olegnax\InstagramFeedPro\Model\Data\IntsPost"/>
	<preference for="Olegnax\InstagramFeedPro\Api\Data\IntsPostSearchResultsInterface" type="Magento\Framework\Api\SearchResults"/>
	<preference for="Olegnax\InstagramFeedPro\Api\IntsUserRepositoryInterface" type="Olegnax\InstagramFeedPro\Model\IntsUserRepository"/>
	<preference for="Olegnax\InstagramFeedPro\Api\Data\IntsUserInterface" type="Olegnax\InstagramFeedPro\Model\Data\IntsUser"/>
	<preference for="Olegnax\InstagramFeedPro\Api\Data\IntsUserSearchResultsInterface" type="Magento\Framework\Api\SearchResults"/>
	<preference for="Olegnax\InstagramFeedPro\Api\HotSpotRepositoryInterface" type="Olegnax\InstagramFeedPro\Model\HotSpotRepository"/>
	<preference for="Olegnax\InstagramFeedPro\Api\Data\HotSpotInterface" type="Olegnax\InstagramFeedPro\Model\Data\HotSpot"/>
	<preference for="Olegnax\InstagramFeedPro\Api\Data\HotSpotSearchResultsInterface" type="Magento\Framework\Api\SearchResults"/>
	<type name="Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory">
		<arguments>
			<argument name="collections" xsi:type="array">
				<item name="olegnax_instagramfeedpro_intspost_listing_data_source" xsi:type="string">
					Olegnax\InstagramFeedPro\Model\ResourceModel\IntsPost\Grid\Collection
				</item>
				<item name="olegnax_instagramfeedpro_intsuser_listing_data_source" xsi:type="string">
					Olegnax\InstagramFeedPro\Model\ResourceModel\IntsUser\Grid\Collection
				</item>
				<item name="olegnax_instagramfeedpro_hotspot_listing_data_source" xsi:type="string">
					Olegnax\InstagramFeedPro\Model\ResourceModel\HotSpot\Grid\Collection
				</item>
			</argument>
		</arguments>
	</type>
	<virtualType name="Olegnax\InstagramFeedPro\Model\ResourceModel\IntsPost\Grid\Collection"
				 type="Magento\Framework\View\Element\UiComponent\DataProvider\SearchResult">
		<arguments>
			<argument name="mainTable" xsi:type="string">olegnax_instagramfeedpro_intspost</argument>
			<argument name="resourceModel" xsi:type="string">
				Olegnax\InstagramFeedPro\Model\ResourceModel\IntsPost\Collection
			</argument>
		</arguments>
	</virtualType>
	<virtualType name="Olegnax\InstagramFeedPro\Model\ResourceModel\IntsUser\Grid\Collection"
				 type="Magento\Framework\View\Element\UiComponent\DataProvider\SearchResult">
		<arguments>
			<argument name="mainTable" xsi:type="string">olegnax_instagramfeedpro_intsuser</argument>
			<argument name="resourceModel" xsi:type="string">
				Olegnax\InstagramFeedPro\Model\ResourceModel\IntsUser\Collection
			</argument>
		</arguments>
	</virtualType>
	<virtualType name="Olegnax\InstagramFeedPro\Model\ResourceModel\HotSpot\Grid\Collection"
				 type="Magento\Framework\View\Element\UiComponent\DataProvider\SearchResult">
		<arguments>
			<argument name="mainTable" xsi:type="string">olegnax_instagramfeedpro_hotspot</argument>
			<argument name="resourceModel" xsi:type="string">
				Olegnax\InstagramFeedPro\Model\ResourceModel\HotSpot\Collection
			</argument>
		</arguments>
	</virtualType>
</config>
