feat: agent stream for cloudonix OPBX (#261)

* feat: agent stream for cloudonix OPBX

* feat: make cloudonix app name optional

* feat: create application while configuring telephony config

* fix: get telephony configuration from stamped workflow run

* fix: fix vobiz hangup URL
This commit is contained in:
Abhishek 2026-05-02 15:53:58 +05:30 committed by GitHub
parent 5cfdbeff02
commit 7fd3b96470
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
48 changed files with 1529 additions and 545 deletions

View file

@ -446,6 +446,37 @@ class WorkflowClient(BaseDBClient):
)
return result.scalars().first()
async def get_workflow_by_uuid(
self, workflow_uuid: str, organization_id: int
) -> WorkflowModel | None:
async with self.async_session() as session:
result = await session.execute(
select(WorkflowModel)
.options(
selectinload(WorkflowModel.current_definition),
selectinload(WorkflowModel.released_definition),
)
.where(
WorkflowModel.workflow_uuid == workflow_uuid,
WorkflowModel.organization_id == organization_id,
)
)
return result.scalars().first()
async def get_workflow_by_uuid_unscoped(
self, workflow_uuid: str
) -> WorkflowModel | None:
async with self.async_session() as session:
result = await session.execute(
select(WorkflowModel)
.options(
selectinload(WorkflowModel.current_definition),
selectinload(WorkflowModel.released_definition),
)
.where(WorkflowModel.workflow_uuid == workflow_uuid)
)
return result.scalars().first()
async def update_workflow(
self,
workflow_id: int,