@beam3_dev/api_module 0.0.151 → 0.0.153

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 L } from "uuid";
2
- import { DateTime as N } from "luxon";
3
- import { requirejs as O, widget as U } from "@widget-lab/3ddashboard-utils";
4
- function D() {
5
- return L();
1
+ import { v4 as E } from "uuid";
2
+ import { DateTime as v } from "luxon";
3
+ import { requirejs as O, widget as D } from "@widget-lab/3ddashboard-utils";
4
+ function P() {
5
+ return E();
6
6
  }
7
- const J = {
7
+ const G = {
8
8
  b3M3Yellow: "#FFB300",
9
9
  b3AboutageBlue: "#42A5F5",
10
10
  b3UsinageGreen: "#689F38",
@@ -34,7 +34,7 @@ const J = {
34
34
  b3Edit8: "#616161",
35
35
  b3Edit9: "#795548"
36
36
  };
37
- async function ce(e, t = void 0, n = void 0) {
37
+ async function fe(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 ce(e, t = void 0, n = void 0) {
50
50
  n && n(a), console.error("Erreur : " + a);
51
51
  });
52
52
  }
53
- async function de(e, t = void 0, n = void 0) {
53
+ async function me(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,8 +65,8 @@ async function de(e, t = void 0, n = void 0) {
65
65
  n && n(s), console.error("Erreur : " + s);
66
66
  });
67
67
  }
68
- async function pe(e, t = J) {
69
- let n = N.now().year;
68
+ async function ge(e, t = G) {
69
+ let n = v.now().year;
70
70
  const s = e, a = [], r = (i) => {
71
71
  for (let c in i)
72
72
  a.push({ date: c, comment: i[c] });
@@ -89,27 +89,27 @@ async function pe(e, t = J) {
89
89
  } : s;
90
90
  for (let c of a)
91
91
  i.events.findIndex(
92
- (p) => p.start === N.fromISO(c.date).toISODate() && p.name === "Férié : " + c.comment
92
+ (p) => p.start === v.fromISO(c.date).toISODate() && p.name === "Férié : " + c.comment
93
93
  ) === -1 && i.events.push({
94
94
  name: "Férié : " + c.comment,
95
- start: N.fromISO(c.date).toISODate(),
96
- end: N.fromISO(c.date).toISODate(),
95
+ start: v.fromISO(c.date).toISODate(),
96
+ end: v.fromISO(c.date).toISODate(),
97
97
  color: t.b3BusinnessDays,
98
98
  timed: !1
99
99
  });
100
100
  return i;
101
101
  })();
102
102
  }
103
- async function le(e, t, n = !0) {
103
+ async function he(e, t, n = !0) {
104
104
  const s = e.events.findIndex((a) => a.uuid === t.uuid);
105
105
  return s === -1 ? e.events.push(t) : n ? e.events[s] = t : e.events.splice(s, 1), e.length > 0 && e.sort((a, r) => a.start - r.start), e;
106
106
  }
107
- function u(e, t) {
107
+ function m(e, t) {
108
108
  O(["DS/WAFData/WAFData"], (n) => {
109
109
  n.authenticatedRequest(e, t);
110
110
  });
111
111
  }
112
- function ue(e, t, n) {
112
+ function Se(e, t, n) {
113
113
  O(["DS/DataDragAndDrop/DataDragAndDrop"], (s) => {
114
114
  s.draggable(e, {
115
115
  data: t,
@@ -117,27 +117,27 @@ function ue(e, t, n) {
117
117
  });
118
118
  });
119
119
  }
120
- function fe(e, t = void 0) {
120
+ function ye(e, t = void 0) {
121
121
  O(["DS/TagNavigatorProxy/TagNavigatorProxy"], (n) => {
122
122
  let s;
123
123
  s === void 0 && (s = n.createProxy({
124
- widgetId: U.id,
124
+ widgetId: D.id,
125
125
  filteringMode: "WithFilteringServices"
126
126
  }), t !== void 0 && s.addEvent("onFilterSubjectsChange", t)), s.setSubjectsTags(e);
127
127
  });
128
128
  }
129
- function me(e, t) {
129
+ function _e(e, t) {
130
130
  O(["DS/DataDragAndDrop/DataDragAndDrop"], (n) => {
131
131
  n.droppable(e, {
132
132
  drop: t
133
133
  });
134
134
  });
135
135
  }
136
- async function ge(e, t = void 0, n = void 0) {
136
+ async function we(e, t = void 0, n = void 0) {
137
137
  await O(
138
138
  ["DS/i3DXCompassServices/i3DXCompassServices"],
139
139
  (s) => {
140
- (!e || e === "") && (e = U.getValue("PlatFormInstanceId")), (!e || e === "") && (e = void 0), t && t(
140
+ (!e || e === "") && (e = D.getValue("PlatFormInstanceId")), (!e || e === "") && (e = void 0), t && t(
141
141
  s.getPlatformServices({
142
142
  platformId: e,
143
143
  onComplete: t,
@@ -147,7 +147,7 @@ async function ge(e, t = void 0, n = void 0) {
147
147
  }
148
148
  );
149
149
  }
150
- function E() {
150
+ function K() {
151
151
  let e = {};
152
152
  return O(["DS/PlatformAPI/PlatformAPI"], (t) => {
153
153
  const n = t.getTenant(), s = t.getUser(), a = t.getAllApplicationConfigurations(), r = t.getApplicationConfiguration(
@@ -161,10 +161,10 @@ function E() {
161
161
  };
162
162
  }), console.log("%cRETOUR API :", "color:blue", e), e;
163
163
  }
164
- function v(e, t = void 0, n = void 0) {
164
+ function $(e, t = void 0, n = void 0) {
165
165
  if (e.tenant) {
166
166
  const s = `https://${e.tenant}-eu1-apps.3dexperience.3ds.com/enovia/resources/AppsMngt/api/v1/services?tenant=${e.tenant}&cors=true&xrequestedwith=xmlhttprequest`;
167
- u(s, {
167
+ m(s, {
168
168
  onComplete(a) {
169
169
  const r = typeof a == "string" ? JSON.parse(a) : a;
170
170
  if (r && "platforms" in r) {
@@ -181,10 +181,10 @@ function v(e, t = void 0, n = void 0) {
181
181
  });
182
182
  }
183
183
  }
184
- function he(e, t = void 0, n = void 0) {
184
+ function Ce(e, t = void 0, n = void 0) {
185
185
  if (e.tenant) {
186
186
  const s = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dpassport&platformId=${e.tenant}`;
187
- u(s, {
187
+ m(s, {
188
188
  onComplete(a) {
189
189
  const r = JSON.parse(a);
190
190
  if (console.log("serviceId=3dpassport", r), Array.isArray(r) && r.length > 0) {
@@ -198,14 +198,14 @@ function he(e, t = void 0, n = void 0) {
198
198
  });
199
199
  }
200
200
  }
201
- function Se(e, t, n) {
201
+ function Te(e, t, n) {
202
202
  const s = {
203
203
  base: `${e.space}`,
204
204
  uri: "/resources/AppsMngt/api/custom/applications",
205
205
  option: `?filter=${e.tenant}`
206
206
  // facultatif
207
207
  }, a = `${s.base}${s.uri}${s.option}`;
208
- u(a, {
208
+ m(a, {
209
209
  method: "GET",
210
210
  headers: {
211
211
  "Content-Type": "application/json",
@@ -213,8 +213,8 @@ function Se(e, t, n) {
213
213
  },
214
214
  onComplete(r, o, i) {
215
215
  const c = JSON.parse(r), d = c.data.map((p) => {
216
- const l = p.attributes.name, f = p.id;
217
- return { name: l, id: f };
216
+ const l = p.attributes.name, u = p.id;
217
+ return { name: l, id: u };
218
218
  });
219
219
  t && t(d, c);
220
220
  },
@@ -224,9 +224,9 @@ function Se(e, t, n) {
224
224
  }
225
225
  });
226
226
  }
227
- function _e(e, t = void 0, n = void 0) {
227
+ function Oe(e, t = void 0, n = void 0) {
228
228
  let s = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&limit=-1`;
229
- u(s, {
229
+ m(s, {
230
230
  onComplete(a, r, o) {
231
231
  const i = JSON.parse(a);
232
232
  console.log("_AppMngt_get_users => ", i), t && t(i);
@@ -237,9 +237,9 @@ function _e(e, t = void 0, n = void 0) {
237
237
  }
238
238
  });
239
239
  }
240
- function ye(e, t, n = void 0, s = void 0) {
240
+ function be(e, t, n = void 0, s = void 0) {
241
241
  let a = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&id=${t}`;
242
- u(a, {
242
+ m(a, {
243
243
  onComplete(r, o, i) {
244
244
  const c = JSON.parse(r);
245
245
  n && n(c);
@@ -250,11 +250,11 @@ function ye(e, t, n = void 0, s = void 0) {
250
250
  }
251
251
  });
252
252
  }
253
- const I = {
253
+ const U = {
254
254
  "Content-Type": "application/json",
255
255
  Accept: "application/json,text/javascript,*/*"
256
256
  };
257
- function we(e, t, n = void 0, s = void 0) {
257
+ function Ne(e, t, n = void 0, s = void 0) {
258
258
  const { space: a, currentUser: r } = e, i = `${a}${{
259
259
  URIUGr: "/3drdfpersist/resources/v1/usersgroup"
260
260
  }.URIUGr}`, c = {
@@ -269,9 +269,9 @@ function we(e, t, n = void 0, s = void 0) {
269
269
  }
270
270
  ]
271
271
  };
272
- u(i, {
272
+ m(i, {
273
273
  method: "POST",
274
- headers: I,
274
+ headers: U,
275
275
  data: JSON.stringify(c),
276
276
  onComplete(d) {
277
277
  n && n(JSON.parse(d));
@@ -283,9 +283,9 @@ function we(e, t, n = void 0, s = void 0) {
283
283
  }
284
284
  });
285
285
  }
286
- function Ce(e, t, n = void 0, s = void 0) {
286
+ function ve(e, t, n = void 0, s = void 0) {
287
287
  const { space: a, tenant: r } = e, o = a, i = `/3drdfpersist/v1/resources/${t}`, c = `?$mask=dsaccess:Mask.GroupUI.Properties&tenant=dstenant:${r}`, d = `${o}${i}${c}`;
288
- u(d, {
288
+ m(d, {
289
289
  opts: {
290
290
  method: "GET",
291
291
  headers: {
@@ -293,50 +293,50 @@ function Ce(e, t, n = void 0, s = void 0) {
293
293
  Accept: "application/json,text/javascript,*/*"
294
294
  }
295
295
  },
296
- onComplete(f) {
297
- n && n(JSON.parse(f));
296
+ onComplete(u) {
297
+ n && n(JSON.parse(u));
298
298
  },
299
- onFailure(f, m) {
300
- const g = f;
301
- g.msg = m.errormsg, g.errCode = m.errorcode, s && s(g);
299
+ onFailure(u, f) {
300
+ const g = u;
301
+ g.msg = f.errormsg, g.errCode = f.errorcode, s && s(g);
302
302
  }
303
303
  });
304
304
  }
305
- function G(e, t = void 0, n = void 0) {
305
+ function V(e, t = void 0, n = void 0) {
306
306
  const { space: s, tenant: a } = e, r = s, o = "/3drdfpersist/resources/v1/option-sets/dsusergroup:ListOfGroupResponsibilities/options", i = `?tenant=dstenant:${a}`, c = {
307
307
  method: "GET",
308
308
  Accept: "application/json,*/*,test/javascript"
309
309
  }, d = `${r}${o}${i}`;
310
- u(d, {
310
+ m(d, {
311
311
  OPTsH: c,
312
312
  onComplete(p) {
313
313
  t && t(JSON.parse(p));
314
314
  },
315
315
  onFailure(p, l) {
316
- const f = p;
317
- f.msg = l.errormsg, f.errCode = l.errorcode, n && n(f);
316
+ const u = p;
317
+ u.msg = l.errormsg, u.errCode = l.errorcode, n && n(u);
318
318
  }
319
319
  });
320
320
  }
321
- function Te(e, t = void 0, n = void 0) {
321
+ function Ie(e, t = void 0, n = void 0) {
322
322
  const { space: s, currentUser: a } = e, i = `${s}/3drdfpersist/resources/v1/usersgroup?select=uri,title,description,owner,members,pending_members,creation_date,modification_date,visibility`, d = { method: "GET", headers: {
323
323
  "Content-Type": "application/json",
324
324
  Accept: "application/json,text/javascript,*/*"
325
325
  } };
326
326
  try {
327
- u(i, {
327
+ m(i, {
328
328
  opts: d,
329
329
  onComplete(p) {
330
- const l = JSON.parse(p), f = {}, m = l.groups.filter((g) => g.uri.startsWith("uuid:"));
330
+ const l = JSON.parse(p), u = {}, f = l.groups.filter((g) => g.uri.startsWith("uuid:"));
331
331
  if (a && Object.keys(a).length > 0) {
332
- const g = m.filter((_) => _.owner === a.email), h = m.filter((_) => _.members.includes(a.email)), S = g.concat(h);
333
- f.iam = S, f.UG = m, f.iamMember = h, G(
332
+ const g = f.filter((y) => y.owner === a.email), h = f.filter((y) => y.members.includes(a.email)), S = g.concat(h);
333
+ u.iam = S, u.UG = f, u.iamMember = h, V(
334
334
  e,
335
- (_) => {
336
- f.rules = _, t && t(f);
335
+ (y) => {
336
+ u.rules = y, t && t(u);
337
337
  },
338
- (_) => {
339
- n && n(_);
338
+ (y) => {
339
+ n && n(y);
340
340
  }
341
341
  );
342
342
  }
@@ -349,13 +349,13 @@ function Te(e, t = void 0, n = void 0) {
349
349
  console.log(p);
350
350
  }
351
351
  }
352
- function Oe(e, t) {
352
+ function $e(e, t) {
353
353
  const { space: n } = e, a = `${n}/3drdfpersist/resources/v1/usersgroup/${t}`;
354
- u(a, {
354
+ m(a, {
355
355
  method: "DELETE"
356
356
  });
357
357
  }
358
- function be(e, t, n, s = void 0, a = void 0) {
358
+ function Ae(e, t, n, s = void 0, a = void 0) {
359
359
  const { space: r, tenant: o } = e, i = {
360
360
  URITI: "/3drdfpersist/resources/v1/template-instances",
361
361
  URIUGr: "/3drdfpersist/resources/v1/usersgroup",
@@ -365,8 +365,8 @@ function be(e, t, n, s = void 0, a = void 0) {
365
365
  OPTsTI: "?$mask=dsaccess:Mask.GroupUI.Properties",
366
366
  OPTsTenant: `tenant=dstenant:${o}`
367
367
  }, c = n, d = `${r}${i.URIUGr}/${t}`, p = JSON.stringify(c);
368
- u(d, {
369
- headers: I,
368
+ m(d, {
369
+ headers: U,
370
370
  method: "PATCH",
371
371
  data: p,
372
372
  type: "json",
@@ -378,11 +378,11 @@ function be(e, t, n, s = void 0, a = void 0) {
378
378
  }
379
379
  });
380
380
  }
381
- function Ne(e, t, n, s = void 0, a = void 0) {
381
+ function ke(e, t, n, s = void 0, a = void 0) {
382
382
  const { space: r } = e, i = `${r}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
383
- u(i, {
383
+ m(i, {
384
384
  method: "PATCH",
385
- headers: I,
385
+ headers: U,
386
386
  data: JSON.stringify(n),
387
387
  type: "json",
388
388
  onComplete(d) {
@@ -393,9 +393,9 @@ function Ne(e, t, n, s = void 0, a = void 0) {
393
393
  }
394
394
  });
395
395
  }
396
- function ve(e, t, n = void 0, s = void 0) {
396
+ function Ue(e, t, n = void 0, s = void 0) {
397
397
  const { space: a } = e, o = `${a}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
398
- u(o, {
398
+ m(o, {
399
399
  opts: {
400
400
  method: "GET",
401
401
  headers: {
@@ -411,10 +411,10 @@ function ve(e, t, n = void 0, s = void 0) {
411
411
  }
412
412
  });
413
413
  }
414
- async function K(e, t, n) {
414
+ async function W(e, t, n) {
415
415
  if (e.space) {
416
416
  const s = `${e.space}/resources/v1/application/CSRF`;
417
- u(s, {
417
+ m(s, {
418
418
  onComplete(a) {
419
419
  a = JSON.parse(a), t && t(a.csrf);
420
420
  },
@@ -424,14 +424,55 @@ async function K(e, t, n) {
424
424
  });
425
425
  }
426
426
  }
427
- async function V(e, t = void 0, n = void 0, s = void 0) {
427
+ var I = {};
428
+ function B(e, t) {
429
+ return Object.prototype.hasOwnProperty.call(e, t);
430
+ }
431
+ var X = function(e, t, n, s) {
432
+ t = t || "&", n = n || "=";
433
+ var a = {};
434
+ if (typeof e != "string" || e.length === 0)
435
+ return a;
436
+ var r = /\+/g;
437
+ e = e.split(t);
438
+ var o = 1e3;
439
+ s && typeof s.maxKeys == "number" && (o = s.maxKeys);
440
+ var i = e.length;
441
+ o > 0 && i > o && (i = o);
442
+ for (var c = 0; c < i; ++c) {
443
+ var d = e[c].replace(r, "%20"), p = d.indexOf(n), l, u, f, g;
444
+ p >= 0 ? (l = d.substr(0, p), u = d.substr(p + 1)) : (l = d, u = ""), f = decodeURIComponent(l), g = decodeURIComponent(u), B(a, f) ? Array.isArray(a[f]) ? a[f].push(g) : a[f] = [a[f], g] : a[f] = g;
445
+ }
446
+ return a;
447
+ }, N = function(e) {
448
+ switch (typeof e) {
449
+ case "string":
450
+ return e;
451
+ case "boolean":
452
+ return e ? "true" : "false";
453
+ case "number":
454
+ return isFinite(e) ? e : "";
455
+ default:
456
+ return "";
457
+ }
458
+ }, Y = function(e, t, n, s) {
459
+ return t = t || "&", n = n || "=", e === null && (e = void 0), typeof e == "object" ? Object.keys(e).map(function(a) {
460
+ var r = encodeURIComponent(N(a)) + n;
461
+ return Array.isArray(e[a]) ? e[a].map(function(o) {
462
+ return r + encodeURIComponent(N(o));
463
+ }).join(t) : r + encodeURIComponent(N(e[a]));
464
+ }).filter(Boolean).join(t) : s ? encodeURIComponent(N(s)) + n + encodeURIComponent(N(e)) : "";
465
+ };
466
+ I.decode = I.parse = X;
467
+ I.encode = I.stringify = Y;
468
+ async function H(e, t = void 0, n = void 0, s = void 0) {
428
469
  const a = e.space;
429
470
  if (t === void 0) {
430
471
  console.log("Le paramètre docid est obligatoire");
431
472
  return;
432
473
  }
433
474
  const r = a + `/resources/v1/modeler/documents/${t}`;
434
- u(r, {
475
+ m(r, {
435
476
  onComplete(o, i, c) {
436
477
  const d = JSON.parse(o);
437
478
  n && n(d);
@@ -441,32 +482,34 @@ async function V(e, t = void 0, n = void 0, s = void 0) {
441
482
  }
442
483
  });
443
484
  }
444
- async function $e(e, t = void 0, n = void 0, s = void 0) {
485
+ async function Fe(e, t = void 0, n = void 0, s = void 0) {
445
486
  const a = e.space;
446
487
  if (t === void 0) {
447
488
  console.log("Le paramètre docids est obligatoire");
448
489
  return;
449
490
  }
450
- const r = a + "/resources/v1/modeler/documents/ids?$fields=revision&$include=!files,!ownerInfo,!originatorInfo,versions";
451
- u(r, {
491
+ let r = `${a}/resources/v1/modeler/documents/ids?$include=!files,!ownerInfo,!originatorInfo,!relOwnerInfo'`, o = I.stringify({
492
+ $ids: t.toString().replace('"', "").replace("[", "").replace("]", "")
493
+ });
494
+ m(r, {
452
495
  method: "POST",
453
496
  headers: {
454
497
  "Content-Type": "application/x-www-form-urlencoded"
455
498
  },
456
- data: `"$ids": "${t.join(",")}"`,
457
- onComplete(o, i, c) {
458
- const d = JSON.parse(o);
459
- n && n(d);
499
+ data: o,
500
+ onComplete(i, c, d) {
501
+ const p = JSON.parse(i);
502
+ n && n(p);
460
503
  },
461
- onFailure(o) {
462
- s && s(o);
504
+ onFailure(i) {
505
+ s && s(i);
463
506
  }
464
507
  });
465
508
  }
466
- function $(e, t = void 0, n = void 0) {
509
+ function A(e, t = void 0, n = void 0) {
467
510
  if (e.objID && e.objID !== "") {
468
511
  let s = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
469
- u(s, {
512
+ m(s, {
470
513
  onComplete(a, r, o) {
471
514
  const i = JSON.parse(a);
472
515
  e.token = i?.csrf?.value, e.datas = i?.data[0], t && t(e);
@@ -489,7 +532,7 @@ function $(e, t = void 0, n = void 0) {
489
532
  function T(e, t = void 0, n = void 0) {
490
533
  if (e.space) {
491
534
  const s = e.space + "/resources/v1/application/CSRF";
492
- u(s, {
535
+ m(s, {
493
536
  onComplete(a, r, o) {
494
537
  const i = JSON.parse(a);
495
538
  t && t(i.csrf.value);
@@ -505,12 +548,12 @@ function T(e, t = void 0, n = void 0) {
505
548
  } else
506
549
  n && n("ERROR : url du 3DSpace non défini.");
507
550
  }
508
- function A(e, t = void 0, n = void 0) {
551
+ function F(e, t = void 0, n = void 0) {
509
552
  let s = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
510
- $(
553
+ A(
511
554
  e,
512
555
  (a) => {
513
- u(s, {
556
+ m(s, {
514
557
  method: "PUT",
515
558
  headers: {
516
559
  ENO_CSRF_TOKEN: e.token
@@ -529,9 +572,9 @@ function A(e, t = void 0, n = void 0) {
529
572
  }
530
573
  );
531
574
  }
532
- function ke(e, t, n, s = void 0, a = void 0) {
575
+ function je(e, t, n, s = void 0, a = void 0) {
533
576
  const r = `${e.space}/resources/v1/modeler/documents/${t}/files/DownloadTicket`;
534
- n || (n = e.token), u(r, {
577
+ n || (n = e.token), m(r, {
535
578
  method: "PUT",
536
579
  headers: {
537
580
  ENO_CSRF_TOKEN: n
@@ -551,37 +594,38 @@ function ke(e, t, n, s = void 0, a = void 0) {
551
594
  }
552
595
  });
553
596
  }
554
- function W(e, t, n, s, a, r = void 0, o = void 0) {
555
- $(
597
+ function z(e, t, n, s, a, r = void 0, o = void 0) {
598
+ const i = () => q(
556
599
  e,
557
600
  t,
558
- (i) => {
559
- B(
560
- e,
561
- t,
562
- n,
563
- s,
564
- a,
565
- i.csrf.value,
566
- r,
567
- o
568
- );
601
+ n,
602
+ s,
603
+ a,
604
+ e.token,
605
+ r,
606
+ o
607
+ );
608
+ e.token ? i() : A(
609
+ e,
610
+ t,
611
+ (c) => {
612
+ e.token = c.csrf.value, i();
569
613
  }
570
614
  );
571
615
  }
572
- function B(e, t, n, s, a, r, o = void 0, i = void 0) {
616
+ function q(e, t, n, s, a, r, o = void 0, i = void 0) {
573
617
  const c = e.space + `/resources/v1/modeler/documents/${t}/files/CheckinTicket`;
574
- u(c, {
618
+ m(c, {
575
619
  method: "PUT",
576
620
  headers: {
577
621
  ENO_CSRF_TOKEN: r
578
622
  },
579
623
  onComplete(d, p, l) {
580
- const f = JSON.parse(d).data[0].dataelements, m = new FormData();
581
- m.append("__fcs__jobTicket", f.ticket), m.append("file_0", s, a);
624
+ const u = JSON.parse(d).data[0].dataelements, f = new FormData();
625
+ f.append("__fcs__jobTicket", u.ticket), f.append("file_0", s, a);
582
626
  const g = {};
583
- g.method = "POST", g.data = m, g.onComplete = function(h) {
584
- let S = "temp_" + Date.now(), _ = {
627
+ g.method = "POST", g.data = f, g.onComplete = function(h) {
628
+ let S = "temp_" + Date.now(), y = {
585
629
  method: "PUT",
586
630
  headers: {
587
631
  ENO_CSRF_TOKEN: r
@@ -603,24 +647,24 @@ function B(e, t, n, s, a, r, o = void 0, i = void 0) {
603
647
  }]
604
648
  }),
605
649
  type: "json",
606
- onComplete(y) {
607
- o && o(y);
650
+ onComplete(_) {
651
+ o && o(_);
608
652
  },
609
- onFailure(y) {
610
- i && i(y);
653
+ onFailure(_) {
654
+ i && i(_);
611
655
  }
612
656
  };
613
- u(
657
+ m(
614
658
  e.space + "/resources/v1/modeler/documents",
615
- _
659
+ y
616
660
  );
617
661
  }, g.onFailure = function(h) {
618
662
  i && i(h);
619
- }, g.timeout = 0, u(f.ticketURL, g);
663
+ }, g.timeout = 0, m(u.ticketURL, g);
620
664
  }
621
665
  });
622
666
  }
623
- async function Ie(e, t, n, s, a = void 0, r = void 0) {
667
+ async function Re(e, t, n, s, a = void 0, r = void 0) {
624
668
  const o = e.space, i = e.token, c = e.ctx, d = new FormData(), p = new Blob([JSON.stringify(t)], {
625
669
  type: "text/plain"
626
670
  }), l = {
@@ -631,13 +675,13 @@ async function Ie(e, t, n, s, a = void 0, r = void 0) {
631
675
  console.log("le store._3DSpace est vide");
632
676
  return;
633
677
  }
634
- u(l.url_Ticket, {
678
+ m(l.url_Ticket, {
635
679
  method: "PUT",
636
680
  headers: {
637
681
  ENO_CSRF_TOKEN: i.value
638
682
  },
639
- onComplete(f, m, g) {
640
- const h = JSON.parse(f).data[0].dataelements;
683
+ onComplete(u, f, g) {
684
+ const h = JSON.parse(u).data[0].dataelements;
641
685
  d.append("__fcs__jobTicket", h.ticket), d.append("filename", p, n);
642
686
  const S = {
643
687
  method: "POST",
@@ -667,71 +711,71 @@ async function Ie(e, t, n, s, a = void 0, r = void 0) {
667
711
  }
668
712
  }]
669
713
  },
670
- tempId: D()
714
+ tempId: P()
671
715
  }]
672
716
  }),
673
717
  type: "json",
674
718
  timeout: 0,
675
- onComplete: _,
676
- onFailure: y
719
+ onComplete: y,
720
+ onFailure: _
677
721
  };
678
- c !== "" && u(l.url_Post, k);
722
+ c !== "" && m(l.url_Post, k);
679
723
  } else
680
724
  console.warn("le store est vide");
681
725
  },
682
- onFailure: y
726
+ onFailure: _
683
727
  };
684
- function _(C) {
728
+ function y(C) {
685
729
  console.log("Success -- response ", C.data[0]), a && a(C);
686
730
  }
687
- function y(C, k) {
731
+ function _(C, k) {
688
732
  console.log("Erreur -- response ", C, `
689
733
  headers `, k), r && r(C);
690
734
  }
691
- u(h.ticketURL, S);
735
+ m(h.ticketURL, S);
692
736
  }
693
737
  });
694
738
  }
695
739
  function b(e, t = void 0, n = void 0, s = void 0, a = void 0, r = void 0, o = !1) {
696
740
  const i = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
697
- u(i, {
741
+ m(i, {
698
742
  method: "GET",
699
743
  onComplete(c) {
700
744
  const d = JSON.parse(c);
701
- let p = "", l, f, m;
745
+ let p = "", l, u, f;
702
746
  if (t) {
703
747
  let g = d.collabspaces.find((h) => h.title === t);
704
748
  if (g) {
705
749
  l = t;
706
750
  let h = g.couples;
707
751
  h = h.filter(
708
- (S, _, y) => _ === y.findIndex(
752
+ (S, y, _) => y === _.findIndex(
709
753
  (C) => C.organization.pid === S.organization.pid && C.role.pid === S.role.pid
710
754
  )
711
755
  ), n && (Array.isArray(n) ? n.forEach((S) => {
712
- m || h.forEach((_) => {
713
- if (S === _.role.name && s === _.organization.title)
714
- m = S, f = s;
715
- else if (S === _.role.name) {
716
- let y = h.filter(
756
+ f || h.forEach((y) => {
757
+ if (S === y.role.name && s === y.organization.title)
758
+ f = S, u = s;
759
+ else if (S === y.role.name) {
760
+ let _ = h.filter(
717
761
  (C) => C.role.name === S
718
762
  );
719
- y.length === 1 ? (m = y[0].role.name, f = y[0].organization.title) : r(y);
763
+ _.length === 1 ? (f = _[0].role.name, u = _[0].organization.title) : r(_);
720
764
  }
721
765
  });
722
766
  }) : h.forEach((S) => {
723
767
  if (n === S.role.name && s === S.organization.title)
724
- m = n, f = s;
768
+ f = n, u = s;
725
769
  else if (n === S.role.name) {
726
- let _ = h.filter(
727
- (y) => y.role.name === n
770
+ let y = h.filter(
771
+ (_) => _.role.name === n
728
772
  );
729
- _.length === 1 ? (m = _[0].role.name, f = _[0].organization.title) : r(_);
773
+ y.length === 1 ? (f = y[0].role.name, u = y[0].organization.title) : r(y);
730
774
  }
731
775
  }));
732
776
  }
733
777
  }
734
- l && f && m ? (p = m + "." + f + "." + l, a(p)) : d.preferredcredentials && o ? (p = d.preferredcredentials.role.name + "." + d.preferredcredentials.organization.title + "." + d.preferredcredentials.collabspace.title, a(p)) : r && (p = m + "." + f + "." + l, r(p));
778
+ l && u && f ? (p = f + "." + u + "." + l, a(p)) : d.preferredcredentials && o ? (p = d.preferredcredentials.role.name + "." + d.preferredcredentials.organization.title + "." + d.preferredcredentials.collabspace.title, a(p)) : r && (p = f + "." + u + "." + l, r(p));
735
779
  },
736
780
  onFailure(c, d) {
737
781
  console.log("Erreur de récupération du contexte de sécurité. => ", {
@@ -741,12 +785,12 @@ function b(e, t = void 0, n = void 0, s = void 0, a = void 0, r = void 0, o = !1
741
785
  }
742
786
  });
743
787
  }
744
- async function P(e, t = void 0, n = void 0) {
788
+ async function x(e, t = void 0, n = void 0) {
745
789
  return (!e.objID || e.objID === "") && console.warn(
746
790
  "_3DSpace_download_doc() / Le paramètre objectId est obligatoire"
747
791
  ), (e.space === "" || !e.space) && console.warn(
748
792
  "_3DSpace_download_doc() / Le paramètre space est obligatoire"
749
- ), (e.token === "" || !e.token) && K(
793
+ ), (e.token === "" || !e.token) && W(
750
794
  e,
751
795
  (s) => {
752
796
  e.token = s;
@@ -755,10 +799,10 @@ async function P(e, t = void 0, n = void 0) {
755
799
  console.log("☠️ error => ", s);
756
800
  }
757
801
  ), new Promise((s, a) => {
758
- A(
802
+ F(
759
803
  e,
760
804
  (r) => {
761
- u(r, {
805
+ m(r, {
762
806
  headers: {
763
807
  "Content-Type": "application/json",
764
808
  Accept: "application/json"
@@ -791,7 +835,7 @@ async function P(e, t = void 0, n = void 0) {
791
835
  );
792
836
  });
793
837
  }
794
- async function X(e, t, n = void 0, s = void 0) {
838
+ async function Q(e, t, n = void 0, s = void 0) {
795
839
  let a = [];
796
840
  if (typeof t < "u" && Array.isArray(t) && t?.length > 0) {
797
841
  for (let i = 0; i < t.length; i += 80) {
@@ -799,7 +843,7 @@ async function X(e, t, n = void 0, s = void 0) {
799
843
  a.push(c);
800
844
  }
801
845
  const o = (i) => {
802
- Y(
846
+ Z(
803
847
  e,
804
848
  a[i],
805
849
  () => {
@@ -818,7 +862,7 @@ async function X(e, t, n = void 0, s = void 0) {
818
862
  "La liste d'objects dans la fonction _3DSpace_download_multidoc est vide ou non défini."
819
863
  );
820
864
  }
821
- function Y(e, t, n = void 0, s = void 0, a = void 0) {
865
+ function Z(e, t, n = void 0, s = void 0, a = void 0) {
822
866
  const r = [];
823
867
  t.forEach((c) => {
824
868
  r.push({
@@ -833,7 +877,7 @@ function Y(e, t, n = void 0, s = void 0, a = void 0) {
833
877
  data: r
834
878
  });
835
879
  const i = `${e.space}/resources/v1/modeler/documents/DownloadTicket?tenant=${e.tenant}&e6w-lang=fr&e6w-timezone=-120`;
836
- u(i, {
880
+ m(i, {
837
881
  method: "PUT",
838
882
  data: o,
839
883
  type: "json",
@@ -841,17 +885,17 @@ function Y(e, t, n = void 0, s = void 0, a = void 0) {
841
885
  const d = c.data;
842
886
  c.success === !0 && (n && n(), d.forEach((p) => {
843
887
  try {
844
- const l = p.dataelements.fileName, f = p.dataelements.ticketURL;
845
- u(f, {
846
- onComplete: (m) => {
888
+ const l = p.dataelements.fileName, u = p.dataelements.ticketURL;
889
+ m(u, {
890
+ onComplete: (f) => {
847
891
  s && s({
848
892
  objectId: p.id,
849
893
  fileName: l,
850
- data: JSON.parse(m)
894
+ data: JSON.parse(f)
851
895
  });
852
896
  },
853
- onFailure: (m) => {
854
- console.log("error http", m);
897
+ onFailure: (f) => {
898
+ console.log("error http", f);
855
899
  }
856
900
  });
857
901
  } catch (l) {
@@ -864,7 +908,7 @@ function Y(e, t, n = void 0, s = void 0, a = void 0) {
864
908
  }
865
909
  });
866
910
  }
867
- function Ae(e, t, n = void 0, s = void 0) {
911
+ function De(e, t, n = void 0, s = void 0) {
868
912
  return new Promise((a) => {
869
913
  if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
870
914
  const r = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
@@ -899,11 +943,11 @@ function Ae(e, t, n = void 0, s = void 0) {
899
943
  s && s(i);
900
944
  }
901
945
  };
902
- u(r, o);
946
+ m(r, o);
903
947
  }
904
948
  });
905
949
  }
906
- function Fe(e, t, n, s = void 0, a = void 0) {
950
+ function Pe(e, t, n, s = void 0, a = void 0) {
907
951
  return new Promise((r) => {
908
952
  if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
909
953
  const o = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
@@ -939,11 +983,11 @@ function Fe(e, t, n, s = void 0, a = void 0) {
939
983
  a && a(c);
940
984
  }
941
985
  };
942
- u(o, i);
986
+ m(o, i);
943
987
  }
944
988
  });
945
989
  }
946
- function je(e, t, n = void 0, s = void 0) {
990
+ function xe(e, t, n = void 0, s = void 0) {
947
991
  return new Promise((a) => {
948
992
  if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
949
993
  const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
@@ -978,11 +1022,11 @@ function je(e, t, n = void 0, s = void 0) {
978
1022
  s && s(i);
979
1023
  }
980
1024
  };
981
- u(r, o);
1025
+ m(r, o);
982
1026
  }
983
1027
  });
984
1028
  }
985
- function Ue(e, t, n = void 0, s = void 0) {
1029
+ function Me(e, t, n = void 0, s = void 0) {
986
1030
  return new Promise((a) => {
987
1031
  if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
988
1032
  const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
@@ -1023,11 +1067,11 @@ function Ue(e, t, n = void 0, s = void 0) {
1023
1067
  s && s(i);
1024
1068
  }
1025
1069
  };
1026
- u(r, o);
1070
+ m(r, o);
1027
1071
  }
1028
1072
  });
1029
1073
  }
1030
- function De(e, t, n, s = void 0, a = void 0) {
1074
+ function Le(e, t, n, s = void 0, a = void 0) {
1031
1075
  return new Promise((r) => {
1032
1076
  if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
1033
1077
  const o = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
@@ -1068,11 +1112,11 @@ function De(e, t, n, s = void 0, a = void 0) {
1068
1112
  a && a(c);
1069
1113
  }
1070
1114
  };
1071
- u(o, i);
1115
+ m(o, i);
1072
1116
  }
1073
1117
  });
1074
1118
  }
1075
- function Pe(e, t, n, s, a = void 0, r = void 0) {
1119
+ function Je(e, t, n, s, a = void 0, r = void 0) {
1076
1120
  return new Promise((o) => {
1077
1121
  const i = `${e.space}/resources/v1/modeler/dsbks/dsbks:Bookmark`;
1078
1122
  let c = {
@@ -1102,10 +1146,10 @@ function Pe(e, t, n, s, a = void 0, r = void 0) {
1102
1146
  r && r(l);
1103
1147
  }
1104
1148
  };
1105
- u(i, p);
1149
+ m(i, p);
1106
1150
  });
1107
1151
  }
1108
- function Re(e, t, n, s, a = void 0, r = void 0) {
1152
+ function Ee(e, t, n, s, a = void 0, r = void 0) {
1109
1153
  return console.log("credentials", e), new Promise((o) => {
1110
1154
  `${e.space}`, JSON.stringify({
1111
1155
  csrf: {
@@ -1127,13 +1171,13 @@ function Re(e, t, n, s, a = void 0, r = void 0) {
1127
1171
  });
1128
1172
  }
1129
1173
  //!SECTION
1130
- function xe(e, t = void 0, n = void 0) {
1174
+ function Ge(e, t = void 0, n = void 0) {
1131
1175
  const s = {
1132
1176
  base: `${e.space}`,
1133
1177
  uri: "/resources/bps/cspaces",
1134
1178
  optTenant: `tenant=${e.tenant}`
1135
1179
  }, a = `${s.base}${s.uri}?${s.optTenant}`;
1136
- u(a, {
1180
+ m(a, {
1137
1181
  method: "GET",
1138
1182
  headers: {
1139
1183
  Accept: "application/json,text/javascript,*/*",
@@ -1148,12 +1192,12 @@ function xe(e, t = void 0, n = void 0) {
1148
1192
  }
1149
1193
  });
1150
1194
  }
1151
- function Me(e, t, n, s) {
1152
- A(
1195
+ function Ke(e, t, n, s) {
1196
+ F(
1153
1197
  e.space,
1154
1198
  t,
1155
1199
  (a) => {
1156
- u(a, {
1200
+ m(a, {
1157
1201
  header: { ENO_CSRF_TOKEN: e.token },
1158
1202
  onComplete: (r) => {
1159
1203
  n && n(r);
@@ -1165,10 +1209,10 @@ function Me(e, t, n, s) {
1165
1209
  }
1166
1210
  );
1167
1211
  }
1168
- async function Le(e, t, n = void 0, s = void 0) {
1212
+ async function Ve(e, t, n = void 0, s = void 0) {
1169
1213
  return new Promise((a) => {
1170
- A(e, t, (r) => {
1171
- u(r, {
1214
+ F(e, t, (r) => {
1215
+ m(r, {
1172
1216
  onComplete: (o, i, c) => (a(JSON.parse(o)), n && n(JSON.parse(o), i, c), a),
1173
1217
  onFailure: (o, i, c) => {
1174
1218
  s && s(o, i, c), console.log(o, i?.errormsg);
@@ -1177,14 +1221,14 @@ async function Le(e, t, n = void 0, s = void 0) {
1177
1221
  });
1178
1222
  });
1179
1223
  }
1180
- function Je(e, t, n, s = void 0, a = void 0) {
1224
+ function We(e, t, n, s = void 0, a = void 0) {
1181
1225
  const r = new Blob([JSON.stringify(t)], { type: "text/plain" });
1182
- $(
1226
+ A(
1183
1227
  e,
1184
1228
  n,
1185
1229
  (o) => {
1186
1230
  const i = o.data[0].relateddata.files[0].id, c = o.data[0].dataelements.secondaryTitle !== "" ? o.data[0].dataelements.secondaryTitle : o.data[0].dataelements.title;
1187
- W(
1231
+ z(
1188
1232
  e,
1189
1233
  n,
1190
1234
  i,
@@ -1200,10 +1244,10 @@ function Je(e, t, n, s = void 0, a = void 0) {
1200
1244
  }
1201
1245
  );
1202
1246
  }
1203
- let R, x;
1204
- const F = [];
1205
- async function Ee(e, t = void 0, n = void 0) {
1206
- e.objID && e.objID !== "" ? $(
1247
+ let M, L;
1248
+ const j = [];
1249
+ async function Be(e, t = void 0, n = void 0) {
1250
+ e.objID && e.objID !== "" ? A(
1207
1251
  e,
1208
1252
  (s) => {
1209
1253
  t && t(s);
@@ -1221,8 +1265,8 @@ async function Ee(e, t = void 0, n = void 0) {
1221
1265
  }
1222
1266
  );
1223
1267
  }
1224
- async function Ge(e, t = void 0, n = void 0) {
1225
- console.log("getDatasByTenant (getDocuments)", e), await P(
1268
+ async function Xe(e, t = void 0, n = void 0) {
1269
+ console.log("getDatasByTenant (getDocuments)", e), await x(
1226
1270
  e,
1227
1271
  (s) => {
1228
1272
  const a = {};
@@ -1233,56 +1277,56 @@ async function Ge(e, t = void 0, n = void 0) {
1233
1277
  }
1234
1278
  );
1235
1279
  }
1236
- function Ke(e, t = void 0, n = void 0) {
1280
+ function Ye(e, t = void 0, n = void 0) {
1237
1281
  const s = [];
1238
1282
  if (!e.objIds && !Array.isArray(e.objIds) && e.objIds.length === 0) {
1239
1283
  console.warn("la liste est vide ou n'est pas un tableau");
1240
1284
  return;
1241
1285
  }
1242
1286
  e.objIds.forEach((a, r) => {
1243
- P(
1287
+ x(
1244
1288
  e,
1245
1289
  a.objID,
1246
1290
  (o) => {
1247
- s.push({ [a.name]: o }), a.name === "dbProjets" && (R = o.affaires.map((i) => i.objectID), q(e, x)), r === e.objIds.length - 1 && (t && t(s), delete e.objIds, delete e.datas);
1291
+ s.push({ [a.name]: o }), a.name === "dbProjets" && (M = o.affaires.map((i) => i.objectID), ee(e, L)), r === e.objIds.length - 1 && (t && t(s), delete e.objIds, delete e.datas);
1248
1292
  }
1249
1293
  );
1250
1294
  });
1251
1295
  }
1252
- function q(e, t, n = void 0, s = void 0) {
1253
- X(
1296
+ function ee(e, t, n = void 0, s = void 0) {
1297
+ Q(
1254
1298
  e,
1255
- R,
1299
+ M,
1256
1300
  (a) => {
1257
1301
  const r = [...t];
1258
- r.find((o) => o.objectID === a.objectId).data = a.data, x = r, F.push(a.data), n && n(F);
1302
+ r.find((o) => o.objectID === a.objectId).data = a.data, L = r, j.push(a.data), n && n(j);
1259
1303
  },
1260
1304
  (a) => {
1261
1305
  s && (s(a), console.log(a));
1262
1306
  }
1263
1307
  );
1264
1308
  }
1265
- const H = "FA35FB9B177A280065800EA0000F599C", z = [
1309
+ const te = "FA35FB9B177A280065800EA0000F599C", ne = [
1266
1310
  "swym",
1267
1311
  "3dspace",
1268
1312
  "drive",
1269
1313
  "usersgroup",
1270
1314
  "3dplan",
1271
1315
  "dashboard"
1272
- ], M = {
1316
+ ], J = {
1273
1317
  how: "ds6w:how",
1274
1318
  what: "ds6w:what",
1275
1319
  when: "ds6w:when",
1276
1320
  where: "ds6w:where",
1277
1321
  who: "ds6w:who",
1278
1322
  why: "ds6w:why"
1279
- }, Q = {
1280
- objId: H,
1323
+ }, se = {
1324
+ objId: te,
1281
1325
  pred: "who",
1282
1326
  order_by: "desc",
1283
1327
  tag: "testTag"
1284
1328
  };
1285
- function Ve(e, t, n = void 0, s = void 0) {
1329
+ function He(e, t, n = void 0, s = void 0) {
1286
1330
  const { space: a, tenant: r } = e, { objId: o, pred: i, tag: c } = t, d = {
1287
1331
  uri: "/resources/6w/tags",
1288
1332
  otpCTX: "SecurityContext=preferred",
@@ -1295,37 +1339,37 @@ function Ve(e, t, n = void 0, s = void 0) {
1295
1339
  uri: `pid://${o}`
1296
1340
  }
1297
1341
  ],
1298
- predicate: M[i],
1342
+ predicate: J[i],
1299
1343
  object: {
1300
1344
  literal: c
1301
1345
  }
1302
1346
  }
1303
1347
  ]
1304
1348
  };
1305
- u(p, {
1349
+ m(p, {
1306
1350
  method: "PUT",
1307
1351
  headers: {
1308
1352
  "Content-Type": "application/json",
1309
1353
  Accept: "application/json"
1310
1354
  },
1311
1355
  data: JSON.stringify(l),
1312
- onComplete(f) {
1313
- JSON.parse(f);
1314
- const m = {};
1356
+ onComplete(u) {
1357
+ JSON.parse(u);
1358
+ const f = {};
1315
1359
  setTimeout(() => {
1316
- V(
1360
+ H(
1317
1361
  e,
1318
1362
  o,
1319
1363
  (g) => {
1320
- const h = g.data[0].dataelements.title, S = g.data[0].dataelements.fileExtension !== void 0 ? g.data[0].dataelements.fileExtension : "", _ = g.data[0].relateddata.ownerInfo[0].dataelements.name;
1321
- m.name = h, m.ext = S, m.createBy = _, t.info = { ...m }, Z(
1364
+ const h = g.data[0].dataelements.title, S = g.data[0].dataelements.fileExtension !== void 0 ? g.data[0].dataelements.fileExtension : "", y = g.data[0].relateddata.ownerInfo[0].dataelements.name;
1365
+ f.name = h, f.ext = S, f.createBy = y, t.info = { ...f }, ie(
1322
1366
  e,
1323
1367
  t,
1324
- (y) => {
1325
- n && n(y);
1368
+ (_) => {
1369
+ n && n(_);
1326
1370
  },
1327
- (y) => {
1328
- s && s(y);
1371
+ (_) => {
1372
+ s && s(_);
1329
1373
  }
1330
1374
  );
1331
1375
  },
@@ -1336,13 +1380,13 @@ function Ve(e, t, n = void 0, s = void 0) {
1336
1380
  );
1337
1381
  }, 2e3);
1338
1382
  },
1339
- onFailure(f, m) {
1340
- const g = f;
1341
- g.msg = m.errormsg, g.errCode = m.errorcode, console.log("❌ sendDirectMessage => ", g), s && s(g);
1383
+ onFailure(u, f) {
1384
+ const g = u;
1385
+ g.msg = f.errormsg, g.errCode = f.errorcode, console.log("❌ sendDirectMessage => ", g), s && s(g);
1342
1386
  }
1343
1387
  });
1344
1388
  }
1345
- function Z(e, t, n = void 0, s = void 0) {
1389
+ function ie(e, t, n = void 0, s = void 0) {
1346
1390
  console.log("obj ", t);
1347
1391
  const a = t.info.name, r = {
1348
1392
  baseUrl: `https://${e.tenant.toLowerCase()}-eu1-fedsearch.3dexperience.3ds.com`,
@@ -1350,7 +1394,7 @@ function Z(e, t, n = void 0, s = void 0) {
1350
1394
  }, o = `${r.baseUrl}${r.uri}`, i = {
1351
1395
  "Content-Type": "application/json",
1352
1396
  Accept: "application/json,text/javascript,*/*"
1353
- }, c = D(), d = {
1397
+ }, c = P(), d = {
1354
1398
  with_indexing_date: !0,
1355
1399
  with_synthesis: !0,
1356
1400
  with_nls: !1,
@@ -1392,7 +1436,7 @@ function Z(e, t, n = void 0, s = void 0) {
1392
1436
  }
1393
1437
  },
1394
1438
  select_exclude_synthesis: ["ds6w:what/ds6w:topic"],
1395
- order_by: Q.order_by,
1439
+ order_by: se.order_by,
1396
1440
  order_field: "relevance",
1397
1441
  select_snippets: [
1398
1442
  "ds6w:snippet",
@@ -1403,7 +1447,7 @@ function Z(e, t, n = void 0, s = void 0) {
1403
1447
  ],
1404
1448
  nresults: 40,
1405
1449
  start: "0",
1406
- source: z,
1450
+ source: ne,
1407
1451
  tenant: e.tenant,
1408
1452
  login: {
1409
1453
  "3dspace": {
@@ -1411,7 +1455,7 @@ function Z(e, t, n = void 0, s = void 0) {
1411
1455
  }
1412
1456
  }
1413
1457
  };
1414
- console.log("dataPattern => ", d), u(o, {
1458
+ console.log("dataPattern => ", d), m(o, {
1415
1459
  method: "POST",
1416
1460
  headers: i,
1417
1461
  data: JSON.stringify(d),
@@ -1420,12 +1464,12 @@ function Z(e, t, n = void 0, s = void 0) {
1420
1464
  n(l);
1421
1465
  },
1422
1466
  onFailure(p, l) {
1423
- const f = p;
1424
- f.msg = l.errormsg, f.errCode = l.errorcode, console.log("❌ sendDirectMessage => ", f), s && s(f), console.log("Erreur de recuperation d'id du doc et des tags", p);
1467
+ const u = p;
1468
+ u.msg = l.errormsg, u.errCode = l.errorcode, console.log("❌ sendDirectMessage => ", u), s && s(u), console.log("Erreur de recuperation d'id du doc et des tags", p);
1425
1469
  }
1426
1470
  });
1427
1471
  }
1428
- function We(e, t, n = void 0, s = void 0) {
1472
+ function ze(e, t, n = void 0, s = void 0) {
1429
1473
  const { objId: a, pred: r, tag: o } = t, i = {
1430
1474
  uri: "/resources/6w/tags",
1431
1475
  otpCTX: "SecurityContext=preferred",
@@ -1438,14 +1482,14 @@ function We(e, t, n = void 0, s = void 0) {
1438
1482
  uri: `pid://${a}`
1439
1483
  }
1440
1484
  ],
1441
- predicate: M[r],
1485
+ predicate: J[r],
1442
1486
  object: {
1443
1487
  literal: o
1444
1488
  }
1445
1489
  }
1446
1490
  ]
1447
1491
  };
1448
- u(c, {
1492
+ m(c, {
1449
1493
  method: "DELETE",
1450
1494
  data: JSON.stringify(d),
1451
1495
  headers: {
@@ -1456,12 +1500,12 @@ function We(e, t, n = void 0, s = void 0) {
1456
1500
  n && n(p);
1457
1501
  },
1458
1502
  onFailure(p, l) {
1459
- const f = p;
1460
- f.msg = l.errormsg, f.errCode = l.errorcode, console.log("❌ sendDirectMessage => ", f), s && s(f);
1503
+ const u = p;
1504
+ u.msg = l.errormsg, u.errCode = l.errorcode, console.log("❌ sendDirectMessage => ", u), s && s(u);
1461
1505
  }
1462
1506
  });
1463
1507
  }
1464
- function Be(e, t = "", n = void 0, s = void 0) {
1508
+ function qe(e, t = "", n = void 0, s = void 0) {
1465
1509
  const { space: a } = e;
1466
1510
  if (t === "")
1467
1511
  return;
@@ -1471,7 +1515,7 @@ function Be(e, t = "", n = void 0, s = void 0) {
1471
1515
  "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
1472
1516
  Accept: "application/json,text/javascript,*/*"
1473
1517
  }, i = `${a}${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}`;
1474
- u(i, {
1518
+ m(i, {
1475
1519
  method: "POST",
1476
1520
  headers: o,
1477
1521
  data: c,
@@ -1486,7 +1530,7 @@ function Be(e, t = "", n = void 0, s = void 0) {
1486
1530
  }
1487
1531
  async function w(e, t = void 0, n = void 0) {
1488
1532
  const s = e.space + "/api/index/tk";
1489
- return u(s, {
1533
+ return m(s, {
1490
1534
  onComplete(a, r, o) {
1491
1535
  const i = JSON.parse(a);
1492
1536
  if (t)
@@ -1497,7 +1541,7 @@ async function w(e, t = void 0, n = void 0) {
1497
1541
  }
1498
1542
  });
1499
1543
  }
1500
- function Xe(e, t = void 0, n = void 0) {
1544
+ function Qe(e, t = void 0, n = void 0) {
1501
1545
  const s = `${e.space}/api/exalead/whatsnew`, a = {
1502
1546
  params: {
1503
1547
  community_id: null,
@@ -1509,7 +1553,7 @@ function Xe(e, t = void 0, n = void 0) {
1509
1553
  }
1510
1554
  };
1511
1555
  w(e, (r) => {
1512
- u(s, {
1556
+ m(s, {
1513
1557
  method: "POST",
1514
1558
  headers: {
1515
1559
  "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken,
@@ -1527,7 +1571,7 @@ function Xe(e, t = void 0, n = void 0) {
1527
1571
  });
1528
1572
  });
1529
1573
  }
1530
- function Ye(e, t = void 0, n = void 0) {
1574
+ function Ze(e, t = void 0, n = void 0) {
1531
1575
  const s = `${e.space}/api/Recommendation/getpeoplefamiliartocurrentuser`, a = {
1532
1576
  params: {
1533
1577
  idsToFilterArr: [],
@@ -1538,7 +1582,7 @@ function Ye(e, t = void 0, n = void 0) {
1538
1582
  }
1539
1583
  };
1540
1584
  w(e, (r) => {
1541
- u(s, {
1585
+ m(s, {
1542
1586
  method: "POST",
1543
1587
  headers: {
1544
1588
  "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken,
@@ -1557,7 +1601,7 @@ function Ye(e, t = void 0, n = void 0) {
1557
1601
  });
1558
1602
  });
1559
1603
  }
1560
- function qe(e, t = void 0, n = void 0) {
1604
+ function et(e, t = void 0, n = void 0) {
1561
1605
  const s = {
1562
1606
  base: e.space,
1563
1607
  uri: "/api/community/listmycommunities",
@@ -1565,28 +1609,28 @@ function qe(e, t = void 0, n = void 0) {
1565
1609
  page: `/page/${e.page ? e.page : "1"}`
1566
1610
  }, a = `${s.base}${s.uri}${s.limit}${s.page}`, r = [];
1567
1611
  w(e, (o) => {
1568
- u(a, {
1612
+ m(a, {
1569
1613
  method: "GET",
1570
1614
  headers: {
1571
1615
  "X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
1572
1616
  },
1573
1617
  onComplete(i, c, d) {
1574
1618
  const l = JSON.parse(i).result;
1575
- let f = 0;
1576
- l.forEach((m) => {
1619
+ let u = 0;
1620
+ l.forEach((f) => {
1577
1621
  const g = {
1578
- description: m.description,
1579
- id: m.id,
1580
- title: m.title,
1581
- owner: m.owner,
1582
- role: m.role,
1583
- access: m.access
1622
+ description: f.description,
1623
+ id: f.id,
1624
+ title: f.title,
1625
+ owner: f.owner,
1626
+ role: f.role,
1627
+ access: f.access
1584
1628
  };
1585
- ee(
1629
+ ae(
1586
1630
  e,
1587
- m.id,
1631
+ f.id,
1588
1632
  (h) => {
1589
- f++, g.members = h, r.push(g), f === l.length && t && t(r);
1633
+ u++, g.members = h, r.push(g), u === l.length && t && t(r);
1590
1634
  },
1591
1635
  (h) => n(h)
1592
1636
  );
@@ -1599,7 +1643,7 @@ function qe(e, t = void 0, n = void 0) {
1599
1643
  });
1600
1644
  });
1601
1645
  }
1602
- function ee(e, t, n, s) {
1646
+ function ae(e, t, n, s) {
1603
1647
  const a = `${e.space}/api/community/listmembers`, r = {
1604
1648
  params: {
1605
1649
  page: e.page ? e.page : 1,
@@ -1608,7 +1652,7 @@ function ee(e, t, n, s) {
1608
1652
  }
1609
1653
  };
1610
1654
  w(e, (o) => {
1611
- u(a, {
1655
+ m(a, {
1612
1656
  method: "POST",
1613
1657
  headers: {
1614
1658
  "Content-type": "application/json;charset=UTF-8",
@@ -1627,12 +1671,12 @@ function ee(e, t, n, s) {
1627
1671
  });
1628
1672
  });
1629
1673
  }
1630
- function He(e, t = void 0, n = void 0) {
1674
+ function tt(e, t = void 0, n = void 0) {
1631
1675
  const s = "YXdA5x4DSUKtlAi2wmnyTA";
1632
1676
  e.commu_id || (e.commu_id = s);
1633
1677
  const a = `${e.space}/api/v2/communities/${e.commu_id}/ideas/statuses`;
1634
1678
  w(e, (r) => {
1635
- u(a, {
1679
+ m(a, {
1636
1680
  method: "GET",
1637
1681
  headers: {
1638
1682
  "Content-type": "application/json;charset=UTF-8",
@@ -1650,7 +1694,7 @@ function He(e, t = void 0, n = void 0) {
1650
1694
  });
1651
1695
  });
1652
1696
  }
1653
- function ze(e, t, n = void 0, s = void 0) {
1697
+ function nt(e, t, n = void 0, s = void 0) {
1654
1698
  const { listAllContacts: a, currentUser: r } = e;
1655
1699
  console.log("__listAllContacts", a.hits);
1656
1700
  const o = `${e.space}/api/directmessages`, i = {
@@ -1659,20 +1703,20 @@ function ze(e, t, n = void 0, s = void 0) {
1659
1703
  id_msg: "",
1660
1704
  senderId: e.currentUser.login,
1661
1705
  senderName: `${e.currentUser.first_name} ${e.currentUser.last_name}`,
1662
- msg: ne(t.msg)
1706
+ msg: re(t.msg)
1663
1707
  };
1664
1708
  let d = !1;
1665
- te(
1709
+ oe(
1666
1710
  i.users,
1667
1711
  (p) => {
1668
- p !== void 0 && (c.id_msg = p.id, d = !0, j(e, c));
1712
+ p !== void 0 && (c.id_msg = p.id, d = !0, R(e, c));
1669
1713
  },
1670
1714
  (p) => {
1671
1715
  d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", p), s && s(p), c.id_msg = "";
1672
1716
  }
1673
1717
  ), d === !1 && setTimeout(() => {
1674
1718
  d === !1 && w(e, (p) => {
1675
- u(o, {
1719
+ m(o, {
1676
1720
  method: "POST",
1677
1721
  headers: {
1678
1722
  "Content-Type": "application/json",
@@ -1681,22 +1725,22 @@ function ze(e, t, n = void 0, s = void 0) {
1681
1725
  },
1682
1726
  data: JSON.stringify(i),
1683
1727
  type: "json",
1684
- onComplete(l, f, m) {
1728
+ onComplete(l, u, f) {
1685
1729
  const g = l;
1686
- g.reponse = JSON.parse(m.response), g.status = m.status, n && n(g), c.id_msg = g.result.id, j(e, c);
1730
+ g.reponse = JSON.parse(f.response), g.status = f.status, n && n(g), c.id_msg = g.result.id, R(e, c);
1687
1731
  },
1688
- onFailure(l, f, m) {
1732
+ onFailure(l, u, f) {
1689
1733
  const g = l;
1690
- g.msg = f.errormsg, g.status = f.status, s && s(g);
1734
+ g.msg = u.errormsg, g.status = u.status, s && s(g);
1691
1735
  }
1692
1736
  });
1693
1737
  });
1694
1738
  }, 500);
1695
1739
  }
1696
- function te(e, t, n, s) {
1740
+ function oe(e, t, n, s) {
1697
1741
  const a = `${e.space}/api/directmessages/lite?with_favorites=false`;
1698
1742
  w(e, (r) => {
1699
- u(a, {
1743
+ m(a, {
1700
1744
  method: "GET",
1701
1745
  headers: {
1702
1746
  Accept: "application/json,text/javascript,*/*",
@@ -1705,13 +1749,13 @@ function te(e, t, n, s) {
1705
1749
  onComplete(o) {
1706
1750
  const i = JSON.parse(o), c = [];
1707
1751
  i.result.forEach((l) => {
1708
- l.users = l.users.sort((f, m) => f.login.localeCompare(m.login)), l.users.length === t.length && c.push(l);
1752
+ l.users = l.users.sort((u, f) => u.login.localeCompare(f.login)), l.users.length === t.length && c.push(l);
1709
1753
  });
1710
1754
  const d = t.sort(), p = c.find((l) => {
1711
- const f = [];
1712
- return l.users.forEach((m) => {
1713
- f.push(m.login);
1714
- }), JSON.stringify(f) === JSON.stringify(d);
1755
+ const u = [];
1756
+ return l.users.forEach((f) => {
1757
+ u.push(f.login);
1758
+ }), JSON.stringify(u) === JSON.stringify(d);
1715
1759
  });
1716
1760
  n && p !== void 0 ? n(p) : (s || p === void 0) && s(p);
1717
1761
  },
@@ -1722,7 +1766,7 @@ function te(e, t, n, s) {
1722
1766
  });
1723
1767
  });
1724
1768
  }
1725
- function j(e, t, n = void 0, s = void 0) {
1769
+ function R(e, t, n = void 0, s = void 0) {
1726
1770
  const a = {
1727
1771
  base: e.space,
1728
1772
  uri: "/api/community",
@@ -1739,7 +1783,7 @@ function j(e, t, n = void 0, s = void 0) {
1739
1783
  richMessage: t.msg
1740
1784
  };
1741
1785
  console.log("_3dSwym_sendDirectMessageData url ", r), w(e, (i) => {
1742
- u(r, {
1786
+ m(r, {
1743
1787
  method: "POST",
1744
1788
  headers: {
1745
1789
  "Content-Type": "application/json",
@@ -1759,14 +1803,14 @@ function j(e, t, n = void 0, s = void 0) {
1759
1803
  });
1760
1804
  });
1761
1805
  }
1762
- function ne(e) {
1806
+ function re(e) {
1763
1807
  const t = (/* @__PURE__ */ new Date()).toLocaleDateString(), n = (/* @__PURE__ */ new Date()).toLocaleTimeString();
1764
1808
  return `<p>${e} </p>
1765
1809
  <br/>
1766
1810
  <hr/>
1767
1811
  <p><u>envoyer :</u>Le <b>${t} à ${n}</b></p>`;
1768
1812
  }
1769
- const se = {
1813
+ const ce = {
1770
1814
  title: "TEST DEV COMMUNITY IDEA",
1771
1815
  // titre du post
1772
1816
  community_id: "YXdA5x4DSUKtlAi2wmnyTA",
@@ -1776,7 +1820,7 @@ const se = {
1776
1820
  idee_id: "THhRI8rlQNWKRxpv3Xqqug"
1777
1821
  // id de l'idee qui est créer au post (_3dSwym_postIdea)
1778
1822
  };
1779
- function Qe(e, t, n = void 0, s = void 0) {
1823
+ function st(e, t, n = void 0, s = void 0) {
1780
1824
  const a = `${e.space}/api/idea/add`, r = e.swymCommunities.find(
1781
1825
  (c) => c.id === t.community_id
1782
1826
  ), o = e.swymCommunities.find(
@@ -1787,7 +1831,7 @@ function Qe(e, t, n = void 0, s = void 0) {
1787
1831
  // String, le nom de l'affaire
1788
1832
  community_id: r?.id !== void 0 ? r.id : o.id,
1789
1833
  // String, l'id de la communauté
1790
- message: ie(t.text_html),
1834
+ message: de(t.text_html),
1791
1835
  // STRING => le contenue du message doit être au format HTML
1792
1836
  published: 1
1793
1837
  // 1 publier, 0 non publier
@@ -1799,23 +1843,23 @@ function Qe(e, t, n = void 0, s = void 0) {
1799
1843
  Accept: "application/json",
1800
1844
  "X-DS-SWYM-CSRFTOKEN": c.result.ServerToken
1801
1845
  };
1802
- u(a, {
1846
+ m(a, {
1803
1847
  method: "POST",
1804
1848
  headers: d,
1805
1849
  data: JSON.stringify(i),
1806
1850
  type: "json",
1807
- onComplete(p, l, f) {
1808
- const m = JSON.parse(p);
1809
- m.status = f.status, m.response = f.response, n && n(m);
1851
+ onComplete(p, l, u) {
1852
+ const f = JSON.parse(p);
1853
+ f.status = u.status, f.response = u.response, n && n(f);
1810
1854
  },
1811
- onFailure(p, l, f) {
1812
- const m = p;
1813
- m.status = l.status, m.response = l.errormsg, s && s(m);
1855
+ onFailure(p, l, u) {
1856
+ const f = p;
1857
+ f.status = l.status, f.response = l.errormsg, s && s(f);
1814
1858
  }
1815
1859
  });
1816
1860
  });
1817
1861
  }
1818
- function Ze(e, t, n = void 0, s = void 0) {
1862
+ function it(e, t, n = void 0, s = void 0) {
1819
1863
  const a = `${e.space}/api/idea/delete`, r = {
1820
1864
  params: {
1821
1865
  community_id: t.community_id,
@@ -1823,7 +1867,7 @@ function Ze(e, t, n = void 0, s = void 0) {
1823
1867
  }
1824
1868
  };
1825
1869
  w(e, (o) => {
1826
- u(a, {
1870
+ m(a, {
1827
1871
  method: "POST",
1828
1872
  headers: {
1829
1873
  "Content-type": "application/json;charset=UTF-8",
@@ -1842,7 +1886,7 @@ function Ze(e, t, n = void 0, s = void 0) {
1842
1886
  });
1843
1887
  });
1844
1888
  }
1845
- function et(e, t = "", n = void 0, s = void 0) {
1889
+ function at(e, t = "", n = void 0, s = void 0) {
1846
1890
  const a = e.tenant.toLowerCase() === "r1132101716373" ? "tFtz0G4MR6qNtKgJjNfTog" : e.tenant.toLowerCase() === "r1132101286859" ? "Qpv3HN-tTDOsU-7_c5DnDg" : "Template_d'idée_à_créer";
1847
1891
  t === "" && (t = a);
1848
1892
  const r = `${e.space}/api/idea/get`, o = {
@@ -1851,7 +1895,7 @@ function et(e, t = "", n = void 0, s = void 0) {
1851
1895
  }
1852
1896
  };
1853
1897
  w(e, (i) => {
1854
- u(r, {
1898
+ m(r, {
1855
1899
  method: "POST",
1856
1900
  headers: {
1857
1901
  "Content-type": "application/json;charset=UTF-8",
@@ -1871,14 +1915,14 @@ function et(e, t = "", n = void 0, s = void 0) {
1871
1915
  });
1872
1916
  });
1873
1917
  }
1874
- function tt(e, t = se, n = void 0, s = void 0) {
1918
+ function ot(e, t = ce, n = void 0, s = void 0) {
1875
1919
  const a = {
1876
1920
  uri: "/api/idea/list",
1877
1921
  comId: `/community_id/${e.tenant.toLowerCase() === "r1132101716373" ? t.community_id : "bgnIsG74SUWswyGzS6NC6g"}`,
1878
1922
  limit: `/limit/${t.limit ? t.limit : 10}`
1879
1923
  }, r = `${e.space}${a.uri}${a.comId}${a.limit}`;
1880
1924
  w(e, (o) => {
1881
- u(r, {
1925
+ m(r, {
1882
1926
  method: "GET",
1883
1927
  headers: {
1884
1928
  "X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
@@ -1894,7 +1938,7 @@ function tt(e, t = se, n = void 0, s = void 0) {
1894
1938
  });
1895
1939
  });
1896
1940
  }
1897
- function ie(e) {
1941
+ function de(e) {
1898
1942
  return !e || e === "" ? `<h2><u>INFORMATIONS AFFAIRE :</u></h2>
1899
1943
  <p><u>|⚠️<em> Merci de respecter l&#39;écriture des tags, en MAJUSCULES, nom complet, pas de caractères</em></u></p>
1900
1944
  <p><u><em>|spéciaux, séparation par &#34;_&#34; si besoin !</em></u></p>
@@ -1969,10 +2013,10 @@ function ie(e) {
1969
2013
  <p>
1970
2014
  </p>` : e;
1971
2015
  }
1972
- function nt(e, t = void 0, n = void 0) {
2016
+ function rt(e, t = void 0, n = void 0) {
1973
2017
  const s = e.space + "/api/user/getcurrent/";
1974
2018
  w(e, (a) => {
1975
- u(s, {
2019
+ m(s, {
1976
2020
  method: "GET",
1977
2021
  headers: {
1978
2022
  "X-DS-SWYM-CSRFTOKEN": a.result.ServerToken
@@ -1988,12 +2032,12 @@ function nt(e, t = void 0, n = void 0) {
1988
2032
  });
1989
2033
  });
1990
2034
  }
1991
- function st(e, t, n = void 0, s = void 0) {
2035
+ function ct(e, t, n = void 0, s = void 0) {
1992
2036
  const a = e.space + "/api/user/find/login/" + t;
1993
2037
  w(
1994
2038
  e,
1995
2039
  (r) => {
1996
- u(a, {
2040
+ m(a, {
1997
2041
  method: "GET",
1998
2042
  headers: { "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken },
1999
2043
  onComplete(o, i, c) {
@@ -2008,18 +2052,18 @@ function st(e, t, n = void 0, s = void 0) {
2008
2052
  s
2009
2053
  );
2010
2054
  }
2011
- function it(e, t = void 0, n = void 0) {
2012
- e.tenant && v(e, (s) => {
2055
+ function dt(e, t = void 0, n = void 0) {
2056
+ e.tenant && $(e, (s) => {
2013
2057
  console.log("serviceUrls", s);
2014
2058
  const a = s.services.find((r) => r.id === "businessprocess")?.url + "/api/v2";
2015
2059
  t && t(a);
2016
2060
  });
2017
2061
  }
2018
- function at(e, t = void 0, n = void 0) {
2019
- e.tenant && v(e, (s) => {
2062
+ function pt(e, t = void 0, n = void 0) {
2063
+ e.tenant && $(e, (s) => {
2020
2064
  console.log("serviceUrls", s);
2021
2065
  const a = s.services.find((i) => i.id === "3dpassport")?.url, r = s.services.find((i) => i.id === "businessprocess")?.url + "/api/v2", o = `${a}/login/?service=${r}/auth/cas`;
2022
- u(o, {
2066
+ m(o, {
2023
2067
  async onComplete(i) {
2024
2068
  console.log("response", i);
2025
2069
  const c = typeof i == "string" ? JSON.parse(i)?.x3ds_service_redirect_url : i?.x3ds_service_redirect_url;
@@ -2035,8 +2079,8 @@ function at(e, t = void 0, n = void 0) {
2035
2079
  });
2036
2080
  });
2037
2081
  }
2038
- async function ot(e, t, n = void 0, s = void 0) {
2039
- e.tenant && v(e, (a) => {
2082
+ async function lt(e, t, n = void 0, s = void 0) {
2083
+ e.tenant && $(e, (a) => {
2040
2084
  const o = `${a.services.find((i) => i.id === "businessprocess")?.url + "/api/v2"}/identity/users`;
2041
2085
  fetch(`https://api.uixhome.fr/iterop/listusers?t=${t}&s=${o}`, {
2042
2086
  method: "POST"
@@ -2047,8 +2091,8 @@ async function ot(e, t, n = void 0, s = void 0) {
2047
2091
  });
2048
2092
  });
2049
2093
  }
2050
- async function rt(e, t, n = void 0, s = void 0) {
2051
- e.tenant && v(e, (a) => {
2094
+ async function ut(e, t, n = void 0, s = void 0) {
2095
+ e.tenant && $(e, (a) => {
2052
2096
  const o = `${a.services.find((i) => i.id === "businessprocess")?.url + "/api/v2"}/repository/data/tables`;
2053
2097
  fetch(`https://api.uixhome.fr/iterop/repository/data/tables?t=${t}&s=${o}`, {
2054
2098
  method: "GET"
@@ -2059,8 +2103,8 @@ async function rt(e, t, n = void 0, s = void 0) {
2059
2103
  });
2060
2104
  });
2061
2105
  }
2062
- async function ct(e, t, n, s, a = void 0, r = void 0) {
2063
- e.tenant && v(e, (o) => {
2106
+ async function ft(e, t, n, s, a = void 0, r = void 0) {
2107
+ e.tenant && $(e, (o) => {
2064
2108
  const i = o.services.find((d) => d.id === "businessprocess")?.url + "/api/v2", c = encodeURIComponent(`${i}`);
2065
2109
  fetch(
2066
2110
  `https://api.uixhome.fr/iterop/runtime/processes/${n}?t=${t}&s=${c}&b=${s}`,
@@ -2074,14 +2118,14 @@ async function ct(e, t, n, s, a = void 0, r = void 0) {
2074
2118
  });
2075
2119
  });
2076
2120
  }
2077
- function dt(e) {
2121
+ function mt(e) {
2078
2122
  const t = "Hello " + e;
2079
2123
  return console.log(t), t;
2080
2124
  }
2081
- function pt(e, t = void 0, n = void 0) {
2125
+ function gt(e, t = void 0, n = void 0) {
2082
2126
  return console.log("credentials", e), new Promise((s) => {
2083
2127
  if (e.token === "" && T(e), !e.space || e.space === "") {
2084
- const o = E();
2128
+ const o = K();
2085
2129
  console.log("platformeInfo", o);
2086
2130
  }
2087
2131
  b(
@@ -2095,14 +2139,14 @@ function pt(e, t = void 0, n = void 0) {
2095
2139
  },
2096
2140
  !0
2097
2141
  );
2098
- const a = N.now().ts, r = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dsearch&platformId=${e.tenant}`;
2099
- u(r, {
2142
+ const a = v.now().ts, r = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dsearch&platformId=${e.tenant}`;
2143
+ m(r, {
2100
2144
  onComplete(o) {
2101
2145
  if (Array.isArray(JSON.parse(o))) {
2102
2146
  const i = JSON.parse(o);
2103
2147
  console.log("serviceId=3dsearch", i);
2104
2148
  const c = `${i[0].services[0].url}/search?xrequestedwith=xmlhttprequest`;
2105
- u(c, {
2149
+ m(c, {
2106
2150
  method: "POST",
2107
2151
  headers: {
2108
2152
  Accept: "application/json",
@@ -2158,84 +2202,84 @@ function pt(e, t = void 0, n = void 0) {
2158
2202
  });
2159
2203
  }
2160
2204
  export {
2161
- D as UUID,
2162
- pt as _3DSearch_usersGroup,
2163
- Ie as _3DSpace_Create_Doc,
2164
- Re as _3DSpace_bookmark_addSubsciptions,
2165
- Pe as _3DSpace_bookmark_newWorkspace,
2205
+ P as UUID,
2206
+ gt as _3DSearch_usersGroup,
2207
+ Re as _3DSpace_Create_Doc,
2208
+ Ee as _3DSpace_bookmark_addSubsciptions,
2209
+ Je as _3DSpace_bookmark_newWorkspace,
2166
2210
  T as _3DSpace_csrf,
2167
- P as _3DSpace_download_doc,
2168
- X as _3DSpace_download_multidoc,
2169
- W as _3DSpace_file_update,
2170
- B as _3DSpace_file_update_csr,
2171
- ke as _3DSpace_file_url_csr,
2172
- $ as _3DSpace_get_csrf,
2173
- V as _3DSpace_get_docInfo,
2174
- Y as _3DSpace_get_downloadTicket_multidoc,
2175
- $e as _3DSpace_get_multiDocInfo,
2211
+ x as _3DSpace_download_doc,
2212
+ Q as _3DSpace_download_multidoc,
2213
+ z as _3DSpace_file_update,
2214
+ q as _3DSpace_file_update_csr,
2215
+ je as _3DSpace_file_url_csr,
2216
+ A as _3DSpace_get_csrf,
2217
+ H as _3DSpace_get_docInfo,
2218
+ Z as _3DSpace_get_downloadTicket_multidoc,
2219
+ Fe as _3DSpace_get_multiDocInfo,
2176
2220
  b as _3DSpace_get_securityContexts,
2177
- A as _3DSpace_get_ticket,
2178
- De as _3DSpace_lifecycle_changeRevision,
2179
- Fe as _3DSpace_lifecycle_changeState,
2180
- je as _3DSpace_lifecycle_getGraph,
2181
- Ue as _3DSpace_lifecycle_getNextRevision,
2182
- Ae as _3DSpace_lifecycle_getNextStates,
2183
- ze as _3DSwym_buildDirectMessage,
2184
- Ze as _3DSwym_deleteIdea,
2185
- te as _3DSwym_findCommunityToInstantMSG,
2186
- qe as _3DSwym_getAllCommunities,
2187
- Xe as _3DSwym_getAllNews,
2188
- Ye as _3DSwym_getFamiliarPeople,
2189
- He as _3DSwym_getIdeaStatusMaturity,
2190
- ee as _3DSwym_getMembersCommunity,
2191
- et as _3DSwym_getSWYMIdea,
2192
- tt as _3DSwym_get_AllSWYMIdeas,
2193
- nt as _3DSwym_get_currentUser,
2194
- st as _3DSwym_get_findUser,
2221
+ F as _3DSpace_get_ticket,
2222
+ Le as _3DSpace_lifecycle_changeRevision,
2223
+ Pe as _3DSpace_lifecycle_changeState,
2224
+ xe as _3DSpace_lifecycle_getGraph,
2225
+ Me as _3DSpace_lifecycle_getNextRevision,
2226
+ De as _3DSpace_lifecycle_getNextStates,
2227
+ nt as _3DSwym_buildDirectMessage,
2228
+ it as _3DSwym_deleteIdea,
2229
+ oe as _3DSwym_findCommunityToInstantMSG,
2230
+ et as _3DSwym_getAllCommunities,
2231
+ Qe as _3DSwym_getAllNews,
2232
+ Ze as _3DSwym_getFamiliarPeople,
2233
+ tt as _3DSwym_getIdeaStatusMaturity,
2234
+ ae as _3DSwym_getMembersCommunity,
2235
+ at as _3DSwym_getSWYMIdea,
2236
+ ot as _3DSwym_get_AllSWYMIdeas,
2237
+ rt as _3DSwym_get_currentUser,
2238
+ ct as _3DSwym_get_findUser,
2195
2239
  w as _3DSwym_get_version,
2196
- Qe as _3DSwym_postIdea,
2197
- j as _3DSwym_sendMessageData,
2198
- ye as _AppMngt_get_info_user,
2199
- _e as _AppMngt_get_users,
2200
- at as _Iterop_Auth_CAS,
2201
- ot as _Iterop_ListUsers,
2202
- rt as _Iterop_getAllBusinessTables,
2203
- ct as _Iterop_runProcess,
2204
- E as _getPlateformInfos,
2205
- ge as _getPlatformServices,
2206
- v as _getServiceUrl,
2207
- he as _getServiceUrl_3DPassport,
2208
- it as _getServiceUrl_Iterop,
2209
- u as _httpCallAuthenticated,
2210
- ue as _setDraggable,
2211
- me as _setDroppable,
2212
- fe as _setupTagger,
2213
- Ve as addTagToDoc,
2214
- Se as compass_getListAdditionalApps,
2215
- J as couleurs,
2216
- we as createUserGroups,
2217
- q as dataMixing,
2218
- Oe as deleteUserGroups,
2219
- de as findAdresse,
2220
- xe as getAllContextSecurity,
2221
- K as getCSRFToken,
2222
- ce as getCommunes,
2223
- Ce as getComplementUG,
2224
- Me as getDataFrom3DSpace,
2225
- pe as getDataFromGouvFr,
2226
- Ge as getDatasByTenant,
2227
- Ke as getDatasFrom3DSpace,
2228
- Le as getDownloadDocument,
2229
- Be as getInfoDocTags,
2230
- Te as getUserGroupsList,
2231
- G as getUsersGroupRules,
2232
- Ee as get_3DSpace_csrf,
2233
- be as patchUserGroups,
2234
- Ne as patchUserGroupsControl,
2235
- Je as pushDataIn3DSpace,
2236
- ve as readUserGroupControl,
2237
- We as removeTagToDoc,
2238
- dt as sayHello,
2239
- le as updateEvent
2240
+ st as _3DSwym_postIdea,
2241
+ R as _3DSwym_sendMessageData,
2242
+ be as _AppMngt_get_info_user,
2243
+ Oe as _AppMngt_get_users,
2244
+ pt as _Iterop_Auth_CAS,
2245
+ lt as _Iterop_ListUsers,
2246
+ ut as _Iterop_getAllBusinessTables,
2247
+ ft as _Iterop_runProcess,
2248
+ K as _getPlateformInfos,
2249
+ we as _getPlatformServices,
2250
+ $ as _getServiceUrl,
2251
+ Ce as _getServiceUrl_3DPassport,
2252
+ dt as _getServiceUrl_Iterop,
2253
+ m as _httpCallAuthenticated,
2254
+ Se as _setDraggable,
2255
+ _e as _setDroppable,
2256
+ ye as _setupTagger,
2257
+ He as addTagToDoc,
2258
+ Te as compass_getListAdditionalApps,
2259
+ G as couleurs,
2260
+ Ne as createUserGroups,
2261
+ ee as dataMixing,
2262
+ $e as deleteUserGroups,
2263
+ me as findAdresse,
2264
+ Ge as getAllContextSecurity,
2265
+ W as getCSRFToken,
2266
+ fe as getCommunes,
2267
+ ve as getComplementUG,
2268
+ Ke as getDataFrom3DSpace,
2269
+ ge as getDataFromGouvFr,
2270
+ Xe as getDatasByTenant,
2271
+ Ye as getDatasFrom3DSpace,
2272
+ Ve as getDownloadDocument,
2273
+ qe as getInfoDocTags,
2274
+ Ie as getUserGroupsList,
2275
+ V as getUsersGroupRules,
2276
+ Be as get_3DSpace_csrf,
2277
+ Ae as patchUserGroups,
2278
+ ke as patchUserGroupsControl,
2279
+ We as pushDataIn3DSpace,
2280
+ Ue as readUserGroupControl,
2281
+ ze as removeTagToDoc,
2282
+ mt as sayHello,
2283
+ he as updateEvent
2240
2284
  };
2241
2285
  //# sourceMappingURL=wb3Api.js.map