Current Path: > home > codekrsu > > ameliagraphics.com > wp-content > plugins > extendify > src > > HelpCenter > lib >
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
api.js | File | 992 bytes | February 14 2025 00:15:08. | |
tour-helpers.js | File | 461 bytes | March 14 2024 20:40:46. | |
utils.js | File | 227 bytes | May 12 2025 16:42:28. |
import { AI_HOST } from '@constants'; import { useAIConsentStore } from '@shared/state/ai-consent'; // Additional data to send with requests const allowList = [ 'siteId', 'partnerId', 'wpVersion', 'wpLanguage', 'devbuild', 'isBlockTheme', 'userId', 'siteProfile', ]; const { showAIConsent, userGaveConsent } = useAIConsentStore.getState(); const extraBody = { ...Object.fromEntries( Object.entries(window.extSharedData).filter(([key]) => allowList.includes(key), ), ), showAIConsent, userGaveConsent, }; export const getAnswer = ({ question, experienceLevel }) => fetch(`${AI_HOST}/api/chat/ask-question`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ question, experienceLevel, ...extraBody }), }); export const rateAnswer = ({ answerId, rating }) => fetch(`${AI_HOST}/api/chat/rate-answer`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ answerId, rating }), });
SILENT KILLER Tool