(adapters = {})
| 36 | } |
| 37 | |
| 38 | function hasConfiguredChatApp(adapters = {}) { |
| 39 | const telegramConfigured = Boolean(adapters.telegram?.token); |
| 40 | const slackConfigured = Boolean( |
| 41 | adapters.slack?.botToken && adapters.slack?.appToken, |
| 42 | ); |
| 43 | const feishuConfigured = Boolean( |
| 44 | adapters.feishu?.appId && adapters.feishu?.appSecret, |
| 45 | ); |
| 46 | |
| 47 | return telegramConfigured || slackConfigured || feishuConfigured; |
| 48 | } |
| 49 | |
| 50 | function getInitialChatAppsTab(adapters = {}) { |
| 51 | if (adapters.telegram?.token) { |
no outgoing calls
no test coverage detected