@desivocal/agents-cdn 0.2.2 → 0.2.3

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.
@@ -38597,19 +38597,12 @@ $export$7.U = 64;
38597
38597
  $export$7.R = 128;
38598
38598
  var _export = $export$7, toString$1 = {}.toString, _cof = function(n) {
38599
38599
  return toString$1.call(n).slice(8, -1);
38600
- }, _iobject, hasRequired_iobject;
38601
- function require_iobject() {
38602
- if (hasRequired_iobject) return _iobject;
38603
- hasRequired_iobject = 1;
38604
- var n = _cof;
38605
- return _iobject = Object("z").propertyIsEnumerable(0) ? Object : function(t) {
38606
- return n(t) == "String" ? t.split("") : Object(t);
38607
- }, _iobject;
38608
- }
38609
- var _defined = function(n) {
38600
+ }, cof$1 = _cof, _iobject = Object("z").propertyIsEnumerable(0) ? Object : function(n) {
38601
+ return cof$1(n) == "String" ? n.split("") : Object(n);
38602
+ }, _defined = function(n) {
38610
38603
  if (n == null) throw TypeError("Can't call method on " + n);
38611
38604
  return n;
38612
- }, IObject = require_iobject(), defined$2 = _defined, _toIobject = function(n) {
38605
+ }, IObject = _iobject, defined$2 = _defined, _toIobject = function(n) {
38613
38606
  return IObject(defined$2(n));
38614
38607
  }, ceil = Math.ceil, floor$1 = Math.floor, _toInteger = function(n) {
38615
38608
  return isNaN(n = +n) ? 0 : (n > 0 ? floor$1 : ceil)(n);
@@ -38648,17 +38641,15 @@ var _sharedExports = _shared.exports, id$1 = 0, px = Math.random(), _uid = funct
38648
38641
  return $keys$2(t, enumBugKeys$1);
38649
38642
  }, _objectGops = {};
38650
38643
  _objectGops.f = Object.getOwnPropertySymbols;
38651
- var _objectPie = {}, hasRequired_objectPie;
38652
- function require_objectPie() {
38653
- return hasRequired_objectPie || (hasRequired_objectPie = 1, _objectPie.f = {}.propertyIsEnumerable), _objectPie;
38654
- }
38644
+ var _objectPie = {};
38645
+ _objectPie.f = {}.propertyIsEnumerable;
38655
38646
  var defined$1 = _defined, _toObject = function(n) {
38656
38647
  return Object(defined$1(n));
38657
38648
  }, _objectAssign, hasRequired_objectAssign;
