@beam3_dev/api_module 0.0.280 → 0.0.281

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
@@ -1,10 +1,10 @@
1
- import { v4 as K } from "uuid";
1
+ import { v4 as V } from "uuid";
2
2
  import { DateTime as O } from "luxon";
3
3
  import { requirejs as $, widget as A } from "@widget-lab/3ddashboard-utils";
4
- function B() {
5
- return K();
4
+ function Y() {
5
+ return V();
6
6
  }
7
- const W = {
7
+ const H = {
8
8
  b3M3Yellow: "#FFB300",
9
9
  b3AboutageBlue: "#42A5F5",
10
10
  b3UsinageGreen: "#689F38",
@@ -34,7 +34,7 @@ const W = {
34
34
  b3Edit8: "#616161",
35
35
  b3Edit9: "#795548"
36
36
  };
37
- async function ye(e, t = void 0, n = void 0) {
37
+ async function $e(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 ye(e, t = void 0, n = void 0) {
50
50
  n && n(i), console.error("Erreur : " + i);
51
51
  });
52
52
  }
53
- async function Se(e, t = void 0, n = void 0) {
53
+ async function Ne(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
  {
@@ -65,7 +65,7 @@ async function Se(e, t = void 0, n = void 0) {
65
65
  n && n(s), console.error("Erreur : " + s);
66
66
  });
67
67
  }
68
- async function we(e, t = W) {
68
+ async function Fe(e, t = H) {
69
69
  let n = O.now().year;
70
70
  const s = e, i = [], r = (a) => {
71
71
  for (let c in a)
@@ -89,7 +89,7 @@ async function we(e, t = W) {
89
89
  } : s;
90
90
  for (let c of i)
91
91
  a.events.findIndex(
92
- (p) => p.start === O.fromISO(c.date).toISODate() && p.name === "Férié : " + c.comment
92
+ (u) => u.start === O.fromISO(c.date).toISODate() && u.name === "Férié : " + c.comment
93
93
  ) === -1 && a.events.push({
94
94
  name: "Férié : " + c.comment,
95
95
  start: O.fromISO(c.date).toISODate(),
@@ -100,13 +100,13 @@ async function we(e, t = W) {
100
100
  return a;
101
101
  })();
102
102
  }
103
- function X(e, t, n) {
103
+ function z(e, t, n) {
104
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
107
  a.push(d);
108
108
  }
109
- q(
109
+ Q(
110
110
  { credentials: s, chunks: a, initLoop: 0, fn: o },
111
111
  (c) => {
112
112
  t && t(c);
@@ -116,7 +116,7 @@ function X(e, t, n) {
116
116
  }
117
117
  );
118
118
  }
119
- function q(e, t, n) {
119
+ function Q(e, t, n) {
120
120
  const { credentials: s, chunks: i, initLoop: r, fn: o } = e, a = (c) => {
121
121
  o(
122
122
  s,
@@ -134,7 +134,7 @@ function q(e, t, n) {
134
134
  };
135
135
  a(r);
136
136
  }
137
- async function Ce(e, t, n = !0) {
137
+ async function Ie(e, t, n = !0) {
138
138
  const s = e.events.findIndex((i) => i.uuid === t.uuid);
139
139
  return s === -1 ? e.events.push(t) : n ? e.events[s] = t : e.events.splice(s, 1), e.length > 0 && e.sort((i, r) => i.start - r.start), e;
140
140
  }
@@ -143,7 +143,7 @@ function m(e, t) {
143
143
  n.authenticatedRequest(e, t);
144
144
  });
145
145
  }
146
- function Te(e, t, n) {
146
+ function Ue(e, t, n) {
147
147
  $(["DS/DataDragAndDrop/DataDragAndDrop"], (s) => {
148
148
  s.draggable(e, {
149
149
  data: t,
@@ -151,7 +151,7 @@ function Te(e, t, n) {
151
151
  });
152
152
  });
153
153
  }
154
- function be(e, t = void 0) {
154
+ function Re(e, t = void 0) {
155
155
  $(["DS/TagNavigatorProxy/TagNavigatorProxy"], (n) => {
156
156
  let s;
157
157
  s === void 0 && (s = n.createProxy({
@@ -160,14 +160,14 @@ function be(e, t = void 0) {
160
160
  }), t !== void 0 && s.addEvent("onFilterSubjectsChange", t)), s.setSubjectsTags(e);
161
161
  });
162
162
  }
163
- function Oe(e, t) {
163
+ function xe(e, t) {
164
164
  $(["DS/DataDragAndDrop/DataDragAndDrop"], (n) => {
165
165
  n.droppable(e, {
166
166
  drop: t
167
167
  });
168
168
  });
169
169
  }
170
- async function $e(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) => {
@@ -181,7 +181,7 @@ async function $e(e, t = void 0, n = void 0) {
181
181
  }
182
182
  );
183
183
  }
184
- function V() {
184
+ function Z() {
185
185
  let e = {};
186
186
  return $(["DS/PlatformAPI/PlatformAPI"], (t) => {
187
187
  const n = t.getTenant(), s = t.getUser(), i = t.getAllApplicationConfigurations(), r = t.getApplicationConfiguration(
@@ -195,7 +195,7 @@ function V() {
195
195
  };
196
196
  }), console.log("%cRETOUR API :", "color:blue", e), e;
197
197
  }
198
- function Ne(e, t = void 0, n = void 0) {
198
+ function je(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, {
@@ -209,7 +209,7 @@ function Ne(e, t = void 0, n = void 0) {
209
209
  });
210
210
  }
211
211
  }
212
- function v(e, t = void 0, n = void 0) {
212
+ function P(e, t = void 0, n = void 0) {
213
213
  if (e.tenant) {
214
214
  const s = `https://${e.tenant}-eu1-apps.3dexperience.3ds.com/enovia/resources/AppsMngt/api/v1/services?tenant=${e.tenant}&cors=true&xrequestedwith=xmlhttprequest`;
215
215
  m(s, {
@@ -229,7 +229,7 @@ function v(e, t = void 0, n = void 0) {
229
229
  });
230
230
  }
231
231
  }
232
- function Ie(e, t = void 0, n = void 0) {
232
+ function De(e, t = void 0, n = void 0) {
233
233
  if (e.tenant) {
234
234
  const s = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dpassport&platformId=${e.tenant}`;
235
235
  m(s, {
@@ -246,7 +246,7 @@ function Ie(e, t = void 0, n = void 0) {
246
246
  });
247
247
  }
248
248
  }
249
- function Re(e, t, n) {
249
+ function ve(e, t, n) {
250
250
  const s = {
251
251
  base: `${e.space}`,
252
252
  uri: "/resources/AppsMngt/api/custom/applications",
@@ -260,9 +260,9 @@ function Re(e, t, n) {
260
260
  Accept: "application/json"
261
261
  },
262
262
  onComplete(r, o, a) {
263
- const c = JSON.parse(r), d = c.data.map((p) => {
264
- const u = p.attributes.name, f = p.id;
265
- return { name: u, id: f };
263
+ const c = JSON.parse(r), d = c.data.map((u) => {
264
+ const p = u.attributes.name, f = u.id;
265
+ return { name: p, id: f };
266
266
  });
267
267
  t && t(d, c);
268
268
  },
@@ -272,7 +272,7 @@ function Re(e, t, n) {
272
272
  }
273
273
  });
274
274
  }
275
- function Ue(e, t = void 0, n = void 0) {
275
+ function Ae(e, t = void 0, n = void 0) {
276
276
  let s = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&limit=-1`;
277
277
  m(s, {
278
278
  onComplete(i, r, o) {
@@ -285,7 +285,7 @@ function Ue(e, t = void 0, n = void 0) {
285
285
  }
286
286
  });
287
287
  }
288
- function Fe(e, t, n = void 0, s = void 0) {
288
+ function Pe(e, t, n = void 0, s = void 0) {
289
289
  let i = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&id=${t}`;
290
290
  m(i, {
291
291
  onComplete(r, o, a) {
@@ -298,11 +298,11 @@ function Fe(e, t, n = void 0, s = void 0) {
298
298
  }
299
299
  });
300
300
  }
301
- const F = {
301
+ const k = {
302
302
  "Content-Type": "application/json",
303
303
  Accept: "application/json,text/javascript,*/*"
304
304
  };
305
- function ke(e, t, n = void 0, s = void 0) {
305
+ function Le(e, t, n = void 0, s = void 0) {
306
306
  const { space: i, currentUser: r } = e, a = `${i}${{
307
307
  URIUGr: "/3drdfpersist/resources/v1/usersgroup"
308
308
  }.URIUGr}`, c = {
@@ -319,19 +319,19 @@ function ke(e, t, n = void 0, s = void 0) {
319
319
  };
320
320
  m(a, {
321
321
  method: "POST",
322
- headers: F,
322
+ headers: k,
323
323
  data: JSON.stringify(c),
324
324
  onComplete(d) {
325
325
  n && n(JSON.parse(d));
326
326
  },
327
- onFailure(d, p) {
327
+ onFailure(d, u) {
328
328
  console.log(d);
329
- const u = d;
330
- u.msg = p.errormsg, u.errCode = p.errorcode, console.log("❌ sendDirectMessage => ", u), s && s(u);
329
+ const p = d;
330
+ p.msg = u.errormsg, p.errCode = u.errorcode, console.log("❌ sendDirectMessage => ", p), s && s(p);
331
331
  }
332
332
  });
333
333
  }
334
- function je(e, t, n = void 0, s = void 0) {
334
+ function Me(e, t, n = void 0, s = void 0) {
335
335
  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}`;
336
336
  m(d, {
337
337
  opts: {
@@ -345,28 +345,28 @@ function je(e, t, n = void 0, s = void 0) {
345
345
  n && n(JSON.parse(f));
346
346
  },
347
347
  onFailure(f, l) {
348
- const g = f;
349
- g.msg = l.errormsg, g.errCode = l.errorcode, s && s(g);
348
+ const h = f;
349
+ h.msg = l.errormsg, h.errCode = l.errorcode, s && s(h);
350
350
  }
351
351
  });
352
352
  }
353
- function Y(e, t = void 0, n = void 0) {
353
+ function ee(e, t = void 0, n = void 0) {
354
354
  const { space: s, tenant: i } = e, r = s, o = "/3drdfpersist/resources/v1/option-sets/dsusergroup:ListOfGroupResponsibilities/options", a = `?tenant=dstenant:${i}`, c = {
355
355
  method: "GET",
356
356
  Accept: "application/json,*/*,test/javascript"
357
357
  }, d = `${r}${o}${a}`;
358
358
  m(d, {
359
359
  OPTsH: c,
360
- onComplete(p) {
361
- t && t(JSON.parse(p));
360
+ onComplete(u) {
361
+ t && t(JSON.parse(u));
362
362
  },
363
- onFailure(p, u) {
364
- const f = p;
365
- f.msg = u.errormsg, f.errCode = u.errorcode, n && n(f);
363
+ onFailure(u, p) {
364
+ const f = u;
365
+ f.msg = p.errormsg, f.errCode = p.errorcode, n && n(f);
366
366
  }
367
367
  });
368
368
  }
369
- function xe(e, t = void 0, n = void 0) {
369
+ function Je(e, t = void 0, n = void 0) {
370
370
  const { space: s, currentUser: i } = e, a = `${s}/3drdfpersist/resources/v1/usersgroup?select=uri,title,description,owner,members,pending_members,creation_date,modification_date,visibility`, d = { method: "GET", headers: {
371
371
  "Content-Type": "application/json",
372
372
  Accept: "application/json,text/javascript,*/*"
@@ -374,11 +374,11 @@ function xe(e, t = void 0, n = void 0) {
374
374
  try {
375
375
  m(a, {
376
376
  opts: d,
377
- onComplete(p) {
378
- const u = JSON.parse(p), f = {}, l = u.groups.filter((g) => g.uri.startsWith("uuid:"));
377
+ onComplete(u) {
378
+ const p = JSON.parse(u), f = {}, l = p.groups.filter((h) => h.uri.startsWith("uuid:"));
379
379
  if (i && Object.keys(i).length > 0) {
380
- const g = l.filter((y) => y.owner === i.email), h = l.filter((y) => y.members.includes(i.email)), _ = g.concat(h);
381
- f.iam = _, f.UG = l, f.iamMember = h, Y(
380
+ const h = l.filter((y) => y.owner === i.email), g = l.filter((y) => y.members.includes(i.email)), _ = h.concat(g);
381
+ f.iam = _, f.UG = l, f.iamMember = g, ee(
382
382
  e,
383
383
  (y) => {
384
384
  f.rules = y, t && t(f);
@@ -389,21 +389,21 @@ function xe(e, t = void 0, n = void 0) {
389
389
  );
390
390
  }
391
391
  },
392
- onFailure(p) {
393
- n && n(p);
392
+ onFailure(u) {
393
+ n && n(u);
394
394
  }
395
395
  });
396
- } catch (p) {
397
- console.log(p);
396
+ } catch (u) {
397
+ console.log(u);
398
398
  }
399
399
  }
400
- function Ae(e, t) {
400
+ function Ge(e, t) {
401
401
  const { space: n } = e, i = `${n}/3drdfpersist/resources/v1/usersgroup/${t}`;
402
402
  m(i, {
403
403
  method: "DELETE"
404
404
  });
405
405
  }
406
- function ve(e, t, n, s = void 0, i = void 0) {
406
+ function Ke(e, t, n, s = void 0, i = void 0) {
407
407
  const { space: r, tenant: o } = e, a = {
408
408
  URITI: "/3drdfpersist/resources/v1/template-instances",
409
409
  URIUGr: "/3drdfpersist/resources/v1/usersgroup",
@@ -412,25 +412,25 @@ function ve(e, t, n, s = void 0, i = void 0) {
412
412
  nexURImem: "/members",
413
413
  OPTsTI: "?$mask=dsaccess:Mask.GroupUI.Properties",
414
414
  OPTsTenant: `tenant=dstenant:${o}`
415
- }, c = n, d = `${r}${a.URIUGr}/${t}`, p = JSON.stringify(c);
415
+ }, c = n, d = `${r}${a.URIUGr}/${t}`, u = JSON.stringify(c);
416
416
  m(d, {
417
- headers: F,
417
+ headers: k,
418
418
  method: "PATCH",
419
- data: p,
419
+ data: u,
420
420
  type: "json",
421
- onComplete(u) {
422
- s && s(u);
421
+ onComplete(p) {
422
+ s && s(p);
423
423
  },
424
- onFailure(u) {
425
- i && i(u);
424
+ onFailure(p) {
425
+ i && i(p);
426
426
  }
427
427
  });
428
428
  }
429
- function De(e, t, n, s = void 0, i = void 0) {
429
+ function Be(e, t, n, s = void 0, i = void 0) {
430
430
  const { space: r } = e, a = `${r}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
431
431
  m(a, {
432
432
  method: "PATCH",
433
- headers: F,
433
+ headers: k,
434
434
  data: JSON.stringify(n),
435
435
  type: "json",
436
436
  onComplete(d) {
@@ -441,7 +441,7 @@ function De(e, t, n, s = void 0, i = void 0) {
441
441
  }
442
442
  });
443
443
  }
444
- function Pe(e, t, n = void 0, s = void 0) {
444
+ function Ee(e, t, n = void 0, s = void 0) {
445
445
  const { space: i } = e, o = `${i}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
446
446
  m(o, {
447
447
  opts: {
@@ -459,7 +459,7 @@ function Pe(e, t, n = void 0, s = void 0) {
459
459
  }
460
460
  });
461
461
  }
462
- async function H(e, t, n) {
462
+ async function te(e, t, n) {
463
463
  if (e.space) {
464
464
  const s = `${e.space}/resources/v1/application/CSRF`;
465
465
  m(s, {
@@ -472,11 +472,11 @@ async function H(e, t, n) {
472
472
  });
473
473
  }
474
474
  }
475
- var I = {};
476
- function z(e, t) {
475
+ var F = {};
476
+ function ne(e, t) {
477
477
  return Object.prototype.hasOwnProperty.call(e, t);
478
478
  }
479
- var Q = function(e, t, n, s) {
479
+ var se = function(e, t, n, s) {
480
480
  t = t || "&", n = n || "=";
481
481
  var i = {};
482
482
  if (typeof e != "string" || e.length === 0)
@@ -488,8 +488,8 @@ var Q = function(e, t, n, s) {
488
488
  var a = e.length;
489
489
  o > 0 && a > o && (a = o);
490
490
  for (var c = 0; c < a; ++c) {
491
- var d = e[c].replace(r, "%20"), p = d.indexOf(n), u, f, l, g;
492
- p >= 0 ? (u = d.substr(0, p), f = d.substr(p + 1)) : (u = d, f = ""), l = decodeURIComponent(u), g = decodeURIComponent(f), z(i, l) ? Array.isArray(i[l]) ? i[l].push(g) : i[l] = [i[l], g] : i[l] = g;
491
+ var d = e[c].replace(r, "%20"), u = d.indexOf(n), p, f, l, h;
492
+ u >= 0 ? (p = d.substr(0, u), f = d.substr(u + 1)) : (p = d, f = ""), l = decodeURIComponent(p), h = decodeURIComponent(f), ne(i, l) ? Array.isArray(i[l]) ? i[l].push(h) : i[l] = [i[l], h] : i[l] = h;
493
493
  }
494
494
  return i;
495
495
  }, N = function(e) {
@@ -503,7 +503,7 @@ var Q = function(e, t, n, s) {
503
503
  default:
504
504
  return "";
505
505
  }
506
- }, Z = function(e, t, n, s) {
506
+ }, ie = function(e, t, n, s) {
507
507
  return t = t || "&", n = n || "=", e === null && (e = void 0), typeof e == "object" ? Object.keys(e).map(function(i) {
508
508
  var r = encodeURIComponent(N(i)) + n;
509
509
  return Array.isArray(e[i]) ? e[i].map(function(o) {
@@ -511,9 +511,9 @@ var Q = function(e, t, n, s) {
511
511
  }).join(t) : r + encodeURIComponent(N(e[i]));
512
512
  }).filter(Boolean).join(t) : s ? encodeURIComponent(N(s)) + n + encodeURIComponent(N(e)) : "";
513
513
  };
514
- I.decode = I.parse = Q;
515
- I.encode = I.stringify = Z;
516
- async function D(e, t = void 0, n = void 0, s = void 0) {
514
+ F.decode = F.parse = se;
515
+ F.encode = F.stringify = ie;
516
+ async function L(e, t = void 0, n = void 0, s = void 0) {
517
517
  const i = e.space;
518
518
  if (t === void 0) {
519
519
  console.log("Le paramètre docid est obligatoire");
@@ -530,13 +530,13 @@ async function D(e, t = void 0, n = void 0, s = void 0) {
530
530
  }
531
531
  });
532
532
  }
533
- async function Le(e, t = void 0, n = void 0, s = void 0) {
533
+ async function qe(e, t = void 0, n = void 0, s = void 0) {
534
534
  const i = e.space;
535
535
  if (t === void 0) {
536
536
  console.log("Le paramètre docids est obligatoire");
537
537
  return;
538
538
  }
539
- let r = `${i}/resources/v1/modeler/documents/ids?$include=!files,!ownerInfo,!originatorInfo,!relOwnerInfo'`, o = I.stringify({
539
+ let r = `${i}/resources/v1/modeler/documents/ids?$include=!files,!ownerInfo,!originatorInfo,!relOwnerInfo'`, o = F.stringify({
540
540
  $ids: t.toString().replace('"', "").replace("[", "").replace("]", "")
541
541
  });
542
542
  m(r, {
@@ -546,15 +546,15 @@ async function Le(e, t = void 0, n = void 0, s = void 0) {
546
546
  },
547
547
  data: o,
548
548
  onComplete(a, c, d) {
549
- const p = JSON.parse(a);
550
- n && n(p);
549
+ const u = JSON.parse(a);
550
+ n && n(u);
551
551
  },
552
552
  onFailure(a) {
553
553
  s && s(a);
554
554
  }
555
555
  });
556
556
  }
557
- function R(e, t = void 0, n = void 0) {
557
+ function U(e, t = void 0, n = void 0) {
558
558
  if (e.objID && e.objID !== "") {
559
559
  let s = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
560
560
  m(s, {
@@ -596,9 +596,9 @@ function b(e, t = void 0, n = void 0) {
596
596
  } else
597
597
  n && n("ERROR : url du 3DSpace non défini.");
598
598
  }
599
- function k(e, t = void 0, n = void 0) {
599
+ function j(e, t = void 0, n = void 0) {
600
600
  let s = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
601
- R(
601
+ U(
602
602
  e,
603
603
  (i) => {
604
604
  m(s, {
@@ -620,7 +620,7 @@ function k(e, t = void 0, n = void 0) {
620
620
  }
621
621
  );
622
622
  }
623
- function Me(e, t, n = void 0, s = void 0, i = void 0) {
623
+ function Xe(e, t, n = void 0, s = void 0, i = void 0) {
624
624
  const r = `${e.space}/resources/v1/modeler/documents/${t}/files/DownloadTicket`;
625
625
  n || (n = e.token), m(r, {
626
626
  method: "PUT",
@@ -642,8 +642,8 @@ function Me(e, t, n = void 0, s = void 0, i = void 0) {
642
642
  }
643
643
  });
644
644
  }
645
- function P(e, t, n, s, i, r = void 0, o = void 0) {
646
- const a = () => ee(
645
+ function M(e, t, n, s, i, r = void 0, o = void 0) {
646
+ const a = () => ae(
647
647
  e,
648
648
  t,
649
649
  n,
@@ -653,7 +653,7 @@ function P(e, t, n, s, i, r = void 0, o = void 0) {
653
653
  r,
654
654
  o
655
655
  );
656
- e.token ? a() : R(
656
+ e.token ? a() : U(
657
657
  e,
658
658
  t,
659
659
  (c) => {
@@ -661,21 +661,21 @@ function P(e, t, n, s, i, r = void 0, o = void 0) {
661
661
  }
662
662
  );
663
663
  }
664
- function ee(e, t, n, s, i, r, o = void 0, a = void 0) {
664
+ function ae(e, t, n, s, i, r, o = void 0, a = void 0) {
665
665
  const c = e.space + `/resources/v1/modeler/documents/${t}/files/CheckinTicket`;
666
666
  m(c, {
667
667
  method: "PUT",
668
668
  headers: {
669
669
  ENO_CSRF_TOKEN: e.token
670
670
  },
671
- onComplete(d, p, u) {
672
- const f = JSON.parse(d).csrf, l = JSON.parse(d).data[0].dataelements, g = new FormData();
673
- let h;
674
- s instanceof Blob ? h = s : h = new Blob([s], {
671
+ onComplete(d, u, p) {
672
+ const f = JSON.parse(d).csrf, l = JSON.parse(d).data[0].dataelements, h = new FormData();
673
+ let g;
674
+ s instanceof Blob ? g = s : g = new Blob([s], {
675
675
  type: "text/plain"
676
- }), g.append("__fcs__jobTicket", l.ticket), g.append("file_0", h, i);
676
+ }), h.append("__fcs__jobTicket", l.ticket), h.append("file_0", g, i);
677
677
  const _ = {};
678
- _.method = "POST", _.data = g, _.onComplete = function(y) {
678
+ _.method = "POST", _.data = h, _.onComplete = function(y) {
679
679
  let S = {
680
680
  method: "PUT",
681
681
  headers: {
@@ -719,7 +719,7 @@ function ee(e, t, n, s, i, r, o = void 0, a = void 0) {
719
719
  }
720
720
  });
721
721
  }
722
- async function Je(e, t, n = void 0, s = void 0) {
722
+ async function We(e, t, n = void 0, s = void 0) {
723
723
  e.space, e.token, e.ctx;
724
724
  const i = e?.description, r = e?.title;
725
725
  let o = `${e.space}/resources/v1/modeler/documents/${t}`;
@@ -748,13 +748,113 @@ async function Je(e, t, n = void 0, s = void 0) {
748
748
  }
749
749
  });
750
750
  }
751
- async function Ge(e, t, n, s = void 0, i = void 0) {
752
- e.space, e.token, e.ctx, D(
751
+ async function Ve(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0) {
752
+ let { tenant: o, cs_name: a } = e;
753
+ if (!o && !a) {
754
+ i && i("Credentials undefined");
755
+ return;
756
+ }
757
+ if (!t && !n) {
758
+ i && i("Définition du fichier undefined");
759
+ return;
760
+ }
761
+ const c = O.now().ts;
762
+ let d = `https://${o.toLowerCase()}-eu1-space.3dexperience.3ds.com/enovia/resources/enocsmrest/collabspaces/${encodeURIComponent(
763
+ a
764
+ )}/ticket?id=${c}&tenant=${o.toUpperCase()}&xrequestedwith=xmlhttprequest`;
765
+ m(
766
+ `https://${o.toLowerCase()}-eu1-space.3dexperience.3ds.com/enovia/resources/enocsmrest/session?tenant=${o.toUpperCase()}&xrequestedwith=xmlhttprequest`,
767
+ {
768
+ method: "GET",
769
+ onComplete(u) {
770
+ try {
771
+ u = JSON.parse(u);
772
+ const { csrftoken: p, isadmin: f } = u;
773
+ p && m(d, {
774
+ method: "GET",
775
+ headers: {
776
+ ENO_CSRF_TOKEN: e.token,
777
+ Accept: "application/json"
778
+ },
779
+ onComplete(l, h, g) {
780
+ try {
781
+ if (l = JSON.parse(l), l?.ticket) {
782
+ const { ticket: _, actionurl: y, jobticket: S } = l;
783
+ J(
784
+ { dataelements: { ticket: _, ticketURL: y } },
785
+ n,
786
+ t,
787
+ (w) => {
788
+ const x = new DOMParser().parseFromString(w, "text/html").body.firstChild.querySelector("input").getAttributeNode("value").value, q = `https://${o.toLowerCase()}-eu1-space.3dexperience.3ds.com/enovia/resources/enocsmrest/collabspaces/${a}/contents?receipt=${encodeURIComponent(
789
+ x
790
+ )}`;
791
+ let X = /(?:\.([^.]+))?$/.exec(t)[1];
792
+ const W = JSON.stringify({
793
+ actions: [],
794
+ businessobj: {
795
+ description: "",
796
+ file: t,
797
+ fullnameowner: "",
798
+ icon: "",
799
+ maturity: "",
800
+ modified: "",
801
+ owner: {},
802
+ thumbnail: "",
803
+ title: X ? t.split(".").slice(0, -1).join(".") : t,
804
+ type: {}
805
+ },
806
+ collabspace: a
807
+ });
808
+ m(q, {
809
+ method: "POST",
810
+ headers: {
811
+ Accept: "application/json",
812
+ "Content-Type": "application/json;charset=UTF-8",
813
+ "X-DS-CSRFTOKEN": p
814
+ },
815
+ data: W,
816
+ type: "json",
817
+ onComplete(I, we, Ce) {
818
+ console.log("_3DSpace_Upload_Doc | pushFileInFcs | onComplete", I), s && s(I);
819
+ },
820
+ onFailure(I) {
821
+ console.log("_3DSpace_Upload_Doc | pushFileInFcs | onFailure"), i && i(I);
822
+ }
823
+ });
824
+ },
825
+ (w) => {
826
+ console.warn("pushFileInFcs", w), i && i(w);
827
+ },
828
+ (w) => {
829
+ r && r({ fileName: t, progress: w });
830
+ }
831
+ );
832
+ }
833
+ } catch (_) {
834
+ i && i(_);
835
+ }
836
+ },
837
+ onFailure(l) {
838
+ console.warn("_3DSpace_Upload_Doc | onFailure"), i && i(l);
839
+ }
840
+ });
841
+ } catch {
842
+ i && i();
843
+ }
844
+ },
845
+ onFailure(u) {
846
+ i && i(u);
847
+ }
848
+ }
849
+ );
850
+ }
851
+ async function Ye(e, t, n, s = void 0, i = void 0) {
852
+ e.space, e.token, e.ctx, L(
753
853
  e,
754
854
  t,
755
855
  (r) => {
756
856
  const o = r.data[0].relateddata.files[0].id, a = r.data[0].dataelements.secondaryTitle && r.data[0].dataelements.secondaryTitle !== "" ? r.data[0].dataelements.secondaryTitle : r.data[0].dataelements.title;
757
- P(
857
+ M(
758
858
  e,
759
859
  t,
760
860
  o,
@@ -773,17 +873,17 @@ async function Ge(e, t, n, s = void 0, i = void 0) {
773
873
  }
774
874
  );
775
875
  }
776
- async function Ee(e, t, n, s, i = void 0, r = void 0) {
777
- te(
876
+ async function He(e, t, n, s, i = void 0, r = void 0) {
877
+ oe(
778
878
  e,
779
879
  (o) => {
780
880
  o?.items >= 1 && o.data.forEach((a) => {
781
- ne(
881
+ J(
782
882
  a,
783
883
  t,
784
884
  n,
785
885
  (c) => {
786
- se(
886
+ re(
787
887
  e,
788
888
  c,
789
889
  n,
@@ -804,7 +904,7 @@ async function Ee(e, t, n, s, i = void 0, r = void 0) {
804
904
  (o) => console.warn(o)
805
905
  );
806
906
  }
807
- function te(e, t = void 0, n = void 0) {
907
+ function oe(e, t = void 0, n = void 0) {
808
908
  if (e?.space && e.token && e.ctx) {
809
909
  let s = `${e.space}/resources/v1/modeler/documents/files/CheckinTicket`;
810
910
  m(s, {
@@ -829,7 +929,7 @@ function te(e, t = void 0, n = void 0) {
829
929
  } else
830
930
  console.log("Error de credentials", e);
831
931
  }
832
- function ne(e, t, n, s = void 0, i = void 0) {
932
+ function J(e, t, n, s = void 0, i = void 0) {
833
933
  let r = new FormData();
834
934
  t instanceof Blob || (t = new Blob([t], {
835
935
  type: "text/plain"
@@ -846,7 +946,7 @@ function ne(e, t, n, s = void 0, i = void 0) {
846
946
  }
847
947
  });
848
948
  }
849
- function se(e, t, n, s = void 0, i = void 0, r = void 0) {
949
+ function re(e, t, n, s = void 0, i = void 0, r = void 0) {
850
950
  console.log("relatedDocAndFile", { credentials: e, receipt: t, filename: n });
851
951
  const o = (d) => d.indexOf(".") === -1 ? d : d.split(".").slice(0, -1).join(".");
852
952
  let a = "temp_" + O.now().ts, c = e.space + "/resources/v1/modeler/documents/?e6w-lang=fr&e6w-timezone=-120&xrequestedwith=xmlhttprequest";
@@ -893,38 +993,38 @@ function se(e, t, n, s = void 0, i = void 0, r = void 0) {
893
993
  }
894
994
  });
895
995
  }
896
- function U(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0, o = !1) {
996
+ function R(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0, o = !1) {
897
997
  const a = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
898
998
  m(a, {
899
999
  method: "GET",
900
1000
  onComplete(c) {
901
1001
  const d = JSON.parse(c);
902
- let p = "", u, f, l;
1002
+ let u = "", p, f, l;
903
1003
  if (t) {
904
- let g = d.collabspaces.find((h) => h.title === t);
905
- if (g) {
906
- u = t;
907
- let h = g.couples;
908
- h = h.filter(
1004
+ let h = d.collabspaces.find((g) => g.title === t);
1005
+ if (h) {
1006
+ p = t;
1007
+ let g = h.couples;
1008
+ g = g.filter(
909
1009
  (_, y, S) => y === S.findIndex(
910
1010
  (w) => w.organization.pid === _.organization.pid && w.role.pid === _.role.pid
911
1011
  )
912
1012
  ), n && (Array.isArray(n) ? n.forEach((_) => {
913
- l || h.forEach((y) => {
1013
+ l || g.forEach((y) => {
914
1014
  if (_ === y.role.name && s === y.organization.title)
915
1015
  l = _, f = s;
916
1016
  else if (_ === y.role.name) {
917
- let S = h.filter(
1017
+ let S = g.filter(
918
1018
  (w) => w.role.name === _
919
1019
  );
920
1020
  S.length === 1 ? (l = S[0].role.name, f = S[0].organization.title) : r(S);
921
1021
  }
922
1022
  });
923
- }) : h.forEach((_) => {
1023
+ }) : g.forEach((_) => {
924
1024
  if (n === _.role.name && s === _.organization.title)
925
1025
  l = n, f = s;
926
1026
  else if (n === _.role.name) {
927
- let y = h.filter(
1027
+ let y = g.filter(
928
1028
  (S) => S.role.name === n
929
1029
  );
930
1030
  y.length === 1 ? (l = y[0].role.name, f = y[0].organization.title) : r(y);
@@ -932,7 +1032,7 @@ function U(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0, o = !1
932
1032
  }));
933
1033
  }
934
1034
  }
935
- u && f && l ? (p = l + "." + f + "." + u, i(p)) : d.preferredcredentials && o ? (p = d.preferredcredentials.role.name + "." + d.preferredcredentials.organization.title + "." + d.preferredcredentials.collabspace.title, i(p)) : r && (p = l + "." + f + "." + u, r(p));
1035
+ 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));
936
1036
  },
937
1037
  onFailure(c, d) {
938
1038
  console.warn("Erreur de récupération du contexte de sécurité. => ", {
@@ -942,14 +1042,14 @@ function U(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0, o = !1
942
1042
  }
943
1043
  });
944
1044
  }
945
- async function L(e, t = void 0, n = void 0) {
1045
+ async function G(e, t = void 0, n = void 0) {
946
1046
  return (!e.objID || e.objID === "") && (console.warn(
947
1047
  "_3DSpace_download_doc() / Le paramètre objectId est obligatoire"
948
1048
  ), n && n(
949
1049
  "_3DSpace_download_doc() / Le paramètre objectId est obligatoire"
950
1050
  )), (e.space === "" || !e.space) && (console.warn(
951
1051
  "_3DSpace_download_doc() / Le paramètre space est obligatoire"
952
- ), n && n("_3DSpace_download_doc() / Le paramètre space est obligatoire")), (e.token === "" || !e.token) && H(
1052
+ ), n && n("_3DSpace_download_doc() / Le paramètre space est obligatoire")), (e.token === "" || !e.token) && te(
953
1053
  e,
954
1054
  (s) => {
955
1055
  e.token = s;
@@ -958,7 +1058,7 @@ async function L(e, t = void 0, n = void 0) {
958
1058
  console.log("☠️ error => ", s);
959
1059
  }
960
1060
  ), new Promise((s, i) => {
961
- k(
1061
+ j(
962
1062
  e,
963
1063
  (r) => {
964
1064
  e?.returnType === "blob" ? (console.log("ticketURL blob", r), fetch(r).then((o) => o.blob()).then((o) => {
@@ -994,12 +1094,12 @@ async function L(e, t = void 0, n = void 0) {
994
1094
  );
995
1095
  });
996
1096
  }
997
- async function ie(e, t, n = void 0, s = void 0) {
998
- typeof t < "u" && Array.isArray(t) && t?.length > 0 ? X({
1097
+ async function ce(e, t, n = void 0, s = void 0) {
1098
+ typeof t < "u" && Array.isArray(t) && t?.length > 0 ? z({
999
1099
  credentials: e,
1000
1100
  myArray: t,
1001
1101
  chunk: 80,
1002
- fn_to_call: ae
1102
+ fn_to_call: de
1003
1103
  }, (r) => {
1004
1104
  n && n(r);
1005
1105
  }) : (console.warn(
@@ -1008,7 +1108,7 @@ async function ie(e, t, n = void 0, s = void 0) {
1008
1108
  "La liste d'objects dans la fonction _3DSpace_download_multidoc est vide ou non défini."
1009
1109
  ));
1010
1110
  }
1011
- function ae(e, t, n = void 0, s = void 0, i = void 0) {
1111
+ function de(e, t, n = void 0, s = void 0, i = void 0) {
1012
1112
  const r = [];
1013
1113
  t.forEach((c) => {
1014
1114
  r.push({
@@ -1029,30 +1129,30 @@ function ae(e, t, n = void 0, s = void 0, i = void 0) {
1029
1129
  type: "json",
1030
1130
  onComplete(c) {
1031
1131
  const d = c.data;
1032
- c.success === !0 && (n && n(), d.forEach((p) => {
1132
+ c.success === !0 && (n && n(), d.forEach((u) => {
1033
1133
  try {
1034
- const u = p.dataelements.fileName, f = p.dataelements.ticketURL;
1134
+ const p = u.dataelements.fileName, f = u.dataelements.ticketURL;
1035
1135
  m(f, {
1036
- onComplete: (l, g) => {
1037
- let h;
1136
+ onComplete: (l, h) => {
1137
+ let g;
1038
1138
  try {
1039
- h = JSON.parse(l);
1139
+ g = JSON.parse(l);
1040
1140
  } catch {
1041
- h = l.blob();
1141
+ g = l.blob();
1042
1142
  }
1043
1143
  s && s({
1044
- objectId: p.id,
1045
- headers: g,
1046
- fileName: u,
1047
- data: h
1144
+ objectId: u.id,
1145
+ headers: h,
1146
+ fileName: p,
1147
+ data: g
1048
1148
  });
1049
1149
  },
1050
1150
  onFailure: (l) => {
1051
1151
  console.log("error http", l);
1052
1152
  }
1053
1153
  });
1054
- } catch (u) {
1055
- console.log(u), i && i(u);
1154
+ } catch (p) {
1155
+ console.log(p), i && i(p);
1056
1156
  }
1057
1157
  }));
1058
1158
  },
@@ -1061,7 +1161,7 @@ function ae(e, t, n = void 0, s = void 0, i = void 0) {
1061
1161
  }
1062
1162
  });
1063
1163
  }
1064
- function Ke(e, t, n = void 0, s = void 0) {
1164
+ function ze(e, t, n = void 0, s = void 0) {
1065
1165
  return new Promise((i) => {
1066
1166
  if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
1067
1167
  const r = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
@@ -1092,7 +1192,7 @@ function Ke(e, t, n = void 0, s = void 0) {
1092
1192
  }
1093
1193
  });
1094
1194
  }
1095
- function Be(e, t, n, s = void 0, i = void 0) {
1195
+ function Qe(e, t, n, s = void 0, i = void 0) {
1096
1196
  return new Promise((r) => {
1097
1197
  if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
1098
1198
  const o = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
@@ -1124,11 +1224,11 @@ function Be(e, t, n, s = void 0, i = void 0) {
1124
1224
  }
1125
1225
  });
1126
1226
  }
1127
- function We(e, t, n = void 0, s = void 0) {
1227
+ function Ze(e, t, n = void 0, s = void 0) {
1128
1228
  return new Promise((i) => {
1129
1229
  if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
1130
1230
  const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
1131
- U(
1231
+ R(
1132
1232
  e.space,
1133
1233
  "ESPACE COMMUN",
1134
1234
  ["VPLMProjectLeader", "VPLMCreator"],
@@ -1165,11 +1265,11 @@ function We(e, t, n = void 0, s = void 0) {
1165
1265
  }
1166
1266
  });
1167
1267
  }
1168
- function Xe(e, t, n = void 0, s = void 0) {
1268
+ function et(e, t, n = void 0, s = void 0) {
1169
1269
  return new Promise((i) => {
1170
1270
  if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
1171
1271
  const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
1172
- U(
1272
+ R(
1173
1273
  e.space,
1174
1274
  "ESPACE COMMUN",
1175
1275
  ["VPLMProjectLeader", "VPLMCreator"],
@@ -1212,11 +1312,11 @@ function Xe(e, t, n = void 0, s = void 0) {
1212
1312
  }
1213
1313
  });
1214
1314
  }
1215
- function qe(e, t, n, s = void 0, i = void 0) {
1315
+ function tt(e, t, n, s = void 0, i = void 0) {
1216
1316
  return new Promise((r) => {
1217
1317
  if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
1218
1318
  const o = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
1219
- U(
1319
+ R(
1220
1320
  e.space,
1221
1321
  "ESPACE COMMUN",
1222
1322
  ["VPLMProjectLeader", "VPLMCreator"],
@@ -1259,7 +1359,7 @@ function qe(e, t, n, s = void 0, i = void 0) {
1259
1359
  }
1260
1360
  });
1261
1361
  }
1262
- function Ve(e, t, n, s, i = void 0, r = void 0) {
1362
+ function nt(e, t, n, s, i = void 0, r = void 0) {
1263
1363
  return new Promise((o) => {
1264
1364
  const a = `${e.space}/resources/v1/modeler/dsbks/dsbks:Bookmark`;
1265
1365
  let c = {
@@ -1272,7 +1372,7 @@ function Ve(e, t, n, s, i = void 0, r = void 0) {
1272
1372
  items: []
1273
1373
  };
1274
1374
  t && (d.parentId = t), d.items.push(c);
1275
- let p = {
1375
+ let u = {
1276
1376
  method: "POST",
1277
1377
  headers: {
1278
1378
  Accept: "application/json",
@@ -1282,17 +1382,17 @@ function Ve(e, t, n, s, i = void 0, r = void 0) {
1282
1382
  },
1283
1383
  data: JSON.stringify(d),
1284
1384
  type: "json",
1285
- onComplete(u) {
1286
- i && i(u);
1385
+ onComplete(p) {
1386
+ i && i(p);
1287
1387
  },
1288
- onFailure(u) {
1289
- r && r(u);
1388
+ onFailure(p) {
1389
+ r && r(p);
1290
1390
  }
1291
1391
  };
1292
- m(a, p);
1392
+ m(a, u);
1293
1393
  });
1294
1394
  }
1295
- function Ye(e, t, n, s, i = void 0, r = void 0) {
1395
+ function st(e, t, n, s, i = void 0, r = void 0) {
1296
1396
  return console.log("credentials", e), new Promise((o) => {
1297
1397
  `${e.space}`, JSON.stringify({
1298
1398
  csrf: {
@@ -1316,7 +1416,7 @@ function Ye(e, t, n, s, i = void 0, r = void 0) {
1316
1416
  });
1317
1417
  }
1318
1418
  //!SECTION
1319
- function He(e, t = void 0, n = void 0) {
1419
+ function it(e, t = void 0, n = void 0) {
1320
1420
  const s = {
1321
1421
  base: `${e.space}`,
1322
1422
  uri: "/resources/bps/cspaces",
@@ -1337,8 +1437,8 @@ function He(e, t = void 0, n = void 0) {
1337
1437
  }
1338
1438
  });
1339
1439
  }
1340
- function ze(e, t, n, s) {
1341
- k(
1440
+ function at(e, t, n, s) {
1441
+ j(
1342
1442
  e.space,
1343
1443
  t,
1344
1444
  (i) => {
@@ -1354,9 +1454,9 @@ function ze(e, t, n, s) {
1354
1454
  }
1355
1455
  );
1356
1456
  }
1357
- async function Qe(e, t, n = void 0, s = void 0) {
1457
+ async function ot(e, t, n = void 0, s = void 0) {
1358
1458
  return new Promise((i) => {
1359
- k(e, t, (r) => {
1459
+ j(e, t, (r) => {
1360
1460
  m(r, {
1361
1461
  onComplete: (o, a, c) => (i(JSON.parse(o)), n && n(JSON.parse(o), a, c), i),
1362
1462
  onFailure: (o, a, c) => {
@@ -1366,14 +1466,14 @@ async function Qe(e, t, n = void 0, s = void 0) {
1366
1466
  });
1367
1467
  });
1368
1468
  }
1369
- function Ze(e, t, n, s = void 0, i = void 0) {
1469
+ function rt(e, t, n, s = void 0, i = void 0) {
1370
1470
  const r = new Blob([JSON.stringify(t)], { type: "text/plain" });
1371
- R(
1471
+ U(
1372
1472
  e,
1373
1473
  n,
1374
1474
  (o) => {
1375
1475
  const a = o.data[0].relateddata.files[0].id, c = o.data[0].dataelements.secondaryTitle !== "" ? o.data[0].dataelements.secondaryTitle : o.data[0].dataelements.title;
1376
- P(
1476
+ M(
1377
1477
  e,
1378
1478
  n,
1379
1479
  a,
@@ -1389,10 +1489,10 @@ function Ze(e, t, n, s = void 0, i = void 0) {
1389
1489
  }
1390
1490
  );
1391
1491
  }
1392
- let M, J;
1393
- const j = [];
1394
- async function et(e, t = void 0, n = void 0) {
1395
- e.objID && e.objID !== "" ? R(
1492
+ let K, B;
1493
+ const D = [];
1494
+ async function ct(e, t = void 0, n = void 0) {
1495
+ e.objID && e.objID !== "" ? U(
1396
1496
  e,
1397
1497
  (s) => {
1398
1498
  t && t(s);
@@ -1410,8 +1510,8 @@ async function et(e, t = void 0, n = void 0) {
1410
1510
  }
1411
1511
  );
1412
1512
  }
1413
- async function tt(e, t = void 0, n = void 0) {
1414
- console.log("getDatasByTenant (getDocuments)", e), await L(
1513
+ async function dt(e, t = void 0, n = void 0) {
1514
+ console.log("getDatasByTenant (getDocuments)", e), await G(
1415
1515
  e,
1416
1516
  (s) => {
1417
1517
  const i = {};
@@ -1422,61 +1522,61 @@ async function tt(e, t = void 0, n = void 0) {
1422
1522
  }
1423
1523
  );
1424
1524
  }
1425
- function nt(e, t = void 0, n = void 0) {
1525
+ function ut(e, t = void 0, n = void 0) {
1426
1526
  const s = [];
1427
1527
  if (!e.objIds && !Array.isArray(e.objIds) && e.objIds.length === 0) {
1428
1528
  console.warn("la liste est vide ou n'est pas un tableau");
1429
1529
  return;
1430
1530
  }
1431
1531
  e.objIds.forEach((i, r) => {
1432
- L(
1532
+ G(
1433
1533
  e,
1434
1534
  i.objID,
1435
1535
  (o) => {
1436
- s.push({ [i.name]: o }), i.name === "dbProjets" && (M = o.affaires.map((a) => a.objectID), oe(e, J)), r === e.objIds.length - 1 && (t && t(s), delete e.objIds, delete e.datas);
1536
+ s.push({ [i.name]: o }), i.name === "dbProjets" && (K = o.affaires.map((a) => a.objectID), ue(e, B)), r === e.objIds.length - 1 && (t && t(s), delete e.objIds, delete e.datas);
1437
1537
  }
1438
1538
  );
1439
1539
  });
1440
1540
  }
1441
- function oe(e, t, n = void 0, s = void 0) {
1442
- ie(
1541
+ function ue(e, t, n = void 0, s = void 0) {
1542
+ ce(
1443
1543
  e,
1444
- M,
1544
+ K,
1445
1545
  (i) => {
1446
1546
  const r = [...t];
1447
- r.find((o) => o.objectID === i.objectId).data = i.data, J = r, j.push(i.data), n && n(j);
1547
+ r.find((o) => o.objectID === i.objectId).data = i.data, B = r, D.push(i.data), n && n(D);
1448
1548
  },
1449
1549
  (i) => {
1450
1550
  s && (s(i), console.log(i));
1451
1551
  }
1452
1552
  );
1453
1553
  }
1454
- const re = "FA35FB9B177A280065800EA0000F599C", ce = [
1554
+ const pe = "FA35FB9B177A280065800EA0000F599C", le = [
1455
1555
  "swym",
1456
1556
  "3dspace",
1457
1557
  "drive",
1458
1558
  "usersgroup",
1459
1559
  "3dplan",
1460
1560
  "dashboard"
1461
- ], G = {
1561
+ ], E = {
1462
1562
  how: "ds6w:how",
1463
1563
  what: "ds6w:what",
1464
1564
  when: "ds6w:when",
1465
1565
  where: "ds6w:where",
1466
1566
  who: "ds6w:who",
1467
1567
  why: "ds6w:why"
1468
- }, de = {
1469
- objId: re,
1568
+ }, fe = {
1569
+ objId: pe,
1470
1570
  pred: "who",
1471
1571
  order_by: "desc",
1472
1572
  tag: "testTag"
1473
1573
  };
1474
- function st(e, t, n = void 0, s = void 0) {
1574
+ function pt(e, t, n = void 0, s = void 0) {
1475
1575
  const { space: i, tenant: r } = e, { objId: o, pred: a, tag: c } = t, d = {
1476
1576
  uri: "/resources/6w/tags",
1477
1577
  otpCTX: "SecurityContext=preferred",
1478
1578
  optTenant: `tenant=${r}`
1479
- }, p = `${i}${d.uri}?${d.otpCTX}&${d.optTenant}`, u = {
1579
+ }, u = `${i}${d.uri}?${d.otpCTX}&${d.optTenant}`, p = {
1480
1580
  tag: [
1481
1581
  {
1482
1582
  subject: [
@@ -1484,30 +1584,30 @@ function st(e, t, n = void 0, s = void 0) {
1484
1584
  uri: `pid://${o}`
1485
1585
  }
1486
1586
  ],
1487
- predicate: G[a],
1587
+ predicate: E[a],
1488
1588
  object: {
1489
1589
  literal: c
1490
1590
  }
1491
1591
  }
1492
1592
  ]
1493
1593
  };
1494
- m(p, {
1594
+ m(u, {
1495
1595
  method: "PUT",
1496
1596
  headers: {
1497
1597
  "Content-Type": "application/json",
1498
1598
  Accept: "application/json"
1499
1599
  },
1500
- data: JSON.stringify(u),
1600
+ data: JSON.stringify(p),
1501
1601
  onComplete(f) {
1502
1602
  JSON.parse(f);
1503
1603
  const l = {};
1504
1604
  setTimeout(() => {
1505
- D(
1605
+ L(
1506
1606
  e,
1507
1607
  o,
1508
- (g) => {
1509
- const h = g.data[0].dataelements.title, _ = g.data[0].dataelements.fileExtension !== void 0 ? g.data[0].dataelements.fileExtension : "", y = g.data[0].relateddata.ownerInfo[0].dataelements.name;
1510
- l.name = h, l.ext = _, l.createBy = y, t.info = { ...l }, ue(
1608
+ (h) => {
1609
+ const g = h.data[0].dataelements.title, _ = h.data[0].dataelements.fileExtension !== void 0 ? h.data[0].dataelements.fileExtension : "", y = h.data[0].relateddata.ownerInfo[0].dataelements.name;
1610
+ l.name = g, l.ext = _, l.createBy = y, t.info = { ...l }, me(
1511
1611
  e,
1512
1612
  t,
1513
1613
  (S) => {
@@ -1518,20 +1618,20 @@ function st(e, t, n = void 0, s = void 0) {
1518
1618
  }
1519
1619
  );
1520
1620
  },
1521
- (g, h) => {
1522
- const _ = g;
1523
- _.msg = h.errormsg, _.errCode = h.errorcode, console.log("❌ sendDirectMessage => ", _), s && s(_);
1621
+ (h, g) => {
1622
+ const _ = h;
1623
+ _.msg = g.errormsg, _.errCode = g.errorcode, console.log("❌ sendDirectMessage => ", _), s && s(_);
1524
1624
  }
1525
1625
  );
1526
1626
  }, 2e3);
1527
1627
  },
1528
1628
  onFailure(f, l) {
1529
- const g = f;
1530
- g.msg = l.errormsg, g.errCode = l.errorcode, console.log("❌ sendDirectMessage => ", g), s && s(g);
1629
+ const h = f;
1630
+ h.msg = l.errormsg, h.errCode = l.errorcode, console.log("❌ sendDirectMessage => ", h), s && s(h);
1531
1631
  }
1532
1632
  });
1533
1633
  }
1534
- function ue(e, t, n = void 0, s = void 0) {
1634
+ function me(e, t, n = void 0, s = void 0) {
1535
1635
  console.log("obj ", t);
1536
1636
  const i = t.info.name, r = {
1537
1637
  baseUrl: `https://${e.tenant.toLowerCase()}-eu1-fedsearch.3dexperience.3ds.com`,
@@ -1539,7 +1639,7 @@ function ue(e, t, n = void 0, s = void 0) {
1539
1639
  }, o = `${r.baseUrl}${r.uri}`, a = {
1540
1640
  "Content-Type": "application/json",
1541
1641
  Accept: "application/json,text/javascript,*/*"
1542
- }, c = B(), d = {
1642
+ }, c = Y(), d = {
1543
1643
  with_indexing_date: !0,
1544
1644
  with_synthesis: !0,
1545
1645
  with_nls: !1,
@@ -1581,7 +1681,7 @@ function ue(e, t, n = void 0, s = void 0) {
1581
1681
  }
1582
1682
  },
1583
1683
  select_exclude_synthesis: ["ds6w:what/ds6w:topic"],
1584
- order_by: de.order_by,
1684
+ order_by: fe.order_by,
1585
1685
  order_field: "relevance",
1586
1686
  select_snippets: [
1587
1687
  "ds6w:snippet",
@@ -1592,7 +1692,7 @@ function ue(e, t, n = void 0, s = void 0) {
1592
1692
  ],
1593
1693
  nresults: 40,
1594
1694
  start: "0",
1595
- source: ce,
1695
+ source: le,
1596
1696
  tenant: e.tenant,
1597
1697
  login: {
1598
1698
  "3dspace": {
@@ -1604,17 +1704,17 @@ function ue(e, t, n = void 0, s = void 0) {
1604
1704
  method: "POST",
1605
1705
  headers: a,
1606
1706
  data: JSON.stringify(d),
1607
- onComplete(p) {
1608
- const u = JSON.parse(p);
1609
- n(u);
1707
+ onComplete(u) {
1708
+ const p = JSON.parse(u);
1709
+ n(p);
1610
1710
  },
1611
- onFailure(p, u) {
1612
- const f = p;
1613
- f.msg = u.errormsg, f.errCode = u.errorcode, console.log("❌ sendDirectMessage => ", f), s && s(f), console.log("Erreur de recuperation d'id du doc et des tags", p);
1711
+ onFailure(u, p) {
1712
+ const f = u;
1713
+ f.msg = p.errormsg, f.errCode = p.errorcode, console.log("❌ sendDirectMessage => ", f), s && s(f), console.log("Erreur de recuperation d'id du doc et des tags", u);
1614
1714
  }
1615
1715
  });
1616
1716
  }
1617
- function it(e, t, n = void 0, s = void 0) {
1717
+ function lt(e, t, n = void 0, s = void 0) {
1618
1718
  const { objId: i, pred: r, tag: o } = t, a = {
1619
1719
  uri: "/resources/6w/tags",
1620
1720
  otpCTX: "SecurityContext=preferred",
@@ -1627,7 +1727,7 @@ function it(e, t, n = void 0, s = void 0) {
1627
1727
  uri: `pid://${i}`
1628
1728
  }
1629
1729
  ],
1630
- predicate: G[r],
1730
+ predicate: E[r],
1631
1731
  object: {
1632
1732
  literal: o
1633
1733
  }
@@ -1641,16 +1741,16 @@ function it(e, t, n = void 0, s = void 0) {
1641
1741
  "Content-Type": "application/json",
1642
1742
  Accept: "application/json,text/javascript,*/*"
1643
1743
  },
1644
- onComplete(p) {
1645
- n && n(p);
1744
+ onComplete(u) {
1745
+ n && n(u);
1646
1746
  },
1647
- onFailure(p, u) {
1648
- const f = p;
1649
- f.msg = u.errormsg, f.errCode = u.errorcode, console.log("❌ sendDirectMessage => ", f), s && s(f);
1747
+ onFailure(u, p) {
1748
+ const f = u;
1749
+ f.msg = p.errormsg, f.errCode = p.errorcode, console.log("❌ sendDirectMessage => ", f), s && s(f);
1650
1750
  }
1651
1751
  });
1652
1752
  }
1653
- function at(e, t = "", n = void 0, s = void 0) {
1753
+ function ft(e, t = "", n = void 0, s = void 0) {
1654
1754
  const { space: i } = e;
1655
1755
  if (t === "")
1656
1756
  return;
@@ -1667,9 +1767,9 @@ function at(e, t = "", n = void 0, s = void 0) {
1667
1767
  onComplete(d) {
1668
1768
  n && n(JSON.parse(d));
1669
1769
  },
1670
- onFailure(d, p) {
1671
- const u = d;
1672
- u.msg = p.error, s && s(u);
1770
+ onFailure(d, u) {
1771
+ const p = d;
1772
+ p.msg = u.error, s && s(p);
1673
1773
  }
1674
1774
  });
1675
1775
  }
@@ -1686,7 +1786,7 @@ async function C(e, t = void 0, n = void 0) {
1686
1786
  }
1687
1787
  });
1688
1788
  }
1689
- function ot(e, t = void 0, n = void 0) {
1789
+ function mt(e, t = void 0, n = void 0) {
1690
1790
  const s = `${e._3DSwym}/api/exalead/whatsnew`, i = {
1691
1791
  params: {
1692
1792
  community_id: null,
@@ -1716,7 +1816,7 @@ function ot(e, t = void 0, n = void 0) {
1716
1816
  });
1717
1817
  });
1718
1818
  }
1719
- function rt(e, t = void 0, n = void 0) {
1819
+ function ht(e, t = void 0, n = void 0) {
1720
1820
  const s = `${e._3DSwym}/api/Recommendation/getpeoplefamiliartocurrentuser`, i = {
1721
1821
  params: {
1722
1822
  idsToFilterArr: [],
@@ -1746,7 +1846,7 @@ function rt(e, t = void 0, n = void 0) {
1746
1846
  });
1747
1847
  });
1748
1848
  }
1749
- function ct(e, t = void 0, n = void 0) {
1849
+ function gt(e, t = void 0, n = void 0) {
1750
1850
  const s = {
1751
1851
  base: e._3DSwym,
1752
1852
  uri: "/api/community/listmycommunities",
@@ -1760,10 +1860,10 @@ function ct(e, t = void 0, n = void 0) {
1760
1860
  "X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
1761
1861
  },
1762
1862
  onComplete(a, c, d) {
1763
- const u = JSON.parse(a).result;
1863
+ const p = JSON.parse(a).result;
1764
1864
  let f = 0;
1765
- u.forEach((l) => {
1766
- const g = {
1865
+ p.forEach((l) => {
1866
+ const h = {
1767
1867
  description: l.description,
1768
1868
  id: l.id,
1769
1869
  title: l.title,
@@ -1771,13 +1871,13 @@ function ct(e, t = void 0, n = void 0) {
1771
1871
  role: l.role,
1772
1872
  access: l.access
1773
1873
  };
1774
- pe(
1874
+ he(
1775
1875
  e,
1776
1876
  l.id,
1777
- (h) => {
1778
- f++, g.members = h, r.push(g), f === u.length && t && t(r);
1877
+ (g) => {
1878
+ f++, h.members = g, r.push(h), f === p.length && t && t(r);
1779
1879
  },
1780
- (h) => n(h)
1880
+ (g) => n(g)
1781
1881
  );
1782
1882
  });
1783
1883
  },
@@ -1788,7 +1888,7 @@ function ct(e, t = void 0, n = void 0) {
1788
1888
  });
1789
1889
  });
1790
1890
  }
1791
- function pe(e, t, n, s) {
1891
+ function he(e, t, n, s) {
1792
1892
  const i = `${e._3DSwym}/api/community/listmembers`, r = {
1793
1893
  params: {
1794
1894
  page: e.page ? e.page : 1,
@@ -1816,7 +1916,7 @@ function pe(e, t, n, s) {
1816
1916
  });
1817
1917
  });
1818
1918
  }
1819
- function dt(e, t = void 0, n = void 0) {
1919
+ function _t(e, t = void 0, n = void 0) {
1820
1920
  const s = "YXdA5x4DSUKtlAi2wmnyTA";
1821
1921
  e.commu_id || (e.commu_id = s);
1822
1922
  const i = `${e._3DSwym}/api/v2/communities/${e.commu_id}/ideas/statuses`;
@@ -1839,7 +1939,7 @@ function dt(e, t = void 0, n = void 0) {
1839
1939
  });
1840
1940
  });
1841
1941
  }
1842
- function ut(e, t, n = void 0, s = void 0) {
1942
+ function yt(e, t, n = void 0, s = void 0) {
1843
1943
  const { listAllContacts: i, currentUser: r, _3DSwym: o } = e;
1844
1944
  console.log("__listAllContacts", i.hits);
1845
1945
  const a = `${o}/api/directmessages`, c = {
@@ -1848,41 +1948,41 @@ function ut(e, t, n = void 0, s = void 0) {
1848
1948
  id_msg: "",
1849
1949
  senderId: e.currentUser.login,
1850
1950
  senderName: `${e.currentUser.first_name} ${e.currentUser.last_name}`,
1851
- msg: fe(t.msg)
1951
+ msg: _e(t.msg)
1852
1952
  };
1853
- let p = !1;
1854
- le(
1953
+ let u = !1;
1954
+ ge(
1855
1955
  c.users,
1856
- (u) => {
1857
- u !== void 0 && (d.id_msg = u.id, p = !0, x(e, d));
1956
+ (p) => {
1957
+ p !== void 0 && (d.id_msg = p.id, u = !0, v(e, d));
1858
1958
  },
1859
- (u) => {
1860
- p = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", u), s && s(u), d.id_msg = "";
1959
+ (p) => {
1960
+ u = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", p), s && s(p), d.id_msg = "";
1861
1961
  }
1862
- ), p === !1 && setTimeout(() => {
1863
- p === !1 && C(e, (u) => {
1962
+ ), u === !1 && setTimeout(() => {
1963
+ u === !1 && C(e, (p) => {
1864
1964
  m(a, {
1865
1965
  method: "POST",
1866
1966
  headers: {
1867
1967
  "Content-Type": "application/json",
1868
1968
  Accept: "application/json",
1869
- "X-DS-SWYM-CSRFTOKEN": u.result.ServerToken
1969
+ "X-DS-SWYM-CSRFTOKEN": p.result.ServerToken
1870
1970
  },
1871
1971
  data: JSON.stringify(c),
1872
1972
  type: "json",
1873
- onComplete(f, l, g) {
1874
- const h = f;
1875
- h.reponse = JSON.parse(g.response), h.status = g.status, n && n(h), d.id_msg = h.result.id, x(e, d);
1973
+ onComplete(f, l, h) {
1974
+ const g = f;
1975
+ g.reponse = JSON.parse(h.response), g.status = h.status, n && n(g), d.id_msg = g.result.id, v(e, d);
1876
1976
  },
1877
- onFailure(f, l, g) {
1878
- const h = f;
1879
- h.msg = l.errormsg, h.status = l.status, s && s(h);
1977
+ onFailure(f, l, h) {
1978
+ const g = f;
1979
+ g.msg = l.errormsg, g.status = l.status, s && s(g);
1880
1980
  }
1881
1981
  });
1882
1982
  });
1883
1983
  }, 500);
1884
1984
  }
1885
- function le(e, t, n, s) {
1985
+ function ge(e, t, n, s) {
1886
1986
  const i = `${e._3DSwym}/api/directmessages/lite?with_favorites=false`;
1887
1987
  C(e, (r) => {
1888
1988
  m(i, {
@@ -1893,16 +1993,16 @@ function le(e, t, n, s) {
1893
1993
  },
1894
1994
  onComplete(o) {
1895
1995
  const a = JSON.parse(o), c = [];
1896
- a.result.forEach((u) => {
1897
- u.users = u.users.sort((f, l) => f.login.localeCompare(l.login)), u.users.length === t.length && c.push(u);
1996
+ a.result.forEach((p) => {
1997
+ p.users = p.users.sort((f, l) => f.login.localeCompare(l.login)), p.users.length === t.length && c.push(p);
1898
1998
  });
1899
- const d = t.sort(), p = c.find((u) => {
1999
+ const d = t.sort(), u = c.find((p) => {
1900
2000
  const f = [];
1901
- return u.users.forEach((l) => {
2001
+ return p.users.forEach((l) => {
1902
2002
  f.push(l.login);
1903
2003
  }), JSON.stringify(f) === JSON.stringify(d);
1904
2004
  });
1905
- n && p !== void 0 ? n(p) : (s || p === void 0) && s(p);
2005
+ n && u !== void 0 ? n(u) : (s || u === void 0) && s(u);
1906
2006
  },
1907
2007
  onFailure(o) {
1908
2008
  const a = o;
@@ -1911,7 +2011,7 @@ function le(e, t, n, s) {
1911
2011
  });
1912
2012
  });
1913
2013
  }
1914
- function x(e, t, n = void 0, s = void 0) {
2014
+ function v(e, t, n = void 0, s = void 0) {
1915
2015
  const i = {
1916
2016
  base: e._3DSwym,
1917
2017
  uri: "/api/community",
@@ -1937,25 +2037,25 @@ function x(e, t, n = void 0, s = void 0) {
1937
2037
  },
1938
2038
  data: JSON.stringify(o),
1939
2039
  type: "json",
1940
- onComplete(c, d, p) {
1941
- const u = c;
1942
- u.status = p.status, u.response = JSON.parse(p.response), console.log("✅ _3dSwym_sendDirectMessageData => ", u), n && n(u);
2040
+ onComplete(c, d, u) {
2041
+ const p = c;
2042
+ p.status = u.status, p.response = JSON.parse(u.response), console.log("✅ _3dSwym_sendDirectMessageData => ", p), n && n(p);
1943
2043
  },
1944
2044
  onFailure(c, d) {
1945
- const p = c;
1946
- p.msg = d.errormsg, p.errCode = d.errorcode, console.log("❌ sendDirectMessage => ", p), s && s(p);
2045
+ const u = c;
2046
+ u.msg = d.errormsg, u.errCode = d.errorcode, console.log("❌ sendDirectMessage => ", u), s && s(u);
1947
2047
  }
1948
2048
  });
1949
2049
  });
1950
2050
  }
1951
- function fe(e) {
2051
+ function _e(e) {
1952
2052
  const t = (/* @__PURE__ */ new Date()).toLocaleDateString(), n = (/* @__PURE__ */ new Date()).toLocaleTimeString();
1953
2053
  return `<p>${e} </p>
1954
2054
  <br/>
1955
2055
  <hr/>
1956
2056
  <p><u>envoyer :</u>Le <b>${t} à ${n}</b></p>`;
1957
2057
  }
1958
- function pt(e, t, n = void 0, s = void 0) {
2058
+ function St(e, t, n = void 0, s = void 0) {
1959
2059
  const i = `${e.space}/api/idea/add`, r = e.swymCommunities.find(
1960
2060
  (c) => c.id === t.community_id
1961
2061
  ), o = e.swymCommunities.find(
@@ -1966,7 +2066,7 @@ function pt(e, t, n = void 0, s = void 0) {
1966
2066
  // String, le nom de l'affaire
1967
2067
  community_id: r?.id !== void 0 ? r.id : o.id,
1968
2068
  // String, l'id de la communauté
1969
- message: me(t.text_html),
2069
+ message: ye(t.text_html),
1970
2070
  // STRING => le contenue du message doit être au format HTML
1971
2071
  published: 1
1972
2072
  // 1 publier, 0 non publier
@@ -1983,18 +2083,18 @@ function pt(e, t, n = void 0, s = void 0) {
1983
2083
  headers: d,
1984
2084
  data: JSON.stringify(a),
1985
2085
  type: "json",
1986
- onComplete(p, u, f) {
1987
- const l = JSON.parse(p);
2086
+ onComplete(u, p, f) {
2087
+ const l = JSON.parse(u);
1988
2088
  l.status = f.status, l.response = f.response, n && n(l);
1989
2089
  },
1990
- onFailure(p, u, f) {
1991
- const l = p;
1992
- l.status = u.status, l.response = u.errormsg, s && s(l);
2090
+ onFailure(u, p, f) {
2091
+ const l = u;
2092
+ l.status = p.status, l.response = p.errormsg, s && s(l);
1993
2093
  }
1994
2094
  });
1995
2095
  });
1996
2096
  }
1997
- function lt(e, t = void 0, n = void 0) {
2097
+ function wt(e, t = void 0, n = void 0) {
1998
2098
  const s = { base: e.space, uri: "/api/idea/add" };
1999
2099
  if (!Array.isArray(e.swymCommunities)) {
2000
2100
  const o = "☠️ swymCommunities doit être un tableau d'objets de communautés";
@@ -2050,15 +2150,15 @@ function lt(e, t = void 0, n = void 0) {
2050
2150
  },
2051
2151
  method: "POST",
2052
2152
  data: JSON.stringify(r),
2053
- onComplete(c, d, p) {
2054
- const u = { response: c };
2055
- typeof u.response == "string" && (u.response = JSON.parse(u.response)), u.status = p.status, t && t(u);
2153
+ onComplete(c, d, u) {
2154
+ const p = { response: c };
2155
+ typeof p.response == "string" && (p.response = JSON.parse(p.response)), p.status = u.status, t && t(p);
2056
2156
  },
2057
- onFailure(c, d, p) {
2058
- const u = JSON.parse(d), f = JSON.parse(c), l = new Error(
2157
+ onFailure(c, d, u) {
2158
+ const p = JSON.parse(d), f = JSON.parse(c), l = new Error(
2059
2159
  `Erreur sur cette requête : ${s.base + s.uri}`,
2060
2160
  {
2061
- cause: { head: u, rep: f }
2161
+ cause: { head: p, rep: f }
2062
2162
  }
2063
2163
  );
2064
2164
  n && n(l);
@@ -2067,7 +2167,7 @@ function lt(e, t = void 0, n = void 0) {
2067
2167
  m(s.base + s.uri, a);
2068
2168
  });
2069
2169
  }
2070
- function ft(e, t, n = void 0, s = void 0) {
2170
+ function Ct(e, t, n = void 0, s = void 0) {
2071
2171
  const i = `${e.space}/api/idea/delete`, r = {
2072
2172
  params: {
2073
2173
  community_id: t.community_id,
@@ -2088,13 +2188,13 @@ function ft(e, t, n = void 0, s = void 0) {
2088
2188
  n && n(a);
2089
2189
  },
2090
2190
  onFailure(a, c, d) {
2091
- const p = a;
2092
- p.status = c.status, p.response = c.errormsg, s && s(p);
2191
+ const u = a;
2192
+ u.status = c.status, u.response = c.errormsg, s && s(u);
2093
2193
  }
2094
2194
  });
2095
2195
  });
2096
2196
  }
2097
- function mt(e, t = void 0, n = void 0) {
2197
+ function Tt(e, t = void 0, n = void 0) {
2098
2198
  const { _3DSwym: s, _3DSwym_token: i } = e, r = `${s}/api/idea/get`;
2099
2199
  if (e.idPost === "") {
2100
2200
  const a = "☠️ idPost est vide, vous devez renseigner un identifiant de post";
@@ -2122,7 +2222,7 @@ function mt(e, t = void 0, n = void 0) {
2122
2222
  }
2123
2223
  });
2124
2224
  }
2125
- function gt(e, t, n) {
2225
+ function bt(e, t, n) {
2126
2226
  const {
2127
2227
  _3DSwym: s,
2128
2228
  _3DSwym_token: i,
@@ -2131,8 +2231,8 @@ function gt(e, t, n) {
2131
2231
  community_id: a,
2132
2232
  status_comment: c,
2133
2233
  status_id: d,
2134
- message: p
2135
- } = e, u = {
2234
+ message: u
2235
+ } = e, p = {
2136
2236
  base: `${s}`,
2137
2237
  uri: "/api/idea/edit"
2138
2238
  }, l = {
@@ -2150,42 +2250,42 @@ function gt(e, t, n) {
2150
2250
  community_id: a,
2151
2251
  status_comment: c,
2152
2252
  status_id: d,
2153
- message: p,
2253
+ message: u,
2154
2254
  published: "1"
2155
2255
  }
2156
2256
  }),
2157
2257
  type: "json",
2158
- onComplete(g, h, _) {
2258
+ onComplete(h, g, _) {
2159
2259
  const y = {
2160
- response: typeof g == "string" ? JSON.parse(g) : g
2260
+ response: typeof h == "string" ? JSON.parse(h) : h
2161
2261
  };
2162
2262
  y.status = _.status, t && t(y);
2163
2263
  },
2164
- onFailure(g) {
2165
- n && n(g);
2264
+ onFailure(h) {
2265
+ n && n(h);
2166
2266
  }
2167
2267
  };
2168
- m(u.base + u.uri, l);
2268
+ m(p.base + p.uri, l);
2169
2269
  }
2170
- function ht(e, t, n = void 0, s = void 0) {
2270
+ function Ot(e, t, n = void 0, s = void 0) {
2171
2271
  const { _3DSwym: i } = e;
2172
2272
  let { community_id: r, limit: o, page: a, search: c } = t;
2173
- const d = [], p = 1;
2174
- let u = !1, f = 2;
2175
- a || (a = p), o || (o = 100);
2273
+ const d = [], u = 1;
2274
+ let p = !1, f = 2;
2275
+ a || (a = u), o || (o = 100);
2176
2276
  const l = {
2177
2277
  uri: "/api/idea/list",
2178
2278
  comId: `/community_id/${r}`,
2179
2279
  limit: `/limit/${o}`,
2180
2280
  page: `/page/${a}`
2181
2281
  };
2182
- let g = `${i}${l.uri}${l.comId}${l.limit}${l.page}`;
2183
- C(e, (h) => {
2282
+ let h = `${i}${l.uri}${l.comId}${l.limit}${l.page}`;
2283
+ C(e, (g) => {
2184
2284
  const _ = (y) => {
2185
2285
  m(y, {
2186
2286
  method: "GET",
2187
2287
  headers: {
2188
- "X-DS-SWYM-CSRFTOKEN": h.result.ServerToken
2288
+ "X-DS-SWYM-CSRFTOKEN": g.result.ServerToken
2189
2289
  },
2190
2290
  onComplete(S) {
2191
2291
  const w = { response: JSON.parse(S) };
@@ -2194,7 +2294,7 @@ function ht(e, t, n = void 0, s = void 0) {
2194
2294
  d.push(w.response.result);
2195
2295
  else {
2196
2296
  const T = w.response.result.find(
2197
- (E) => E.title.includes(c)
2297
+ (x) => x.title.includes(c)
2198
2298
  );
2199
2299
  if (T) {
2200
2300
  n(T);
@@ -2202,7 +2302,7 @@ function ht(e, t, n = void 0, s = void 0) {
2202
2302
  }
2203
2303
  }
2204
2304
  if (n && f < a && !c) {
2205
- u = !0, n(d);
2305
+ p = !0, n(d);
2206
2306
  return;
2207
2307
  }
2208
2308
  _(y);
@@ -2214,10 +2314,10 @@ function ht(e, t, n = void 0, s = void 0) {
2214
2314
  }
2215
2315
  });
2216
2316
  };
2217
- u || _(g);
2317
+ p || _(h);
2218
2318
  });
2219
2319
  }
2220
- function me(e) {
2320
+ function ye(e) {
2221
2321
  return !e || e === "" ? `<h2><u>INFORMATIONS AFFAIRE :</u></h2>
2222
2322
  <p><u>|⚠️<em> Merci de respecter l&#39;écriture des tags, en MAJUSCULES, nom complet, pas de caractères</em></u></p>
2223
2323
  <p><u><em>|spéciaux, séparation par &#34;_&#34; si besoin !</em></u></p>
@@ -2292,7 +2392,7 @@ function me(e) {
2292
2392
  <p>
2293
2393
  </p>` : e;
2294
2394
  }
2295
- function _t(e, t = void 0, n = void 0) {
2395
+ function $t(e, t = void 0, n = void 0) {
2296
2396
  const { tenant: s, _3DSwym: i, _3DSwym_token: r, community_id: o, idea_id: a } = e;
2297
2397
  if (s && i && r && o && a) {
2298
2398
  const c = `${i}/api/idea/forward`;
@@ -2312,9 +2412,9 @@ function _t(e, t = void 0, n = void 0) {
2312
2412
  onComplete(d) {
2313
2413
  t && t(d);
2314
2414
  },
2315
- onFailure(d, p) {
2316
- const u = d;
2317
- u.status = p.status, u.response = p.errormsg, n && n(u);
2415
+ onFailure(d, u) {
2416
+ const p = d;
2417
+ p.status = u.status, p.response = u.errormsg, n && n(p);
2318
2418
  }
2319
2419
  });
2320
2420
  } else
@@ -2325,7 +2425,7 @@ function _t(e, t = void 0, n = void 0) {
2325
2425
  credentials: e
2326
2426
  });
2327
2427
  }
2328
- function yt(e, t = void 0, n = void 0) {
2428
+ function Nt(e, t = void 0, n = void 0) {
2329
2429
  return new Promise((s, i) => {
2330
2430
  try {
2331
2431
  let r;
@@ -2334,15 +2434,15 @@ function yt(e, t = void 0, n = void 0) {
2334
2434
  console.log("_3DSwym_get_currentUser | url", o), m(o, {
2335
2435
  method: "GET",
2336
2436
  onComplete(a, c, d) {
2337
- let p = a.replace(/\"\[/g, "[").replace(/\]\"/g, "]").replace(/\"{/g, "{").replace(/}\"/g, "}").replace(/\\/g, "");
2338
- p = p.replace(/\"\[/g, "[").replace(/\]\"/g, "]").replace(/\"{/g, "{").replace(/}\"/g, "}").replace(/\\/g, ""), console.log("result", p);
2339
- let u = {};
2437
+ let u = a.replace(/\"\[/g, "[").replace(/\]\"/g, "]").replace(/\"{/g, "{").replace(/}\"/g, "}").replace(/\\/g, "");
2438
+ u = u.replace(/\"\[/g, "[").replace(/\]\"/g, "]").replace(/\"{/g, "{").replace(/}\"/g, "}").replace(/\\/g, ""), console.log("result", u);
2439
+ let p = {};
2340
2440
  try {
2341
- u = JSON.parse(p);
2441
+ p = JSON.parse(u);
2342
2442
  } catch (f) {
2343
2443
  i("ERROR | _3DSwym_get_currentUser => JSON.Parse()", f);
2344
2444
  }
2345
- console.log(u), u.first_name = u?.firstName ? u.firstName : "", u.last_name = u?.lastName ? u.lastName : "", console.log("_3DSwym_get_currentUser | info", u), r = u, s(u);
2445
+ 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);
2346
2446
  },
2347
2447
  onFailure(a) {
2348
2448
  i("ERROR | _3DSwym_get_currentUser => _3DDashboard + /api/users/current", a);
@@ -2355,7 +2455,7 @@ function yt(e, t = void 0, n = void 0) {
2355
2455
  }
2356
2456
  });
2357
2457
  }
2358
- function St(e, t, n = void 0, s = void 0) {
2458
+ function Ft(e, t, n = void 0, s = void 0) {
2359
2459
  const i = e.space + "/api/user/find/login/" + t;
2360
2460
  C(
2361
2461
  e,
@@ -2375,7 +2475,7 @@ function St(e, t, n = void 0, s = void 0) {
2375
2475
  s
2376
2476
  );
2377
2477
  }
2378
- function wt(e, t = void 0, n = void 0) {
2478
+ function It(e, t = void 0, n = void 0) {
2379
2479
  const {
2380
2480
  _3DSwym: s,
2381
2481
  _3DSwym_token: i,
@@ -2390,26 +2490,26 @@ function wt(e, t = void 0, n = void 0) {
2390
2490
  },
2391
2491
  data: JSON.stringify({ richMessage: o }),
2392
2492
  type: "json",
2393
- onComplete(p, u, f) {
2493
+ onComplete(u, p, f) {
2394
2494
  const l = {
2395
- response: typeof p == "string" ? JSON.parse(p) : p
2495
+ response: typeof u == "string" ? JSON.parse(u) : u
2396
2496
  };
2397
2497
  l.status = f.status, t && t(l);
2398
2498
  },
2399
- onFailure(p) {
2400
- n && n(p);
2499
+ onFailure(u) {
2500
+ n && n(u);
2401
2501
  }
2402
2502
  };
2403
2503
  m(a, d);
2404
2504
  }
2405
- function Ct(e, t = void 0, n = void 0) {
2406
- e.tenant && v(e, (s) => {
2505
+ function Ut(e, t = void 0, n = void 0) {
2506
+ e.tenant && P(e, (s) => {
2407
2507
  const i = s.services.find((r) => r.id === "businessprocess")?.url + "/api/v2";
2408
2508
  return t && t(i), i;
2409
2509
  });
2410
2510
  }
2411
- function Tt(e, t = void 0, n = void 0) {
2412
- e.tenant && v(e, (s) => {
2511
+ function Rt(e, t = void 0, n = void 0) {
2512
+ e.tenant && P(e, (s) => {
2413
2513
  const i = s.services.find(
2414
2514
  (a) => a.id === "3dpassport"
2415
2515
  )?.url, r = s.services.find((a) => a.id === "businessprocess")?.url + "/api/v2", o = `${i}/login/?service=${r}/auth/cas`;
@@ -2428,7 +2528,7 @@ function Tt(e, t = void 0, n = void 0) {
2428
2528
  });
2429
2529
  });
2430
2530
  }
2431
- function bt(e, t = void 0, n = void 0) {
2531
+ function xt(e, t = void 0, n = void 0) {
2432
2532
  if (e.tenant) {
2433
2533
  const s = e.tenant.toLowerCase();
2434
2534
  fetch(`https://api.uixhome.fr/${s}/iterop/jwtuser`, {
@@ -2440,7 +2540,7 @@ function bt(e, t = void 0, n = void 0) {
2440
2540
  });
2441
2541
  }
2442
2542
  }
2443
- async function Ot(e, t, n = void 0, s = void 0) {
2543
+ async function kt(e, t, n = void 0, s = void 0) {
2444
2544
  if (e.tenant) {
2445
2545
  const i = e.tenant.toLowerCase();
2446
2546
  fetch(
@@ -2455,7 +2555,7 @@ async function Ot(e, t, n = void 0, s = void 0) {
2455
2555
  });
2456
2556
  }
2457
2557
  }
2458
- async function $t(e, t, n, s = void 0, i = void 0) {
2558
+ async function jt(e, t, n, s = void 0, i = void 0) {
2459
2559
  if (e.tenant) {
2460
2560
  const r = e.tenant.toLowerCase();
2461
2561
  fetch(
@@ -2470,7 +2570,7 @@ async function $t(e, t, n, s = void 0, i = void 0) {
2470
2570
  });
2471
2571
  }
2472
2572
  }
2473
- async function Nt(e, t, n, s = void 0, i = void 0) {
2573
+ async function Dt(e, t, n, s = void 0, i = void 0) {
2474
2574
  if (e.tenant) {
2475
2575
  const r = e.tenant.toLowerCase();
2476
2576
  fetch(
@@ -2485,7 +2585,7 @@ async function Nt(e, t, n, s = void 0, i = void 0) {
2485
2585
  });
2486
2586
  }
2487
2587
  }
2488
- async function It(e, t, n, s, i = void 0, r = void 0) {
2588
+ async function vt(e, t, n, s, i = void 0, r = void 0) {
2489
2589
  if (e.tenant) {
2490
2590
  const o = e.tenant.toLowerCase();
2491
2591
  fetch(
@@ -2500,7 +2600,7 @@ async function It(e, t, n, s, i = void 0, r = void 0) {
2500
2600
  });
2501
2601
  }
2502
2602
  }
2503
- async function Rt(e, t, n, s, i, r = void 0, o = void 0) {
2603
+ async function At(e, t, n, s, i, r = void 0, o = void 0) {
2504
2604
  if (e.tenant) {
2505
2605
  const a = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/search/rows/${n}?t=${t}&c=${encodeURIComponent(
2506
2606
  s
@@ -2519,7 +2619,7 @@ async function Rt(e, t, n, s, i, r = void 0, o = void 0) {
2519
2619
  });
2520
2620
  }
2521
2621
  }
2522
- async function Ut(e, t, n, s, i = void 0, r = void 0) {
2622
+ async function Pt(e, t, n, s, i = void 0, r = void 0) {
2523
2623
  if (e.tenant) {
2524
2624
  const o = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/update/${n}?t=${t}&b=${encodeURIComponent(
2525
2625
  s
@@ -2536,7 +2636,7 @@ async function Ut(e, t, n, s, i = void 0, r = void 0) {
2536
2636
  });
2537
2637
  }
2538
2638
  }
2539
- async function Ft(e, t, n, s = void 0, i = void 0) {
2639
+ async function Lt(e, t, n, s = void 0, i = void 0) {
2540
2640
  if (e.tenant) {
2541
2641
  const r = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/create/?t=${t}&b=${encodeURIComponent(
2542
2642
  n
@@ -2553,7 +2653,7 @@ async function Ft(e, t, n, s = void 0, i = void 0) {
2553
2653
  });
2554
2654
  }
2555
2655
  }
2556
- async function kt(e, t, n, s, i = void 0, r = void 0) {
2656
+ async function Mt(e, t, n, s, i = void 0, r = void 0) {
2557
2657
  if (e.tenant) {
2558
2658
  const o = e.tenant.toLowerCase();
2559
2659
  fetch(
@@ -2568,7 +2668,7 @@ async function kt(e, t, n, s, i = void 0, r = void 0) {
2568
2668
  });
2569
2669
  }
2570
2670
  }
2571
- async function jt(e, t, n, s = void 0, i = void 0) {
2671
+ async function Jt(e, t, n, s = void 0, i = void 0) {
2572
2672
  if (console.log("_Iterop_GetOneDependencyTable | Run"), e.tenant) {
2573
2673
  const r = e.tenant.toLowerCase();
2574
2674
  fetch(
@@ -2583,7 +2683,7 @@ async function jt(e, t, n, s = void 0, i = void 0) {
2583
2683
  });
2584
2684
  }
2585
2685
  }
2586
- async function xt(e, t, n, s, i, r = void 0, o = void 0) {
2686
+ async function Gt(e, t, n, s, i, r = void 0, o = void 0) {
2587
2687
  if (e.tenant) {
2588
2688
  const a = e.tenant.toLowerCase();
2589
2689
  fetch(
@@ -2598,7 +2698,7 @@ async function xt(e, t, n, s, i, r = void 0, o = void 0) {
2598
2698
  });
2599
2699
  }
2600
2700
  }
2601
- async function At(e, t, n, s, i = void 0, r = void 0) {
2701
+ async function Kt(e, t, n, s, i = void 0, r = void 0) {
2602
2702
  if (e.tenant) {
2603
2703
  const o = e.tenant.toLowerCase();
2604
2704
  fetch(
@@ -2614,7 +2714,7 @@ async function At(e, t, n, s, i = void 0, r = void 0) {
2614
2714
  }
2615
2715
  }
2616
2716
  //!SECTION
2617
- async function vt(e, t, n, s = void 0, i = void 0) {
2717
+ async function Bt(e, t, n, s = void 0, i = void 0) {
2618
2718
  if (e.tenant) {
2619
2719
  const r = e.tenant.toLowerCase();
2620
2720
  fetch(
@@ -2630,17 +2730,17 @@ async function vt(e, t, n, s = void 0, i = void 0) {
2630
2730
  }
2631
2731
  }
2632
2732
  //!SECTION
2633
- function Dt(e) {
2733
+ function Et(e) {
2634
2734
  const t = "Hello " + e;
2635
2735
  return console.log(t), t;
2636
2736
  }
2637
- function Pt(e, t = void 0, n = void 0) {
2737
+ function qt(e, t = void 0, n = void 0) {
2638
2738
  return console.log("credentials", e), new Promise((s) => {
2639
2739
  if (e.token === "" && b(e), !e.space || e.space === "") {
2640
- const o = V();
2740
+ const o = Z();
2641
2741
  console.log("platformeInfo", o);
2642
2742
  }
2643
- U(
2743
+ R(
2644
2744
  e,
2645
2745
  "Common space",
2646
2746
  ["VPLMProjectLeader", "VPLMCreator"],
@@ -2714,102 +2814,103 @@ function Pt(e, t = void 0, n = void 0) {
2714
2814
  });
2715
2815
  }
2716
2816
  export {
2717
- B as UUID,
2718
- Pt as _3DSearch_usersGroup,
2719
- Ee as _3DSpace_Create_Doc,
2720
- Ge as _3DSpace_Update_Doc,
2721
- Ye as _3DSpace_bookmark_addSubsciptions,
2722
- Ve as _3DSpace_bookmark_newWorkspace,
2817
+ Y as UUID,
2818
+ qt as _3DSearch_usersGroup,
2819
+ He as _3DSpace_Create_Doc,
2820
+ Ye as _3DSpace_Update_Doc,
2821
+ Ve as _3DSpace_Upload_File,
2822
+ st as _3DSpace_bookmark_addSubsciptions,
2823
+ nt as _3DSpace_bookmark_newWorkspace,
2723
2824
  b as _3DSpace_csrf,
2724
- L as _3DSpace_download_doc,
2725
- ie as _3DSpace_download_multidoc,
2726
- P as _3DSpace_file_update,
2727
- ee as _3DSpace_file_update_csr,
2728
- Me as _3DSpace_file_url_csr,
2729
- R as _3DSpace_get_csrf,
2730
- D as _3DSpace_get_docInfo,
2731
- ae as _3DSpace_get_downloadTicket_multidoc,
2732
- Le as _3DSpace_get_multiDocInfo,
2733
- U as _3DSpace_get_securityContexts,
2734
- k as _3DSpace_get_ticket,
2735
- qe as _3DSpace_lifecycle_changeRevision,
2736
- Be as _3DSpace_lifecycle_changeState,
2737
- We as _3DSpace_lifecycle_getGraph,
2738
- Xe as _3DSpace_lifecycle_getNextRevision,
2739
- Ke as _3DSpace_lifecycle_getNextStates,
2740
- Je as _3DSpace_put_docInfo,
2741
- _t as _3DSwym_ForwardIdea,
2742
- wt as _3DSwym_addComment,
2743
- ut as _3DSwym_buildDirectMessage,
2744
- ft as _3DSwym_deleteIdea,
2745
- gt as _3DSwym_editIdea,
2746
- le as _3DSwym_findCommunityToInstantMSG,
2747
- ct as _3DSwym_getAllCommunities,
2748
- ht as _3DSwym_getAllListIdeas,
2749
- ot as _3DSwym_getAllNews,
2750
- rt as _3DSwym_getFamiliarPeople,
2751
- dt as _3DSwym_getIdeaStatusMaturity,
2752
- pe as _3DSwym_getMembersCommunity,
2753
- mt as _3DSwym_getOneIdea,
2825
+ G as _3DSpace_download_doc,
2826
+ ce as _3DSpace_download_multidoc,
2827
+ M as _3DSpace_file_update,
2828
+ ae as _3DSpace_file_update_csr,
2829
+ Xe as _3DSpace_file_url_csr,
2830
+ U as _3DSpace_get_csrf,
2831
+ L as _3DSpace_get_docInfo,
2832
+ de as _3DSpace_get_downloadTicket_multidoc,
2833
+ qe as _3DSpace_get_multiDocInfo,
2834
+ R as _3DSpace_get_securityContexts,
2835
+ j as _3DSpace_get_ticket,
2836
+ tt as _3DSpace_lifecycle_changeRevision,
2837
+ Qe as _3DSpace_lifecycle_changeState,
2838
+ Ze as _3DSpace_lifecycle_getGraph,
2839
+ et as _3DSpace_lifecycle_getNextRevision,
2840
+ ze as _3DSpace_lifecycle_getNextStates,
2841
+ We as _3DSpace_put_docInfo,
2842
+ $t as _3DSwym_ForwardIdea,
2843
+ It as _3DSwym_addComment,
2844
+ yt as _3DSwym_buildDirectMessage,
2845
+ Ct as _3DSwym_deleteIdea,
2846
+ bt as _3DSwym_editIdea,
2847
+ ge as _3DSwym_findCommunityToInstantMSG,
2848
+ gt as _3DSwym_getAllCommunities,
2849
+ Ot as _3DSwym_getAllListIdeas,
2850
+ mt as _3DSwym_getAllNews,
2851
+ ht as _3DSwym_getFamiliarPeople,
2852
+ _t as _3DSwym_getIdeaStatusMaturity,
2853
+ he as _3DSwym_getMembersCommunity,
2854
+ Tt as _3DSwym_getOneIdea,
2754
2855
  C as _3DSwym_get_Token,
2755
- yt as _3DSwym_get_currentUser,
2756
- St as _3DSwym_get_findUser,
2757
- lt as _3DSwym_postIdea,
2758
- pt as _3DSwym_postIdeaTemplate,
2759
- x as _3DSwym_sendMessageData,
2760
- Fe as _AppMngt_get_info_user,
2761
- Ue as _AppMngt_get_users,
2762
- It as _Iterop_AddOrRemoveRows,
2763
- Tt as _Iterop_Auth_CAS,
2764
- jt as _Iterop_GetOneDependencyTable,
2765
- vt as _Iterop_GetOneList,
2766
- xt as _Iterop_PatchDependencyTable,
2767
- At as _Iterop_PutDependencyTable,
2768
- Rt as _Iterop_businessTableSearchInRows,
2769
- Ft as _Iterop_createBusinessTable,
2770
- Ot as _Iterop_getAllBusinessTables,
2771
- $t as _Iterop_getOneBusinessTable,
2772
- Nt as _Iterop_getOneBusinessTableRows,
2773
- bt as _Iterop_jwtUser,
2774
- kt as _Iterop_runProcess,
2775
- Ut as _Iterop_updateBusinessTable,
2776
- Ne as _getMe,
2777
- V as _getPlateformInfos,
2778
- $e as _getPlatformServices,
2779
- v as _getServiceUrl,
2780
- Ie as _getServiceUrl_3DPassport,
2781
- Ct as _getServiceUrl_Iterop,
2856
+ Nt as _3DSwym_get_currentUser,
2857
+ Ft as _3DSwym_get_findUser,
2858
+ wt as _3DSwym_postIdea,
2859
+ St as _3DSwym_postIdeaTemplate,
2860
+ v as _3DSwym_sendMessageData,
2861
+ Pe as _AppMngt_get_info_user,
2862
+ Ae as _AppMngt_get_users,
2863
+ vt as _Iterop_AddOrRemoveRows,
2864
+ Rt as _Iterop_Auth_CAS,
2865
+ Jt as _Iterop_GetOneDependencyTable,
2866
+ Bt as _Iterop_GetOneList,
2867
+ Gt as _Iterop_PatchDependencyTable,
2868
+ Kt as _Iterop_PutDependencyTable,
2869
+ At as _Iterop_businessTableSearchInRows,
2870
+ Lt as _Iterop_createBusinessTable,
2871
+ kt as _Iterop_getAllBusinessTables,
2872
+ jt as _Iterop_getOneBusinessTable,
2873
+ Dt as _Iterop_getOneBusinessTableRows,
2874
+ xt as _Iterop_jwtUser,
2875
+ Mt as _Iterop_runProcess,
2876
+ Pt as _Iterop_updateBusinessTable,
2877
+ je as _getMe,
2878
+ Z as _getPlateformInfos,
2879
+ ke as _getPlatformServices,
2880
+ P as _getServiceUrl,
2881
+ De as _getServiceUrl_3DPassport,
2882
+ Ut as _getServiceUrl_Iterop,
2782
2883
  m as _httpCallAuthenticated,
2783
- Te as _setDraggable,
2784
- Oe as _setDroppable,
2785
- be as _setupTagger,
2786
- st as addTagToDoc,
2787
- X as chunkArray,
2788
- Re as compass_getListAdditionalApps,
2789
- W as couleurs,
2790
- ke as createUserGroups,
2791
- oe as dataMixing,
2792
- Ae as deleteUserGroups,
2793
- Se as findAdresse,
2794
- He as getAllContextSecurity,
2795
- H as getCSRFToken,
2796
- ye as getCommunes,
2797
- je as getComplementUG,
2798
- ze as getDataFrom3DSpace,
2799
- we as getDataFromGouvFr,
2800
- tt as getDatasByTenant,
2801
- nt as getDatasFrom3DSpace,
2802
- Qe as getDownloadDocument,
2803
- at as getInfoDocTags,
2804
- xe as getUserGroupsList,
2805
- Y as getUsersGroupRules,
2806
- et as get_3DSpace_csrf,
2807
- ve as patchUserGroups,
2808
- De as patchUserGroupsControl,
2809
- Ze as pushDataIn3DSpace,
2810
- Pe as readUserGroupControl,
2811
- it as removeTagToDoc,
2812
- Dt as sayHello,
2813
- Ce as updateEvent
2884
+ Ue as _setDraggable,
2885
+ xe as _setDroppable,
2886
+ Re as _setupTagger,
2887
+ pt as addTagToDoc,
2888
+ z as chunkArray,
2889
+ ve as compass_getListAdditionalApps,
2890
+ H as couleurs,
2891
+ Le as createUserGroups,
2892
+ ue as dataMixing,
2893
+ Ge as deleteUserGroups,
2894
+ Ne as findAdresse,
2895
+ it as getAllContextSecurity,
2896
+ te as getCSRFToken,
2897
+ $e as getCommunes,
2898
+ Me as getComplementUG,
2899
+ at as getDataFrom3DSpace,
2900
+ Fe as getDataFromGouvFr,
2901
+ dt as getDatasByTenant,
2902
+ ut as getDatasFrom3DSpace,
2903
+ ot as getDownloadDocument,
2904
+ ft as getInfoDocTags,
2905
+ Je as getUserGroupsList,
2906
+ ee as getUsersGroupRules,
2907
+ ct as get_3DSpace_csrf,
2908
+ Ke as patchUserGroups,
2909
+ Be as patchUserGroupsControl,
2910
+ rt as pushDataIn3DSpace,
2911
+ Ee as readUserGroupControl,
2912
+ lt as removeTagToDoc,
2913
+ Et as sayHello,
2914
+ Ie as updateEvent
2814
2915
  };
2815
2916
  //# sourceMappingURL=wb3Api.js.map