(self, request: Request)
| 189 | tags=[_('Chat')] # type: ignore |
| 190 | ) |
| 191 | def get(self, request: Request): |
| 192 | ip_address = _get_ip_address(request) |
| 193 | return result.success(OpenChatSerializers( |
| 194 | data={'application_id': request.auth.application_id, |
| 195 | 'chat_user_id': request.auth.chat_user_id, 'chat_user_type': request.auth.chat_user_type, |
| 196 | 'ip_address': ip_address, |
| 197 | 'source': { |
| 198 | 'type': ChatSourceChoices.API_CALL.value if request.auth.chat_user_type == ChatUserType.APPLICATION_API_KEY.value else ChatSourceChoices.ONLINE.value}, |
| 199 | 'debug': False}).open()) |
| 200 | |
| 201 | |
| 202 | class CaptchaView(APIView): |
no test coverage detected