INSERT INTO `cp_filejs` (`id`,`app`,`path`,`modul`,`file_name`,`content`) VALUES ('291','3','u7/collector','','js/api/consts.js---','export const API_URL = \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'https://www.carevents.com/uk\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'\r\nexport const TIMEOUT_MS_LOW = 15 * 1000 // 15 seconds\r\nexport const TIMEOUT_MS_HIGH = 30 * 1000 // 30 seconds\r\nexport const TIMEOUT_MS_HIGHER = 60 * 1000 // 60 seconds\r\n\r\nexport const sendRNMessage = ({\r\n page,\r\n type,\r\n user_id,\r\n association_id,\r\n association_type\r\n}) => {\r\n /*\r\n if (typeof window.ReactNativeWebView === \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'undefined\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\') {\r\n console.warn(`This is not a react native webview, failed to send message: ${type} - ${user_id}`)\r\n }\r\n\r\n try {\r\n if (window !== undefined && window.ReactNativeWebView) {\r\n window.ReactNativeWebView.postMessage(JSON.stringify({\r\n type,\r\n page,\r\n user_id,\r\n association_id,\r\n association_type\r\n }))\r\n } else {\r\n console.warn(`Failed to send message: ${type} - ${user_id}`)\r\n }\r\n } catch (e) {\r\n console.error(e)\r\n }\r\n */\r\n}');