Download src/api/controllers/call.controller.ts from usofn8n/Evo: direct link, hf CLI and curl.
- Browser
- Download file 429 Bytes
-
https://huggingface.co/spaces/usofn8n/Evo/resolve/main/src/api/controllers/call.controller.ts
- Command line
-
hf download hf://spaces/usofn8n/Evo/src/api/controllers/call.controller.ts
-
curl -L -o call.controller.ts https://huggingface.co/spaces/usofn8n/Evo/resolve/main/src/api/controllers/call.controller.ts
429 Bytes
| import { OfferCallDto } from '@api/dto/call.dto'; | |
| import { InstanceDto } from '@api/dto/instance.dto'; | |
| import { WAMonitoringService } from '@api/services/monitor.service'; | |
| export class CallController { | |
| constructor(private readonly waMonitor: WAMonitoringService) {} | |
| public async offerCall({ instanceName }: InstanceDto, data: OfferCallDto) { | |
| return await this.waMonitor.waInstances[instanceName].offerCall(data); | |
| } | |
| } | |