callix-dialer-widget 1.3.19 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -53716,6 +53716,7 @@ function AuthenticatedDialer({ username, dialValue, setDialValue, onLogout, vari
53716
53716
  const operator = clientSdkReactExports.useCallOperator();
53717
53717
  const isMiniMode = variant === "min";
53718
53718
  const { skipManualQualification } = useDialerConfig();
53719
+ console.log("[FloatingDialer/AuthenticatedDialer] 🔧 skipManualQualification:", skipManualQualification);
53719
53720
  const operatorState = clientSdkReactExports.useCallOperatorState();
53720
53721
  const currentCall = clientSdkReactExports.useCallOperatorCurrentCall();
53721
53722
  const currentCallInfo = clientSdkReactExports.useCallOperatorCurrentCallInfo();
@@ -56549,25 +56550,31 @@ function DialerWrapper({ options }) {
56549
56550
  try {
56550
56551
  const domain = data.domain || "villelabrasil.callix.com.br";
56551
56552
  const configUrl = `https://${domain}/sdk/v1/client/user-service/config`;
56553
+ console.log("[Callix Dialer] 🔍 Buscando configuração do serviço:", configUrl);
56552
56554
  const configResponse = await fetch(configUrl, {
56553
56555
  headers: {
56554
- "Cookie": `token=${data.userSessionToken}`
56555
- }
56556
+ "Authorization": `Bearer ${data.userSessionToken}`
56557
+ },
56558
+ credentials: "omit"
56556
56559
  });
56560
+ console.log("[Callix Dialer] 📡 Resposta da config:", configResponse.status);
56557
56561
  if (configResponse.ok) {
56558
56562
  const configData = await configResponse.json();
56563
+ console.log("[Callix Dialer] 📦 Dados da config recebidos:", JSON.stringify(configData, null, 2));
56559
56564
  const shouldSkipQualification = ((_b = (_a2 = configData == null ? void 0 : configData.service) == null ? void 0 : _a2.outboundOptions) == null ? void 0 : _b.skipQualification) === true;
56560
- console.log("[Callix Dialer] skipQualification configurado:", shouldSkipQualification);
56565
+ console.log("[Callix Dialer] skipQualification configurado:", shouldSkipQualification);
56561
56566
  setSkipManualQualification(shouldSkipQualification);
56562
56567
  if (typeof window !== "undefined") {
56563
56568
  const STORAGE_KEYS = getStorageKeys(user);
56564
56569
  localStorage.setItem(STORAGE_KEYS.SKIP_MANUAL_QUALIFICATION, shouldSkipQualification.toString());
56570
+ console.log("[Callix Dialer] 💾 skipQualification salvo no localStorage");
56565
56571
  }
56566
56572
  } else {
56567
- console.warn("[Callix Dialer] Não foi possível buscar config do serviço:", configResponse.status);
56573
+ const errorText = await configResponse.text();
56574
+ console.warn("[Callix Dialer] ⚠️ Erro ao buscar config do serviço:", configResponse.status, errorText);
56568
56575
  }
56569
56576
  } catch (configErr) {
56570
- console.warn("[Callix Dialer] Erro ao buscar config do serviço:", configErr);
56577
+ console.error("[Callix Dialer] Erro ao buscar config do serviço:", configErr);
56571
56578
  }
56572
56579
  if (typeof window !== "undefined") {
56573
56580
  try {