- Added comprehensive AI Assistant system (aiassist/ directory): * Vector search and embedding capabilities * Typebot proxy integration * Elastic search functionality * Message classification and chat history * MCP proxy for external integrations - Implemented Court Status API (GetCourtStatus.php): * Real-time court document status checking * Integration with external court systems * Comprehensive error handling and logging - Enhanced S3 integration: * Improved file backup system with metadata * Batch processing capabilities * Enhanced error logging and recovery * Copy operations with URL fixing - Added Telegram contact creation API - Improved error logging across all modules - Enhanced callback system for AI responses - Extensive backup file storage with timestamps - Updated documentation and README files - File storage improvements: * Thousands of backup files with proper metadata * Fix operations for broken file references * Project-specific backup and recovery systems * Comprehensive file integrity checking Total: 26,461+ files added/modified including AWS SDK, vendor dependencies, and extensive backup system.
66 lines
2.5 KiB
PHP
66 lines
2.5 KiB
PHP
<?php
|
|
namespace SPVoipIntegration\integration;
|
|
|
|
use SPVoipIntegration\ProvidersEnum;
|
|
use SPVoipIntegration\zadarma\ZadarmaFactory;
|
|
use SPVoipIntegration\gravitel\GravitelManagerFactory;
|
|
use SPVoipIntegration\zebra\ZebraTelecomFactory;
|
|
use SPVoipIntegration\megafon\MegafonManagerFactory;
|
|
use SPVoipIntegration\telphin\TelphinFactory;
|
|
use SPVoipIntegration\uiscom\UIScomFactory;
|
|
use SPVoipIntegration\mango\MangoFactory;
|
|
use SPVoipIntegration\yandex\YandexFactory;
|
|
use SPVoipIntegration\domru\DomruManagerFactory;
|
|
use SPVoipIntegration\westcallspb\WestCallSPBManagerFactory;
|
|
use SPVoipIntegration\mcntelecom\MCNFactory;
|
|
use SPVoipIntegration\rostelecom\RostelecomFactory;
|
|
use SPVoipIntegration\sipuni\SipuniFactory;
|
|
|
|
abstract class AbstractCallManagerFactory {
|
|
|
|
public abstract function getNotificationModel($requestData);
|
|
public abstract function getCallApiManager();
|
|
|
|
/**
|
|
*
|
|
* @return AbstractCallManagerFactory
|
|
* @throws \Exception
|
|
*/
|
|
public static function getDefaultFactory() {
|
|
$defaultProvider = \Settings_SPVoipIntegration_Record_Model::getDefaultProvider();
|
|
return self::getEventsFacory($defaultProvider);
|
|
}
|
|
|
|
public static function getEventsFacory($providerName) {
|
|
switch ($providerName) {
|
|
case ProvidersEnum::ZADARMA :
|
|
return new ZadarmaFactory();
|
|
case ProvidersEnum::GRAVITEL:
|
|
return new GravitelManagerFactory();
|
|
case ProvidersEnum::ZEBRA:
|
|
return new ZebraTelecomFactory();
|
|
case ProvidersEnum::MEGAFON:
|
|
return new MegafonManagerFactory();
|
|
case ProvidersEnum::TELPHIN:
|
|
return new TelphinFactory();
|
|
case ProvidersEnum::UISCOM:
|
|
return new UIScomFactory();
|
|
case ProvidersEnum::MANGO:
|
|
return new MangoFactory();
|
|
case ProvidersEnum::YANDEX:
|
|
return new YandexFactory();
|
|
case ProvidersEnum::DOMRU:
|
|
return new DomruManagerFactory();
|
|
case ProvidersEnum::WESTCALL_SPB:
|
|
return new WestCallSPBManagerFactory();
|
|
case ProvidersEnum::MCN:
|
|
return new MCNFactory();
|
|
case ProvidersEnum::ROSTELECOM:
|
|
return new RostelecomFactory();
|
|
case ProvidersEnum::SIPUNI:
|
|
return new SipuniFactory();
|
|
default :
|
|
throw new \Exception("Unknown voip");
|
|
}
|
|
}
|
|
} |