| 564 | return self.open_work_flow(application) |
| 565 | |
| 566 | def open_work_flow(self, application): |
| 567 | self.is_valid(raise_exception=True) |
| 568 | application_id = self.data.get('application_id') |
| 569 | chat_user_id = self.data.get("chat_user_id") |
| 570 | chat_user_type = self.data.get("chat_user_type") |
| 571 | ip_address = self.data.get("ip_address") |
| 572 | source = self.data.get("source") |
| 573 | debug = self.data.get("debug") |
| 574 | chat_id = str(uuid.uuid7()) |
| 575 | ChatInfo(chat_id, chat_user_id, chat_user_type, ip_address, source, [], |
| 576 | [], |
| 577 | application_id, debug).set_cache() |
| 578 | return chat_id |
| 579 | |
| 580 | def open_simple(self, application): |
| 581 | application_id = self.data.get('application_id') |