@beam3_dev/api_module 0.0.59 → 0.0.61

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,7 +1,7 @@
1
1
  import { v4 as M } from "uuid";
2
2
  import { DateTime as N } from "luxon";
3
- import { requirejs as O, widget as A } from "@widget-lab/3ddashboard-utils";
4
- function R() {
3
+ import { requirejs as O, widget as R } from "@widget-lab/3ddashboard-utils";
4
+ function A() {
5
5
  return M();
6
6
  }
7
7
  const L = {
@@ -34,7 +34,7 @@ const L = {
34
34
  b3Edit8: "#616161",
35
35
  b3Edit9: "#795548"
36
36
  };
37
- async function oe(e, t = void 0, n = void 0) {
37
+ async function ie(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 oe(e, t = void 0, n = void 0) {
50
50
  n && n(o), console.error("Erreur : " + o);
51
51
  });
52
52
  }
53
- async function ie(e, t = void 0, n = void 0) {
53
+ async function re(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,11 +65,11 @@ async function ie(e, t = void 0, n = void 0) {
65
65
  n && n(s), console.error("Erreur : " + s);
66
66
  });
67
67
  }
68
- async function re(e, t = L) {
68
+ async function ce(e, t = L) {
69
69
  let n = N.now().year;
70
- const s = e, o = [], c = (a) => {
71
- for (let r in a)
72
- o.push({ date: r, comment: a[r] });
70
+ const s = e, o = [], r = (a) => {
71
+ for (let c in a)
72
+ o.push({ date: c, comment: a[c] });
73
73
  };
74
74
  for (let a = n; a <= n + 1; a++)
75
75
  await fetch(
@@ -80,59 +80,59 @@ async function re(e, t = L) {
80
80
  Accept: "application/json"
81
81
  }
82
82
  }
83
- ).then((r) => r.json()).then((r) => {
84
- c(r);
85
- }).catch((r) => console.error("Erreur : " + r));
83
+ ).then((c) => c.json()).then((c) => {
84
+ r(c);
85
+ }).catch((c) => console.error("Erreur : " + c));
86
86
  return (() => {
87
87
  const a = s.length === 0 ? {
88
88
  events: []
89
89
  } : s;
90
- for (let r of o)
90
+ for (let c of o)
91
91
  a.events.findIndex(
92
- (l) => l.start === N.fromISO(r.date).toISODate() && l.name === "Férié : " + r.comment
92
+ (l) => l.start === N.fromISO(c.date).toISODate() && l.name === "Férié : " + c.comment
93
93
  ) === -1 && a.events.push({
94
- name: "Férié : " + r.comment,
95
- start: N.fromISO(r.date).toISODate(),
96
- end: N.fromISO(r.date).toISODate(),
94
+ name: "Férié : " + c.comment,
95
+ start: N.fromISO(c.date).toISODate(),
96
+ end: N.fromISO(c.date).toISODate(),
97
97
  color: t.b3BusinnessDays,
98
98
  timed: !1
99
99
  });
100
100
  return a;
101
101
  })();
102
102
  }
103
- async function ce(e, t, n = !0) {
103
+ async function de(e, t, n = !0) {
104
104
  const s = e.events.findIndex((o) => o.uuid === t.uuid);
105
- return s === -1 ? e.events.push(t) : n ? e.events[s] = t : e.events.splice(s, 1), e.length > 0 && e.sort((o, c) => o.start - c.start), e;
105
+ return s === -1 ? e.events.push(t) : n ? e.events[s] = t : e.events.splice(s, 1), e.length > 0 && e.sort((o, r) => o.start - r.start), e;
106
106
  }
107
107
  function f(e, t) {
108
108
  O(["DS/WAFData/WAFData"], (n) => {
109
109
  n.authenticatedRequest(e, t);
110
110
  });
111
111
  }
112
- function de(e, t, n) {
112
+ function le(e, t, n) {
113
113
  O(["DS/DataDragAndDrop/DataDragAndDrop"], (s) => {
114
114
  s.draggable(e, { data: t, start: n });
115
115
  });
116
116
  }
117
- function le(e, t = void 0) {
117
+ function pe(e, t = void 0) {
118
118
  O(["DS/TagNavigatorProxy/TagNavigatorProxy"], (n) => {
119
119
  let s;
120
120
  s === void 0 && (s = n.createProxy({
121
- widgetId: A.id,
121
+ widgetId: R.id,
122
122
  filteringMode: "WithFilteringServices"
123
123
  }), t !== void 0 && s.addEvent("onFilterSubjectsChange", t)), s.setSubjectsTags(e);
124
124
  });
125
125
  }
126
- function pe(e, t) {
126
+ function ue(e, t) {
127
127
  O(["DS/DataDragAndDrop/DataDragAndDrop"], (n) => {
128
128
  n.droppable(e, { drop: t });
129
129
  });
130
130
  }
131
- async function ue(e, t = void 0, n = void 0) {
131
+ async function fe(e, t = void 0, n = void 0) {
132
132
  await O(
133
133
  ["DS/i3DXCompassServices/i3DXCompassServices"],
134
134
  (s) => {
135
- (!e || e === "") && (e = A.getValue("PlatFormInstanceId")), (!e || e === "") && (e = void 0), t && (console.log("i3DXCompassServices", s), t(
135
+ (!e || e === "") && (e = R.getValue("PlatFormInstanceId")), (!e || e === "") && (e = void 0), t && (console.log("i3DXCompassServices", s), t(
136
136
  s.getPlatformServices({
137
137
  platformId: e,
138
138
  onComplete: t,
@@ -142,21 +142,21 @@ async function ue(e, t = void 0, n = void 0) {
142
142
  }
143
143
  );
144
144
  }
145
- function fe() {
145
+ function me() {
146
146
  let e = {};
147
147
  return O(["DS/PlatformAPI/PlatformAPI"], (t) => {
148
- const n = t.getTenant(), s = t.getUser(), o = t.getAllApplicationConfigurations(), c = t.getApplicationConfiguration(
148
+ const n = t.getTenant(), s = t.getUser(), o = t.getAllApplicationConfigurations(), r = t.getApplicationConfiguration(
149
149
  "com.3ds.wp.passport.cors"
150
150
  );
151
151
  e = {
152
152
  tenant: n,
153
153
  user: s,
154
154
  appsConfiguration: o,
155
- appConf: c
155
+ appConf: r
156
156
  };
157
157
  }), console.log("%cRETOUR API :", "color:blue", e), e;
158
158
  }
159
- function me(e, t, n) {
159
+ function ge(e, t, n) {
160
160
  const s = {
161
161
  base: `${e.space}`,
162
162
  uri: "/resources/AppsMngt/api/custom/applications",
@@ -169,41 +169,41 @@ function me(e, t, n) {
169
169
  "Content-Type": "application/json",
170
170
  Accept: "application/json"
171
171
  },
172
- onComplete(c, i, a) {
173
- const r = JSON.parse(c), d = r.data.map((l) => {
172
+ onComplete(r, i, a) {
173
+ const c = JSON.parse(r), d = c.data.map((l) => {
174
174
  const p = l.attributes.name, u = l.id;
175
175
  return { name: p, id: u };
176
176
  });
177
- t && t(d, r);
177
+ t && t(d, c);
178
178
  },
179
- onFailure(c, i) {
180
- const a = c;
179
+ onFailure(r, i) {
180
+ const a = r;
181
181
  a.msg = i.errormsg, a.errCode = i.errorcode, n && n(a);
182
182
  }
183
183
  });
184
184
  }
185
- function ge(e, t = void 0, n = void 0) {
185
+ function he(e, t = void 0, n = void 0) {
186
186
  let s = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&limit=-1`;
187
187
  f(s, {
188
- onComplete(o, c, i) {
188
+ onComplete(o, r, i) {
189
189
  const a = JSON.parse(o);
190
190
  console.log("_AppMngt_get_users => ", a), t && t(a);
191
191
  },
192
- onFailure(o, c) {
192
+ onFailure(o, r) {
193
193
  const i = o;
194
- i.msg = c.errormsg, i.errCode = c.errorcode, n && n(i);
194
+ i.msg = r.errormsg, i.errCode = r.errorcode, n && n(i);
195
195
  }
196
196
  });
197
197
  }
198
- function he(e, t, n = void 0, s = void 0) {
198
+ function Se(e, t, n = void 0, s = void 0) {
199
199
  let o = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&id=${t}`;
200
200
  f(o, {
201
- onComplete(c, i, a) {
202
- const r = JSON.parse(c);
203
- n && n(r);
201
+ onComplete(r, i, a) {
202
+ const c = JSON.parse(r);
203
+ n && n(c);
204
204
  },
205
- onFailure(c, i) {
206
- const a = c;
205
+ onFailure(r, i) {
206
+ const a = r;
207
207
  a.msg = i.errormsg, a.errCode = i.errorcode, s && s(a);
208
208
  }
209
209
  });
@@ -212,15 +212,15 @@ const F = {
212
212
  "Content-Type": "application/json",
213
213
  Accept: "application/json,text/javascript,*/*"
214
214
  };
215
- function Se(e, t, n = void 0, s = void 0) {
216
- const { space: o, currentUser: c } = e, a = `${o}${{
215
+ function _e(e, t, n = void 0, s = void 0) {
216
+ const { space: o, currentUser: r } = e, a = `${o}${{
217
217
  URIUGr: "/3drdfpersist/resources/v1/usersgroup"
218
- }.URIUGr}`, r = {
218
+ }.URIUGr}`, c = {
219
219
  groups: [
220
220
  {
221
221
  title: t.title,
222
222
  description: t.description,
223
- members: t.members || [c.email, "samuel.mureau@beam3.fr"],
223
+ members: t.members || [r.email, "samuel.mureau@beam3.fr"],
224
224
  pending_members: [],
225
225
  sharing: t.sharing,
226
226
  visibility: t.visibility
@@ -230,7 +230,7 @@ function Se(e, t, n = void 0, s = void 0) {
230
230
  f(a, {
231
231
  method: "POST",
232
232
  headers: F,
233
- data: JSON.stringify(r),
233
+ data: JSON.stringify(c),
234
234
  onComplete(d) {
235
235
  n && n(JSON.parse(d));
236
236
  },
@@ -241,8 +241,8 @@ function Se(e, t, n = void 0, s = void 0) {
241
241
  }
242
242
  });
243
243
  }
244
- function _e(e, t, n = void 0, s = void 0) {
245
- const { space: o, tenant: c } = e, i = o, a = `/3drdfpersist/v1/resources/${t}`, r = `?$mask=dsaccess:Mask.GroupUI.Properties&tenant=dstenant:${c}`, d = `${i}${a}${r}`;
244
+ function ye(e, t, n = void 0, s = void 0) {
245
+ const { space: o, tenant: r } = e, i = o, a = `/3drdfpersist/v1/resources/${t}`, c = `?$mask=dsaccess:Mask.GroupUI.Properties&tenant=dstenant:${r}`, d = `${i}${a}${c}`;
246
246
  f(d, {
247
247
  opts: {
248
248
  method: "GET",
@@ -261,12 +261,12 @@ function _e(e, t, n = void 0, s = void 0) {
261
261
  });
262
262
  }
263
263
  function E(e, t = void 0, n = void 0) {
264
- const { space: s, tenant: o } = e, c = s, i = "/3drdfpersist/resources/v1/option-sets/dsusergroup:ListOfGroupResponsibilities/options", a = `?tenant=dstenant:${o}`, r = {
264
+ const { space: s, tenant: o } = e, r = s, i = "/3drdfpersist/resources/v1/option-sets/dsusergroup:ListOfGroupResponsibilities/options", a = `?tenant=dstenant:${o}`, c = {
265
265
  method: "GET",
266
266
  Accept: "application/json,*/*,test/javascript"
267
- }, d = `${c}${i}${a}`;
267
+ }, d = `${r}${i}${a}`;
268
268
  f(d, {
269
- OPTsH: r,
269
+ OPTsH: c,
270
270
  onComplete(l) {
271
271
  t && t(JSON.parse(l));
272
272
  },
@@ -276,7 +276,7 @@ function E(e, t = void 0, n = void 0) {
276
276
  }
277
277
  });
278
278
  }
279
- function ye(e, t = void 0, n = void 0) {
279
+ function we(e, t = void 0, n = void 0) {
280
280
  const { space: s, currentUser: o } = e, a = `${s}/3drdfpersist/resources/v1/usersgroup?select=uri,title,description,owner,members,pending_members,creation_date,modification_date,visibility`, d = { method: "GET", headers: {
281
281
  "Content-Type": "application/json",
282
282
  Accept: "application/json,text/javascript,*/*"
@@ -307,14 +307,14 @@ function ye(e, t = void 0, n = void 0) {
307
307
  console.log(l);
308
308
  }
309
309
  }
310
- function we(e, t) {
310
+ function Te(e, t) {
311
311
  const { space: n } = e, o = `${n}/3drdfpersist/resources/v1/usersgroup/${t}`;
312
312
  f(o, {
313
313
  method: "DELETE"
314
314
  });
315
315
  }
316
- function Te(e, t, n, s = void 0, o = void 0) {
317
- const { space: c, tenant: i } = e, a = {
316
+ function Ce(e, t, n, s = void 0, o = void 0) {
317
+ const { space: r, tenant: i } = e, a = {
318
318
  URITI: "/3drdfpersist/resources/v1/template-instances",
319
319
  URIUGr: "/3drdfpersist/resources/v1/usersgroup",
320
320
  nextURICh: "/characteristics",
@@ -322,7 +322,7 @@ function Te(e, t, n, s = void 0, o = void 0) {
322
322
  nexURImem: "/members",
323
323
  OPTsTI: "?$mask=dsaccess:Mask.GroupUI.Properties",
324
324
  OPTsTenant: `tenant=dstenant:${i}`
325
- }, r = n, d = `${c}${a.URIUGr}/${t}`, l = JSON.stringify(r);
325
+ }, c = n, d = `${r}${a.URIUGr}/${t}`, l = JSON.stringify(c);
326
326
  f(d, {
327
327
  headers: F,
328
328
  method: "PATCH",
@@ -336,8 +336,8 @@ function Te(e, t, n, s = void 0, o = void 0) {
336
336
  }
337
337
  });
338
338
  }
339
- function Ce(e, t, n, s = void 0, o = void 0) {
340
- const { space: c } = e, a = `${c}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
339
+ function Oe(e, t, n, s = void 0, o = void 0) {
340
+ const { space: r } = e, a = `${r}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
341
341
  f(a, {
342
342
  method: "PATCH",
343
343
  headers: F,
@@ -351,7 +351,7 @@ function Ce(e, t, n, s = void 0, o = void 0) {
351
351
  }
352
352
  });
353
353
  }
354
- function Oe(e, t, n = void 0, s = void 0) {
354
+ function be(e, t, n = void 0, s = void 0) {
355
355
  const { space: o } = e, i = `${o}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
356
356
  f(i, {
357
357
  opts: {
@@ -369,15 +369,26 @@ function Oe(e, t, n = void 0, s = void 0) {
369
369
  }
370
370
  });
371
371
  }
372
- async function J(e, t = void 0, n = void 0, s = void 0) {
372
+ const J = async (e, t, n) => {
373
+ if (!e.space)
374
+ return;
375
+ const s = `${e.space}/resources/v1/application/CSRF`;
376
+ try {
377
+ const o = await f(s), r = JSON.parse(o);
378
+ console.log("getCSRFToken() / response => ", r), t?.(r.csrf);
379
+ } catch ({ error: o, headers: r, xhr: i }) {
380
+ n?.({ error: o, headers: r, xhr: i });
381
+ }
382
+ };
383
+ async function G(e, t = void 0, n = void 0, s = void 0) {
373
384
  const o = e.space;
374
385
  if (t === void 0) {
375
386
  console.log("Le paramètre docid est obligatoire");
376
387
  return;
377
388
  }
378
- const c = o + `/resources/v1/modeler/documents/${t}`;
379
- f(c, {
380
- onComplete(i, a, r) {
389
+ const r = o + `/resources/v1/modeler/documents/${t}`;
390
+ f(r, {
391
+ onComplete(i, a, c) {
381
392
  const d = JSON.parse(i);
382
393
  n && n(d);
383
394
  },
@@ -390,7 +401,7 @@ function k(e, t = void 0, n = void 0) {
390
401
  if (e.objID && e.objID !== "") {
391
402
  let s = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
392
403
  console.log("_3DSpace_get_csrf / url", s), f(s, {
393
- onComplete(o, c, i) {
404
+ onComplete(o, r, i) {
394
405
  const a = JSON.parse(o);
395
406
  e.token = a?.csrf?.value, e.datas = a?.data[0], t && t(e);
396
407
  },
@@ -413,12 +424,12 @@ function C(e, t = void 0, n = void 0) {
413
424
  if (e.space) {
414
425
  const s = e.space + "/resources/v1/application/CSRF";
415
426
  f(s, {
416
- onComplete(o, c, i) {
427
+ onComplete(o, r, i) {
417
428
  const a = JSON.parse(o);
418
429
  console.log("_3DSpace_csrf() / info => ", a), t && t(a.csrf.value);
419
430
  },
420
- onFailure(o, c, i) {
421
- n && n({ response: o, headers: c, xhr: i });
431
+ onFailure(o, r, i) {
432
+ n && n({ response: o, headers: r, xhr: i });
422
433
  }
423
434
  });
424
435
  } else
@@ -430,7 +441,7 @@ function U(e, t = void 0, n = void 0) {
430
441
  e,
431
442
  (o) => {
432
443
  console.log(
433
- "_3DSpace_file_url / onComplete / ☠️ info => ",
444
+ "_3DSpace_get_ticket / onComplete / ☠️ info => ",
434
445
  o,
435
446
  e.token
436
447
  ), f(s, {
@@ -438,25 +449,23 @@ function U(e, t = void 0, n = void 0) {
438
449
  headers: {
439
450
  ENO_CSRF_TOKEN: e.token
440
451
  },
441
- onComplete(c) {
442
- let i = JSON.parse(c);
443
- console.log("_3DSpace_file_url() / ☠️ info => ", i);
444
- const a = i.data[0].dataelements.ticketURL;
452
+ onComplete(r) {
453
+ const a = JSON.parse(r).data[0].dataelements.ticketURL;
445
454
  console.log("le ticket est dans la callback"), t && t(a);
446
455
  },
447
- onFailure(c, i) {
448
- console.warn("☠️ error => ", c, i), n && n(c, i);
456
+ onFailure(r, i) {
457
+ console.warn("☠️ error => ", r, i), n && n(r, i);
449
458
  }
450
459
  });
451
460
  },
452
461
  (o) => {
453
- console.warn("_3DSpace_file_url / error => ", o), n && n(o);
462
+ console.warn("_3DSpace_get_ticket / error => ", o), n && n(o);
454
463
  }
455
464
  );
456
465
  }
457
- function be(e, t, n, s = void 0, o = void 0) {
458
- const c = `${e.space}/resources/v1/modeler/documents/${t}/files/DownloadTicket`;
459
- n || (n = e.token), f(c, {
466
+ function Ne(e, t, n, s = void 0, o = void 0) {
467
+ const r = `${e.space}/resources/v1/modeler/documents/${t}/files/DownloadTicket`;
468
+ n || (n = e.token), f(r, {
460
469
  method: "PUT",
461
470
  headers: {
462
471
  ENO_CSRF_TOKEN: n
@@ -465,10 +474,10 @@ function be(e, t, n, s = void 0, o = void 0) {
465
474
  let a = JSON.parse(i);
466
475
  if (console.log("☠️ info => ", a), a.success === !0)
467
476
  try {
468
- const r = a.data[0].dataelements.ticketURL;
469
- s && s(r);
470
- } catch (r) {
471
- o && o(r);
477
+ const c = a.data[0].dataelements.ticketURL;
478
+ s && s(c);
479
+ } catch (c) {
480
+ o && o(c);
472
481
  }
473
482
  },
474
483
  onFailure(i) {
@@ -476,30 +485,30 @@ function be(e, t, n, s = void 0, o = void 0) {
476
485
  }
477
486
  });
478
487
  }
479
- function G(e, t, n, s, o, c = void 0, i = void 0) {
488
+ function K(e, t, n, s, o, r = void 0, i = void 0) {
480
489
  k(
481
490
  e,
482
491
  t,
483
492
  (a) => {
484
- K(
493
+ W(
485
494
  e,
486
495
  t,
487
496
  n,
488
497
  s,
489
498
  o,
490
499
  a.csrf.value,
491
- c,
500
+ r,
492
501
  i
493
502
  );
494
503
  }
495
504
  );
496
505
  }
497
- function K(e, t, n, s, o, c, i = void 0, a = void 0) {
498
- const r = e.space + `/resources/v1/modeler/documents/${t}/files/CheckinTicket`;
499
- f(r, {
506
+ function W(e, t, n, s, o, r, i = void 0, a = void 0) {
507
+ const c = e.space + `/resources/v1/modeler/documents/${t}/files/CheckinTicket`;
508
+ f(c, {
500
509
  method: "PUT",
501
510
  headers: {
502
- ENO_CSRF_TOKEN: c
511
+ ENO_CSRF_TOKEN: r
503
512
  },
504
513
  onComplete(d, l, p) {
505
514
  const u = JSON.parse(d).data[0].dataelements, m = new FormData();
@@ -509,7 +518,7 @@ function K(e, t, n, s, o, c, i = void 0, a = void 0) {
509
518
  let S = "temp_" + Date.now(), _ = {
510
519
  method: "PUT",
511
520
  headers: {
512
- ENO_CSRF_TOKEN: c
521
+ ENO_CSRF_TOKEN: r
513
522
  },
514
523
  data: JSON.stringify({
515
524
  data: [
@@ -549,12 +558,12 @@ function K(e, t, n, s, o, c, i = void 0, a = void 0) {
549
558
  }
550
559
  });
551
560
  }
552
- async function Ne(e, t, n, s, o = void 0, c = void 0) {
553
- const i = e.space, a = e.token, r = e.ctx, d = new FormData(), l = new Blob([JSON.stringify(t)], {
561
+ async function ke(e, t, n, s, o = void 0, r = void 0) {
562
+ const i = e.space, a = e.token, c = e.ctx, d = new FormData(), l = new Blob([JSON.stringify(t)], {
554
563
  type: "text/plain"
555
564
  }), p = {
556
565
  url_Ticket: `${i}/resources/v1/modeler/documents/files/CheckinTicket`,
557
- url_Post: `${i}/resources/v1/modeler/documents/?SecurityContext=ctx::${r}`
566
+ url_Post: `${i}/resources/v1/modeler/documents/?SecurityContext=ctx::${c}`
558
567
  };
559
568
  if (!i && i !== "") {
560
569
  console.log("le store._3DSpace est vide");
@@ -572,7 +581,7 @@ async function Ne(e, t, n, s, o = void 0, c = void 0) {
572
581
  method: "POST",
573
582
  data: d,
574
583
  onComplete(T) {
575
- if (r !== "" && a !== "") {
584
+ if (c !== "" && a !== "") {
576
585
  const D = {
577
586
  method: "POST",
578
587
  headers: {
@@ -599,7 +608,7 @@ async function Ne(e, t, n, s, o = void 0, c = void 0) {
599
608
  }
600
609
  ]
601
610
  },
602
- tempId: R()
611
+ tempId: A()
603
612
  }
604
613
  ]
605
614
  }),
@@ -608,7 +617,7 @@ async function Ne(e, t, n, s, o = void 0, c = void 0) {
608
617
  onComplete: _,
609
618
  onFailure: y
610
619
  };
611
- r !== "" && f(p.url_Post, D);
620
+ c !== "" && f(p.url_Post, D);
612
621
  } else
613
622
  console.warn("le store est vide");
614
623
  },
@@ -619,21 +628,21 @@ async function Ne(e, t, n, s, o = void 0, c = void 0) {
619
628
  }
620
629
  function y(T, D) {
621
630
  console.log("Erreur -- response ", T, `
622
- headers `, D), c && c(T);
631
+ headers `, D), r && r(T);
623
632
  }
624
633
  f(h.ticketURL, S);
625
634
  }
626
635
  });
627
636
  }
628
- function b(e, t = void 0, n = void 0, s = void 0, o = void 0, c = void 0) {
637
+ function b(e, t = void 0, n = void 0, s = void 0, o = void 0, r = void 0) {
629
638
  const i = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
630
639
  f(i, {
631
640
  method: "GET",
632
641
  onComplete(a) {
633
- const r = JSON.parse(a);
642
+ const c = JSON.parse(a);
634
643
  let d = "", l, p, u;
635
644
  if (t) {
636
- let m = r.collabspaces.find((g) => g.title === t);
645
+ let m = c.collabspaces.find((g) => g.title === t);
637
646
  if (m) {
638
647
  l = t;
639
648
  let g = m.couples;
@@ -649,7 +658,7 @@ function b(e, t = void 0, n = void 0, s = void 0, o = void 0, c = void 0) {
649
658
  let _ = g.filter(
650
659
  (y) => y.role.name === h
651
660
  );
652
- _.length === 1 ? (u = _[0].role.name, p = _[0].organization.title) : c(_);
661
+ _.length === 1 ? (u = _[0].role.name, p = _[0].organization.title) : r(_);
653
662
  }
654
663
  });
655
664
  }) : g.forEach((h) => {
@@ -659,12 +668,12 @@ function b(e, t = void 0, n = void 0, s = void 0, o = void 0, c = void 0) {
659
668
  let S = g.filter(
660
669
  (_) => _.role.name === n
661
670
  );
662
- S.length === 1 ? (u = S[0].role.name, p = S[0].organization.title) : c(S);
671
+ S.length === 1 ? (u = S[0].role.name, p = S[0].organization.title) : r(S);
663
672
  }
664
673
  }));
665
674
  }
666
675
  }
667
- l && p && u ? (d = u + "." + p + "." + l, o(d)) : r.preferredcredentials ? (d = r.preferredcredentials.role.name + "." + r.preferredcredentials.organization.title + "." + r.preferredcredentials.collabspace.title, o(d)) : c && (d = u + "." + p + "." + l, c(d));
676
+ l && p && u ? (d = u + "." + p + "." + l, o(d)) : c.preferredcredentials ? (d = c.preferredcredentials.role.name + "." + c.preferredcredentials.organization.title + "." + c.preferredcredentials.collabspace.title, o(d)) : r && (d = u + "." + p + "." + l, r(d));
668
677
  },
669
678
  onFailure(a) {
670
679
  console.log("Erreur de récupération du contexte de sécurité. => ", a);
@@ -677,12 +686,20 @@ async function I(e, t = void 0, n = void 0, s = void 0) {
677
686
  "_3DSpace_download_doc() / Le paramètre objectId est obligatoire"
678
687
  ), (e.space === "" || !e.space) && console.warn(
679
688
  "_3DSpace_download_doc() / Le paramètre space est obligatoire"
680
- ), (e.token === "" || !e.token) && console.warn(
689
+ ), delete e.token, (e.token === "" || !e.token) && (J(
690
+ e,
691
+ (r) => {
692
+ e.token = r;
693
+ },
694
+ (r) => {
695
+ console.log("☠️ error => ", r);
696
+ }
697
+ ), console.warn(
681
698
  "_3DSpace_download_doc() / Le paramètre token est obligatoire"
682
- ), console.log("_3DSpace_download_doc / credentials", e), U(
699
+ )), console.log("_3DSpace_download_doc / credentials", e), U(
683
700
  e,
684
- (c) => {
685
- console.log("_3DSpace_download_doc / ticketURL ", c), console.log(e.token), f(c, {
701
+ (r) => {
702
+ f(r, {
686
703
  headers: {
687
704
  ENO_CSRF_TOKEN: e.token
688
705
  },
@@ -690,41 +707,41 @@ async function I(e, t = void 0, n = void 0, s = void 0) {
690
707
  const a = JSON.parse(i);
691
708
  console.log("_3DSpace_download_doc / reponse ", a), t && t(a);
692
709
  },
693
- onFailure(i, a, r) {
694
- n && (console.log("error http", i), n({ error: i, headers: a, xhr: r }));
710
+ onFailure(i, a, c) {
711
+ n && (console.log("error http", i), n({ error: i, headers: a, xhr: c }));
695
712
  }
696
713
  });
697
714
  },
698
- (c) => {
699
- n && n(c), console.log("*_3dspace_download_doc / error file URL *", c);
715
+ (r) => {
716
+ n && n(r), console.log("*_3dspace_download_doc / error file URL *", r);
700
717
  }
701
718
  );
702
719
  }
703
- async function W(e, t, n = void 0, s = void 0) {
720
+ async function X(e, t, n = void 0, s = void 0) {
704
721
  let o = [];
705
722
  for (let a = 0; a < t.length; a += 80) {
706
- const r = t.slice(a, a + 80);
707
- o.push(r);
723
+ const c = t.slice(a, a + 80);
724
+ o.push(c);
708
725
  }
709
726
  const i = (a) => {
710
- X(
727
+ V(
711
728
  e,
712
729
  o[a],
713
730
  () => {
714
731
  a++, a < o.length && i(a);
715
732
  },
716
- (r) => {
717
- n && n(r);
733
+ (c) => {
734
+ n && n(c);
718
735
  }
719
736
  );
720
737
  };
721
738
  i(0);
722
739
  }
723
- function X(e, t, n = void 0, s = void 0, o = void 0) {
724
- const c = [];
725
- t.forEach((r) => {
726
- c.push({
727
- id: r
740
+ function V(e, t, n = void 0, s = void 0, o = void 0) {
741
+ const r = [];
742
+ t.forEach((c) => {
743
+ r.push({
744
+ id: c
728
745
  });
729
746
  });
730
747
  let i = JSON.stringify({
@@ -732,16 +749,16 @@ function X(e, t, n = void 0, s = void 0, o = void 0) {
732
749
  name: "ENO_CSRF_TOKEN",
733
750
  value: e.token
734
751
  },
735
- data: c
752
+ data: r
736
753
  });
737
754
  const a = `${e.space}/resources/v1/modeler/documents/DownloadTicket?tenant=${e.tenant}&e6w-lang=fr&e6w-timezone=-120`;
738
755
  f(a, {
739
756
  method: "PUT",
740
757
  data: i,
741
758
  type: "json",
742
- onComplete(r) {
743
- const d = r.data;
744
- r.success === !0 && (n && n(), d.forEach((l) => {
759
+ onComplete(c) {
760
+ const d = c.data;
761
+ c.success === !0 && (n && n(), d.forEach((l) => {
745
762
  try {
746
763
  const p = l.dataelements.fileName, u = l.dataelements.ticketURL;
747
764
  f(u, {
@@ -761,15 +778,15 @@ function X(e, t, n = void 0, s = void 0, o = void 0) {
761
778
  }
762
779
  }));
763
780
  },
764
- onFailure(r) {
765
- console.log(r), o && o(r);
781
+ onFailure(c) {
782
+ console.log(c), o && o(c);
766
783
  }
767
784
  });
768
785
  }
769
- function ke(e, t, n = void 0, s = void 0) {
786
+ function De(e, t, n = void 0, s = void 0) {
770
787
  return new Promise((o) => {
771
788
  if (e.token === "" && C(e), t !== void 0 && t !== "" && t !== null) {
772
- const c = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
789
+ const r = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
773
790
  b(
774
791
  e.space,
775
792
  "ESPACE COMMUN",
@@ -803,12 +820,12 @@ function ke(e, t, n = void 0, s = void 0) {
803
820
  s && s(a);
804
821
  }
805
822
  };
806
- f(c, i);
823
+ f(r, i);
807
824
  }
808
825
  });
809
826
  }
810
- function De(e, t, n, s = void 0, o = void 0) {
811
- return new Promise((c) => {
827
+ function Fe(e, t, n, s = void 0, o = void 0) {
828
+ return new Promise((r) => {
812
829
  if (e.token === "" && C(e), t !== void 0 && t !== "" && t !== null) {
813
830
  const i = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
814
831
  b(
@@ -816,9 +833,9 @@ function De(e, t, n, s = void 0, o = void 0) {
816
833
  "ESPACE COMMUN",
817
834
  ["VPLMProjectLeader", "VPLMCreator"],
818
835
  void 0,
819
- (r) => e.ctx = r,
820
- (r) => {
821
- console.log("onError =>", r);
836
+ (c) => e.ctx = c,
837
+ (c) => {
838
+ console.log("onError =>", c);
822
839
  }
823
840
  );
824
841
  let a = {
@@ -838,21 +855,21 @@ function De(e, t, n, s = void 0, o = void 0) {
838
855
  ]
839
856
  }),
840
857
  type: "json",
841
- onComplete(r) {
842
- s && s(r);
858
+ onComplete(c) {
859
+ s && s(c);
843
860
  },
844
- onFailure(r) {
845
- o && o(r);
861
+ onFailure(c) {
862
+ o && o(c);
846
863
  }
847
864
  };
848
865
  f(i, a);
849
866
  }
850
867
  });
851
868
  }
852
- function Fe(e, t, n = void 0, s = void 0) {
869
+ function Ue(e, t, n = void 0, s = void 0) {
853
870
  return new Promise((o) => {
854
871
  if (e.token === "" && C(e), t !== void 0 && t !== "" && t !== null) {
855
- const c = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
872
+ const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
856
873
  b(
857
874
  e.space,
858
875
  "ESPACE COMMUN",
@@ -886,14 +903,14 @@ function Fe(e, t, n = void 0, s = void 0) {
886
903
  s && s(a);
887
904
  }
888
905
  };
889
- f(c, i);
906
+ f(r, i);
890
907
  }
891
908
  });
892
909
  }
893
- function Ue(e, t, n = void 0, s = void 0) {
910
+ function $e(e, t, n = void 0, s = void 0) {
894
911
  return new Promise((o) => {
895
912
  if (e.token === "" && C(e), t !== void 0 && t !== "" && t !== null) {
896
- const c = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
913
+ const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
897
914
  b(
898
915
  e.space,
899
916
  "ESPACE COMMUN",
@@ -933,12 +950,12 @@ function Ue(e, t, n = void 0, s = void 0) {
933
950
  s && s(a);
934
951
  }
935
952
  };
936
- f(c, i);
953
+ f(r, i);
937
954
  }
938
955
  });
939
956
  }
940
- function $e(e, t, n, s = void 0, o = void 0) {
941
- return new Promise((c) => {
957
+ function je(e, t, n, s = void 0, o = void 0) {
958
+ return new Promise((r) => {
942
959
  if (e.token === "" && C(e), t !== void 0 && t !== "" && t !== null) {
943
960
  const i = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
944
961
  b(
@@ -946,9 +963,9 @@ function $e(e, t, n, s = void 0, o = void 0) {
946
963
  "ESPACE COMMUN",
947
964
  ["VPLMProjectLeader", "VPLMCreator"],
948
965
  void 0,
949
- (r) => e.ctx = r,
950
- (r) => {
951
- console.log("onError =>", r);
966
+ (c) => e.ctx = c,
967
+ (c) => {
968
+ console.log("onError =>", c);
952
969
  }
953
970
  );
954
971
  let a = {
@@ -973,11 +990,11 @@ function $e(e, t, n, s = void 0, o = void 0) {
973
990
  notificationTimeout: 600
974
991
  }),
975
992
  type: "json",
976
- onComplete(r) {
977
- s && s(r);
993
+ onComplete(c) {
994
+ s && s(c);
978
995
  },
979
- onFailure(r) {
980
- o && o(r);
996
+ onFailure(c) {
997
+ o && o(c);
981
998
  }
982
999
  };
983
1000
  f(i, a);
@@ -985,20 +1002,7 @@ function $e(e, t, n, s = void 0, o = void 0) {
985
1002
  });
986
1003
  }
987
1004
  //!SECTION
988
- async function je(e, t, n) {
989
- if (e.space) {
990
- const s = `${e.space}/resources/v1/application/CSRF`;
991
- f(s, {
992
- onComplete(o) {
993
- o = JSON.parse(o), console.log("getCSRFToken() / response => ", o), t && t(o.csrf);
994
- },
995
- onFailure(o, c, i) {
996
- n && n({ error: o, headers: c, xhr: i });
997
- }
998
- });
999
- }
1000
- }
1001
- function Ae(e, t = void 0, n = void 0) {
1005
+ function Re(e, t = void 0, n = void 0) {
1002
1006
  const s = {
1003
1007
  base: `${e.space}`,
1004
1008
  uri: "/resources/bps/cspaces",
@@ -1010,27 +1014,27 @@ function Ae(e, t = void 0, n = void 0) {
1010
1014
  Accept: "application/json,text/javascript,*/*",
1011
1015
  "Content-Type": "application/ds-json"
1012
1016
  },
1013
- onComplete(c, i) {
1014
- const a = JSON.parse(c);
1017
+ onComplete(r, i) {
1018
+ const a = JSON.parse(r);
1015
1019
  t && t(a, i);
1016
1020
  },
1017
- onFailure(c, i, a) {
1018
- n && n({ response: c, headers: i, xhr: a });
1021
+ onFailure(r, i, a) {
1022
+ n && n({ response: r, headers: i, xhr: a });
1019
1023
  }
1020
1024
  });
1021
1025
  }
1022
- function Re(e, t, n, s) {
1026
+ function Ae(e, t, n, s) {
1023
1027
  U(
1024
1028
  e.space,
1025
1029
  t,
1026
1030
  (o) => {
1027
1031
  f(o, {
1028
1032
  header: { ENO_CSRF_TOKEN: e.token },
1029
- onComplete: (c) => {
1030
- n && n(c);
1033
+ onComplete: (r) => {
1034
+ n && n(r);
1031
1035
  },
1032
- onFailure: (c) => {
1033
- console.log("error http", c), s && s(c);
1036
+ onFailure: (r) => {
1037
+ console.log("error http", r), s && s(r);
1034
1038
  }
1035
1039
  });
1036
1040
  }
@@ -1038,29 +1042,29 @@ function Re(e, t, n, s) {
1038
1042
  }
1039
1043
  async function Ie(e, t, n = void 0, s = void 0) {
1040
1044
  return new Promise((o) => {
1041
- U(e, t, (c) => {
1042
- f(c, {
1043
- onComplete: (i, a, r) => (o(JSON.parse(i)), n && n(JSON.parse(i), a, r), o),
1044
- onFailure: (i, a, r) => {
1045
- s && s(i, a, r), console.log(i, a?.errormsg);
1045
+ U(e, t, (r) => {
1046
+ f(r, {
1047
+ onComplete: (i, a, c) => (o(JSON.parse(i)), n && n(JSON.parse(i), a, c), o),
1048
+ onFailure: (i, a, c) => {
1049
+ s && s(i, a, c), console.log(i, a?.errormsg);
1046
1050
  }
1047
1051
  });
1048
1052
  });
1049
1053
  });
1050
1054
  }
1051
1055
  function ve(e, t, n, s = void 0, o = void 0) {
1052
- const c = new Blob([JSON.stringify(t)], { type: "text/plain" });
1056
+ const r = new Blob([JSON.stringify(t)], { type: "text/plain" });
1053
1057
  k(
1054
1058
  e,
1055
1059
  n,
1056
1060
  (i) => {
1057
- const a = i.data[0].relateddata.files[0].id, r = i.data[0].dataelements.secondaryTitle !== "" ? i.data[0].dataelements.secondaryTitle : i.data[0].dataelements.title;
1058
- G(
1061
+ const a = i.data[0].relateddata.files[0].id, c = i.data[0].dataelements.secondaryTitle !== "" ? i.data[0].dataelements.secondaryTitle : i.data[0].dataelements.title;
1062
+ K(
1059
1063
  e,
1060
1064
  n,
1061
1065
  a,
1062
- c,
1063
1066
  r,
1067
+ c,
1064
1068
  (d) => {
1065
1069
  s && s(d);
1066
1070
  },
@@ -1097,21 +1101,21 @@ async function Pe(e, t = void 0, n = void 0) {
1097
1101
  e,
1098
1102
  (s) => {
1099
1103
  const o = {};
1100
- o.obj = s, console.log("getDatasByTenant (getDocuments) _datas", o), t && t(o);
1104
+ o.obj = s, console.log("getDatasByTenant (getDocuments) _datas", o), t && t?.(o);
1101
1105
  },
1102
1106
  (s) => {
1103
- n && n(s);
1107
+ n && n?.(s);
1104
1108
  }
1105
1109
  );
1106
1110
  }
1107
1111
  function Me(e, t = void 0, n = void 0) {
1108
1112
  const s = [];
1109
- e.objIds.forEach((o, c) => {
1113
+ e.objIds.forEach((o, r) => {
1110
1114
  I(
1111
1115
  e,
1112
1116
  o.objId,
1113
1117
  (i) => {
1114
- s.push({ [o.name]: i }), o.name === "dbProjets" && (v = i.affaires.map((a) => a.objectID), V(e, x)), c === e.objIds.length - 1 && t && t(s);
1118
+ s.push({ [o.name]: i }), o.name === "dbProjets" && (v = i.affaires.map((a) => a.objectID), B(e, x)), r === e.objIds.length - 1 && t && t(s);
1115
1119
  },
1116
1120
  (i) => {
1117
1121
  n && n(i);
@@ -1119,20 +1123,20 @@ function Me(e, t = void 0, n = void 0) {
1119
1123
  );
1120
1124
  });
1121
1125
  }
1122
- function V(e, t, n = void 0, s = void 0) {
1123
- W(
1126
+ function B(e, t, n = void 0, s = void 0) {
1127
+ X(
1124
1128
  e,
1125
1129
  v,
1126
1130
  (o) => {
1127
- const c = [...t];
1128
- c.find((i) => i.objectID === o.objectId).data = o.data, x = c, $.push(o.data), n && n($);
1131
+ const r = [...t];
1132
+ r.find((i) => i.objectID === o.objectId).data = o.data, x = r, $.push(o.data), n && n($);
1129
1133
  },
1130
1134
  (o) => {
1131
1135
  s && (s(o), console.log(o));
1132
1136
  }
1133
1137
  );
1134
1138
  }
1135
- const B = "FA35FB9B177A280065800EA0000F599C", Y = [
1139
+ const Y = "FA35FB9B177A280065800EA0000F599C", H = [
1136
1140
  "swym",
1137
1141
  "3dspace",
1138
1142
  "drive",
@@ -1146,17 +1150,17 @@ const B = "FA35FB9B177A280065800EA0000F599C", Y = [
1146
1150
  where: "ds6w:where",
1147
1151
  who: "ds6w:who",
1148
1152
  why: "ds6w:why"
1149
- }, H = {
1150
- objId: B,
1153
+ }, z = {
1154
+ objId: Y,
1151
1155
  pred: "who",
1152
1156
  order_by: "desc",
1153
1157
  tag: "testTag"
1154
1158
  };
1155
1159
  function Le(e, t, n = void 0, s = void 0) {
1156
- const { space: o, tenant: c } = e, { objId: i, pred: a, tag: r } = t, d = {
1160
+ const { space: o, tenant: r } = e, { objId: i, pred: a, tag: c } = t, d = {
1157
1161
  uri: "/resources/6w/tags",
1158
1162
  otpCTX: "SecurityContext=preferred",
1159
- optTenant: `tenant=${c}`
1163
+ optTenant: `tenant=${r}`
1160
1164
  }, l = `${o}${d.uri}?${d.otpCTX}&${d.optTenant}`, p = {
1161
1165
  tag: [
1162
1166
  {
@@ -1167,7 +1171,7 @@ function Le(e, t, n = void 0, s = void 0) {
1167
1171
  ],
1168
1172
  predicate: P[a],
1169
1173
  object: {
1170
- literal: r
1174
+ literal: c
1171
1175
  }
1172
1176
  }
1173
1177
  ]
@@ -1183,12 +1187,12 @@ function Le(e, t, n = void 0, s = void 0) {
1183
1187
  JSON.parse(u);
1184
1188
  const m = {};
1185
1189
  setTimeout(() => {
1186
- J(
1190
+ G(
1187
1191
  e,
1188
1192
  i,
1189
1193
  (g) => {
1190
1194
  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;
1191
- m.name = h, m.ext = S, m.createBy = _, t.info = { ...m }, z(
1195
+ m.name = h, m.ext = S, m.createBy = _, t.info = { ...m }, q(
1192
1196
  e,
1193
1197
  t,
1194
1198
  (y) => {
@@ -1212,19 +1216,19 @@ function Le(e, t, n = void 0, s = void 0) {
1212
1216
  }
1213
1217
  });
1214
1218
  }
1215
- function z(e, t, n = void 0, s = void 0) {
1219
+ function q(e, t, n = void 0, s = void 0) {
1216
1220
  console.log("obj ", t);
1217
- const o = t.info.name, c = {
1221
+ const o = t.info.name, r = {
1218
1222
  baseUrl: `https://${e.tenant.toLowerCase()}-eu1-fedsearch.3dexperience.3ds.com`,
1219
1223
  uri: "/federated/search"
1220
- }, i = `${c.baseUrl}${c.uri}`, a = {
1224
+ }, i = `${r.baseUrl}${r.uri}`, a = {
1221
1225
  "Content-Type": "application/json",
1222
1226
  Accept: "application/json,text/javascript,*/*"
1223
- }, r = R(), d = {
1227
+ }, c = A(), d = {
1224
1228
  with_indexing_date: !0,
1225
1229
  with_synthesis: !0,
1226
1230
  with_nls: !1,
1227
- label: `3DSearch-${e.currentUser.username}-AjoutDeTagBeam-${r}`,
1231
+ label: `3DSearch-${e.currentUser.username}-AjoutDeTagBeam-${c}`,
1228
1232
  locale: "fr",
1229
1233
  select_predicate: [
1230
1234
  "ds6w:label",
@@ -1262,7 +1266,7 @@ function z(e, t, n = void 0, s = void 0) {
1262
1266
  }
1263
1267
  },
1264
1268
  select_exclude_synthesis: ["ds6w:what/ds6w:topic"],
1265
- order_by: H.order_by,
1269
+ order_by: z.order_by,
1266
1270
  order_field: "relevance",
1267
1271
  select_snippets: [
1268
1272
  "ds6w:snippet",
@@ -1273,7 +1277,7 @@ function z(e, t, n = void 0, s = void 0) {
1273
1277
  ],
1274
1278
  nresults: 40,
1275
1279
  start: "0",
1276
- source: Y,
1280
+ source: H,
1277
1281
  tenant: e.tenant,
1278
1282
  login: {
1279
1283
  "3dspace": {
@@ -1296,11 +1300,11 @@ function z(e, t, n = void 0, s = void 0) {
1296
1300
  });
1297
1301
  }
1298
1302
  function Ee(e, t, n = void 0, s = void 0) {
1299
- const { objId: o, pred: c, tag: i } = t, a = {
1303
+ const { objId: o, pred: r, tag: i } = t, a = {
1300
1304
  uri: "/resources/6w/tags",
1301
1305
  otpCTX: "SecurityContext=preferred",
1302
1306
  optTenant: `tenant=${e.tenant}`
1303
- }, r = `${e.space}${a.uri}?${a.otpCTX}&${a.optTenant}`, d = {
1307
+ }, c = `${e.space}${a.uri}?${a.otpCTX}&${a.optTenant}`, d = {
1304
1308
  tag: [
1305
1309
  {
1306
1310
  subject: [
@@ -1308,14 +1312,14 @@ function Ee(e, t, n = void 0, s = void 0) {
1308
1312
  uri: `pid://${o}`
1309
1313
  }
1310
1314
  ],
1311
- predicate: P[c],
1315
+ predicate: P[r],
1312
1316
  object: {
1313
1317
  literal: i
1314
1318
  }
1315
1319
  }
1316
1320
  ]
1317
1321
  };
1318
- f(r, {
1322
+ f(c, {
1319
1323
  method: "DELETE",
1320
1324
  data: JSON.stringify(d),
1321
1325
  headers: {
@@ -1335,16 +1339,16 @@ function Je(e, t = "", n = void 0, s = void 0) {
1335
1339
  const { space: o } = e;
1336
1340
  if (t === "")
1337
1341
  return;
1338
- const c = {
1342
+ const r = {
1339
1343
  uri: "/resources/v1/modeler/documents"
1340
1344
  }, i = {
1341
1345
  "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
1342
1346
  Accept: "application/json,text/javascript,*/*"
1343
- }, a = `${o}${c.uri}`, r = `$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}`;
1347
+ }, a = `${o}${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}`;
1344
1348
  f(a, {
1345
1349
  method: "POST",
1346
1350
  headers: i,
1347
- data: r,
1351
+ data: c,
1348
1352
  onComplete(d) {
1349
1353
  n && n(JSON.parse(d));
1350
1354
  },
@@ -1357,7 +1361,7 @@ function Je(e, t = "", n = void 0, s = void 0) {
1357
1361
  async function w(e, t = void 0, n = void 0) {
1358
1362
  const s = e.space + "/api/index/tk";
1359
1363
  return f(s, {
1360
- onComplete(o, c, i) {
1364
+ onComplete(o, r, i) {
1361
1365
  const a = JSON.parse(o);
1362
1366
  if (t)
1363
1367
  return t(a), e.token = a?.result?.ServerToken;
@@ -1378,11 +1382,11 @@ function Ge(e, t = void 0, n = void 0) {
1378
1382
  start: 0
1379
1383
  }
1380
1384
  };
1381
- w(e, (c) => {
1385
+ w(e, (r) => {
1382
1386
  f(s, {
1383
1387
  method: "POST",
1384
1388
  headers: {
1385
- "X-DS-SWYM-CSRFTOKEN": c.result.ServerToken,
1389
+ "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken,
1386
1390
  "Content-type": "application/json;charset=UTF-8",
1387
1391
  Accept: "application/json"
1388
1392
  },
@@ -1407,19 +1411,19 @@ function Ke(e, t = void 0, n = void 0) {
1407
1411
  maxNbOfCommonElements: "5"
1408
1412
  }
1409
1413
  };
1410
- w(e, (c) => {
1414
+ w(e, (r) => {
1411
1415
  f(s, {
1412
1416
  method: "POST",
1413
1417
  headers: {
1414
- "X-DS-SWYM-CSRFTOKEN": c.result.ServerToken,
1418
+ "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken,
1415
1419
  "Content-type": "application/json;charset=UTF-8",
1416
1420
  Accept: "application/json"
1417
1421
  },
1418
1422
  data: JSON.stringify(o),
1419
1423
  type: "json",
1420
1424
  onComplete(i, a) {
1421
- const r = i.result.hits.map((d) => ({ login: d.login, fullName: d.name }));
1422
- t && t(r, i);
1425
+ const c = i.result.hits.map((d) => ({ login: d.login, fullName: d.name }));
1426
+ t && t(c, i);
1423
1427
  },
1424
1428
  onFailure(i, a) {
1425
1429
  n && n(i, a);
@@ -1433,14 +1437,14 @@ function We(e, t = void 0, n = void 0) {
1433
1437
  uri: "/api/community/listmycommunities",
1434
1438
  limit: `/limit/${e.limit ? e.limit : 128}`,
1435
1439
  page: `/page/${e.page ? e.page : "1"}`
1436
- }, o = `${s.base}${s.uri}${s.limit}${s.page}`, c = [];
1440
+ }, o = `${s.base}${s.uri}${s.limit}${s.page}`, r = [];
1437
1441
  w(e, (i) => {
1438
1442
  f(o, {
1439
1443
  method: "GET",
1440
1444
  headers: {
1441
1445
  "X-DS-SWYM-CSRFTOKEN": i.result.ServerToken
1442
1446
  },
1443
- onComplete(a, r, d) {
1447
+ onComplete(a, c, d) {
1444
1448
  const p = JSON.parse(a).result;
1445
1449
  let u = 0;
1446
1450
  p.forEach((m) => {
@@ -1452,25 +1456,25 @@ function We(e, t = void 0, n = void 0) {
1452
1456
  role: m.role,
1453
1457
  access: m.access
1454
1458
  };
1455
- q(
1459
+ Q(
1456
1460
  e,
1457
1461
  m.id,
1458
1462
  (h) => {
1459
- u++, g.members = h, c.push(g), u === p.length && t && t(c);
1463
+ u++, g.members = h, r.push(g), u === p.length && t && t(r);
1460
1464
  },
1461
1465
  (h) => n(h)
1462
1466
  );
1463
1467
  });
1464
1468
  },
1465
- onFailure(a, r) {
1469
+ onFailure(a, c) {
1466
1470
  const d = a;
1467
- d.status = r.status, d.response = r.errormsg, n && n(d);
1471
+ d.status = c.status, d.response = c.errormsg, n && n(d);
1468
1472
  }
1469
1473
  });
1470
1474
  });
1471
1475
  }
1472
- function q(e, t, n, s) {
1473
- const o = `${e.space}/api/community/listmembers`, c = {
1476
+ function Q(e, t, n, s) {
1477
+ const o = `${e.space}/api/community/listmembers`, r = {
1474
1478
  params: {
1475
1479
  page: e.page ? e.page : 1,
1476
1480
  limit: e.limit ? e.limit : 50,
@@ -1485,14 +1489,14 @@ function q(e, t, n, s) {
1485
1489
  Accept: "application/json",
1486
1490
  "X-DS-SWYM-CSRFTOKEN": i.result.ServerToken
1487
1491
  },
1488
- data: JSON.stringify(c),
1492
+ data: JSON.stringify(r),
1489
1493
  type: "json",
1490
- onComplete(a, r, d) {
1494
+ onComplete(a, c, d) {
1491
1495
  n && n(a);
1492
1496
  },
1493
- onFailure(a, r) {
1497
+ onFailure(a, c) {
1494
1498
  const d = a;
1495
- d.status = r.status, d.response = r.errormsg, s && s(d);
1499
+ d.status = c.status, d.response = c.errormsg, s && s(d);
1496
1500
  }
1497
1501
  });
1498
1502
  });
@@ -1501,44 +1505,44 @@ function Xe(e, t = void 0, n = void 0) {
1501
1505
  const s = "YXdA5x4DSUKtlAi2wmnyTA";
1502
1506
  e.commu_id || (e.commu_id = s);
1503
1507
  const o = `${e.space}/api/v2/communities/${e.commu_id}/ideas/statuses`;
1504
- w(e, (c) => {
1508
+ w(e, (r) => {
1505
1509
  f(o, {
1506
1510
  method: "GET",
1507
1511
  headers: {
1508
1512
  "Content-type": "application/json;charset=UTF-8",
1509
1513
  Accept: "application/json",
1510
- "X-DS-SWYM-CSRFTOKEN": c.result.ServerToken
1514
+ "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
1511
1515
  },
1512
1516
  onComplete(i) {
1513
1517
  const a = JSON.parse(i);
1514
1518
  t && t(a);
1515
1519
  },
1516
1520
  onFailure(i, a) {
1517
- const r = i;
1518
- r.status = a.status, r.response = a.errormsg, n && n(r);
1521
+ const c = i;
1522
+ c.status = a.status, c.response = a.errormsg, n && n(c);
1519
1523
  }
1520
1524
  });
1521
1525
  });
1522
1526
  }
1523
1527
  function Ve(e, t, n = void 0, s = void 0) {
1524
- const { listAllContacts: o, currentUser: c } = e;
1528
+ const { listAllContacts: o, currentUser: r } = e;
1525
1529
  console.log("__listAllContacts", o.hits);
1526
1530
  const i = `${e.space}/api/directmessages`, a = {
1527
- users: [c.login].concat(t.receipt)
1528
- }, r = {
1531
+ users: [r.login].concat(t.receipt)
1532
+ }, c = {
1529
1533
  id_msg: "",
1530
1534
  senderId: e.currentUser.login,
1531
1535
  senderName: `${e.currentUser.first_name} ${e.currentUser.last_name}`,
1532
- msg: Z(t.msg)
1536
+ msg: ee(t.msg)
1533
1537
  };
1534
1538
  let d = !1;
1535
- Q(
1539
+ Z(
1536
1540
  a.users,
1537
1541
  (l) => {
1538
- l !== void 0 && (r.id_msg = l.id, d = !0, j(e, r));
1542
+ l !== void 0 && (c.id_msg = l.id, d = !0, j(e, c));
1539
1543
  },
1540
1544
  (l) => {
1541
- d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", l), s && s(l), r.id_msg = "";
1545
+ d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", l), s && s(l), c.id_msg = "";
1542
1546
  }
1543
1547
  ), d === !1 && setTimeout(() => {
1544
1548
  d === !1 && w(e, (l) => {
@@ -1553,7 +1557,7 @@ function Ve(e, t, n = void 0, s = void 0) {
1553
1557
  type: "json",
1554
1558
  onComplete(p, u, m) {
1555
1559
  const g = p;
1556
- g.reponse = JSON.parse(m.response), g.status = m.status, n && n(g), r.id_msg = g.result.id, j(e, r);
1560
+ g.reponse = JSON.parse(m.response), g.status = m.status, n && n(g), c.id_msg = g.result.id, j(e, c);
1557
1561
  },
1558
1562
  onFailure(p, u, m) {
1559
1563
  const g = p;
@@ -1563,21 +1567,21 @@ function Ve(e, t, n = void 0, s = void 0) {
1563
1567
  });
1564
1568
  }, 500);
1565
1569
  }
1566
- function Q(e, t, n, s) {
1570
+ function Z(e, t, n, s) {
1567
1571
  const o = `${e.space}/api/directmessages/lite?with_favorites=false`;
1568
- w(e, (c) => {
1572
+ w(e, (r) => {
1569
1573
  f(o, {
1570
1574
  method: "GET",
1571
1575
  headers: {
1572
1576
  Accept: "application/json,text/javascript,*/*",
1573
- "X-DS-SWYM-CSRFTOKEN": c.result.ServerToken
1577
+ "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
1574
1578
  },
1575
1579
  onComplete(i) {
1576
- const a = JSON.parse(i), r = [];
1580
+ const a = JSON.parse(i), c = [];
1577
1581
  a.result.forEach((p) => {
1578
- p.users = p.users.sort((u, m) => u.login.localeCompare(m.login)), p.users.length === t.length && r.push(p);
1582
+ p.users = p.users.sort((u, m) => u.login.localeCompare(m.login)), p.users.length === t.length && c.push(p);
1579
1583
  });
1580
- const d = t.sort(), l = r.find((p) => {
1584
+ const d = t.sort(), l = c.find((p) => {
1581
1585
  const u = [];
1582
1586
  return p.users.forEach((m) => {
1583
1587
  u.push(m.login);
@@ -1598,7 +1602,7 @@ function j(e, t, n = void 0, s = void 0) {
1598
1602
  uri: "/api/community",
1599
1603
  id_msg: `${t.id_msg}`,
1600
1604
  endUri: "/instantmessages"
1601
- }, c = `${o.base}${o.uri}/${o.id_msg}${o.endUri}`, i = {
1605
+ }, r = `${o.base}${o.uri}/${o.id_msg}${o.endUri}`, i = {
1602
1606
  author: { login: t.senderId, displayName: t.senderName },
1603
1607
  accessState: null,
1604
1608
  commentUri: null,
@@ -1608,8 +1612,8 @@ function j(e, t, n = void 0, s = void 0) {
1608
1612
  parentCommentUri: null,
1609
1613
  richMessage: t.msg
1610
1614
  };
1611
- console.log("_3dSwym_sendDirectMessageData url ", c), w(e, (a) => {
1612
- f(c, {
1615
+ console.log("_3dSwym_sendDirectMessageData url ", r), w(e, (a) => {
1616
+ f(r, {
1613
1617
  method: "POST",
1614
1618
  headers: {
1615
1619
  "Content-Type": "application/json",
@@ -1618,25 +1622,25 @@ function j(e, t, n = void 0, s = void 0) {
1618
1622
  },
1619
1623
  data: JSON.stringify(i),
1620
1624
  type: "json",
1621
- onComplete(r, d, l) {
1622
- const p = r;
1625
+ onComplete(c, d, l) {
1626
+ const p = c;
1623
1627
  p.status = l.status, p.response = JSON.parse(l.response), console.log("✅ _3dSwym_sendDirectMessageData => ", p), n && n(p);
1624
1628
  },
1625
- onFailure(r, d) {
1626
- const l = r;
1629
+ onFailure(c, d) {
1630
+ const l = c;
1627
1631
  l.msg = d.errormsg, l.errCode = d.errorcode, console.log("❌ sendDirectMessage => ", l), s && s(l);
1628
1632
  }
1629
1633
  });
1630
1634
  });
1631
1635
  }
1632
- function Z(e) {
1636
+ function ee(e) {
1633
1637
  const t = (/* @__PURE__ */ new Date()).toLocaleDateString(), n = (/* @__PURE__ */ new Date()).toLocaleTimeString();
1634
1638
  return `<p>${e} </p>
1635
1639
  <br/>
1636
1640
  <hr/>
1637
1641
  <p><u>envoyer :</u>Le <b>${t} à ${n}</b></p>`;
1638
1642
  }
1639
- const ee = {
1643
+ const te = {
1640
1644
  title: "TEST DEV COMMUNITY IDEA",
1641
1645
  // titre du post
1642
1646
  community_id: "YXdA5x4DSUKtlAi2wmnyTA",
@@ -1647,27 +1651,27 @@ const ee = {
1647
1651
  // id de l'idee qui est créer au post (_3dSwym_postIdea)
1648
1652
  };
1649
1653
  function Be(e, t, n = void 0, s = void 0) {
1650
- const o = `${e.space}/api/idea/add`, c = e.swymCommunities.find(
1651
- (r) => r.id === t.community_id
1654
+ const o = `${e.space}/api/idea/add`, r = e.swymCommunities.find(
1655
+ (c) => c.id === t.community_id
1652
1656
  ), i = e.swymCommunities.find(
1653
- (r) => r.title.toLowerCase() === t.community_title.toLowerCase()
1657
+ (c) => c.title.toLowerCase() === t.community_title.toLowerCase()
1654
1658
  ), a = {
1655
1659
  params: {
1656
1660
  title: t.title,
1657
1661
  // String, le nom de l'affaire
1658
- community_id: c?.id !== void 0 ? c.id : i.id,
1662
+ community_id: r?.id !== void 0 ? r.id : i.id,
1659
1663
  // String, l'id de la communauté
1660
- message: te(t.text_html),
1664
+ message: ne(t.text_html),
1661
1665
  // STRING => le contenue du message doit être au format HTML
1662
1666
  published: 1
1663
1667
  // 1 publier, 0 non publier
1664
1668
  }
1665
1669
  };
1666
- w(e, (r) => {
1670
+ w(e, (c) => {
1667
1671
  const d = {
1668
1672
  "Content-type": "application/json;charset=UTF-8",
1669
1673
  Accept: "application/json",
1670
- "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
1674
+ "X-DS-SWYM-CSRFTOKEN": c.result.ServerToken
1671
1675
  };
1672
1676
  f(o, {
1673
1677
  method: "POST",
@@ -1686,7 +1690,7 @@ function Be(e, t, n = void 0, s = void 0) {
1686
1690
  });
1687
1691
  }
1688
1692
  function Ye(e, t, n = void 0, s = void 0) {
1689
- const o = `${e.space}/api/idea/delete`, c = {
1693
+ const o = `${e.space}/api/idea/delete`, r = {
1690
1694
  params: {
1691
1695
  community_id: t.community_id,
1692
1696
  ideationIds: [t.idee_id]
@@ -1700,14 +1704,14 @@ function Ye(e, t, n = void 0, s = void 0) {
1700
1704
  Accept: "application/json",
1701
1705
  "X-DS-SWYM-CSRFTOKEN": i.result.ServerToken
1702
1706
  },
1703
- data: JSON.stringify(c),
1707
+ data: JSON.stringify(r),
1704
1708
  type: "json",
1705
- onComplete(a, r, d) {
1709
+ onComplete(a, c, d) {
1706
1710
  n && n(a);
1707
1711
  },
1708
- onFailure(a, r, d) {
1712
+ onFailure(a, c, d) {
1709
1713
  const l = a;
1710
- l.status = r.status, l.response = r.errormsg, s && s(l);
1714
+ l.status = c.status, l.response = c.errormsg, s && s(l);
1711
1715
  }
1712
1716
  });
1713
1717
  });
@@ -1715,13 +1719,13 @@ function Ye(e, t, n = void 0, s = void 0) {
1715
1719
  function He(e, t = "", n = void 0, s = void 0) {
1716
1720
  const o = e.tenant.toLowerCase() === "r1132101716373" ? "tFtz0G4MR6qNtKgJjNfTog" : e.tenant.toLowerCase() === "r1132101286859" ? "Qpv3HN-tTDOsU-7_c5DnDg" : "Template_d'idée_à_créer";
1717
1721
  t === "" && (t = o);
1718
- const c = `${e.space}/api/idea/get`, i = {
1722
+ const r = `${e.space}/api/idea/get`, i = {
1719
1723
  params: {
1720
1724
  id: t
1721
1725
  }
1722
1726
  };
1723
1727
  w(e, (a) => {
1724
- f(c, {
1728
+ f(r, {
1725
1729
  method: "POST",
1726
1730
  headers: {
1727
1731
  "Content-type": "application/json;charset=UTF-8",
@@ -1730,41 +1734,41 @@ function He(e, t = "", n = void 0, s = void 0) {
1730
1734
  },
1731
1735
  data: JSON.stringify(i),
1732
1736
  type: "json",
1733
- onComplete(r) {
1734
- const d = r;
1737
+ onComplete(c) {
1738
+ const d = c;
1735
1739
  d.msg = d.result.message, n && n(d);
1736
1740
  },
1737
- onFailure(r) {
1738
- const d = r;
1741
+ onFailure(c) {
1742
+ const d = c;
1739
1743
  d.status = headers.status, d.response = headers.errormsg, s && s(d);
1740
1744
  }
1741
1745
  });
1742
1746
  });
1743
1747
  }
1744
- function ze(e, t = ee, n = void 0, s = void 0) {
1748
+ function ze(e, t = te, n = void 0, s = void 0) {
1745
1749
  const o = {
1746
1750
  uri: "/api/idea/list",
1747
1751
  comId: `/community_id/${e.tenant.toLowerCase() === "r1132101716373" ? t.community_id : "bgnIsG74SUWswyGzS6NC6g"}`,
1748
1752
  limit: `/limit/${t.limit ? t.limit : 10}`
1749
- }, c = `${e.space}${o.uri}${o.comId}${o.limit}`;
1753
+ }, r = `${e.space}${o.uri}${o.comId}${o.limit}`;
1750
1754
  w(e, (i) => {
1751
- f(c, {
1755
+ f(r, {
1752
1756
  method: "GET",
1753
1757
  headers: {
1754
1758
  "X-DS-SWYM-CSRFTOKEN": i.result.ServerToken
1755
1759
  },
1756
1760
  onComplete(a) {
1757
- const r = JSON.parse(a);
1758
- n && n(r);
1761
+ const c = JSON.parse(a);
1762
+ n && n(c);
1759
1763
  },
1760
- onFailure(a, r) {
1764
+ onFailure(a, c) {
1761
1765
  const d = a;
1762
- d.status = r.status, d.response = r.errormsg, s && s(d);
1766
+ d.status = c.status, d.response = c.errormsg, s && s(d);
1763
1767
  }
1764
1768
  });
1765
1769
  });
1766
1770
  }
1767
- function te(e) {
1771
+ function ne(e) {
1768
1772
  return !e || e === "" ? `<h2><u>INFORMATIONS AFFAIRE :</u></h2>
1769
1773
  <p><u>|⚠️<em> Merci de respecter l&#39;écriture des tags, en MAJUSCULES, nom complet, pas de caractères</em></u></p>
1770
1774
  <p><u><em>|spéciaux, séparation par &#34;_&#34; si besoin !</em></u></p>
@@ -1847,13 +1851,13 @@ function qe(e, t = void 0, n = void 0) {
1847
1851
  headers: {
1848
1852
  "X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
1849
1853
  },
1850
- onComplete(c, i, a) {
1851
- const r = JSON.parse(c);
1852
- t && t(r.result);
1854
+ onComplete(r, i, a) {
1855
+ const c = JSON.parse(r);
1856
+ t && t(c.result);
1853
1857
  },
1854
- onFailure(c, i, a) {
1855
- const r = { erreur: JSON.parse(c), headers: i, xhr: a };
1856
- n && n(r);
1858
+ onFailure(r, i, a) {
1859
+ const c = { erreur: JSON.parse(r), headers: i, xhr: a };
1860
+ n && n(c);
1857
1861
  }
1858
1862
  });
1859
1863
  });
@@ -1862,11 +1866,11 @@ function Qe(e, t, n = void 0, s = void 0) {
1862
1866
  const o = e.space + "/api/user/find/login/" + t;
1863
1867
  w(
1864
1868
  e,
1865
- (c) => {
1869
+ (r) => {
1866
1870
  f(o, {
1867
1871
  method: "GET",
1868
- headers: { "X-DS-SWYM-CSRFTOKEN": c.result.ServerToken },
1869
- onComplete(i, a, r) {
1872
+ headers: { "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken },
1873
+ onComplete(i, a, c) {
1870
1874
  const d = JSON.parse(i);
1871
1875
  n && n(d);
1872
1876
  },
@@ -1883,29 +1887,29 @@ function Ze(e) {
1883
1887
  return console.log(t), t;
1884
1888
  }
1885
1889
  export {
1886
- R as UUID,
1887
- Ne as _3DSpace_Create_Doc,
1890
+ A as UUID,
1891
+ ke as _3DSpace_Create_Doc,
1888
1892
  C as _3DSpace_csrf,
1889
1893
  I as _3DSpace_download_doc,
1890
- W as _3DSpace_download_multidoc,
1891
- G as _3DSpace_file_update,
1892
- K as _3DSpace_file_update_csr,
1893
- U as _3DSpace_file_url,
1894
- be as _3DSpace_file_url_csr,
1894
+ X as _3DSpace_download_multidoc,
1895
+ K as _3DSpace_file_update,
1896
+ W as _3DSpace_file_update_csr,
1897
+ Ne as _3DSpace_file_url_csr,
1895
1898
  k as _3DSpace_get_csrf,
1896
- J as _3DSpace_get_docInfo,
1897
- X as _3DSpace_get_downloadTicket_multidoc,
1899
+ G as _3DSpace_get_docInfo,
1900
+ V as _3DSpace_get_downloadTicket_multidoc,
1898
1901
  b as _3DSpace_get_securityContexts,
1899
- $e as _3DSpace_lifecycle_changeRevision,
1900
- De as _3DSpace_lifecycle_changeState,
1901
- Fe as _3DSpace_lifecycle_getGraph,
1902
- Ue as _3DSpace_lifecycle_getNextRevision,
1903
- ke as _3DSpace_lifecycle_getNextStates,
1902
+ U as _3DSpace_get_ticket,
1903
+ je as _3DSpace_lifecycle_changeRevision,
1904
+ Fe as _3DSpace_lifecycle_changeState,
1905
+ Ue as _3DSpace_lifecycle_getGraph,
1906
+ $e as _3DSpace_lifecycle_getNextRevision,
1907
+ De as _3DSpace_lifecycle_getNextStates,
1904
1908
  We as _3DSwim_getAllCommunities,
1905
- q as _3DSwim_getMembersCommunity,
1909
+ Q as _3DSwim_getMembersCommunity,
1906
1910
  Ve as _3DSwym_buildDirectMessage,
1907
1911
  Ye as _3DSwym_deleteIdea,
1908
- Q as _3DSwym_findCommunityToInstantMSG,
1912
+ Z as _3DSwym_findCommunityToInstantMSG,
1909
1913
  Ge as _3DSwym_getAllNews,
1910
1914
  Ke as _3DSwym_getFamiliarPeople,
1911
1915
  Xe as _3DSwym_getIdeaStatusMaturity,
@@ -1916,40 +1920,40 @@ export {
1916
1920
  w as _3DSwym_get_version,
1917
1921
  Be as _3DSwym_postIdea,
1918
1922
  j as _3DSwym_sendMessageData,
1919
- he as _AppMngt_get_info_user,
1920
- ge as _AppMngt_get_users,
1921
- fe as _getPlateformInfos,
1922
- ue as _getPlatformServices,
1923
+ Se as _AppMngt_get_info_user,
1924
+ he as _AppMngt_get_users,
1925
+ me as _getPlateformInfos,
1926
+ fe as _getPlatformServices,
1923
1927
  f as _httpCallAuthenticated,
1924
- de as _setDraggable,
1925
- pe as _setDroppable,
1926
- le as _setupTagger,
1928
+ le as _setDraggable,
1929
+ ue as _setDroppable,
1930
+ pe as _setupTagger,
1927
1931
  Le as addTagToDoc,
1928
- me as compass_getListAdditionalApps,
1932
+ ge as compass_getListAdditionalApps,
1929
1933
  L as couleurs,
1930
- Se as createUserGroups,
1931
- V as dataMixing,
1932
- we as deleteUserGroups,
1933
- ie as findAdresse,
1934
- Ae as getAllContextSecurity,
1935
- je as getCSRFToken,
1936
- oe as getCommunes,
1937
- _e as getComplementUG,
1938
- Re as getDataFrom3DSpace,
1939
- re as getDataFromGouvFr,
1934
+ _e as createUserGroups,
1935
+ B as dataMixing,
1936
+ Te as deleteUserGroups,
1937
+ re as findAdresse,
1938
+ Re as getAllContextSecurity,
1939
+ J as getCSRFToken,
1940
+ ie as getCommunes,
1941
+ ye as getComplementUG,
1942
+ Ae as getDataFrom3DSpace,
1943
+ ce as getDataFromGouvFr,
1940
1944
  Pe as getDatasByTenant,
1941
1945
  Me as getDatasFrom3DSpace,
1942
1946
  Ie as getDownloadDocument,
1943
1947
  Je as getInfoDocTags,
1944
- ye as getUserGroupsList,
1948
+ we as getUserGroupsList,
1945
1949
  E as getUsersGroupRules,
1946
1950
  xe as get_3DSpace_csrf,
1947
- Te as patchUserGroups,
1948
- Ce as patchUserGroupsControl,
1951
+ Ce as patchUserGroups,
1952
+ Oe as patchUserGroupsControl,
1949
1953
  ve as pushDataIn3DSpace,
1950
- Oe as readUserGroupControl,
1954
+ be as readUserGroupControl,
1951
1955
  Ee as removeTagToDoc,
1952
1956
  Ze as sayHello,
1953
- ce as updateEvent
1957
+ de as updateEvent
1954
1958
  };
1955
1959
  //# sourceMappingURL=wb3Api.js.map