2021-05-31 16:33:02 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Intaro\RetailCrm\Component;
|
|
|
|
|
|
|
|
use CCatalogExport;
|
|
|
|
use CModule;
|
|
|
|
use Dotenv\Loader;
|
2022-03-02 15:40:53 +03:00
|
|
|
use Intaro\RetailCrm\Component\Factory\ClientFactory;
|
|
|
|
use Intaro\RetailCrm\Component\Json\Serializer;
|
2021-05-31 16:33:02 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Class Agent
|
|
|
|
*
|
|
|
|
* @package Intaro\RetailCrm\Component
|
|
|
|
*/
|
|
|
|
class Agent
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @param int $profileId
|
|
|
|
*
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function preGenerateExport(int $profileId): string
|
|
|
|
{
|
|
|
|
CModule::IncludeModule('catalog');
|
|
|
|
CCatalogExport::PreGenerateExport($profileId);
|
2022-03-02 15:40:53 +03:00
|
|
|
|
2021-05-31 16:33:02 +03:00
|
|
|
return '';
|
|
|
|
}
|
|
|
|
}
|