@beam3_dev/api_module 0.0.313 → 0.0.317

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.
package/dist/wb3Api.js CHANGED
@@ -34,7 +34,7 @@ const z = {
34
34
  b3Edit8: "#616161",
35
35
  b3Edit9: "#795548"
36
36
  };
37
- async function xe(e, t = void 0, n = void 0) {
37
+ async function Ue(e, t = void 0, n = void 0) {
38
38
  const s = parseInt(e);
39
39
  await fetch(
40
40
  "https://apicarto.ign.fr/api/codes-postaux/communes/" + s,
@@ -50,7 +50,7 @@ async function xe(e, t = void 0, n = void 0) {
50
50
  n && n(i), console.error("Erreur : " + i);
51
51
  });
52
52
  }
53
- async function Ue(e, t = void 0, n = void 0) {
53
+ async function xe(e, t = void 0, n = void 0) {
54
54
  e = encodeURIComponent(e), await fetch(
55
55
  "https://api-adresse.data.gouv.fr/search/?q=" + e + "&limit=15",
56
56
  {
@@ -67,13 +67,13 @@ async function Ue(e, t = void 0, n = void 0) {
67
67
  }
68
68
  async function Ie(e, t = z) {
69
69
  let n = O.now().year;
70
- const s = e, i = [], r = (o) => {
71
- for (let c in o)
72
- i.push({ date: c, comment: o[c] });
70
+ const s = e, i = [], r = (a) => {
71
+ for (let c in a)
72
+ i.push({ date: c, comment: a[c] });
73
73
  };
74
- for (let o = n; o <= n + 1; o++)
74
+ for (let a = n; a <= n + 1; a++)
75
75
  await fetch(
76
- "https://calendrier.api.gouv.fr/jours-feries/metropole/" + o + ".json",
76
+ "https://calendrier.api.gouv.fr/jours-feries/metropole/" + a + ".json",
77
77
  {
78
78
  method: "GET",
79
79
  headers: {
@@ -84,30 +84,30 @@ async function Ie(e, t = z) {
84
84
  r(c);
85
85
  }).catch((c) => console.error("Erreur : " + c));
86
86
  return (() => {
87
- const o = s.length === 0 ? {
87
+ const a = s.length === 0 ? {
88
88
  events: []
89
89
  } : s;
90
90
  for (let c of i)
91
- o.events.findIndex(
91
+ a.events.findIndex(
92
92
  (u) => u.start === O.fromISO(c.date).toISODate() && u.name === "Férié : " + c.comment
93
- ) === -1 && o.events.push({
93
+ ) === -1 && a.events.push({
94
94
  name: "Férié : " + c.comment,
95
95
  start: O.fromISO(c.date).toISODate(),
96
96
  end: O.fromISO(c.date).toISODate(),
97
97
  color: t.b3BusinnessDays,
98
98
  timed: !1
99
99
  });
100
- return o;
100
+ return a;
101
101
  })();
102
102
  }
103
103
  function H(e, t, n) {
104
- const { credentials: s, myArray: i, chunk: r, fn_to_call: a } = e, o = [];
104
+ const { credentials: s, myArray: i, chunk: r, fn_to_call: o } = e, a = [];
105
105
  for (let c = 0; c < i.length; c += r) {
106
106
  const d = i.slice(c, c + r);
107
- o.push(d);
107
+ a.push(d);
108
108
  }
109
109
  Q(
110
- { credentials: s, chunks: o, initLoop: 0, fn: a },
110
+ { credentials: s, chunks: a, initLoop: 0, fn: o },
111
111
  (c) => {
112
112
  t && t(c);
113
113
  },
@@ -117,12 +117,12 @@ function H(e, t, n) {
117
117
  );
118
118
  }
119
119
  function Q(e, t, n) {
120
- const { credentials: s, chunks: i, initLoop: r, fn: a } = e, o = (c) => {
121
- a(
120
+ const { credentials: s, chunks: i, initLoop: r, fn: o } = e, a = (c) => {
121
+ o(
122
122
  s,
123
123
  i[c],
124
124
  () => {
125
- c++, c < i.length && o(c);
125
+ c++, c < i.length && a(c);
126
126
  },
127
127
  (d) => {
128
128
  t && t(d);
@@ -132,7 +132,7 @@ function Q(e, t, n) {
132
132
  }
133
133
  );
134
134
  };
135
- o(r);
135
+ a(r);
136
136
  }
137
137
  async function Ne(e, t, n = !0) {
138
138
  const s = e.events.findIndex((i) => i.uuid === t.uuid);
@@ -143,7 +143,7 @@ function m(e, t) {
143
143
  n.authenticatedRequest(e, t);
144
144
  });
145
145
  }
146
- function Fe(e, t, n) {
146
+ function Re(e, t, n) {
147
147
  $(["DS/DataDragAndDrop/DataDragAndDrop"], (s) => {
148
148
  s.draggable(e, {
149
149
  data: t,
@@ -151,7 +151,7 @@ function Fe(e, t, n) {
151
151
  });
152
152
  });
153
153
  }
154
- function Re(e, t = void 0) {
154
+ function Fe(e, t = void 0) {
155
155
  $(["DS/TagNavigatorProxy/TagNavigatorProxy"], (n) => {
156
156
  let s;
157
157
  s === void 0 && (s = n.createProxy({
@@ -167,7 +167,7 @@ function je(e, t) {
167
167
  });
168
168
  });
169
169
  }
170
- async function De(e, t = void 0, n = void 0) {
170
+ async function ke(e, t = void 0, n = void 0) {
171
171
  await $(
172
172
  ["DS/i3DXCompassServices/i3DXCompassServices"],
173
173
  (s) => {
@@ -195,7 +195,7 @@ function Z() {
195
195
  };
196
196
  }), console.log("%cRETOUR API :", "color:blue", e), e;
197
197
  }
198
- function ke(e, t = void 0, n = void 0) {
198
+ function ve(e, t = void 0, n = void 0) {
199
199
  if (e.tenant) {
200
200
  const s = `https://${e.tenant}-eu1.iam.3dexperience.3ds.com/api/authenticated/user/me?xrequestedwith=xmlhttprequest`;
201
201
  m(s, {
@@ -216,8 +216,8 @@ function M(e, t = void 0, n = void 0) {
216
216
  onComplete(i) {
217
217
  const r = typeof i == "string" ? JSON.parse(i) : i;
218
218
  if (r && "platforms" in r) {
219
- const a = r.platforms.find((o) => o.id === e.tenant.toUpperCase());
220
- t && a ? t(a) : n && n("_getServiceUrl return listServiceUrl = undefined");
219
+ const o = r.platforms.find((a) => a.id === e.tenant.toUpperCase());
220
+ t && o ? t(o) : n && n("_getServiceUrl return listServiceUrl = undefined");
221
221
  } else
222
222
  n && n("_getServiceUrl return oResponse = undefined");
223
223
  },
@@ -227,15 +227,15 @@ function M(e, t = void 0, n = void 0) {
227
227
  });
228
228
  }
229
229
  }
230
- function ve(e, t = void 0, n = void 0) {
230
+ function De(e, t = void 0, n = void 0) {
231
231
  if (e.tenant) {
232
232
  const s = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dpassport&platformId=${e.tenant}`;
233
233
  m(s, {
234
234
  onComplete(i) {
235
235
  const r = JSON.parse(i);
236
236
  if (console.log("serviceId=3dpassport", r), Array.isArray(r) && r.length > 0) {
237
- const a = `${r[0].services[0].url}`;
238
- t && t(a);
237
+ const o = `${r[0].services[0].url}`;
238
+ t && t(o);
239
239
  }
240
240
  },
241
241
  onFailure(i) {
@@ -257,42 +257,42 @@ function Ae(e, t, n) {
257
257
  "Content-Type": "application/json",
258
258
  Accept: "application/json"
259
259
  },
260
- onComplete(r, a, o) {
260
+ onComplete(r, o, a) {
261
261
  const c = JSON.parse(r), d = c.data.map((u) => {
262
262
  const p = u.attributes.name, f = u.id;
263
263
  return { name: p, id: f };
264
264
  });
265
265
  t && t(d, c);
266
266
  },
267
- onFailure(r, a) {
268
- const o = r;
269
- o.msg = a.errormsg, o.errCode = a.errorcode, n && n(o);
267
+ onFailure(r, o) {
268
+ const a = r;
269
+ a.msg = o.errormsg, a.errCode = o.errorcode, n && n(a);
270
270
  }
271
271
  });
272
272
  }
273
273
  function Pe(e, t = void 0, n = void 0) {
274
274
  let s = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&limit=-1`;
275
275
  m(s, {
276
- onComplete(i, r, a) {
277
- const o = JSON.parse(i);
278
- console.log("_AppMngt_get_users => ", o), t && t(o);
276
+ onComplete(i, r, o) {
277
+ const a = JSON.parse(i);
278
+ console.log("_AppMngt_get_users => ", a), t && t(a);
279
279
  },
280
280
  onFailure(i, r) {
281
- const a = i;
282
- a.msg = r.errormsg, a.errCode = r.errorcode, n && n(a);
281
+ const o = i;
282
+ o.msg = r.errormsg, o.errCode = r.errorcode, n && n(o);
283
283
  }
284
284
  });
285
285
  }
286
286
  function Le(e, t, n = void 0, s = void 0) {
287
287
  let i = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&id=${t}`;
288
288
  m(i, {
289
- onComplete(r, a, o) {
289
+ onComplete(r, o, a) {
290
290
  const c = JSON.parse(r);
291
291
  n && n(c);
292
292
  },
293
- onFailure(r, a) {
294
- const o = r;
295
- o.msg = a.errormsg, o.errCode = a.errorcode, s && s(o);
293
+ onFailure(r, o) {
294
+ const a = r;
295
+ a.msg = o.errormsg, a.errCode = o.errorcode, s && s(a);
296
296
  }
297
297
  });
298
298
  }
@@ -301,7 +301,7 @@ const j = {
301
301
  Accept: "application/json,text/javascript,*/*"
302
302
  };
303
303
  function Me(e, t, n = void 0, s = void 0) {
304
- const { space: i, currentUser: r } = e, o = `${i}${{
304
+ const { space: i, currentUser: r } = e, a = `${i}${{
305
305
  URIUGr: "/3drdfpersist/resources/v1/usersgroup"
306
306
  }.URIUGr}`, c = {
307
307
  groups: [
@@ -315,7 +315,7 @@ function Me(e, t, n = void 0, s = void 0) {
315
315
  }
316
316
  ]
317
317
  };
318
- m(o, {
318
+ m(a, {
319
319
  method: "POST",
320
320
  headers: j,
321
321
  data: JSON.stringify(c),
@@ -330,7 +330,7 @@ function Me(e, t, n = void 0, s = void 0) {
330
330
  });
331
331
  }
332
332
  function Je(e, t, n = void 0, s = void 0) {
333
- const { space: i, tenant: r } = e, a = i, o = `/3drdfpersist/v1/resources/${t}`, c = `?$mask=dsaccess:Mask.GroupUI.Properties&tenant=dstenant:${r}`, d = `${a}${o}${c}`;
333
+ const { space: i, tenant: r } = e, o = i, a = `/3drdfpersist/v1/resources/${t}`, c = `?$mask=dsaccess:Mask.GroupUI.Properties&tenant=dstenant:${r}`, d = `${o}${a}${c}`;
334
334
  m(d, {
335
335
  opts: {
336
336
  method: "GET",
@@ -349,10 +349,10 @@ function Je(e, t, n = void 0, s = void 0) {
349
349
  });
350
350
  }
351
351
  function ee(e, t = void 0, n = void 0) {
352
- const { _usersgroup: s, tenant: i } = e, r = s, a = "/3drdfpersist/resources/v1/option-sets/dsusergroup:ListOfGroupResponsibilities/options", o = `?tenant=dstenant:${i}`, c = {
352
+ const { _usersgroup: s, tenant: i } = e, r = s, o = "/3drdfpersist/resources/v1/option-sets/dsusergroup:ListOfGroupResponsibilities/options", a = `?tenant=dstenant:${i}`, c = {
353
353
  method: "GET",
354
354
  Accept: "application/json,*/*,test/javascript"
355
- }, d = `${r}${a}${o}`;
355
+ }, d = `${r}${o}${a}`;
356
356
  m(d, {
357
357
  OPTsH: c,
358
358
  onComplete(u) {
@@ -367,7 +367,7 @@ function ee(e, t = void 0, n = void 0) {
367
367
  function Ge(e, t = void 0, n = void 0) {
368
368
  const { _usersgroup: s, currentUser: i, numMax: r } = e;
369
369
  r || (r = 50);
370
- const a = "/3drdfpersist/resources/v1/usersgroup", o = "?select=uri,title,description,owner,members,pending_members,creation_date,modification_date", c = `&top=${r}`, d = `${s}${a}${o}${c}`, p = { method: "GET", headers: {
370
+ const o = "/3drdfpersist/resources/v1/usersgroup", a = "?select=uri,title,owner,members", c = `&top=${r}`, d = `${s}${o}${a}${c}`, p = { method: "GET", headers: {
371
371
  "Content-Type": "application/json",
372
372
  Accept: "application/json,text/javascript,*/*"
373
373
  } };
@@ -375,16 +375,16 @@ function Ge(e, t = void 0, n = void 0) {
375
375
  m(d, {
376
376
  opts: p,
377
377
  onComplete(f) {
378
- const l = JSON.parse(f), g = {}, h = l.groups.filter((_) => _.uri.startsWith("uuid:"));
378
+ const l = JSON.parse(f), g = {}, h = l.groups.filter((y) => y.uri.startsWith("uuid:"));
379
379
  if (i && Object.keys(i).length > 0) {
380
- const _ = h.filter((y) => y.owner === i.email), S = h.filter((y) => y.members.includes(i.email)), w = _.concat(S);
380
+ const y = h.filter((_) => _.owner === i.email), S = h.filter((_) => _.members.includes(i.email)), w = y.concat(S);
381
381
  g.iam = w, g.UG = h, g.iamMember = S, ee(
382
382
  e,
383
- (y) => {
384
- g.rules = y, t && t(g);
383
+ (_) => {
384
+ g.rules = _, t && t(g);
385
385
  },
386
- (y) => {
387
- y.function += ", getUserGroupsList()", n && n(y);
386
+ (_) => {
387
+ _.function += ", getUserGroupsList()", n && n(_);
388
388
  }
389
389
  );
390
390
  }
@@ -406,22 +406,65 @@ function Ge(e, t = void 0, n = void 0) {
406
406
  n(l);
407
407
  }
408
408
  }
409
+ function Ee(e, t, n) {
410
+ const { base_url: s, lists_uri: i } = e, r = {
411
+ "Content-Type": "application/json",
412
+ Accept: "application/json,text/javascript,*/*"
413
+ }, o = {
414
+ baseUrl: s,
415
+ uri: "/3drdfpersist/resources/v1/usersgroup/groups"
416
+ }, a = o.baseUrl + o.uri, c = {
417
+ method: "POST",
418
+ headers: r,
419
+ body: JSON.stringify({ groups: i })
420
+ };
421
+ JSON.stringify({ groups: i });
422
+ try {
423
+ m(a, {
424
+ options: c,
425
+ onComplete(d) {
426
+ t && t(d);
427
+ },
428
+ onFailure(d, u) {
429
+ const p = {
430
+ infoError: d,
431
+ msg: u,
432
+ fonction: "getUserGroupsByURIList()",
433
+ catch: new Error("Erreur sur la fonction getUserGroupsByURIList()", {
434
+ cause: d
435
+ })
436
+ };
437
+ n(p);
438
+ }
439
+ });
440
+ } catch (d) {
441
+ console.log(d);
442
+ const u = {
443
+ infoError: d,
444
+ fonction: "getUserGroupsByURIList()",
445
+ catch: new Error("Erreur sur la fonction getUserGroupsByURIList()", {
446
+ cause: d
447
+ })
448
+ };
449
+ n(u);
450
+ }
451
+ }
409
452
  function Ke(e, t) {
410
453
  const { space: n } = e, i = `${n}/3drdfpersist/resources/v1/usersgroup/${t}`;
411
454
  m(i, {
412
455
  method: "DELETE"
413
456
  });
414
457
  }
415
- function qe(e, t, n, s = void 0, i = void 0) {
416
- const { space: r, tenant: a } = e, o = {
458
+ function Be(e, t, n, s = void 0, i = void 0) {
459
+ const { space: r, tenant: o } = e, a = {
417
460
  URITI: "/3drdfpersist/resources/v1/template-instances",
418
461
  URIUGr: "/3drdfpersist/resources/v1/usersgroup",
419
462
  nextURICh: "/characteristics",
420
463
  nextURIGr: "/group",
421
464
  nexURImem: "/members",
422
465
  OPTsTI: "?$mask=dsaccess:Mask.GroupUI.Properties",
423
- OPTsTenant: `tenant=dstenant:${a}`
424
- }, c = n, d = `${r}${o.URIUGr}/${t}`, u = JSON.stringify(c);
466
+ OPTsTenant: `tenant=dstenant:${o}`
467
+ }, c = n, d = `${r}${a.URIUGr}/${t}`, u = JSON.stringify(c);
425
468
  m(d, {
426
469
  headers: j,
427
470
  method: "PATCH",
@@ -435,9 +478,9 @@ function qe(e, t, n, s = void 0, i = void 0) {
435
478
  }
436
479
  });
437
480
  }
438
- function Be(e, t, n, s = void 0, i = void 0) {
439
- const { space: r } = e, o = `${r}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
440
- m(o, {
481
+ function qe(e, t, n, s = void 0, i = void 0) {
482
+ const { space: r } = e, a = `${r}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
483
+ m(a, {
441
484
  method: "PATCH",
442
485
  headers: j,
443
486
  data: JSON.stringify(n),
@@ -450,9 +493,9 @@ function Be(e, t, n, s = void 0, i = void 0) {
450
493
  }
451
494
  });
452
495
  }
453
- function Ee(e, t, n = void 0, s = void 0) {
454
- const { space: i } = e, a = `${i}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
455
- m(a, {
496
+ function Xe(e, t, n = void 0, s = void 0) {
497
+ const { space: i } = e, o = `${i}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
498
+ m(o, {
456
499
  opts: {
457
500
  method: "GET",
458
501
  headers: {
@@ -475,13 +518,13 @@ async function te(e, t, n) {
475
518
  onComplete(i) {
476
519
  i = JSON.parse(i), t && t(i.csrf);
477
520
  },
478
- onFailure(i, r, a) {
479
- n && n({ error: i, headers: r, xhr: a });
521
+ onFailure(i, r, o) {
522
+ n && n({ error: i, headers: r, xhr: o });
480
523
  }
481
524
  });
482
525
  }
483
526
  }
484
- var U = {};
527
+ var x = {};
485
528
  function ne(e, t) {
486
529
  return Object.prototype.hasOwnProperty.call(e, t);
487
530
  }
@@ -492,16 +535,16 @@ var se = function(e, t, n, s) {
492
535
  return i;
493
536
  var r = /\+/g;
494
537
  e = e.split(t);
495
- var a = 1e3;
496
- s && typeof s.maxKeys == "number" && (a = s.maxKeys);
497
- var o = e.length;
498
- a > 0 && o > a && (o = a);
499
- for (var c = 0; c < o; ++c) {
538
+ var o = 1e3;
539
+ s && typeof s.maxKeys == "number" && (o = s.maxKeys);
540
+ var a = e.length;
541
+ o > 0 && a > o && (a = o);
542
+ for (var c = 0; c < a; ++c) {
500
543
  var d = e[c].replace(r, "%20"), u = d.indexOf(n), p, f, l, g;
501
544
  u >= 0 ? (p = d.substr(0, u), f = d.substr(u + 1)) : (p = d, f = ""), l = decodeURIComponent(p), g = decodeURIComponent(f), ne(i, l) ? Array.isArray(i[l]) ? i[l].push(g) : i[l] = [i[l], g] : i[l] = g;
502
545
  }
503
546
  return i;
504
- }, x = function(e) {
547
+ }, U = function(e) {
505
548
  switch (typeof e) {
506
549
  case "string":
507
550
  return e;
@@ -514,14 +557,14 @@ var se = function(e, t, n, s) {
514
557
  }
515
558
  }, ie = function(e, t, n, s) {
516
559
  return t = t || "&", n = n || "=", e === null && (e = void 0), typeof e == "object" ? Object.keys(e).map(function(i) {
517
- var r = encodeURIComponent(x(i)) + n;
518
- return Array.isArray(e[i]) ? e[i].map(function(a) {
519
- return r + encodeURIComponent(x(a));
520
- }).join(t) : r + encodeURIComponent(x(e[i]));
521
- }).filter(Boolean).join(t) : s ? encodeURIComponent(x(s)) + n + encodeURIComponent(x(e)) : "";
560
+ var r = encodeURIComponent(U(i)) + n;
561
+ return Array.isArray(e[i]) ? e[i].map(function(o) {
562
+ return r + encodeURIComponent(U(o));
563
+ }).join(t) : r + encodeURIComponent(U(e[i]));
564
+ }).filter(Boolean).join(t) : s ? encodeURIComponent(U(s)) + n + encodeURIComponent(U(e)) : "";
522
565
  };
523
- U.decode = U.parse = se;
524
- U.encode = U.stringify = ie;
566
+ x.decode = x.parse = se;
567
+ x.encode = x.stringify = ie;
525
568
  async function J(e, t = void 0, n = void 0, s = void 0) {
526
569
  const i = e.space;
527
570
  if (t === void 0) {
@@ -530,22 +573,22 @@ async function J(e, t = void 0, n = void 0, s = void 0) {
530
573
  }
531
574
  const r = i + `/resources/v1/modeler/documents/${t}`;
532
575
  m(r, {
533
- onComplete(a, o, c) {
534
- const d = JSON.parse(a);
576
+ onComplete(o, a, c) {
577
+ const d = JSON.parse(o);
535
578
  n && n(d);
536
579
  },
537
- onFailure(a) {
538
- s && s(a);
580
+ onFailure(o) {
581
+ s && s(o);
539
582
  }
540
583
  });
541
584
  }
542
- async function Xe(e, t = void 0, n = void 0, s = void 0) {
585
+ async function We(e, t = void 0, n = void 0, s = void 0) {
543
586
  const i = e.space;
544
587
  if (t === void 0) {
545
588
  console.log("Le paramètre docids est obligatoire");
546
589
  return;
547
590
  }
548
- let r = `${i}/resources/v1/modeler/documents/ids?$include=!files,!ownerInfo,!originatorInfo,!relOwnerInfo'`, a = U.stringify({
591
+ let r = `${i}/resources/v1/modeler/documents/ids?$include=!files,!ownerInfo,!originatorInfo,!relOwnerInfo'`, o = x.stringify({
549
592
  $ids: t.toString().replace('"', "").replace("[", "").replace("]", "")
550
593
  });
551
594
  m(r, {
@@ -553,13 +596,13 @@ async function Xe(e, t = void 0, n = void 0, s = void 0) {
553
596
  headers: {
554
597
  "Content-Type": "application/x-www-form-urlencoded"
555
598
  },
556
- data: a,
557
- onComplete(o, c, d) {
558
- const u = JSON.parse(o);
599
+ data: o,
600
+ onComplete(a, c, d) {
601
+ const u = JSON.parse(a);
559
602
  n && n(u);
560
603
  },
561
- onFailure(o) {
562
- s && s(o);
604
+ onFailure(a) {
605
+ s && s(a);
563
606
  }
564
607
  });
565
608
  }
@@ -567,16 +610,16 @@ function N(e, t = void 0, n = void 0) {
567
610
  if (e.objID && e.objID !== "") {
568
611
  let s = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
569
612
  m(s, {
570
- onComplete(i, r, a) {
571
- const o = JSON.parse(i);
572
- e.success = !0, e.token = o?.csrf?.value, e.datas = o?.data[0], t && t(e);
613
+ onComplete(i, r, o) {
614
+ const a = JSON.parse(i);
615
+ e.success = !0, e.token = a?.csrf?.value, e.datas = a?.data[0], t && t(e);
573
616
  },
574
617
  onFailure(i) {
575
618
  n && n(i);
576
619
  }
577
620
  });
578
621
  } else
579
- T(
622
+ b(
580
623
  e,
581
624
  (s) => {
582
625
  console.log("_3DSpace_get_csrf / _3DSpace_csrf", s), e.token = s, t && t(e);
@@ -586,26 +629,26 @@ function N(e, t = void 0, n = void 0) {
586
629
  }
587
630
  );
588
631
  }
589
- function T(e, t = void 0, n = void 0) {
632
+ function b(e, t = void 0, n = void 0) {
590
633
  if (e.space) {
591
634
  const s = e.space + "/resources/v1/application/CSRF";
592
635
  m(s, {
593
- onComplete(i, r, a) {
594
- const o = JSON.parse(i);
595
- t && t(o.csrf.value);
636
+ onComplete(i, r, o) {
637
+ const a = JSON.parse(i);
638
+ t && t(a.csrf.value);
596
639
  },
597
- onFailure(i, r, a) {
640
+ onFailure(i, r, o) {
598
641
  n && n({
599
642
  response: i,
600
643
  headers: r,
601
- xhr: a
644
+ xhr: o
602
645
  });
603
646
  }
604
647
  });
605
648
  } else
606
649
  n && n("ERROR : url du 3DSpace non défini.");
607
650
  }
608
- function D(e, t = void 0, n = void 0) {
651
+ function k(e, t = void 0, n = void 0) {
609
652
  let s = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
610
653
  N(
611
654
  e,
@@ -615,12 +658,12 @@ function D(e, t = void 0, n = void 0) {
615
658
  headers: {
616
659
  ENO_CSRF_TOKEN: e.token
617
660
  },
618
- onComplete(r, a) {
661
+ onComplete(r, o) {
619
662
  const c = JSON.parse(r).data[0].dataelements.ticketURL;
620
- t && t(c, a);
663
+ t && t(c, o);
621
664
  },
622
- onFailure(r, a) {
623
- console.warn("☠️ error => ", r, a), n && n(r, a);
665
+ onFailure(r, o) {
666
+ console.warn("☠️ error => ", r, o), n && n(r, o);
624
667
  }
625
668
  });
626
669
  },
@@ -629,30 +672,30 @@ function D(e, t = void 0, n = void 0) {
629
672
  }
630
673
  );
631
674
  }
632
- function We(e, t, n = void 0, s = void 0, i = void 0) {
675
+ function Ve(e, t, n = void 0, s = void 0, i = void 0) {
633
676
  const r = `${e.space}/resources/v1/modeler/documents/${t}/files/DownloadTicket`;
634
677
  n || (n = e.token), m(r, {
635
678
  method: "PUT",
636
679
  headers: {
637
680
  ENO_CSRF_TOKEN: n
638
681
  },
639
- onComplete(a) {
640
- let o = JSON.parse(a);
641
- if (console.log("☠️ info => ", o), o.success === !0)
682
+ onComplete(o) {
683
+ let a = JSON.parse(o);
684
+ if (console.log("☠️ info => ", a), a.success === !0)
642
685
  try {
643
- const c = o.data[0].dataelements.ticketURL;
686
+ const c = a.data[0].dataelements.ticketURL;
644
687
  s && s(c);
645
688
  } catch (c) {
646
689
  i && i(c);
647
690
  }
648
691
  },
649
- onFailure(a) {
650
- i && i(a);
692
+ onFailure(o) {
693
+ i && i(o);
651
694
  }
652
695
  });
653
696
  }
654
- function G(e, t, n, s, i, r = void 0, a = void 0) {
655
- const o = () => ae(
697
+ function G(e, t, n, s, i, r = void 0, o = void 0) {
698
+ const a = () => oe(
656
699
  e,
657
700
  t,
658
701
  n,
@@ -660,20 +703,20 @@ function G(e, t, n, s, i, r = void 0, a = void 0) {
660
703
  i,
661
704
  e.token,
662
705
  r,
663
- a
706
+ o
664
707
  );
665
- e.token ? o() : N(
708
+ e.token ? a() : N(
666
709
  e,
667
710
  t,
668
711
  (c) => {
669
712
  console.log(
670
713
  "_3DSpace_file_update | _3DSpace_get_csrf| onDone | result",
671
714
  c
672
- ), e.token = c, o();
715
+ ), e.token = c, a();
673
716
  }
674
717
  );
675
718
  }
676
- function ae(e, t, n, s, i, r, a = void 0, o = void 0) {
719
+ function oe(e, t, n, s, i, r, o = void 0, a = void 0) {
677
720
  const c = e.space + `/resources/v1/modeler/documents/files/CheckinTicket?tenant=${e.tenant.toUpperCase()}&e6w-lang=fr&e6w-timezone=-60&xrequestedwith=xmlhttprequest`;
678
721
  m(c, {
679
722
  method: "PUT",
@@ -694,8 +737,8 @@ function ae(e, t, n, s, i, r, a = void 0, o = void 0) {
694
737
  s instanceof Blob ? h = s : h = new Blob([s], {
695
738
  type: "text/plain"
696
739
  }), g.append(l.ticketparamname, l.ticket), g.append("file_0", h, i);
697
- const _ = {};
698
- _.method = "POST", _.data = g, _.onComplete = function(S) {
740
+ const y = {};
741
+ y.method = "POST", y.data = g, y.onComplete = function(S) {
699
742
  let w = {
700
743
  method: "PUT",
701
744
  headers: {
@@ -722,32 +765,32 @@ function ae(e, t, n, s, i, r, a = void 0, o = void 0) {
722
765
  ]
723
766
  }),
724
767
  type: "json",
725
- onComplete(y) {
726
- a && a(y);
768
+ onComplete(_) {
769
+ o && o(_);
727
770
  },
728
- onFailure(y) {
729
- o && o(y);
771
+ onFailure(_) {
772
+ a && a(_);
730
773
  }
731
774
  };
732
775
  e.tenant.toUpperCase(), m(
733
776
  e.space + `/resources/v1/modeler/documents/?$include=versions&tenant=${e.tenant.toUpperCase()}&e6w-lang=fr&e6w-timezone=-60&xrequestedwith=xmlhttprequest`,
734
777
  w
735
778
  );
736
- }, _.onFailure = function(S) {
737
- o && o(S);
738
- }, _.timeout = 0, m(l.ticketURL, _);
779
+ }, y.onFailure = function(S) {
780
+ a && a(S);
781
+ }, y.timeout = 0, m(l.ticketURL, y);
739
782
  }
740
783
  });
741
784
  }
742
- async function Ve(e, t, n = void 0, s = void 0) {
785
+ async function Ye(e, t, n = void 0, s = void 0) {
743
786
  e.space, e.token, e.ctx;
744
787
  const i = e?.description, r = e?.title;
745
788
  if (!t) {
746
789
  console.warn("Error: docId undefined"), s && s("Error: docId undefined");
747
790
  return;
748
791
  }
749
- let a = `${e.space}/resources/v1/modeler/documents/${t}`;
750
- const o = JSON.stringify({
792
+ let o = `${e.space}/resources/v1/modeler/documents/${t}`;
793
+ const a = JSON.stringify({
751
794
  data: [
752
795
  {
753
796
  dataelements: {
@@ -757,12 +800,12 @@ async function Ve(e, t, n = void 0, s = void 0) {
757
800
  }
758
801
  ]
759
802
  });
760
- m(a, {
803
+ m(o, {
761
804
  method: "PUT",
762
805
  headers: {
763
806
  ENO_CSRF_TOKEN: e.token
764
807
  },
765
- data: o,
808
+ data: a,
766
809
  type: "json",
767
810
  onComplete(c) {
768
811
  n && n(c);
@@ -772,9 +815,9 @@ async function Ve(e, t, n = void 0, s = void 0) {
772
815
  }
773
816
  });
774
817
  }
775
- async function Ye(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0) {
776
- let { tenant: a, cs_name: o } = e;
777
- if (!a && !o) {
818
+ async function ze(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0) {
819
+ let { tenant: o, cs_name: a } = e;
820
+ if (!o && !a) {
778
821
  i && i("Credentials undefined");
779
822
  return;
780
823
  }
@@ -783,11 +826,11 @@ async function Ye(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0)
783
826
  return;
784
827
  }
785
828
  const c = O.now().ts;
786
- let d = `https://${a.toLowerCase()}-eu1-space.3dexperience.3ds.com/enovia/resources/enocsmrest/collabspaces/${encodeURIComponent(
787
- o
788
- )}/ticket?id=${c}&tenant=${a.toUpperCase()}&xrequestedwith=xmlhttprequest`;
829
+ let d = `https://${o.toLowerCase()}-eu1-space.3dexperience.3ds.com/enovia/resources/enocsmrest/collabspaces/${encodeURIComponent(
830
+ a
831
+ )}/ticket?id=${c}&tenant=${o.toUpperCase()}&xrequestedwith=xmlhttprequest`;
789
832
  m(
790
- `https://${a.toLowerCase()}-eu1-space.3dexperience.3ds.com/enovia/resources/enocsmrest/session?tenant=${a.toUpperCase()}&xrequestedwith=xmlhttprequest`,
833
+ `https://${o.toLowerCase()}-eu1-space.3dexperience.3ds.com/enovia/resources/enocsmrest/session?tenant=${o.toUpperCase()}&xrequestedwith=xmlhttprequest`,
791
834
  {
792
835
  method: "GET",
793
836
  onComplete(u) {
@@ -803,18 +846,18 @@ async function Ye(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0)
803
846
  onComplete(l, g, h) {
804
847
  try {
805
848
  if (l = JSON.parse(l), l?.ticket) {
806
- const { ticket: _, actionurl: S, jobticket: w } = l;
807
- K(
808
- { dataelements: { ticket: _, ticketURL: S } },
849
+ const { ticket: y, actionurl: S, jobticket: w } = l;
850
+ E(
851
+ { dataelements: { ticket: y, ticketURL: S } },
809
852
  n,
810
853
  t,
811
- (y) => {
812
- const R = new DOMParser().parseFromString(
813
- y,
854
+ (_) => {
855
+ const F = new DOMParser().parseFromString(
856
+ _,
814
857
  "text/html"
815
- ).body.firstChild.querySelector("input").getAttributeNode("value").value, k = `https://${a.toLowerCase()}-eu1-space.3dexperience.3ds.com/enovia/resources/enocsmrest/collabspaces/${encodeURIComponent(o)}/contents?receipt=${encodeURIComponent(R)}`;
858
+ ).body.firstChild.querySelector("input").getAttributeNode("value").value, v = `https://${o.toLowerCase()}-eu1-space.3dexperience.3ds.com/enovia/resources/enocsmrest/collabspaces/${encodeURIComponent(a)}/contents?receipt=${encodeURIComponent(F)}`;
816
859
  let W = /(?:\.([^.]+))?$/.exec(t)[1];
817
- const v = JSON.stringify({
860
+ const D = JSON.stringify({
818
861
  actions: [],
819
862
  businessobj: {
820
863
  description: e?.description ? e?.description : "",
@@ -828,38 +871,38 @@ async function Ye(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0)
828
871
  title: W ? t.split(".").slice(0, -1).join(".") : t,
829
872
  type: {}
830
873
  },
831
- collabspace: o
874
+ collabspace: a
832
875
  });
833
- m(k, {
876
+ m(v, {
834
877
  method: "POST",
835
878
  headers: {
836
879
  Accept: "application/json",
837
880
  "Content-Type": "application/json;charset=UTF-8",
838
881
  "X-DS-CSRFTOKEN": p
839
882
  },
840
- data: v,
883
+ data: D,
841
884
  type: "json",
842
- onComplete(I, Ce, Te) {
885
+ onComplete(I, Ce, be) {
843
886
  s && s(I);
844
887
  },
845
888
  onFailure(I) {
846
889
  console.warn(
847
890
  "_3DSpace_Upload_Doc | pushFileInFcs | onFailure",
848
- { url: k, bodyRequest: v, err: I }
891
+ { url: v, bodyRequest: D, err: I }
849
892
  ), i && i(I);
850
893
  }
851
894
  });
852
895
  },
853
- (y) => {
854
- console.warn("pushFileInFcs", y), i && i(y);
896
+ (_) => {
897
+ console.warn("pushFileInFcs", _), i && i(_);
855
898
  },
856
- (y) => {
857
- r && r({ fileName: t, progress: y });
899
+ (_) => {
900
+ r && r({ fileName: t, progress: _ });
858
901
  }
859
902
  );
860
903
  }
861
- } catch (_) {
862
- i && i(_);
904
+ } catch (y) {
905
+ i && i(y);
863
906
  }
864
907
  },
865
908
  onFailure(l) {
@@ -876,18 +919,18 @@ async function Ye(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0)
876
919
  }
877
920
  );
878
921
  }
879
- async function ze(e, t, n, s = void 0, i = void 0) {
922
+ async function He(e, t, n, s = void 0, i = void 0) {
880
923
  e.space, e.token, e.ctx, J(
881
924
  e,
882
925
  t,
883
926
  (r) => {
884
- const a = r.data[0].relateddata.files[0].id, o = r.data[0].relateddata.files[0].dataelements.title;
927
+ const o = r.data[0].relateddata.files[0].id, a = r.data[0].relateddata.files[0].dataelements.title;
885
928
  G(
886
929
  e,
887
930
  t,
888
- a,
889
- n,
890
931
  o,
932
+ n,
933
+ a,
891
934
  (c) => {
892
935
  s && s(c);
893
936
  },
@@ -901,13 +944,13 @@ async function ze(e, t, n, s = void 0, i = void 0) {
901
944
  }
902
945
  );
903
946
  }
904
- async function He(e, t, n, s, i = void 0, r = void 0) {
905
- oe(
947
+ async function Qe(e, t, n, s, i = void 0, r = void 0) {
948
+ ae(
906
949
  e,
907
- (a) => {
908
- a?.items >= 1 && a.data.forEach((o) => {
909
- K(
910
- o,
950
+ (o) => {
951
+ o?.items >= 1 && o.data.forEach((a) => {
952
+ E(
953
+ a,
911
954
  t,
912
955
  n,
913
956
  (c) => {
@@ -929,10 +972,10 @@ async function He(e, t, n, s, i = void 0, r = void 0) {
929
972
  );
930
973
  });
931
974
  },
932
- (a) => console.warn(a)
975
+ (o) => console.warn(o)
933
976
  );
934
977
  }
935
- function oe(e, t = void 0, n = void 0) {
978
+ function ae(e, t = void 0, n = void 0) {
936
979
  if (e?.space && e.token && e.ctx) {
937
980
  let s = `${e.space}/resources/v1/modeler/documents/files/CheckinTicket`;
938
981
  m(s, {
@@ -943,7 +986,7 @@ function oe(e, t = void 0, n = void 0) {
943
986
  "Content-Type": "application/json",
944
987
  SecurityContext: e.ctx
945
988
  },
946
- onComplete(i, r, a) {
989
+ onComplete(i, r, o) {
947
990
  try {
948
991
  i = JSON.parse(i);
949
992
  } catch {
@@ -957,15 +1000,15 @@ function oe(e, t = void 0, n = void 0) {
957
1000
  } else
958
1001
  console.log("Error de credentials", e);
959
1002
  }
960
- function K(e, t, n, s = void 0, i = void 0, r = void 0) {
1003
+ function E(e, t, n, s = void 0, i = void 0, r = void 0) {
961
1004
  console.log("pushFileInFcs", { fcs__jobTicket: e, fileData: t, fileName: n });
962
- let a = new FormData();
1005
+ let o = new FormData();
963
1006
  t instanceof Blob || (t = new Blob([t], {
964
1007
  type: "text/plain"
965
- })), a.append("__fcs__jobTicket", e.dataelements.ticket), a.append("file-name", n), a.append("file_0", t, n), a.append("file-title", n), a.append("file-description", n);
966
- let o = e.dataelements.ticketURL;
1008
+ })), o.append("__fcs__jobTicket", e.dataelements.ticket), o.append("file-name", n), o.append("file_0", t, n), o.append("file-title", n), o.append("file-description", n);
1009
+ let a = e.dataelements.ticketURL;
967
1010
  const c = new XMLHttpRequest();
968
- c.open("POST", o, !0), c.upload.onprogress = function(d) {
1011
+ c.open("POST", a, !0), c.upload.onprogress = function(d) {
969
1012
  if (d.lengthComputable) {
970
1013
  const u = d.loaded / d.total * 100;
971
1014
  r && r(u);
@@ -974,12 +1017,12 @@ function K(e, t, n, s = void 0, i = void 0, r = void 0) {
974
1017
  c.status === 200 ? s && s(c.responseText.replace(/[\n\r]/g, "")) : i && i(c.statusText);
975
1018
  }, c.onerror = function() {
976
1019
  i && i(c.statusText);
977
- }, c.send(a);
1020
+ }, c.send(o);
978
1021
  }
979
1022
  function re(e, t, n, s = void 0, i = void 0, r = void 0) {
980
1023
  console.log("relatedDocAndFile", { credentials: e, receipt: t, filename: n });
981
- const a = (d) => d.indexOf(".") === -1 ? d : d.split(".").slice(0, -1).join(".");
982
- let o = "temp_" + O.now().ts, c = e.space + "/resources/v1/modeler/documents/?e6w-lang=fr&e6w-timezone=-120&xrequestedwith=xmlhttprequest";
1024
+ const o = (d) => d.indexOf(".") === -1 ? d : d.split(".").slice(0, -1).join(".");
1025
+ let a = "temp_" + O.now().ts, c = e.space + "/resources/v1/modeler/documents/?e6w-lang=fr&e6w-timezone=-120&xrequestedwith=xmlhttprequest";
983
1026
  m(c, {
984
1027
  method: "POST",
985
1028
  headers: {
@@ -993,7 +1036,7 @@ function re(e, t, n, s = void 0, i = void 0, r = void 0) {
993
1036
  {
994
1037
  type: "Document",
995
1038
  dataelements: {
996
- title: a(n),
1039
+ title: o(n),
997
1040
  description: s
998
1041
  },
999
1042
  relateddata: {
@@ -1007,7 +1050,7 @@ function re(e, t, n, s = void 0, i = void 0, r = void 0) {
1007
1050
  }
1008
1051
  ]
1009
1052
  },
1010
- tempId: o
1053
+ tempId: a
1011
1054
  }
1012
1055
  ]
1013
1056
  }),
@@ -1023,9 +1066,9 @@ function re(e, t, n, s = void 0, i = void 0, r = void 0) {
1023
1066
  }
1024
1067
  });
1025
1068
  }
1026
- function F(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0, a = !1) {
1027
- const o = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
1028
- m(o, {
1069
+ function R(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0, o = !1) {
1070
+ const a = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
1071
+ m(a, {
1029
1072
  method: "GET",
1030
1073
  onComplete(c) {
1031
1074
  const d = JSON.parse(c);
@@ -1036,24 +1079,24 @@ function F(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0, a = !1
1036
1079
  p = t;
1037
1080
  let h = g.couples;
1038
1081
  h = h.filter(
1039
- (_, S, w) => S === w.findIndex(
1040
- (y) => y.organization.pid === _.organization.pid && y.role.pid === _.role.pid
1082
+ (y, S, w) => S === w.findIndex(
1083
+ (_) => _.organization.pid === y.organization.pid && _.role.pid === y.role.pid
1041
1084
  )
1042
- ), n && (Array.isArray(n) ? n.forEach((_) => {
1085
+ ), n && (Array.isArray(n) ? n.forEach((y) => {
1043
1086
  l || h.forEach((S) => {
1044
- if (_ === S.role.name && s === S.organization.title)
1045
- l = _, f = s;
1046
- else if (_ === S.role.name) {
1087
+ if (y === S.role.name && s === S.organization.title)
1088
+ l = y, f = s;
1089
+ else if (y === S.role.name) {
1047
1090
  let w = h.filter(
1048
- (y) => y.role.name === _
1091
+ (_) => _.role.name === y
1049
1092
  );
1050
1093
  w.length === 1 ? (l = w[0].role.name, f = w[0].organization.title) : r(w);
1051
1094
  }
1052
1095
  });
1053
- }) : h.forEach((_) => {
1054
- if (n === _.role.name && s === _.organization.title)
1096
+ }) : h.forEach((y) => {
1097
+ if (n === y.role.name && s === y.organization.title)
1055
1098
  l = n, f = s;
1056
- else if (n === _.role.name) {
1099
+ else if (n === y.role.name) {
1057
1100
  let S = h.filter(
1058
1101
  (w) => w.role.name === n
1059
1102
  );
@@ -1062,7 +1105,7 @@ function F(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0, a = !1
1062
1105
  }));
1063
1106
  }
1064
1107
  }
1065
- p && f && l ? (u = l + "." + f + "." + p, i(u)) : d.preferredcredentials && a ? (u = d.preferredcredentials.role.name + "." + d.preferredcredentials.organization.title + "." + d.preferredcredentials.collabspace.title, i(u)) : r && (u = l + "." + f + "." + p, r(u));
1108
+ p && f && l ? (u = l + "." + f + "." + p, i(u)) : d.preferredcredentials && o ? (u = d.preferredcredentials.role.name + "." + d.preferredcredentials.organization.title + "." + d.preferredcredentials.collabspace.title, i(u)) : r && (u = l + "." + f + "." + p, r(u));
1066
1109
  },
1067
1110
  onFailure(c, d) {
1068
1111
  console.warn("Erreur de récupération du contexte de sécurité. => ", {
@@ -1072,7 +1115,7 @@ function F(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0, a = !1
1072
1115
  }
1073
1116
  });
1074
1117
  }
1075
- async function q(e, t = void 0, n = void 0) {
1118
+ async function K(e, t = void 0, n = void 0) {
1076
1119
  return (!e.objID || e.objID === "") && (console.warn(
1077
1120
  "_3DSpace_download_doc() / Le paramètre objectId est obligatoire"
1078
1121
  ), n && n(
@@ -1088,31 +1131,31 @@ async function q(e, t = void 0, n = void 0) {
1088
1131
  console.log("☠️ error => ", s);
1089
1132
  }
1090
1133
  ), new Promise((s, i) => {
1091
- D(
1134
+ k(
1092
1135
  e,
1093
1136
  (r) => {
1094
- e?.returnType === "blob" ? (console.log("ticketURL blob", r), fetch(r).then((a) => a.blob()).then((a) => {
1095
- t && t(a);
1096
- }).catch((a) => {
1097
- n && n(a);
1137
+ e?.returnType === "blob" ? (console.log("ticketURL blob", r), fetch(r).then((o) => o.blob()).then((o) => {
1138
+ t && t(o);
1139
+ }).catch((o) => {
1140
+ n && n(o);
1098
1141
  })) : m(r, {
1099
- onComplete(a) {
1100
- let o;
1142
+ onComplete(o) {
1143
+ let a;
1101
1144
  try {
1102
- o = JSON.parse(a);
1145
+ a = JSON.parse(o);
1103
1146
  } catch {
1104
- o = a;
1147
+ a = o;
1105
1148
  }
1106
- t && typeof t == "function" && t(o), s(o);
1149
+ t && typeof t == "function" && t(a), s(a);
1107
1150
  },
1108
- onFailure(a, o, c) {
1109
- n && (console.log("error http", a), n({
1110
- msg: JSON.parse(a),
1111
- headers: o,
1151
+ onFailure(o, a, c) {
1152
+ n && (console.log("error http", o), n({
1153
+ msg: JSON.parse(o),
1154
+ headers: a,
1112
1155
  xhr: c
1113
1156
  }), i({
1114
- msg: JSON.parse(a),
1115
- headers: o,
1157
+ msg: JSON.parse(o),
1158
+ headers: a,
1116
1159
  xhr: c
1117
1160
  }));
1118
1161
  }
@@ -1145,17 +1188,17 @@ function de(e, t, n = void 0, s = void 0, i = void 0) {
1145
1188
  id: c
1146
1189
  });
1147
1190
  });
1148
- let a = JSON.stringify({
1191
+ let o = JSON.stringify({
1149
1192
  csrf: {
1150
1193
  name: "ENO_CSRF_TOKEN",
1151
1194
  value: e.token
1152
1195
  },
1153
1196
  data: r
1154
1197
  });
1155
- const o = `${e.space}/resources/v1/modeler/documents/DownloadTicket?tenant=${e.tenant}&e6w-lang=fr&e6w-timezone=-120`;
1156
- m(o, {
1198
+ const a = `${e.space}/resources/v1/modeler/documents/DownloadTicket?tenant=${e.tenant}&e6w-lang=fr&e6w-timezone=-120`;
1199
+ m(a, {
1157
1200
  method: "PUT",
1158
- data: a,
1201
+ data: o,
1159
1202
  type: "json",
1160
1203
  onComplete(c) {
1161
1204
  const d = c.data;
@@ -1191,11 +1234,11 @@ function de(e, t, n = void 0, s = void 0, i = void 0) {
1191
1234
  }
1192
1235
  });
1193
1236
  }
1194
- function Qe(e, t, n = void 0, s = void 0) {
1237
+ function Ze(e, t, n = void 0, s = void 0) {
1195
1238
  return new Promise((i) => {
1196
- if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
1239
+ if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
1197
1240
  const r = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
1198
- let a = {
1241
+ let o = {
1199
1242
  method: "POST",
1200
1243
  headers: {
1201
1244
  SecurityContext: "ctx::" + e.ctx,
@@ -1211,22 +1254,22 @@ function Qe(e, t, n = void 0, s = void 0) {
1211
1254
  ]
1212
1255
  }),
1213
1256
  type: "json",
1214
- onComplete(o) {
1215
- n && n(o);
1257
+ onComplete(a) {
1258
+ n && n(a);
1216
1259
  },
1217
- onFailure(o) {
1218
- s && s(o);
1260
+ onFailure(a) {
1261
+ s && s(a);
1219
1262
  }
1220
1263
  };
1221
- m(r, a);
1264
+ m(r, o);
1222
1265
  }
1223
1266
  });
1224
1267
  }
1225
- function Ze(e, t, n, s = void 0, i = void 0) {
1268
+ function et(e, t, n, s = void 0, i = void 0) {
1226
1269
  return new Promise((r) => {
1227
- if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
1228
- const a = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
1229
- let o = {
1270
+ if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
1271
+ const o = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
1272
+ let a = {
1230
1273
  method: "POST",
1231
1274
  headers: {
1232
1275
  SecurityContext: "ctx::" + e.ctx,
@@ -1250,25 +1293,25 @@ function Ze(e, t, n, s = void 0, i = void 0) {
1250
1293
  i && i(c);
1251
1294
  }
1252
1295
  };
1253
- m(a, o);
1296
+ m(o, a);
1254
1297
  }
1255
1298
  });
1256
1299
  }
1257
- function et(e, t, n = void 0, s = void 0) {
1300
+ function tt(e, t, n = void 0, s = void 0) {
1258
1301
  return new Promise((i) => {
1259
- if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
1302
+ if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
1260
1303
  const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
1261
- F(
1304
+ R(
1262
1305
  e.space,
1263
1306
  "ESPACE COMMUN",
1264
1307
  ["VPLMProjectLeader", "VPLMCreator"],
1265
1308
  void 0,
1266
- (o) => e.ctx = o,
1267
- (o) => {
1268
- console.log("onError =>", o);
1309
+ (a) => e.ctx = a,
1310
+ (a) => {
1311
+ console.log("onError =>", a);
1269
1312
  }
1270
1313
  );
1271
- let a = {
1314
+ let o = {
1272
1315
  method: "POST",
1273
1316
  headers: {
1274
1317
  securitycontext: "ctx::" + e.ctx,
@@ -1284,32 +1327,32 @@ function et(e, t, n = void 0, s = void 0) {
1284
1327
  ]
1285
1328
  }),
1286
1329
  type: "json",
1287
- onComplete(o) {
1288
- n && n(o);
1330
+ onComplete(a) {
1331
+ n && n(a);
1289
1332
  },
1290
- onFailure(o) {
1291
- s && s(o);
1333
+ onFailure(a) {
1334
+ s && s(a);
1292
1335
  }
1293
1336
  };
1294
- m(r, a);
1337
+ m(r, o);
1295
1338
  }
1296
1339
  });
1297
1340
  }
1298
- function tt(e, t, n = void 0, s = void 0) {
1341
+ function nt(e, t, n = void 0, s = void 0) {
1299
1342
  return new Promise((i) => {
1300
- if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
1343
+ if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
1301
1344
  const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
1302
- F(
1345
+ R(
1303
1346
  e.space,
1304
1347
  "ESPACE COMMUN",
1305
1348
  ["VPLMProjectLeader", "VPLMCreator"],
1306
1349
  void 0,
1307
- (o) => e.ctx = o,
1308
- (o) => {
1309
- console.log("onError =>", o);
1350
+ (a) => e.ctx = a,
1351
+ (a) => {
1352
+ console.log("onError =>", a);
1310
1353
  }
1311
1354
  );
1312
- let a = {
1355
+ let o = {
1313
1356
  method: "POST",
1314
1357
  headers: {
1315
1358
  SecurityContext: "ctx::" + e.ctx,
@@ -1331,22 +1374,22 @@ function tt(e, t, n = void 0, s = void 0) {
1331
1374
  ]
1332
1375
  }),
1333
1376
  type: "json",
1334
- onComplete(o) {
1335
- n && n(o);
1377
+ onComplete(a) {
1378
+ n && n(a);
1336
1379
  },
1337
- onFailure(o) {
1338
- s && s(o);
1380
+ onFailure(a) {
1381
+ s && s(a);
1339
1382
  }
1340
1383
  };
1341
- m(r, a);
1384
+ m(r, o);
1342
1385
  }
1343
1386
  });
1344
1387
  }
1345
- function nt(e, t, n, s = void 0, i = void 0) {
1388
+ function st(e, t, n, s = void 0, i = void 0) {
1346
1389
  return new Promise((r) => {
1347
- if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
1348
- const a = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
1349
- F(
1390
+ if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
1391
+ const o = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
1392
+ R(
1350
1393
  e.space,
1351
1394
  "ESPACE COMMUN",
1352
1395
  ["VPLMProjectLeader", "VPLMCreator"],
@@ -1356,7 +1399,7 @@ function nt(e, t, n, s = void 0, i = void 0) {
1356
1399
  console.log("onError =>", c);
1357
1400
  }
1358
1401
  );
1359
- let o = {
1402
+ let a = {
1360
1403
  method: "POST",
1361
1404
  headers: {
1362
1405
  securitycontext: "ctx::" + e.ctx,
@@ -1385,7 +1428,7 @@ function nt(e, t, n, s = void 0, i = void 0) {
1385
1428
  i && i(c);
1386
1429
  }
1387
1430
  };
1388
- m(a, o);
1431
+ m(o, a);
1389
1432
  }
1390
1433
  });
1391
1434
  }
@@ -1403,10 +1446,10 @@ function ue(e) {
1403
1446
  });
1404
1447
  });
1405
1448
  }
1406
- function st(e, t, n = void 0, s = void 0) {
1449
+ function it(e, t, n = void 0, s = void 0) {
1407
1450
  return new Promise(async (i, r) => {
1408
- const { tenant: a, ctx: o, space: c } = e;
1409
- (!a || !o || !c) && r({ error: "Erreur de credentials", tenant: a, ctx: o, space: c });
1451
+ const { tenant: o, ctx: a, space: c } = e;
1452
+ (!o || !a || !c) && r({ error: "Erreur de credentials", tenant: o, ctx: a, space: c });
1410
1453
  const d = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=1&withAttributes=1&withCopyFrom=1&tenant=${e.tenant.toUpperCase()}&xrequestedwith=xmlhttprequest`;
1411
1454
  let u;
1412
1455
  await ue(e).then(
@@ -1438,9 +1481,9 @@ function st(e, t, n = void 0, s = void 0) {
1438
1481
  m(d, p);
1439
1482
  });
1440
1483
  }
1441
- function it(e, t, n, s, i = void 0, r = void 0) {
1442
- return new Promise((a) => {
1443
- const o = `${e.space}/resources/v1/modeler/dsbks/dsbks:Bookmark`;
1484
+ function ot(e, t, n, s, i = void 0, r = void 0) {
1485
+ return new Promise((o) => {
1486
+ const a = `${e.space}/resources/v1/modeler/dsbks/dsbks:Bookmark`;
1444
1487
  let c = {
1445
1488
  attributes: {
1446
1489
  title: n,
@@ -1468,11 +1511,11 @@ function it(e, t, n, s, i = void 0, r = void 0) {
1468
1511
  r && r(p);
1469
1512
  }
1470
1513
  };
1471
- m(o, u);
1514
+ m(a, u);
1472
1515
  });
1473
1516
  }
1474
1517
  function at(e, t, n, s, i = void 0, r = void 0) {
1475
- return console.log("credentials", e), new Promise((a) => {
1518
+ return console.log("credentials", e), new Promise((o) => {
1476
1519
  `${e.space}`, JSON.stringify({
1477
1520
  csrf: {
1478
1521
  name: "ENO_CSRF_TOKEN",
@@ -1495,7 +1538,7 @@ function at(e, t, n, s, i = void 0, r = void 0) {
1495
1538
  });
1496
1539
  }
1497
1540
  //!SECTION
1498
- function ot(e, t = void 0, n = void 0) {
1541
+ function rt(e, t = void 0, n = void 0) {
1499
1542
  const s = {
1500
1543
  base: `${e.space}`,
1501
1544
  uri: "/resources/bps/cspaces",
@@ -1507,17 +1550,17 @@ function ot(e, t = void 0, n = void 0) {
1507
1550
  Accept: "application/json,text/javascript,*/*",
1508
1551
  "Content-Type": "application/ds-json"
1509
1552
  },
1510
- onComplete(r, a) {
1511
- const o = JSON.parse(r);
1512
- t && t(o, a);
1553
+ onComplete(r, o) {
1554
+ const a = JSON.parse(r);
1555
+ t && t(a, o);
1513
1556
  },
1514
- onFailure(r, a, o) {
1515
- n && n({ response: r, headers: a, xhr: o });
1557
+ onFailure(r, o, a) {
1558
+ n && n({ response: r, headers: o, xhr: a });
1516
1559
  }
1517
1560
  });
1518
1561
  }
1519
- function rt(e, t, n, s) {
1520
- D(
1562
+ function ct(e, t, n, s) {
1563
+ k(
1521
1564
  e.space,
1522
1565
  t,
1523
1566
  (i) => {
@@ -1533,29 +1576,29 @@ function rt(e, t, n, s) {
1533
1576
  }
1534
1577
  );
1535
1578
  }
1536
- async function ct(e, t, n = void 0, s = void 0) {
1579
+ async function dt(e, t, n = void 0, s = void 0) {
1537
1580
  return new Promise((i) => {
1538
- D(e, t, (r) => {
1581
+ k(e, t, (r) => {
1539
1582
  m(r, {
1540
- onComplete: (a, o, c) => (i(JSON.parse(a)), n && n(JSON.parse(a), o, c), i),
1541
- onFailure: (a, o, c) => {
1542
- s && s(a, o, c), console.log(a, o?.errormsg);
1583
+ onComplete: (o, a, c) => (i(JSON.parse(o)), n && n(JSON.parse(o), a, c), i),
1584
+ onFailure: (o, a, c) => {
1585
+ s && s(o, a, c), console.log(o, a?.errormsg);
1543
1586
  }
1544
1587
  });
1545
1588
  });
1546
1589
  });
1547
1590
  }
1548
- function dt(e, t, n, s = void 0, i = void 0) {
1591
+ function ut(e, t, n, s = void 0, i = void 0) {
1549
1592
  const r = new Blob([JSON.stringify(t)], { type: "text/plain" });
1550
1593
  e = { ...e, objID: n }, N(
1551
1594
  e,
1552
- (a) => {
1553
- console.log("_3DSpace_get_csrf | onDone | data", a);
1554
- const o = a.datas.relateddata.files[0].id, c = a.datas.relateddata.files[0].dataelements.title;
1595
+ (o) => {
1596
+ console.log("_3DSpace_get_csrf | onDone | data", o);
1597
+ const a = o.datas.relateddata.files[0].id, c = o.datas.relateddata.files[0].dataelements.title;
1555
1598
  G(
1556
1599
  e,
1557
1600
  n,
1558
- o,
1601
+ a,
1559
1602
  r,
1560
1603
  c,
1561
1604
  (d) => {
@@ -1566,14 +1609,14 @@ function dt(e, t, n, s = void 0, i = void 0) {
1566
1609
  }
1567
1610
  );
1568
1611
  },
1569
- (a) => {
1570
- console.log("En cas d'erreur nous avons :", a), alert("Erreur lors de la sauvegarde, Veuillez réessayez"), i && i(a);
1612
+ (o) => {
1613
+ console.log("En cas d'erreur nous avons :", o), alert("Erreur lors de la sauvegarde, Veuillez réessayez"), i && i(o);
1571
1614
  }
1572
1615
  );
1573
1616
  }
1574
- let B, E;
1617
+ let B, q;
1575
1618
  const A = [];
1576
- async function ut(e, t = void 0, n = void 0) {
1619
+ async function pt(e, t = void 0, n = void 0) {
1577
1620
  e.objID && e.objID !== "" ? N(
1578
1621
  e,
1579
1622
  (s) => {
@@ -1582,7 +1625,7 @@ async function ut(e, t = void 0, n = void 0) {
1582
1625
  (s) => {
1583
1626
  n && n(s);
1584
1627
  }
1585
- ) : (e.objID === null || e.objID === "") && T(
1628
+ ) : (e.objID === null || e.objID === "") && b(
1586
1629
  e,
1587
1630
  (s) => {
1588
1631
  t && t({ rep: s, msg: "Pas d'objID, ou invalide" });
@@ -1592,8 +1635,8 @@ async function ut(e, t = void 0, n = void 0) {
1592
1635
  }
1593
1636
  );
1594
1637
  }
1595
- async function pt(e, t = void 0, n = void 0) {
1596
- console.log("getDatasByTenant (getDocuments)", e), await q(
1638
+ async function lt(e, t = void 0, n = void 0) {
1639
+ console.log("getDatasByTenant (getDocuments)", e), await K(
1597
1640
  e,
1598
1641
  (s) => {
1599
1642
  const i = {};
@@ -1604,18 +1647,18 @@ async function pt(e, t = void 0, n = void 0) {
1604
1647
  }
1605
1648
  );
1606
1649
  }
1607
- function lt(e, t = void 0, n = void 0) {
1650
+ function ft(e, t = void 0, n = void 0) {
1608
1651
  const s = [];
1609
1652
  if (!e.objIds && !Array.isArray(e.objIds) && e.objIds.length === 0) {
1610
1653
  console.warn("la liste est vide ou n'est pas un tableau");
1611
1654
  return;
1612
1655
  }
1613
1656
  e.objIds.forEach((i, r) => {
1614
- q(
1657
+ K(
1615
1658
  e,
1616
1659
  i.objID,
1617
- (a) => {
1618
- s.push({ [i.name]: a }), i.name === "dbProjets" && (B = a.affaires.map((o) => o.objectID), pe(e, E)), r === e.objIds.length - 1 && (t && t(s), delete e.objIds, delete e.datas);
1660
+ (o) => {
1661
+ s.push({ [i.name]: o }), i.name === "dbProjets" && (B = o.affaires.map((a) => a.objectID), pe(e, q)), r === e.objIds.length - 1 && (t && t(s), delete e.objIds, delete e.datas);
1619
1662
  }
1620
1663
  );
1621
1664
  });
@@ -1626,7 +1669,7 @@ function pe(e, t, n = void 0, s = void 0) {
1626
1669
  B,
1627
1670
  (i) => {
1628
1671
  const r = [...t];
1629
- r.find((a) => a.objectID === i.objectId).data = i.data, E = r, A.push(i.data), n && n(A);
1672
+ r.find((o) => o.objectID === i.objectId).data = i.data, q = r, A.push(i.data), n && n(A);
1630
1673
  },
1631
1674
  (i) => {
1632
1675
  s && (s(i), console.log(i));
@@ -1653,8 +1696,8 @@ const le = "FA35FB9B177A280065800EA0000F599C", fe = [
1653
1696
  order_by: "desc",
1654
1697
  tag: "testTag"
1655
1698
  };
1656
- function ft(e, t, n = void 0, s = void 0) {
1657
- const { space: i, tenant: r } = e, { objId: a, pred: o, tag: c } = t, d = {
1699
+ function mt(e, t, n = void 0, s = void 0) {
1700
+ const { space: i, tenant: r } = e, { objId: o, pred: a, tag: c } = t, d = {
1658
1701
  uri: "/resources/6w/tags",
1659
1702
  otpCTX: "SecurityContext=preferred",
1660
1703
  optTenant: `tenant=${r}`
@@ -1663,10 +1706,10 @@ function ft(e, t, n = void 0, s = void 0) {
1663
1706
  {
1664
1707
  subject: [
1665
1708
  {
1666
- uri: `pid://${a}`
1709
+ uri: `pid://${o}`
1667
1710
  }
1668
1711
  ],
1669
- predicate: X[o],
1712
+ predicate: X[a],
1670
1713
  object: {
1671
1714
  literal: c
1672
1715
  }
@@ -1686,10 +1729,10 @@ function ft(e, t, n = void 0, s = void 0) {
1686
1729
  setTimeout(() => {
1687
1730
  J(
1688
1731
  e,
1689
- a,
1732
+ o,
1690
1733
  (g) => {
1691
- const h = g.data[0].dataelements.title, _ = g.data[0].dataelements.fileExtension !== void 0 ? g.data[0].dataelements.fileExtension : "", S = g.data[0].relateddata.ownerInfo[0].dataelements.name;
1692
- l.name = h, l.ext = _, l.createBy = S, t.info = { ...l }, ge(
1734
+ const h = g.data[0].dataelements.title, y = g.data[0].dataelements.fileExtension !== void 0 ? g.data[0].dataelements.fileExtension : "", S = g.data[0].relateddata.ownerInfo[0].dataelements.name;
1735
+ l.name = h, l.ext = y, l.createBy = S, t.info = { ...l }, ge(
1693
1736
  e,
1694
1737
  t,
1695
1738
  (w) => {
@@ -1701,8 +1744,8 @@ function ft(e, t, n = void 0, s = void 0) {
1701
1744
  );
1702
1745
  },
1703
1746
  (g, h) => {
1704
- const _ = g;
1705
- _.msg = h.errormsg, _.errCode = h.errorcode, console.log("❌ sendDirectMessage => ", _), s && s(_);
1747
+ const y = g;
1748
+ y.msg = h.errormsg, y.errCode = h.errorcode, console.log("❌ sendDirectMessage => ", y), s && s(y);
1706
1749
  }
1707
1750
  );
1708
1751
  }, 2e3);
@@ -1718,7 +1761,7 @@ function ge(e, t, n = void 0, s = void 0) {
1718
1761
  const i = t.info.name, r = {
1719
1762
  baseUrl: `https://${e.tenant.toLowerCase()}-eu1-fedsearch.3dexperience.3ds.com`,
1720
1763
  uri: "/federated/search"
1721
- }, a = `${r.baseUrl}${r.uri}`, o = {
1764
+ }, o = `${r.baseUrl}${r.uri}`, a = {
1722
1765
  "Content-Type": "application/json",
1723
1766
  Accept: "application/json,text/javascript,*/*"
1724
1767
  }, c = Y(), d = {
@@ -1782,9 +1825,9 @@ function ge(e, t, n = void 0, s = void 0) {
1782
1825
  }
1783
1826
  }
1784
1827
  };
1785
- console.log("dataPattern => ", d), m(a, {
1828
+ console.log("dataPattern => ", d), m(o, {
1786
1829
  method: "POST",
1787
- headers: o,
1830
+ headers: a,
1788
1831
  data: JSON.stringify(d),
1789
1832
  onComplete(u) {
1790
1833
  const p = JSON.parse(u);
@@ -1796,12 +1839,12 @@ function ge(e, t, n = void 0, s = void 0) {
1796
1839
  }
1797
1840
  });
1798
1841
  }
1799
- function mt(e, t, n = void 0, s = void 0) {
1800
- const { objId: i, pred: r, tag: a } = t, o = {
1842
+ function gt(e, t, n = void 0, s = void 0) {
1843
+ const { objId: i, pred: r, tag: o } = t, a = {
1801
1844
  uri: "/resources/6w/tags",
1802
1845
  otpCTX: "SecurityContext=preferred",
1803
1846
  optTenant: `tenant=${e.tenant}`
1804
- }, c = `${e.space}${o.uri}?${o.otpCTX}&${o.optTenant}`, d = {
1847
+ }, c = `${e.space}${a.uri}?${a.otpCTX}&${a.optTenant}`, d = {
1805
1848
  tag: [
1806
1849
  {
1807
1850
  subject: [
@@ -1811,7 +1854,7 @@ function mt(e, t, n = void 0, s = void 0) {
1811
1854
  ],
1812
1855
  predicate: X[r],
1813
1856
  object: {
1814
- literal: a
1857
+ literal: o
1815
1858
  }
1816
1859
  }
1817
1860
  ]
@@ -1832,19 +1875,19 @@ function mt(e, t, n = void 0, s = void 0) {
1832
1875
  }
1833
1876
  });
1834
1877
  }
1835
- function gt(e, t = "", n = void 0, s = void 0) {
1878
+ function ht(e, t = "", n = void 0, s = void 0) {
1836
1879
  const { space: i } = e;
1837
1880
  if (t === "")
1838
1881
  return;
1839
1882
  const r = {
1840
1883
  uri: "/resources/v1/modeler/documents"
1841
- }, a = {
1884
+ }, o = {
1842
1885
  "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
1843
1886
  Accept: "application/json,text/javascript,*/*"
1844
- }, o = `${i}${r.uri}`, c = `$include=none,lockerInfo,ownerInfo,originatorInfo,files,ownerInfo,originatorInfo&$fields=none,title,name,typeNLS,collabSpaceTitle,revision,isLatestRevision,files,lockStatus,lockerInfo.name,lockerInfo.firstname,lockerInfo.lastname,owner,ownerInfo.name,ownerInfo.firstname,ownerInfo.lastname,stateNLS,modified,policy,state,organizationTitle,originator,originatorInfo.name,originatorInfo.firstname,originatorInfo.lastname,hasModifyAccess,fileExtension,files.name,files.title,files.revision,files.locker,ownerInfo,ownerInfo.name,ownerInfo.firstname,ownerInfo.lastname,originatorInfo,originatorInfo.name,originatorInfo.firstname,originatorInfo.lastname&$ids=${t}`;
1845
- m(o, {
1887
+ }, a = `${i}${r.uri}`, c = `$include=none,lockerInfo,ownerInfo,originatorInfo,files,ownerInfo,originatorInfo&$fields=none,title,name,typeNLS,collabSpaceTitle,revision,isLatestRevision,files,lockStatus,lockerInfo.name,lockerInfo.firstname,lockerInfo.lastname,owner,ownerInfo.name,ownerInfo.firstname,ownerInfo.lastname,stateNLS,modified,policy,state,organizationTitle,originator,originatorInfo.name,originatorInfo.firstname,originatorInfo.lastname,hasModifyAccess,fileExtension,files.name,files.title,files.revision,files.locker,ownerInfo,ownerInfo.name,ownerInfo.firstname,ownerInfo.lastname,originatorInfo,originatorInfo.name,originatorInfo.firstname,originatorInfo.lastname&$ids=${t}`;
1888
+ m(a, {
1846
1889
  method: "POST",
1847
- headers: a,
1890
+ headers: o,
1848
1891
  data: c,
1849
1892
  onComplete(d) {
1850
1893
  n && n(JSON.parse(d));
@@ -1858,17 +1901,17 @@ function gt(e, t = "", n = void 0, s = void 0) {
1858
1901
  async function C(e, t = void 0, n = void 0) {
1859
1902
  const s = e._3DSwym + "/api/index/tk";
1860
1903
  return m(s, {
1861
- onComplete(i, r, a) {
1862
- const o = JSON.parse(i);
1904
+ onComplete(i, r, o) {
1905
+ const a = JSON.parse(i);
1863
1906
  if (t)
1864
- return t(o), e.token = o?.result?.ServerToken;
1907
+ return t(a), e.token = a?.result?.ServerToken;
1865
1908
  },
1866
1909
  onFailure(i) {
1867
1910
  n && n(i);
1868
1911
  }
1869
1912
  });
1870
1913
  }
1871
- function ht(e, t = void 0, n = void 0) {
1914
+ function yt(e, t = void 0, n = void 0) {
1872
1915
  const s = `${e._3DSwym}/api/exalead/whatsnew`, i = {
1873
1916
  params: {
1874
1917
  community_id: null,
@@ -1889,11 +1932,11 @@ function ht(e, t = void 0, n = void 0) {
1889
1932
  },
1890
1933
  data: JSON.stringify(i),
1891
1934
  type: "json",
1892
- onComplete(a, o) {
1893
- t && t(a, o);
1935
+ onComplete(o, a) {
1936
+ t && t(o, a);
1894
1937
  },
1895
- onFailure(a, o) {
1896
- n && n(a, o);
1938
+ onFailure(o, a) {
1939
+ n && n(o, a);
1897
1940
  }
1898
1941
  });
1899
1942
  });
@@ -1918,31 +1961,31 @@ function _t(e, t = void 0, n = void 0) {
1918
1961
  },
1919
1962
  data: JSON.stringify(i),
1920
1963
  type: "json",
1921
- onComplete(a, o) {
1922
- const c = a.result.hits.map((d) => ({ login: d.login, fullName: d.name }));
1923
- t && t(c, a);
1964
+ onComplete(o, a) {
1965
+ const c = o.result.hits.map((d) => ({ login: d.login, fullName: d.name }));
1966
+ t && t(c, o);
1924
1967
  },
1925
- onFailure(a, o) {
1926
- n && n(a, o);
1968
+ onFailure(o, a) {
1969
+ n && n(o, a);
1927
1970
  }
1928
1971
  });
1929
1972
  });
1930
1973
  }
1931
- function yt(e, t = void 0, n = void 0) {
1974
+ function St(e, t = void 0, n = void 0) {
1932
1975
  const s = {
1933
1976
  base: e._3DSwym,
1934
1977
  uri: "/api/community/listmycommunities",
1935
1978
  limit: `/limit/${e.limit ? e.limit : 500}`,
1936
1979
  page: `/page/${e.page ? e.page : "1"}`
1937
1980
  }, i = `${s.base}${s.uri}${s.limit}${s.page}`, r = [];
1938
- C(e, (a) => {
1981
+ C(e, (o) => {
1939
1982
  m(i, {
1940
1983
  method: "GET",
1941
1984
  headers: {
1942
- "X-DS-SWYM-CSRFTOKEN": a.result.ServerToken
1985
+ "X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
1943
1986
  },
1944
- onComplete(o, c, d) {
1945
- const p = JSON.parse(o).result;
1987
+ onComplete(a, c, d) {
1988
+ const p = JSON.parse(a).result;
1946
1989
  let f = 0;
1947
1990
  p.forEach((l) => {
1948
1991
  const g = {
@@ -1963,8 +2006,8 @@ function yt(e, t = void 0, n = void 0) {
1963
2006
  );
1964
2007
  });
1965
2008
  },
1966
- onFailure(o, c) {
1967
- const d = o;
2009
+ onFailure(a, c) {
2010
+ const d = a;
1968
2011
  d.status = c.status, d.response = c.errormsg, n && n(d);
1969
2012
  }
1970
2013
  });
@@ -1978,27 +2021,27 @@ function he(e, t, n, s) {
1978
2021
  community_id: t
1979
2022
  }
1980
2023
  };
1981
- C(e, (a) => {
2024
+ C(e, (o) => {
1982
2025
  m(i, {
1983
2026
  method: "POST",
1984
2027
  headers: {
1985
2028
  "Content-type": "application/json;charset=UTF-8",
1986
2029
  Accept: "application/json",
1987
- "X-DS-SWYM-CSRFTOKEN": a.result.ServerToken
2030
+ "X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
1988
2031
  },
1989
2032
  data: JSON.stringify(r),
1990
2033
  type: "json",
1991
- onComplete(o, c, d) {
1992
- n && n(o);
2034
+ onComplete(a, c, d) {
2035
+ n && n(a);
1993
2036
  },
1994
- onFailure(o, c) {
1995
- const d = o;
2037
+ onFailure(a, c) {
2038
+ const d = a;
1996
2039
  d.status = c.status, d.response = c.errormsg, s && s(d);
1997
2040
  }
1998
2041
  });
1999
2042
  });
2000
2043
  }
2001
- function St(e, t = void 0, n = void 0) {
2044
+ function wt(e, t = void 0, n = void 0) {
2002
2045
  const s = "YXdA5x4DSUKtlAi2wmnyTA";
2003
2046
  e.commu_id || (e.commu_id = s);
2004
2047
  const i = `${e._3DSwym}/api/v2/communities/${e.commu_id}/ideas/statuses`;
@@ -2010,30 +2053,30 @@ function St(e, t = void 0, n = void 0) {
2010
2053
  Accept: "application/json",
2011
2054
  "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
2012
2055
  },
2013
- onComplete(a) {
2014
- const o = JSON.parse(a);
2015
- t && t(o);
2056
+ onComplete(o) {
2057
+ const a = JSON.parse(o);
2058
+ t && t(a);
2016
2059
  },
2017
- onFailure(a, o) {
2018
- const c = a;
2019
- c.status = o.status, c.response = o.errormsg, n && n(c);
2060
+ onFailure(o, a) {
2061
+ const c = o;
2062
+ c.status = a.status, c.response = a.errormsg, n && n(c);
2020
2063
  }
2021
2064
  });
2022
2065
  });
2023
2066
  }
2024
- function wt(e, t, n = void 0, s = void 0) {
2025
- const { listAllContacts: i, currentUser: r, _3DSwym: a } = e;
2067
+ function Ct(e, t, n = void 0, s = void 0) {
2068
+ const { listAllContacts: i, currentUser: r, _3DSwym: o } = e;
2026
2069
  console.log("__listAllContacts", i.hits);
2027
- const o = `${a}/api/directmessages`, c = {
2070
+ const a = `${o}/api/directmessages`, c = {
2028
2071
  users: [r.login].concat(t.receipt)
2029
2072
  }, d = {
2030
2073
  id_msg: "",
2031
2074
  senderId: e.currentUser.login,
2032
2075
  senderName: `${e.currentUser.first_name} ${e.currentUser.last_name}`,
2033
- msg: ye(t.msg)
2076
+ msg: _e(t.msg)
2034
2077
  };
2035
2078
  let u = !1;
2036
- _e(
2079
+ ye(
2037
2080
  c.users,
2038
2081
  (p) => {
2039
2082
  p !== void 0 && (d.id_msg = p.id, u = !0, P(e, d));
@@ -2043,7 +2086,7 @@ function wt(e, t, n = void 0, s = void 0) {
2043
2086
  }
2044
2087
  ), u === !1 && setTimeout(() => {
2045
2088
  u === !1 && C(e, (p) => {
2046
- m(o, {
2089
+ m(a, {
2047
2090
  method: "POST",
2048
2091
  headers: {
2049
2092
  "Content-Type": "application/json",
@@ -2064,7 +2107,7 @@ function wt(e, t, n = void 0, s = void 0) {
2064
2107
  });
2065
2108
  }, 500);
2066
2109
  }
2067
- function _e(e, t, n, s) {
2110
+ function ye(e, t, n, s) {
2068
2111
  const i = `${e._3DSwym}/api/directmessages/lite?with_favorites=false`;
2069
2112
  C(e, (r) => {
2070
2113
  m(i, {
@@ -2073,9 +2116,9 @@ function _e(e, t, n, s) {
2073
2116
  Accept: "application/json,text/javascript,*/*",
2074
2117
  "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
2075
2118
  },
2076
- onComplete(a) {
2077
- const o = JSON.parse(a), c = [];
2078
- o.result.forEach((p) => {
2119
+ onComplete(o) {
2120
+ const a = JSON.parse(o), c = [];
2121
+ a.result.forEach((p) => {
2079
2122
  p.users = p.users.sort((f, l) => f.login.localeCompare(l.login)), p.users.length === t.length && c.push(p);
2080
2123
  });
2081
2124
  const d = t.sort(), u = c.find((p) => {
@@ -2086,9 +2129,9 @@ function _e(e, t, n, s) {
2086
2129
  });
2087
2130
  n && u !== void 0 ? n(u) : (s || u === void 0) && s(u);
2088
2131
  },
2089
- onFailure(a) {
2090
- const o = a;
2091
- o.msg = headers.errormsg, o.errCode = headers.errorcode, console.log("❌ sendDirectMessageLite => ", o), s && s(o);
2132
+ onFailure(o) {
2133
+ const a = o;
2134
+ a.msg = headers.errormsg, a.errCode = headers.errorcode, console.log("❌ sendDirectMessageLite => ", a), s && s(a);
2092
2135
  }
2093
2136
  });
2094
2137
  });
@@ -2099,7 +2142,7 @@ function P(e, t, n = void 0, s = void 0) {
2099
2142
  uri: "/api/community",
2100
2143
  id_msg: `${t.id_msg}`,
2101
2144
  endUri: "/instantmessages"
2102
- }, r = `${i.base}${i.uri}/${i.id_msg}${i.endUri}`, a = {
2145
+ }, r = `${i.base}${i.uri}/${i.id_msg}${i.endUri}`, o = {
2103
2146
  author: { login: t.senderId, displayName: t.senderName },
2104
2147
  accessState: null,
2105
2148
  commentUri: null,
@@ -2109,15 +2152,15 @@ function P(e, t, n = void 0, s = void 0) {
2109
2152
  parentCommentUri: null,
2110
2153
  richMessage: t.msg
2111
2154
  };
2112
- console.log("_3dSwym_sendDirectMessageData url ", r), C(e, (o) => {
2155
+ console.log("_3dSwym_sendDirectMessageData url ", r), C(e, (a) => {
2113
2156
  m(r, {
2114
2157
  method: "POST",
2115
2158
  headers: {
2116
2159
  "Content-Type": "application/json",
2117
2160
  Accept: "application/json",
2118
- "X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
2161
+ "X-DS-SWYM-CSRFTOKEN": a.result.ServerToken
2119
2162
  },
2120
- data: JSON.stringify(a),
2163
+ data: JSON.stringify(o),
2121
2164
  type: "json",
2122
2165
  onComplete(c, d, u) {
2123
2166
  const p = c;
@@ -2130,23 +2173,23 @@ function P(e, t, n = void 0, s = void 0) {
2130
2173
  });
2131
2174
  });
2132
2175
  }
2133
- function ye(e) {
2176
+ function _e(e) {
2134
2177
  const t = (/* @__PURE__ */ new Date()).toLocaleDateString(), n = (/* @__PURE__ */ new Date()).toLocaleTimeString();
2135
2178
  return `<p>${e} </p>
2136
2179
  <br/>
2137
2180
  <hr/>
2138
2181
  <p><u>envoyer :</u>Le <b>${t} à ${n}</b></p>`;
2139
2182
  }
2140
- function Ct(e, t, n = void 0, s = void 0) {
2183
+ function bt(e, t, n = void 0, s = void 0) {
2141
2184
  const i = `${e.space}/api/idea/add`, r = e.swymCommunities.find(
2142
2185
  (c) => c.id === t.community_id
2143
- ), a = e.swymCommunities.find(
2186
+ ), o = e.swymCommunities.find(
2144
2187
  (c) => c.title.toLowerCase() === t.community_title.toLowerCase()
2145
- ), o = {
2188
+ ), a = {
2146
2189
  params: {
2147
2190
  title: t.title,
2148
2191
  // String, le nom de l'affaire
2149
- community_id: r?.id !== void 0 ? r.id : a.id,
2192
+ community_id: r?.id !== void 0 ? r.id : o.id,
2150
2193
  // String, l'id de la communauté
2151
2194
  message: Se(t.text_html),
2152
2195
  // STRING => le contenue du message doit être au format HTML
@@ -2163,7 +2206,7 @@ function Ct(e, t, n = void 0, s = void 0) {
2163
2206
  m(i, {
2164
2207
  method: "POST",
2165
2208
  headers: d,
2166
- data: JSON.stringify(o),
2209
+ data: JSON.stringify(a),
2167
2210
  type: "json",
2168
2211
  onComplete(u, p, f) {
2169
2212
  const l = JSON.parse(u);
@@ -2179,29 +2222,29 @@ function Ct(e, t, n = void 0, s = void 0) {
2179
2222
  function Tt(e, t = void 0, n = void 0) {
2180
2223
  const s = { base: e.space, uri: "/api/idea/add" };
2181
2224
  if (!Array.isArray(e.swymCommunities)) {
2182
- const a = "☠️ swymCommunities doit être un tableau d'objets de communautés";
2225
+ const o = "☠️ swymCommunities doit être un tableau d'objets de communautés";
2183
2226
  throw new Error(`Erreur sur cette requête : ${s.base + s.uri}`, {
2184
- cause: a
2227
+ cause: o
2185
2228
  });
2186
2229
  }
2187
2230
  if (e.swymCommunities.findIndex(
2188
- (a) => a.id === e.community_id
2231
+ (o) => o.id === e.community_id
2189
2232
  ) === -1) {
2190
- const a = "la communauté n'existe pas dans la liste des communautés du Swym";
2233
+ const o = "la communauté n'existe pas dans la liste des communautés du Swym";
2191
2234
  throw new Error(`Erreur sur cette requête : ${s.base + s.uri}`, {
2192
- cause: a
2235
+ cause: o
2193
2236
  });
2194
2237
  }
2195
2238
  if (e.community_id && e.community_id === "") {
2196
- const a = "☠️ community_id doit être un String qui contient l'id de la communauté dans laquelle on souhaite publier l'idée.";
2239
+ const o = "☠️ community_id doit être un String qui contient l'id de la communauté dans laquelle on souhaite publier l'idée.";
2197
2240
  throw new Error(`Erreur sur cette requête : ${s.base + s.uri}`, {
2198
- cause: a
2241
+ cause: o
2199
2242
  });
2200
2243
  }
2201
2244
  if (e.title && e.title === "") {
2202
- const a = "☠️ title doit être un String.";
2245
+ const o = "☠️ title doit être un String.";
2203
2246
  throw new Error(`Erreur sur cette requête : ${s.base + s.uri}`, {
2204
- cause: a
2247
+ cause: o
2205
2248
  });
2206
2249
  }
2207
2250
  const r = {
@@ -2216,19 +2259,19 @@ function Tt(e, t = void 0, n = void 0) {
2216
2259
  // 1 publier, 0 brouillon
2217
2260
  }
2218
2261
  };
2219
- C(e, (a) => {
2220
- if (!a)
2262
+ C(e, (o) => {
2263
+ if (!o)
2221
2264
  throw new Error(
2222
2265
  `☠️ token n'est pas disponible pour cette requête : ${s.base + s.uri}`,
2223
2266
  {
2224
- cause: a
2267
+ cause: o
2225
2268
  }
2226
2269
  );
2227
- const o = {
2270
+ const a = {
2228
2271
  headers: {
2229
2272
  "Content-type": "application/json;charset=UTF-8",
2230
2273
  Accept: "application/json",
2231
- "X-DS-SWYM-CSRFTOKEN": a?.result?.ServerToken
2274
+ "X-DS-SWYM-CSRFTOKEN": o?.result?.ServerToken
2232
2275
  },
2233
2276
  method: "POST",
2234
2277
  data: JSON.stringify(r),
@@ -2246,43 +2289,43 @@ function Tt(e, t = void 0, n = void 0) {
2246
2289
  n && n(l);
2247
2290
  }
2248
2291
  };
2249
- m(s.base + s.uri, o);
2292
+ m(s.base + s.uri, a);
2250
2293
  });
2251
2294
  }
2252
- function bt(e, t, n = void 0, s = void 0) {
2295
+ function Ot(e, t, n = void 0, s = void 0) {
2253
2296
  const i = `${e.space}/api/idea/delete`, r = {
2254
2297
  params: {
2255
2298
  community_id: t.community_id,
2256
2299
  ideationIds: [t.idee_id]
2257
2300
  }
2258
2301
  };
2259
- C(e, (a) => {
2302
+ C(e, (o) => {
2260
2303
  m(i, {
2261
2304
  method: "POST",
2262
2305
  headers: {
2263
2306
  "Content-type": "application/json;charset=UTF-8",
2264
2307
  Accept: "application/json",
2265
- "X-DS-SWYM-CSRFTOKEN": a?.result?.ServerToken
2308
+ "X-DS-SWYM-CSRFTOKEN": o?.result?.ServerToken
2266
2309
  },
2267
2310
  data: JSON.stringify(r),
2268
2311
  type: "json",
2269
- onComplete(o, c, d) {
2270
- n && n(o);
2312
+ onComplete(a, c, d) {
2313
+ n && n(a);
2271
2314
  },
2272
- onFailure(o, c, d) {
2273
- const u = o;
2315
+ onFailure(a, c, d) {
2316
+ const u = a;
2274
2317
  u.status = c.status, u.response = c.errormsg, s && s(u);
2275
2318
  }
2276
2319
  });
2277
2320
  });
2278
2321
  }
2279
- function Ot(e, t = void 0, n = void 0) {
2322
+ function $t(e, t = void 0, n = void 0) {
2280
2323
  const { _3DSwym: s, _3DSwym_token: i } = e, r = `${s}/api/idea/get`;
2281
2324
  if (e.idPost === "") {
2282
- const o = "☠️ idPost est vide, vous devez renseigner un identifiant de post";
2283
- throw new Error(`Erreur sur cette requête : ${r}`, { cause: o });
2325
+ const a = "☠️ idPost est vide, vous devez renseigner un identifiant de post";
2326
+ throw new Error(`Erreur sur cette requête : ${r}`, { cause: a });
2284
2327
  }
2285
- const a = {
2328
+ const o = {
2286
2329
  params: {
2287
2330
  id: e.idPost
2288
2331
  }
@@ -2294,23 +2337,23 @@ function Ot(e, t = void 0, n = void 0) {
2294
2337
  Accept: "application/json",
2295
2338
  "X-DS-SWYM-CSRFTOKEN": i
2296
2339
  },
2297
- data: JSON.stringify(a),
2298
- onComplete(o) {
2299
- o = typeof o == "string" ? JSON.parse(o) : o, t && t({ response: o });
2340
+ data: JSON.stringify(o),
2341
+ onComplete(a) {
2342
+ a = typeof a == "string" ? JSON.parse(a) : a, t && t({ response: a });
2300
2343
  },
2301
- onFailure(o) {
2302
- const c = o;
2344
+ onFailure(a) {
2345
+ const c = a;
2303
2346
  c.status = headers.status, c.response = headers.errormsg, n && n(c);
2304
2347
  }
2305
2348
  });
2306
2349
  }
2307
- function $t(e, t, n) {
2350
+ function Ut(e, t, n) {
2308
2351
  const {
2309
2352
  _3DSwym: s,
2310
2353
  _3DSwym_token: i,
2311
2354
  idPost: r,
2312
- title: a,
2313
- community_id: o,
2355
+ title: o,
2356
+ community_id: a,
2314
2357
  status_comment: c,
2315
2358
  status_id: d,
2316
2359
  message: u
@@ -2328,8 +2371,8 @@ function $t(e, t, n) {
2328
2371
  params: {
2329
2372
  out: "false",
2330
2373
  id: r,
2331
- title: a,
2332
- community_id: o,
2374
+ title: o,
2375
+ community_id: a,
2333
2376
  status_comment: c,
2334
2377
  status_id: d,
2335
2378
  message: u,
@@ -2337,11 +2380,11 @@ function $t(e, t, n) {
2337
2380
  }
2338
2381
  }),
2339
2382
  type: "json",
2340
- onComplete(g, h, _) {
2383
+ onComplete(g, h, y) {
2341
2384
  const S = {
2342
2385
  response: typeof g == "string" ? JSON.parse(g) : g
2343
2386
  };
2344
- S.status = _.status, t && t(S);
2387
+ S.status = y.status, t && t(S);
2345
2388
  },
2346
2389
  onFailure(g) {
2347
2390
  n && n(g);
@@ -2351,52 +2394,52 @@ function $t(e, t, n) {
2351
2394
  }
2352
2395
  function xt(e, t, n = void 0, s = void 0) {
2353
2396
  const { _3DSwym: i } = e;
2354
- let { community_id: r, limit: a, page: o, search: c } = t;
2397
+ let { community_id: r, limit: o, page: a, search: c } = t;
2355
2398
  const d = [], u = 1;
2356
2399
  let p = !1, f = 2;
2357
- o || (o = u), a || (a = 100);
2400
+ a || (a = u), o || (o = 100);
2358
2401
  const l = {
2359
2402
  uri: "/api/idea/list",
2360
2403
  comId: `/community_id/${r}`,
2361
- limit: `/limit/${a}`,
2362
- page: `/page/${o}`
2404
+ limit: `/limit/${o}`,
2405
+ page: `/page/${a}`
2363
2406
  };
2364
2407
  let g = `${i}${l.uri}${l.comId}${l.limit}${l.page}`;
2365
2408
  C(e, (h) => {
2366
- const _ = (S) => {
2409
+ const y = (S) => {
2367
2410
  m(S, {
2368
2411
  method: "GET",
2369
2412
  headers: {
2370
2413
  "X-DS-SWYM-CSRFTOKEN": h.result.ServerToken
2371
2414
  },
2372
2415
  onComplete(w) {
2373
- const y = { response: JSON.parse(w) };
2374
- if (f = Math.ceil(Number(y.response.nb_result) / 100), w && f >= o) {
2375
- if (o++, l.page = `/page/${o}`, S = `${i}${l.uri}${l.comId}${l.limit}${l.page}`, !c)
2376
- d.push(y.response.result);
2416
+ const _ = { response: JSON.parse(w) };
2417
+ if (f = Math.ceil(Number(_.response.nb_result) / 100), w && f >= a) {
2418
+ if (a++, l.page = `/page/${a}`, S = `${i}${l.uri}${l.comId}${l.limit}${l.page}`, !c)
2419
+ d.push(_.response.result);
2377
2420
  else {
2378
- const b = y.response.result.find(
2379
- (R) => R.title.includes(c)
2421
+ const T = _.response.result.find(
2422
+ (F) => F.title.includes(c)
2380
2423
  );
2381
- if (b) {
2382
- n(b);
2424
+ if (T) {
2425
+ n(T);
2383
2426
  return;
2384
2427
  }
2385
2428
  }
2386
- if (n && f < o && !c) {
2429
+ if (n && f < a && !c) {
2387
2430
  p = !0, n(d);
2388
2431
  return;
2389
2432
  }
2390
- _(S);
2433
+ y(S);
2391
2434
  }
2392
2435
  },
2393
- onFailure(w, y) {
2394
- const b = w;
2395
- b.status = y.status, b.response = y.errormsg, s && s(b);
2436
+ onFailure(w, _) {
2437
+ const T = w;
2438
+ T.status = _.status, T.response = _.errormsg, s && s(T);
2396
2439
  }
2397
2440
  });
2398
2441
  };
2399
- p || _(g);
2442
+ p || y(g);
2400
2443
  });
2401
2444
  }
2402
2445
  function Se(e) {
@@ -2474,9 +2517,9 @@ function Se(e) {
2474
2517
  <p>
2475
2518
  </p>` : e;
2476
2519
  }
2477
- function Ut(e, t = void 0, n = void 0) {
2478
- const { tenant: s, _3DSwym: i, _3DSwym_token: r, community_id: a, idea_id: o } = e;
2479
- if (s && i && r && a && o) {
2520
+ function It(e, t = void 0, n = void 0) {
2521
+ const { tenant: s, _3DSwym: i, _3DSwym_token: r, community_id: o, idea_id: a } = e;
2522
+ if (s && i && r && o && a) {
2480
2523
  const c = `${i}/api/idea/forward`;
2481
2524
  m(c, {
2482
2525
  method: "POST",
@@ -2486,8 +2529,8 @@ function Ut(e, t = void 0, n = void 0) {
2486
2529
  "X-DS-SWYM-CSRFTOKEN": r
2487
2530
  },
2488
2531
  data: JSON.stringify({
2489
- community_uri: `swym:prd:${s.toUpperCase()}:community:${a}`,
2490
- content_uri: `swym:prd:${s.toUpperCase()}:idea:${o}`,
2532
+ community_uri: `swym:prd:${s.toUpperCase()}:community:${o}`,
2533
+ content_uri: `swym:prd:${s.toUpperCase()}:idea:${a}`,
2491
2534
  timeout: 3e4
2492
2535
  }),
2493
2536
  type: "json",
@@ -2507,16 +2550,16 @@ function Ut(e, t = void 0, n = void 0) {
2507
2550
  credentials: e
2508
2551
  });
2509
2552
  }
2510
- function It(e, t = void 0, n = void 0) {
2553
+ function Nt(e, t = void 0, n = void 0) {
2511
2554
  return new Promise((s, i) => {
2512
2555
  try {
2513
2556
  let r;
2514
2557
  if (e._3DDashboard) {
2515
- const a = e._3DDashboard + "/api/users/current";
2516
- console.log("_3DSwym_get_currentUser | url", a), m(a, {
2558
+ const o = e._3DDashboard + "/api/users/current";
2559
+ console.log("_3DSwym_get_currentUser | url", o), m(o, {
2517
2560
  method: "GET",
2518
- onComplete(o, c, d) {
2519
- let u = o.replace(/\"\[/g, "[").replace(/\]\"/g, "]").replace(/\"{/g, "{").replace(/}\"/g, "}").replace(/\\/g, "");
2561
+ onComplete(a, c, d) {
2562
+ let u = a.replace(/\"\[/g, "[").replace(/\]\"/g, "]").replace(/\"{/g, "{").replace(/}\"/g, "}").replace(/\\/g, "");
2520
2563
  u = u.replace(/\"\[/g, "[").replace(/\]\"/g, "]").replace(/\"{/g, "{").replace(/}\"/g, "}").replace(/\\/g, ""), console.log("result", u);
2521
2564
  let p = {};
2522
2565
  try {
@@ -2526,8 +2569,8 @@ function It(e, t = void 0, n = void 0) {
2526
2569
  }
2527
2570
  console.log(p), p.first_name = p?.firstName ? p.firstName : "", p.last_name = p?.lastName ? p.lastName : "", console.log("_3DSwym_get_currentUser | info", p), r = p, s(p);
2528
2571
  },
2529
- onFailure(o) {
2530
- i("ERROR | _3DSwym_get_currentUser => _3DDashboard + /api/users/current", o);
2572
+ onFailure(a) {
2573
+ i("ERROR | _3DSwym_get_currentUser => _3DDashboard + /api/users/current", a);
2531
2574
  }
2532
2575
  });
2533
2576
  }
@@ -2537,7 +2580,7 @@ function It(e, t = void 0, n = void 0) {
2537
2580
  }
2538
2581
  });
2539
2582
  }
2540
- function Nt(e, t, n = void 0, s = void 0) {
2583
+ function Rt(e, t, n = void 0, s = void 0) {
2541
2584
  const i = e.space + "/api/user/find/login/" + t;
2542
2585
  C(
2543
2586
  e,
@@ -2545,12 +2588,12 @@ function Nt(e, t, n = void 0, s = void 0) {
2545
2588
  m(i, {
2546
2589
  method: "GET",
2547
2590
  headers: { "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken },
2548
- onComplete(a, o, c) {
2549
- const d = JSON.parse(a);
2591
+ onComplete(o, a, c) {
2592
+ const d = JSON.parse(o);
2550
2593
  n && n(d);
2551
2594
  },
2552
- onFailure(a) {
2553
- s && s(a);
2595
+ onFailure(o) {
2596
+ s && s(o);
2554
2597
  }
2555
2598
  });
2556
2599
  },
@@ -2562,15 +2605,15 @@ function Ft(e, t = void 0, n = void 0) {
2562
2605
  _3DSwym: s,
2563
2606
  _3DSwym_token: i,
2564
2607
  subjectUri: r,
2565
- richMessage: a
2566
- } = e, o = `${s}/commentproxy/subjects/${r}/comments`, d = {
2608
+ richMessage: o
2609
+ } = e, a = `${s}/commentproxy/subjects/${r}/comments`, d = {
2567
2610
  method: "POST",
2568
2611
  headers: {
2569
2612
  "Content-type": "application/json;charset=UTF-8",
2570
2613
  Accept: "application/json",
2571
2614
  "X-DS-SWYM-CSRFTOKEN": i
2572
2615
  },
2573
- data: JSON.stringify({ richMessage: a }),
2616
+ data: JSON.stringify({ richMessage: o }),
2574
2617
  type: "json",
2575
2618
  onComplete(u, p, f) {
2576
2619
  const l = {
@@ -2582,37 +2625,37 @@ function Ft(e, t = void 0, n = void 0) {
2582
2625
  n && n(u);
2583
2626
  }
2584
2627
  };
2585
- m(o, d);
2628
+ m(a, d);
2586
2629
  }
2587
- function Rt(e, t = void 0, n = void 0) {
2630
+ function jt(e, t = void 0, n = void 0) {
2588
2631
  e.tenant && M(e, (s) => {
2589
2632
  const i = s.services.find((r) => r.id === "businessprocess")?.url + "/api/v2";
2590
2633
  return t && t(i), i;
2591
2634
  });
2592
2635
  }
2593
- function jt(e, t = void 0, n = void 0) {
2636
+ function kt(e, t = void 0, n = void 0) {
2594
2637
  console.log("_Iterop_Auth_CAS"), e.tenant && M(e, (s) => {
2595
2638
  console.log("serviceUrls", s);
2596
2639
  const i = s.services.find(
2597
- (o) => o.id === "3dpassport"
2598
- )?.url, r = s.services.find((o) => o.id === "businessprocess")?.url + "/api/v2", a = `${i}/login/?cors=false&service=${r}/auth/cas`;
2599
- m(a, {
2600
- async onComplete(o) {
2601
- console.log("response", o);
2602
- const c = typeof o == "string" ? JSON.parse(o)?.x3ds_service_redirect_url : o?.x3ds_service_redirect_url;
2640
+ (a) => a.id === "3dpassport"
2641
+ )?.url, r = s.services.find((a) => a.id === "businessprocess")?.url + "/api/v2", o = `${i}/login/?cors=false&service=${r}/auth/cas`;
2642
+ m(o, {
2643
+ async onComplete(a) {
2644
+ console.log("response", a);
2645
+ const c = typeof a == "string" ? JSON.parse(a)?.x3ds_service_redirect_url : a?.x3ds_service_redirect_url;
2603
2646
  await fetch(c, {
2604
2647
  method: "POST"
2605
2648
  }).then((d) => d.json()).then(async (d) => {
2606
2649
  t && t(d?.token);
2607
2650
  });
2608
2651
  },
2609
- onFailure(o) {
2610
- n && n(o);
2652
+ onFailure(a) {
2653
+ n && n(a);
2611
2654
  }
2612
2655
  });
2613
2656
  });
2614
2657
  }
2615
- function Dt(e, t = void 0, n = void 0) {
2658
+ function vt(e, t = void 0, n = void 0) {
2616
2659
  if (e.tenant) {
2617
2660
  const s = e.tenant.toLowerCase();
2618
2661
  fetch(`https://api.uixhome.fr/${s}/iterop/jwtuser`, {
@@ -2624,7 +2667,7 @@ function Dt(e, t = void 0, n = void 0) {
2624
2667
  });
2625
2668
  }
2626
2669
  }
2627
- async function kt(e, t, n = void 0, s = void 0) {
2670
+ async function Dt(e, t, n = void 0, s = void 0) {
2628
2671
  if (e.tenant) {
2629
2672
  const i = e.tenant.toLowerCase();
2630
2673
  fetch(
@@ -2639,7 +2682,7 @@ async function kt(e, t, n = void 0, s = void 0) {
2639
2682
  });
2640
2683
  }
2641
2684
  }
2642
- function vt(e, t, n, s = void 0, i = void 0) {
2685
+ function At(e, t, n, s = void 0, i = void 0) {
2643
2686
  if (e.tenant) {
2644
2687
  const r = e.tenant.toLowerCase();
2645
2688
  fetch(
@@ -2647,14 +2690,14 @@ function vt(e, t, n, s = void 0, i = void 0) {
2647
2690
  {
2648
2691
  method: "POST"
2649
2692
  }
2650
- ).then((a) => a.json()).then((a) => {
2651
- s && s(a);
2652
- }).catch((a) => {
2653
- i && i(a);
2693
+ ).then((o) => o.json()).then((o) => {
2694
+ s && s(o);
2695
+ }).catch((o) => {
2696
+ i && i(o);
2654
2697
  });
2655
2698
  }
2656
2699
  }
2657
- async function At(e, t, n, s = void 0, i = void 0) {
2700
+ async function Pt(e, t, n, s = void 0, i = void 0) {
2658
2701
  if (e.tenant) {
2659
2702
  const r = e.tenant.toLowerCase();
2660
2703
  fetch(
@@ -2662,39 +2705,39 @@ async function At(e, t, n, s = void 0, i = void 0) {
2662
2705
  {
2663
2706
  method: "POST"
2664
2707
  }
2665
- ).then((a) => a.json()).then((a) => {
2666
- s && s(a);
2667
- }).catch((a) => {
2668
- i && i(a);
2708
+ ).then((o) => o.json()).then((o) => {
2709
+ s && s(o);
2710
+ }).catch((o) => {
2711
+ i && i(o);
2669
2712
  });
2670
2713
  }
2671
2714
  }
2672
- async function Pt(e, t, n, s, i = void 0, r = void 0) {
2715
+ async function Lt(e, t, n, s, i = void 0, r = void 0) {
2673
2716
  if (e.tenant) {
2674
- const a = e.tenant.toLowerCase();
2717
+ const o = e.tenant.toLowerCase();
2675
2718
  fetch(
2676
- `https://api.uixhome.fr/${a}/iterop/businesstable/patch/rows/${n}/?t=${t}&b=${s}`,
2719
+ `https://api.uixhome.fr/${o}/iterop/businesstable/patch/rows/${n}/?t=${t}&b=${s}`,
2677
2720
  {
2678
2721
  method: "POST"
2679
2722
  }
2680
- ).then((o) => o.json()).then((o) => {
2681
- i && i(o);
2682
- }).catch((o) => {
2683
- r && r(o, n, s);
2723
+ ).then((a) => a.json()).then((a) => {
2724
+ i && i(a);
2725
+ }).catch((a) => {
2726
+ r && r(a, n, s);
2684
2727
  });
2685
2728
  }
2686
2729
  }
2687
- async function Lt(e, t, n, s, i, r = void 0, a = void 0) {
2730
+ async function Mt(e, t, n, s, i, r = void 0, o = void 0) {
2688
2731
  if (e.tenant) {
2689
- const o = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/search/rows/${n}?t=${t}&c=${encodeURIComponent(
2732
+ const a = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/search/rows/${n}?t=${t}&c=${encodeURIComponent(
2690
2733
  s
2691
2734
  )}&b=${encodeURIComponent(i)}`;
2692
- fetch(o, {
2735
+ fetch(a, {
2693
2736
  method: "POST"
2694
2737
  }).then((c) => c.json()).then((c) => {
2695
- c.url = o, r && r(c);
2738
+ c.url = a, r && r(c);
2696
2739
  }).catch((c) => {
2697
- a && a({
2740
+ o && o({
2698
2741
  error: c,
2699
2742
  tableId: n,
2700
2743
  columns: s,
@@ -2703,52 +2746,52 @@ async function Lt(e, t, n, s, i, r = void 0, a = void 0) {
2703
2746
  });
2704
2747
  }
2705
2748
  }
2706
- async function Mt(e, t, n, s, i = void 0, r = void 0) {
2749
+ async function Jt(e, t, n, s, i = void 0, r = void 0) {
2707
2750
  if (e.tenant) {
2708
- const a = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/update/${n}?t=${t}&b=${encodeURIComponent(
2751
+ const o = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/update/${n}?t=${t}&b=${encodeURIComponent(
2709
2752
  s
2710
2753
  )}`;
2711
- fetch(a, {
2754
+ fetch(o, {
2712
2755
  method: "POST"
2713
- }).then((o) => o.json()).then((o) => {
2714
- i && i(o);
2715
- }).catch((o) => {
2756
+ }).then((a) => a.json()).then((a) => {
2757
+ i && i(a);
2758
+ }).catch((a) => {
2716
2759
  r && r({
2717
- error: o,
2718
- url: a
2760
+ error: a,
2761
+ url: o
2719
2762
  });
2720
2763
  });
2721
2764
  }
2722
2765
  }
2723
- async function Jt(e, t, n, s = void 0, i = void 0) {
2766
+ async function Gt(e, t, n, s = void 0, i = void 0) {
2724
2767
  if (e.tenant) {
2725
2768
  const r = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/create/?t=${t}&b=${encodeURIComponent(
2726
2769
  n
2727
2770
  )}`;
2728
2771
  fetch(r, {
2729
2772
  method: "POST"
2730
- }).then((a) => a.json()).then((a) => {
2731
- s && s(a);
2732
- }).catch((a) => {
2773
+ }).then((o) => o.json()).then((o) => {
2774
+ s && s(o);
2775
+ }).catch((o) => {
2733
2776
  i && i({
2734
- error: a,
2777
+ error: o,
2735
2778
  url: r
2736
2779
  });
2737
2780
  });
2738
2781
  }
2739
2782
  }
2740
- async function Gt(e, t, n, s, i = void 0, r = void 0) {
2783
+ async function Et(e, t, n, s, i = void 0, r = void 0) {
2741
2784
  if (e.tenant) {
2742
- const a = e.tenant.toLowerCase();
2785
+ const o = e.tenant.toLowerCase();
2743
2786
  fetch(
2744
- `https://api.uixhome.fr/${a}/iterop/runtime/processes/${n}?t=${t}&b=${s}`,
2787
+ `https://api.uixhome.fr/${o}/iterop/runtime/processes/${n}?t=${t}&b=${s}`,
2745
2788
  {
2746
2789
  method: "POST"
2747
2790
  }
2748
- ).then((o) => o.json()).then((o) => {
2749
- console.log("_Iterop_runProcess : OK"), i && i(o);
2750
- }).catch((o) => {
2751
- r && r(o);
2791
+ ).then((a) => a.json()).then((a) => {
2792
+ console.log("_Iterop_runProcess : OK"), i && i(a);
2793
+ }).catch((a) => {
2794
+ r && r(a);
2752
2795
  });
2753
2796
  }
2754
2797
  }
@@ -2760,45 +2803,45 @@ async function Kt(e, t, n, s = void 0, i = void 0) {
2760
2803
  {
2761
2804
  method: "POST"
2762
2805
  }
2763
- ).then((a) => a.json()).then((a) => {
2764
- s && s(a);
2765
- }).catch((a) => {
2766
- i && i(a);
2806
+ ).then((o) => o.json()).then((o) => {
2807
+ s && s(o);
2808
+ }).catch((o) => {
2809
+ i && i(o);
2767
2810
  });
2768
2811
  }
2769
2812
  }
2770
- async function qt(e, t, n, s, i, r = void 0, a = void 0) {
2813
+ async function Bt(e, t, n, s, i, r = void 0, o = void 0) {
2771
2814
  if (e.tenant) {
2772
- const o = e.tenant.toLowerCase();
2815
+ const a = e.tenant.toLowerCase();
2773
2816
  fetch(
2774
- `https://api.uixhome.fr/${o}/iterop/dependencytable/patch/${n}/?t=${t}&cli=${s}&b=${i}`,
2817
+ `https://api.uixhome.fr/${a}/iterop/dependencytable/patch/${n}/?t=${t}&cli=${s}&b=${i}`,
2775
2818
  {
2776
2819
  method: "POST"
2777
2820
  }
2778
2821
  ).then((c) => c.json()).then((c) => {
2779
2822
  r && r(c);
2780
2823
  }).catch((c) => {
2781
- a && a(c);
2824
+ o && o(c);
2782
2825
  });
2783
2826
  }
2784
2827
  }
2785
- async function Bt(e, t, n, s, i = void 0, r = void 0) {
2828
+ async function qt(e, t, n, s, i = void 0, r = void 0) {
2786
2829
  if (e.tenant) {
2787
- const a = e.tenant.toLowerCase();
2830
+ const o = e.tenant.toLowerCase();
2788
2831
  fetch(
2789
- `https://api.uixhome.fr/${a}/iterop/dependencytable/put/${n}/?t=${t}&b=${s}`,
2832
+ `https://api.uixhome.fr/${o}/iterop/dependencytable/put/${n}/?t=${t}&b=${s}`,
2790
2833
  {
2791
2834
  method: "POST"
2792
2835
  }
2793
- ).then((o) => o.json()).then((o) => {
2794
- i && i(o);
2795
- }).catch((o) => {
2796
- r && r(o);
2836
+ ).then((a) => a.json()).then((a) => {
2837
+ i && i(a);
2838
+ }).catch((a) => {
2839
+ r && r(a);
2797
2840
  });
2798
2841
  }
2799
2842
  }
2800
2843
  //!SECTION
2801
- async function Et(e, t, n, s = void 0, i = void 0) {
2844
+ async function Xt(e, t, n, s = void 0, i = void 0) {
2802
2845
  if (e.tenant) {
2803
2846
  const r = e.tenant.toLowerCase();
2804
2847
  fetch(
@@ -2806,42 +2849,42 @@ async function Et(e, t, n, s = void 0, i = void 0) {
2806
2849
  {
2807
2850
  method: "POST"
2808
2851
  }
2809
- ).then((a) => a.json()).then((a) => {
2810
- s && s(a);
2811
- }).catch((a) => {
2812
- i && i(a);
2852
+ ).then((o) => o.json()).then((o) => {
2853
+ s && s(o);
2854
+ }).catch((o) => {
2855
+ i && i(o);
2813
2856
  });
2814
2857
  }
2815
2858
  }
2816
2859
  //!SECTION
2817
- function Xt(e) {
2860
+ function Wt(e) {
2818
2861
  const t = "Hello " + e;
2819
2862
  return console.log(t), t;
2820
2863
  }
2821
- function Wt(e, t = void 0, n = void 0) {
2864
+ function Vt(e, t = void 0, n = void 0) {
2822
2865
  return console.log("credentials", e), new Promise((s) => {
2823
- if (e.token === "" && T(e), !e.space || e.space === "") {
2824
- const a = Z();
2825
- console.log("platformeInfo", a);
2866
+ if (e.token === "" && b(e), !e.space || e.space === "") {
2867
+ const o = Z();
2868
+ console.log("platformeInfo", o);
2826
2869
  }
2827
- F(
2870
+ R(
2828
2871
  e,
2829
2872
  "Common space",
2830
2873
  ["VPLMProjectLeader", "VPLMCreator"],
2831
2874
  void 0,
2832
- (a) => e.ctx = a,
2833
- (a) => {
2834
- console.log("onError =>", a);
2875
+ (o) => e.ctx = o,
2876
+ (o) => {
2877
+ console.log("onError =>", o);
2835
2878
  },
2836
2879
  !0
2837
2880
  );
2838
2881
  const i = O.now().ts, r = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dsearch&platformId=${e.tenant}`;
2839
2882
  m(r, {
2840
- onComplete(a) {
2841
- if (Array.isArray(JSON.parse(a))) {
2842
- const o = JSON.parse(a);
2843
- console.log("serviceId=3dsearch", o);
2844
- const c = `${o[0].services[0].url}/search?xrequestedwith=xmlhttprequest`;
2883
+ onComplete(o) {
2884
+ if (Array.isArray(JSON.parse(o))) {
2885
+ const a = JSON.parse(o);
2886
+ console.log("serviceId=3dsearch", a);
2887
+ const c = `${a[0].services[0].url}/search?xrequestedwith=xmlhttprequest`;
2845
2888
  m(c, {
2846
2889
  method: "POST",
2847
2890
  headers: {
@@ -2891,111 +2934,112 @@ function Wt(e, t = void 0, n = void 0) {
2891
2934
  });
2892
2935
  }
2893
2936
  },
2894
- onFailure(a) {
2895
- n && n(a);
2937
+ onFailure(o) {
2938
+ n && n(o);
2896
2939
  }
2897
2940
  });
2898
2941
  });
2899
2942
  }
2900
2943
  export {
2901
2944
  Y as UUID,
2902
- Wt as _3DSearch_usersGroup,
2903
- He as _3DSpace_Create_Doc,
2904
- ze as _3DSpace_Update_Doc,
2905
- Ye as _3DSpace_Upload_File,
2945
+ Vt as _3DSearch_usersGroup,
2946
+ Qe as _3DSpace_Create_Doc,
2947
+ He as _3DSpace_Update_Doc,
2948
+ ze as _3DSpace_Upload_File,
2906
2949
  at as _3DSpace_bookmark_addSubsciptions,
2907
- it as _3DSpace_bookmark_newWorkspace,
2908
- T as _3DSpace_csrf,
2909
- q as _3DSpace_download_doc,
2950
+ ot as _3DSpace_bookmark_newWorkspace,
2951
+ b as _3DSpace_csrf,
2952
+ K as _3DSpace_download_doc,
2910
2953
  ce as _3DSpace_download_multidoc,
2911
2954
  G as _3DSpace_file_update,
2912
- ae as _3DSpace_file_update_csr,
2913
- We as _3DSpace_file_url_csr,
2955
+ oe as _3DSpace_file_update_csr,
2956
+ Ve as _3DSpace_file_url_csr,
2914
2957
  N as _3DSpace_get_csrf,
2915
2958
  J as _3DSpace_get_docInfo,
2916
2959
  de as _3DSpace_get_downloadTicket_multidoc,
2917
- Xe as _3DSpace_get_multiDocInfo,
2918
- F as _3DSpace_get_securityContexts,
2919
- D as _3DSpace_get_ticket,
2920
- nt as _3DSpace_lifecycle_changeRevision,
2921
- Ze as _3DSpace_lifecycle_changeState,
2922
- et as _3DSpace_lifecycle_getGraph,
2923
- tt as _3DSpace_lifecycle_getNextRevision,
2924
- Qe as _3DSpace_lifecycle_getNextStates,
2925
- st as _3DSpace_lifecycle_getRevisions,
2926
- Ve as _3DSpace_put_docInfo,
2927
- Ut as _3DSwym_ForwardIdea,
2960
+ We as _3DSpace_get_multiDocInfo,
2961
+ R as _3DSpace_get_securityContexts,
2962
+ k as _3DSpace_get_ticket,
2963
+ st as _3DSpace_lifecycle_changeRevision,
2964
+ et as _3DSpace_lifecycle_changeState,
2965
+ tt as _3DSpace_lifecycle_getGraph,
2966
+ nt as _3DSpace_lifecycle_getNextRevision,
2967
+ Ze as _3DSpace_lifecycle_getNextStates,
2968
+ it as _3DSpace_lifecycle_getRevisions,
2969
+ Ye as _3DSpace_put_docInfo,
2970
+ It as _3DSwym_ForwardIdea,
2928
2971
  Ft as _3DSwym_addComment,
2929
- wt as _3DSwym_buildDirectMessage,
2930
- bt as _3DSwym_deleteIdea,
2931
- $t as _3DSwym_editIdea,
2932
- _e as _3DSwym_findCommunityToInstantMSG,
2933
- yt as _3DSwym_getAllCommunities,
2972
+ Ct as _3DSwym_buildDirectMessage,
2973
+ Ot as _3DSwym_deleteIdea,
2974
+ Ut as _3DSwym_editIdea,
2975
+ ye as _3DSwym_findCommunityToInstantMSG,
2976
+ St as _3DSwym_getAllCommunities,
2934
2977
  xt as _3DSwym_getAllListIdeas,
2935
- ht as _3DSwym_getAllNews,
2978
+ yt as _3DSwym_getAllNews,
2936
2979
  _t as _3DSwym_getFamiliarPeople,
2937
- St as _3DSwym_getIdeaStatusMaturity,
2980
+ wt as _3DSwym_getIdeaStatusMaturity,
2938
2981
  he as _3DSwym_getMembersCommunity,
2939
- Ot as _3DSwym_getOneIdea,
2982
+ $t as _3DSwym_getOneIdea,
2940
2983
  C as _3DSwym_get_Token,
2941
- It as _3DSwym_get_currentUser,
2942
- Nt as _3DSwym_get_findUser,
2984
+ Nt as _3DSwym_get_currentUser,
2985
+ Rt as _3DSwym_get_findUser,
2943
2986
  Tt as _3DSwym_postIdea,
2944
- Ct as _3DSwym_postIdeaTemplate,
2987
+ bt as _3DSwym_postIdeaTemplate,
2945
2988
  P as _3DSwym_sendMessageData,
2946
2989
  Le as _AppMngt_get_info_user,
2947
2990
  Pe as _AppMngt_get_users,
2948
- Pt as _Iterop_AddOrRemoveRows,
2949
- jt as _Iterop_Auth_CAS,
2991
+ Lt as _Iterop_AddOrRemoveRows,
2992
+ kt as _Iterop_Auth_CAS,
2950
2993
  Kt as _Iterop_GetOneDependencyTable,
2951
- Et as _Iterop_GetOneList,
2952
- qt as _Iterop_PatchDependencyTable,
2953
- Bt as _Iterop_PutDependencyTable,
2954
- Lt as _Iterop_businessTableSearchInRows,
2955
- Jt as _Iterop_createBusinessTable,
2956
- kt as _Iterop_getAllBusinessTables,
2957
- vt as _Iterop_getOneBusinessTable,
2958
- At as _Iterop_getOneBusinessTableRows,
2959
- Dt as _Iterop_jwtUser,
2960
- Gt as _Iterop_runProcess,
2961
- Mt as _Iterop_updateBusinessTable,
2962
- ke as _getMe,
2994
+ Xt as _Iterop_GetOneList,
2995
+ Bt as _Iterop_PatchDependencyTable,
2996
+ qt as _Iterop_PutDependencyTable,
2997
+ Mt as _Iterop_businessTableSearchInRows,
2998
+ Gt as _Iterop_createBusinessTable,
2999
+ Dt as _Iterop_getAllBusinessTables,
3000
+ At as _Iterop_getOneBusinessTable,
3001
+ Pt as _Iterop_getOneBusinessTableRows,
3002
+ vt as _Iterop_jwtUser,
3003
+ Et as _Iterop_runProcess,
3004
+ Jt as _Iterop_updateBusinessTable,
3005
+ ve as _getMe,
2963
3006
  Z as _getPlateformInfos,
2964
- De as _getPlatformServices,
3007
+ ke as _getPlatformServices,
2965
3008
  M as _getServiceUrl,
2966
- ve as _getServiceUrl_3DPassport,
2967
- Rt as _getServiceUrl_Iterop,
3009
+ De as _getServiceUrl_3DPassport,
3010
+ jt as _getServiceUrl_Iterop,
2968
3011
  m as _httpCallAuthenticated,
2969
- Fe as _setDraggable,
3012
+ Re as _setDraggable,
2970
3013
  je as _setDroppable,
2971
- Re as _setupTagger,
2972
- ft as addTagToDoc,
3014
+ Fe as _setupTagger,
3015
+ mt as addTagToDoc,
2973
3016
  H as chunkArray,
2974
3017
  Ae as compass_getListAdditionalApps,
2975
3018
  z as couleurs,
2976
3019
  Me as createUserGroups,
2977
3020
  pe as dataMixing,
2978
3021
  Ke as deleteUserGroups,
2979
- Ue as findAdresse,
2980
- ot as getAllContextSecurity,
3022
+ xe as findAdresse,
3023
+ rt as getAllContextSecurity,
2981
3024
  te as getCSRFToken,
2982
- xe as getCommunes,
3025
+ Ue as getCommunes,
2983
3026
  Je as getComplementUG,
2984
- rt as getDataFrom3DSpace,
3027
+ ct as getDataFrom3DSpace,
2985
3028
  Ie as getDataFromGouvFr,
2986
- pt as getDatasByTenant,
2987
- lt as getDatasFrom3DSpace,
2988
- ct as getDownloadDocument,
2989
- gt as getInfoDocTags,
3029
+ lt as getDatasByTenant,
3030
+ ft as getDatasFrom3DSpace,
3031
+ dt as getDownloadDocument,
3032
+ ht as getInfoDocTags,
3033
+ Ee as getUserGroupsByURIList,
2990
3034
  Ge as getUserGroupsList,
2991
3035
  ee as getUsersGroupRules,
2992
- ut as get_3DSpace_csrf,
2993
- qe as patchUserGroups,
2994
- Be as patchUserGroupsControl,
2995
- dt as pushDataIn3DSpace,
2996
- Ee as readUserGroupControl,
2997
- mt as removeTagToDoc,
2998
- Xt as sayHello,
3036
+ pt as get_3DSpace_csrf,
3037
+ Be as patchUserGroups,
3038
+ qe as patchUserGroupsControl,
3039
+ ut as pushDataIn3DSpace,
3040
+ Xe as readUserGroupControl,
3041
+ gt as removeTagToDoc,
3042
+ Wt as sayHello,
2999
3043
  Ne as updateEvent
3000
3044
  };
3001
3045
  //# sourceMappingURL=wb3Api.js.map