38658
38649
  function require_objectAssign() {
38659
38650
  if (hasRequired_objectAssign) return _objectAssign;
38660
38651
  hasRequired_objectAssign = 1;
38661
- var n = _descriptors, t = _objectKeys, a = _objectGops, s = require_objectPie(), u = _toObject, f = require_iobject(), p = Object.assign;
38652
+ var n = _descriptors, t = _objectKeys, a = _objectGops, s = _objectPie, u = _toObject, f = _iobject, p = Object.assign;
38662
38653
  return _objectAssign = !p || _fails(function() {
38663
38654
  var g = {}, E = {}, T = Symbol(), D = "abcdefghijklmnopqrst";
38664
38655
  return g[T] = 7, D.split("").forEach(function(G) {
@@ -38855,7 +38846,7 @@ var iterator$1 = _wksExt.f("iterator"), iterator = { default: iterator$1, __esMo
38855
38846
  }, _metaExports = _meta.exports, core = _coreExports, wksExt$1 = _wksExt, defineProperty = _objectDp.f, _wksDefine = function(n) {
38856
38847
  var t = core.Symbol || (core.Symbol = {});
38857
38848
  n.charAt(0) != "_" && !(n in t) && defineProperty(t, n, { value: wksExt$1.f(n) });
38858
- }, getKeys = _objectKeys, gOPS = _objectGops, pIE$1 = require_objectPie(), _enumKeys = function(n) {
38849
+ }, getKeys = _objectKeys, gOPS = _objectGops, pIE$1 = _objectPie, _enumKeys = function(n) {
38859
38850
  var t = getKeys(n), a = gOPS.f;
38860
38851
  if (a)
38861
38852
  for (var s = a(n), u = pIE$1.f, f = 0, p; s.length > f; ) u.call(n, p = s[f++]) && t.push(p);
@@ -38876,7 +38867,7 @@ var toIObject$2 = _toIobject, gOPN$1 = _objectGopn.f, toString = {}.toString, wi
38876
38867
  _objectGopnExt.f = function(t) {
38877
38868
  return windowNames && toString.call(t) == "[object Window]" ? getWindowNames(t) : gOPN$1(toIObject$2(t));
38878
38869
  };
38879
- var _objectGopd = {}, pIE = require_objectPie(), createDesc$1 = _propertyDesc, toIObject$1 = _toIobject, toPrimitive$1 = _toPrimitive, has$2 = _has, IE8_DOM_DEFINE = _ie8DomDefine, gOPD$1 = Object.getOwnPropertyDescriptor;
38870
+ var _objectGopd = {}, pIE = _objectPie, createDesc$1 = _propertyDesc, toIObject$1 = _toIobject, toPrimitive$1 = _toPrimitive, has$2 = _has, IE8_DOM_DEFINE = _ie8DomDefine, gOPD$1 = Object.getOwnPropertyDescriptor;
38880
38871
  _objectGopd.f = _descriptors ? gOPD$1 : function(t, a) {
38881
38872
  if (t = toIObject$1(t), a = toPrimitive$1(a, !0), IE8_DOM_DEFINE) try {
38882
38873
  return gOPD$1(t, a);
@@ -38933,7 +38924,7 @@ USE_NATIVE || ($Symbol = function() {
38933
38924
  return DESCRIPTORS && setter && setSymbolDesc(ObjectProto, t, { configurable: !0, set: a }), wrap(t);
38934
38925
  }, redefine($Symbol[PROTOTYPE], "toString", function() {
38935
38926
  return this._k;
38936
- }), $GOPD.f = $getOwnPropertyDescriptor, $DP.f = $defineProperty, _objectGopn.f = gOPNExt.f = $getOwnPropertyNames, require_objectPie().f = $propertyIsEnumerable, $GOPS.f = $getOwnPropertySymbols, wksExt.f = function(n) {
38927
+ }), $GOPD.f = $getOwnPropertyDescriptor, $DP.f = $defineProperty, _objectGopn.f = gOPNExt.f = $getOwnPropertyNames, _objectPie.f = $propertyIsEnumerable, $GOPS.f = $getOwnPropertySymbols, wksExt.f = function(n) {
38937
38928
  return wrap(wks(n));
38938
38929
  });
38939
38930
  $export$2($export$2.G + $export$2.W + $export$2.F * !USE_NATIVE, { Symbol: $Symbol });
@@ -55570,14 +55561,14 @@ const LOTTIE_OPTIONS = { loop: !0, autoplay: !0, animationData, rendererSettings
55570
55561
  if (!(ie !== "granted" && !await De())) {
55571
55562
  p(!0);
55572
55563
  try {
55573
- const Fe = await fetch(`${u === "dev" ? "https://calling-dev.ringg.ai/ca/api/v0" : u === "stage" ? "https://stage-api2.desivocal.com/ca/api/v0" : "https://calling-prod.ringg.ai/ca/api/v0"}/calling/webcall`, {
55564
+ const Se = u === "dev" ? "https://calling-dev.ringg.ai/ca/api/v0" : u === "stage" ? "https://stage-api2.desivocal.com/ca/api/v0" : "https://calling-prod.ringg.ai/ca/api/v0", Fe = u === "dev" ? "wss://ringg-ai-dev-92tubwpz.livekit.cloud" : u === "stage" ? "wss://ringg-ai-ujrjmhgy.livekit.cloud" : "wss://ringg-ai-prod-r0vhjzhs.livekit.cloud", be = await fetch(`${Se}/calling/webcall`, {
55574
55565
  method: "POST",
55575
55566
  body: JSON.stringify({ agent_id: n, custom_args_values: t }),
55576
55567
  headers: { "Content-Type": "application/json", "X-API-KEY": s }
55577
55568
  });
55578
- if (!Fe.ok) throw new Error("Failed to make call");
55579
- const be = await Fe.json();
55580
- await Z.connect("wss://ringg-ai-dev-92tubwpz.livekit.cloud", be == null ? void 0 : be.user_token), await Z.localParticipant.setMicrophoneEnabled(!0), T(!0), K(!0);
55569
+ if (!be.ok) throw new Error("Failed to make call");
55570
+ const Be = await be.json();
55571
+ await Z.connect(Fe, Be == null ? void 0 : Be.user_token), await Z.localParticipant.setMicrophoneEnabled(!0), T(!0), K(!0);
55581
55572
  } catch (Se) {
55582
55573
  fe({ hasError: !0, message: "Error making call: " + Se.message }), T(!1);
55583
55574
  } finally {