@beam3_dev/api_module 0.0.93 → 0.0.95

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,5 +1,5 @@
1
1
  import { v4 as M } from "uuid";
2
- import { DateTime as N } from "luxon";
2
+ import { DateTime as b } from "luxon";
3
3
  import { requirejs as O, widget as j } from "@widget-lab/3ddashboard-utils";
4
4
  function R() {
5
5
  return M();
@@ -34,7 +34,7 @@ const L = {
34
34
  b3Edit8: "#616161",
35
35
  b3Edit9: "#795548"
36
36
  };
37
- async function oe(e, t = void 0, s = void 0) {
37
+ async function re(e, t = void 0, s = void 0) {
38
38
  const n = parseInt(e);
39
39
  await fetch(
40
40
  "https://apicarto.ign.fr/api/codes-postaux/communes/" + n,
@@ -44,13 +44,13 @@ async function oe(e, t = void 0, s = void 0) {
44
44
  Accept: "application/json"
45
45
  }
46
46
  }
47
- ).then((i) => i.json()).then((i) => {
48
- t && t(i);
49
- }).catch((i) => {
50
- s && s(i), console.error("Erreur : " + i);
47
+ ).then((o) => o.json()).then((o) => {
48
+ t && t(o);
49
+ }).catch((o) => {
50
+ s && s(o), console.error("Erreur : " + o);
51
51
  });
52
52
  }
53
- async function re(e, t = void 0, s = void 0) {
53
+ async function ce(e, t = void 0, s = 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 re(e, t = void 0, s = void 0) {
65
65
  s && s(n), console.error("Erreur : " + n);
66
66
  });
67
67
  }
68
- async function ce(e, t = L) {
69
- let s = N.now().year;
70
- const n = e, i = [], r = (a) => {
71
- for (let o in a)
72
- i.push({ date: o, comment: a[o] });
68
+ async function de(e, t = L) {
69
+ let s = b.now().year;
70
+ const n = e, o = [], r = (a) => {
71
+ for (let i in a)
72
+ o.push({ date: i, comment: a[i] });
73
73
  };
74
74
  for (let a = s; a <= s + 1; a++)
75
75
  await fetch(
@@ -80,41 +80,41 @@ async function ce(e, t = L) {
80
80
  Accept: "application/json"
81
81
  }
82
82
  }
83
- ).then((o) => o.json()).then((o) => {
84
- r(o);
85
- }).catch((o) => console.error("Erreur : " + o));
83
+ ).then((i) => i.json()).then((i) => {
84
+ r(i);
85
+ }).catch((i) => console.error("Erreur : " + i));
86
86
  return (() => {
87
87
  const a = n.length === 0 ? {
88
88
  events: []
89
89
  } : n;
90
- for (let o of i)
90
+ for (let i of o)
91
91
  a.events.findIndex(
92
- (l) => l.start === N.fromISO(o.date).toISODate() && l.name === "Férié : " + o.comment
92
+ (l) => l.start === b.fromISO(i.date).toISODate() && l.name === "Férié : " + i.comment
93
93
  ) === -1 && a.events.push({
94
- name: "Férié : " + o.comment,
95
- start: N.fromISO(o.date).toISODate(),
96
- end: N.fromISO(o.date).toISODate(),
94
+ name: "Férié : " + i.comment,
95
+ start: b.fromISO(i.date).toISODate(),
96
+ end: b.fromISO(i.date).toISODate(),
97
97
  color: t.b3BusinnessDays,
98
98
  timed: !1
99
99
  });
100
100
  return a;
101
101
  })();
102
102
  }
103
- async function de(e, t, s = !0) {
104
- const n = e.events.findIndex((i) => i.uuid === t.uuid);
105
- return n === -1 ? e.events.push(t) : s ? e.events[n] = t : e.events.splice(n, 1), e.length > 0 && e.sort((i, r) => i.start - r.start), e;
103
+ async function le(e, t, s = !0) {
104
+ const n = e.events.findIndex((o) => o.uuid === t.uuid);
105
+ return n === -1 ? e.events.push(t) : s ? e.events[n] = t : e.events.splice(n, 1), e.length > 0 && e.sort((o, r) => o.start - r.start), e;
106
106
  }
107
107
  function m(e, t) {
108
108
  O(["DS/WAFData/WAFData"], (s) => {
109
109
  s.authenticatedRequest(e, t);
110
110
  });
111
111
  }
112
- function le(e, t, s) {
112
+ function pe(e, t, s) {
113
113
  O(["DS/DataDragAndDrop/DataDragAndDrop"], (n) => {
114
114
  n.draggable(e, { data: t, start: s });
115
115
  });
116
116
  }
117
- function pe(e, t = void 0) {
117
+ function ue(e, t = void 0) {
118
118
  O(["DS/TagNavigatorProxy/TagNavigatorProxy"], (s) => {
119
119
  let n;
120
120
  n === void 0 && (n = s.createProxy({
@@ -123,12 +123,12 @@ function pe(e, t = void 0) {
123
123
  }), t !== void 0 && n.addEvent("onFilterSubjectsChange", t)), n.setSubjectsTags(e);
124
124
  });
125
125
  }
126
- function ue(e, t) {
126
+ function fe(e, t) {
127
127
  O(["DS/DataDragAndDrop/DataDragAndDrop"], (s) => {
128
128
  s.droppable(e, { drop: t });
129
129
  });
130
130
  }
131
- async function fe(e, t = void 0, s = void 0) {
131
+ async function me(e, t = void 0, s = void 0) {
132
132
  await O(
133
133
  ["DS/i3DXCompassServices/i3DXCompassServices"],
134
134
  (n) => {
@@ -142,16 +142,16 @@ async function fe(e, t = void 0, s = void 0) {
142
142
  }
143
143
  );
144
144
  }
145
- function me() {
145
+ function J() {
146
146
  let e = {};
147
147
  return O(["DS/PlatformAPI/PlatformAPI"], (t) => {
148
- const s = t.getTenant(), n = t.getUser(), i = t.getAllApplicationConfigurations(), r = t.getApplicationConfiguration(
148
+ const s = t.getTenant(), n = t.getUser(), o = t.getAllApplicationConfigurations(), r = t.getApplicationConfiguration(
149
149
  "com.3ds.wp.passport.cors"
150
150
  );
151
151
  e = {
152
152
  tenant: s,
153
153
  user: n,
154
- appsConfiguration: i,
154
+ appsConfiguration: o,
155
155
  appConf: r
156
156
  };
157
157
  }), console.log("%cRETOUR API :", "color:blue", e), e;
@@ -162,19 +162,19 @@ function ge(e, t, s) {
162
162
  uri: "/resources/AppsMngt/api/custom/applications",
163
163
  option: `?filter=${e.tenant}`
164
164
  // facultatif
165
- }, i = `${n.base}${n.uri}${n.option}`;
166
- m(i, {
165
+ }, o = `${n.base}${n.uri}${n.option}`;
166
+ m(o, {
167
167
  method: "GET",
168
168
  headers: {
169
169
  "Content-Type": "application/json",
170
170
  Accept: "application/json"
171
171
  },
172
172
  onComplete(r, c, a) {
173
- const o = JSON.parse(r), d = o.data.map((l) => {
173
+ const i = JSON.parse(r), d = i.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, o);
177
+ t && t(d, i);
178
178
  },
179
179
  onFailure(r, c) {
180
180
  const a = r;
@@ -185,22 +185,22 @@ function ge(e, t, s) {
185
185
  function he(e, t = void 0, s = void 0) {
186
186
  let n = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&limit=-1`;
187
187
  m(n, {
188
- onComplete(i, r, c) {
189
- const a = JSON.parse(i);
188
+ onComplete(o, r, c) {
189
+ const a = JSON.parse(o);
190
190
  console.log("_AppMngt_get_users => ", a), t && t(a);
191
191
  },
192
- onFailure(i, r) {
193
- const c = i;
192
+ onFailure(o, r) {
193
+ const c = o;
194
194
  c.msg = r.errormsg, c.errCode = r.errorcode, s && s(c);
195
195
  }
196
196
  });
197
197
  }
198
198
  function Se(e, t, s = void 0, n = void 0) {
199
- let i = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&id=${t}`;
200
- m(i, {
199
+ let o = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&id=${t}`;
200
+ m(o, {
201
201
  onComplete(r, c, a) {
202
- const o = JSON.parse(r);
203
- s && s(o);
202
+ const i = JSON.parse(r);
203
+ s && s(i);
204
204
  },
205
205
  onFailure(r, c) {
206
206
  const a = r;
@@ -213,9 +213,9 @@ const D = {
213
213
  Accept: "application/json,text/javascript,*/*"
214
214
  };
215
215
  function _e(e, t, s = void 0, n = void 0) {
216
- const { space: i, currentUser: r } = e, a = `${i}${{
216
+ const { space: o, currentUser: r } = e, a = `${o}${{
217
217
  URIUGr: "/3drdfpersist/resources/v1/usersgroup"
218
- }.URIUGr}`, o = {
218
+ }.URIUGr}`, i = {
219
219
  groups: [
220
220
  {
221
221
  title: t.title,
@@ -230,7 +230,7 @@ function _e(e, t, s = void 0, n = void 0) {
230
230
  m(a, {
231
231
  method: "POST",
232
232
  headers: D,
233
- data: JSON.stringify(o),
233
+ data: JSON.stringify(i),
234
234
  onComplete(d) {
235
235
  s && s(JSON.parse(d));
236
236
  },
@@ -242,7 +242,7 @@ function _e(e, t, s = void 0, n = void 0) {
242
242
  });
243
243
  }
244
244
  function ye(e, t, s = void 0, n = void 0) {
245
- const { space: i, tenant: r } = e, c = i, a = `/3drdfpersist/v1/resources/${t}`, o = `?$mask=dsaccess:Mask.GroupUI.Properties&tenant=dstenant:${r}`, d = `${c}${a}${o}`;
245
+ const { space: o, tenant: r } = e, c = o, a = `/3drdfpersist/v1/resources/${t}`, i = `?$mask=dsaccess:Mask.GroupUI.Properties&tenant=dstenant:${r}`, d = `${c}${a}${i}`;
246
246
  m(d, {
247
247
  opts: {
248
248
  method: "GET",
@@ -260,13 +260,13 @@ function ye(e, t, s = void 0, n = void 0) {
260
260
  }
261
261
  });
262
262
  }
263
- function J(e, t = void 0, s = void 0) {
264
- const { space: n, tenant: i } = e, r = n, c = "/3drdfpersist/resources/v1/option-sets/dsusergroup:ListOfGroupResponsibilities/options", a = `?tenant=dstenant:${i}`, o = {
263
+ function E(e, t = void 0, s = void 0) {
264
+ const { space: n, tenant: o } = e, r = n, c = "/3drdfpersist/resources/v1/option-sets/dsusergroup:ListOfGroupResponsibilities/options", a = `?tenant=dstenant:${o}`, i = {
265
265
  method: "GET",
266
266
  Accept: "application/json,*/*,test/javascript"
267
267
  }, d = `${r}${c}${a}`;
268
268
  m(d, {
269
- OPTsH: o,
269
+ OPTsH: i,
270
270
  onComplete(l) {
271
271
  t && t(JSON.parse(l));
272
272
  },
@@ -277,7 +277,7 @@ function J(e, t = void 0, s = void 0) {
277
277
  });
278
278
  }
279
279
  function we(e, t = void 0, s = void 0) {
280
- const { space: n, currentUser: i } = e, a = `${n}/3drdfpersist/resources/v1/usersgroup?select=uri,title,description,owner,members,pending_members,creation_date,modification_date,visibility`, d = { method: "GET", headers: {
280
+ const { space: n, currentUser: o } = e, a = `${n}/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,*/*"
283
283
  } };
@@ -286,9 +286,9 @@ function we(e, t = void 0, s = void 0) {
286
286
  opts: d,
287
287
  onComplete(l) {
288
288
  const p = JSON.parse(l), u = {}, f = p.groups.filter((g) => g.uri.startsWith("uuid:"));
289
- if (i && Object.keys(i).length > 0) {
290
- const g = f.filter((_) => _.owner === i.email), h = f.filter((_) => _.members.includes(i.email)), S = g.concat(h);
291
- u.iam = S, u.UG = f, u.iamMember = h, J(
289
+ if (o && Object.keys(o).length > 0) {
290
+ const g = f.filter((_) => _.owner === o.email), h = f.filter((_) => _.members.includes(o.email)), S = g.concat(h);
291
+ u.iam = S, u.UG = f, u.iamMember = h, E(
292
292
  e,
293
293
  (_) => {
294
294
  u.rules = _, t && t(u);
@@ -308,12 +308,12 @@ function we(e, t = void 0, s = void 0) {
308
308
  }
309
309
  }
310
310
  function Ce(e, t) {
311
- const { space: s } = e, i = `${s}/3drdfpersist/resources/v1/usersgroup/${t}`;
312
- m(i, {
311
+ const { space: s } = e, o = `${s}/3drdfpersist/resources/v1/usersgroup/${t}`;
312
+ m(o, {
313
313
  method: "DELETE"
314
314
  });
315
315
  }
316
- function Te(e, t, s, n = void 0, i = void 0) {
316
+ function Te(e, t, s, n = void 0, o = void 0) {
317
317
  const { space: r, tenant: c } = e, a = {
318
318
  URITI: "/3drdfpersist/resources/v1/template-instances",
319
319
  URIUGr: "/3drdfpersist/resources/v1/usersgroup",
@@ -322,7 +322,7 @@ function Te(e, t, s, n = void 0, i = void 0) {
322
322
  nexURImem: "/members",
323
323
  OPTsTI: "?$mask=dsaccess:Mask.GroupUI.Properties",
324
324
  OPTsTenant: `tenant=dstenant:${c}`
325
- }, o = s, d = `${r}${a.URIUGr}/${t}`, l = JSON.stringify(o);
325
+ }, i = s, d = `${r}${a.URIUGr}/${t}`, l = JSON.stringify(i);
326
326
  m(d, {
327
327
  headers: D,
328
328
  method: "PATCH",
@@ -332,11 +332,11 @@ function Te(e, t, s, n = void 0, i = void 0) {
332
332
  n && n(p);
333
333
  },
334
334
  onFailure(p) {
335
- i && i(p);
335
+ o && o(p);
336
336
  }
337
337
  });
338
338
  }
339
- function Oe(e, t, s, n = void 0, i = void 0) {
339
+ function Oe(e, t, s, n = void 0, o = void 0) {
340
340
  const { space: r } = e, a = `${r}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
341
341
  m(a, {
342
342
  method: "PATCH",
@@ -347,12 +347,12 @@ function Oe(e, t, s, n = void 0, i = void 0) {
347
347
  n && n(d);
348
348
  },
349
349
  onFailure(d) {
350
- i && i(d);
350
+ o && o(d);
351
351
  }
352
352
  });
353
353
  }
354
354
  function Ne(e, t, s = void 0, n = void 0) {
355
- const { space: i } = e, c = `${i}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
355
+ const { space: o } = e, c = `${o}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
356
356
  m(c, {
357
357
  opts: {
358
358
  method: "GET",
@@ -369,28 +369,28 @@ function Ne(e, t, s = void 0, n = void 0) {
369
369
  }
370
370
  });
371
371
  }
372
- async function E(e, t, s) {
372
+ async function G(e, t, s) {
373
373
  if (e.space) {
374
374
  const n = `${e.space}/resources/v1/application/CSRF`;
375
375
  m(n, {
376
- onComplete(i) {
377
- i = JSON.parse(i), t && t(i.csrf);
376
+ onComplete(o) {
377
+ o = JSON.parse(o), t && t(o.csrf);
378
378
  },
379
- onFailure(i, r, c) {
380
- s && s({ error: i, headers: r, xhr: c });
379
+ onFailure(o, r, c) {
380
+ s && s({ error: o, headers: r, xhr: c });
381
381
  }
382
382
  });
383
383
  }
384
384
  }
385
- async function G(e, t = void 0, s = void 0, n = void 0) {
386
- const i = e.space;
385
+ async function K(e, t = void 0, s = void 0, n = void 0) {
386
+ const o = e.space;
387
387
  if (t === void 0) {
388
388
  console.log("Le paramètre docid est obligatoire");
389
389
  return;
390
390
  }
391
- const r = i + `/resources/v1/modeler/documents/${t}`;
391
+ const r = o + `/resources/v1/modeler/documents/${t}`;
392
392
  m(r, {
393
- onComplete(c, a, o) {
393
+ onComplete(c, a, i) {
394
394
  const d = JSON.parse(c);
395
395
  s && s(d);
396
396
  },
@@ -403,12 +403,12 @@ function k(e, t = void 0, s = void 0) {
403
403
  if (e.objID && e.objID !== "") {
404
404
  let n = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
405
405
  m(n, {
406
- onComplete(i, r, c) {
407
- const a = JSON.parse(i);
406
+ onComplete(o, r, c) {
407
+ const a = JSON.parse(o);
408
408
  e.token = a?.csrf?.value, e.datas = a?.data[0], t && t(e);
409
409
  },
410
- onFailure(i) {
411
- s && s(i);
410
+ onFailure(o) {
411
+ s && s(o);
412
412
  }
413
413
  });
414
414
  } else
@@ -426,13 +426,13 @@ function T(e, t = void 0, s = void 0) {
426
426
  if (e.space) {
427
427
  const n = e.space + "/resources/v1/application/CSRF";
428
428
  m(n, {
429
- onComplete(i, r, c) {
430
- const a = JSON.parse(i);
429
+ onComplete(o, r, c) {
430
+ const a = JSON.parse(o);
431
431
  t && t(a.csrf.value);
432
432
  },
433
- onFailure(i, r, c) {
433
+ onFailure(o, r, c) {
434
434
  s && s({
435
- response: i,
435
+ response: o,
436
436
  headers: r,
437
437
  xhr: c
438
438
  });
@@ -445,7 +445,7 @@ function A(e, t = void 0, s = void 0) {
445
445
  let n = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
446
446
  k(
447
447
  e,
448
- (i) => {
448
+ (o) => {
449
449
  m(n, {
450
450
  method: "PUT",
451
451
  headers: {
@@ -460,12 +460,12 @@ function A(e, t = void 0, s = void 0) {
460
460
  }
461
461
  });
462
462
  },
463
- (i) => {
464
- console.warn("_3DSpace_get_ticket / error => ", i), s && s(i);
463
+ (o) => {
464
+ console.warn("_3DSpace_get_ticket / error => ", o), s && s(o);
465
465
  }
466
466
  );
467
467
  }
468
- function be(e, t, s, n = void 0, i = void 0) {
468
+ function be(e, t, s, n = void 0, o = void 0) {
469
469
  const r = `${e.space}/resources/v1/modeler/documents/${t}/files/DownloadTicket`;
470
470
  s || (s = e.token), m(r, {
471
471
  method: "PUT",
@@ -476,28 +476,28 @@ function be(e, t, s, n = void 0, i = void 0) {
476
476
  let a = JSON.parse(c);
477
477
  if (console.log("☠️ info => ", a), a.success === !0)
478
478
  try {
479
- const o = a.data[0].dataelements.ticketURL;
480
- n && n(o);
481
- } catch (o) {
482
- i && i(o);
479
+ const i = a.data[0].dataelements.ticketURL;
480
+ n && n(i);
481
+ } catch (i) {
482
+ o && o(i);
483
483
  }
484
484
  },
485
485
  onFailure(c) {
486
- i && i(c);
486
+ o && o(c);
487
487
  }
488
488
  });
489
489
  }
490
- function K(e, t, s, n, i, r = void 0, c = void 0) {
490
+ function X(e, t, s, n, o, r = void 0, c = void 0) {
491
491
  k(
492
492
  e,
493
493
  t,
494
494
  (a) => {
495
- X(
495
+ V(
496
496
  e,
497
497
  t,
498
498
  s,
499
499
  n,
500
- i,
500
+ o,
501
501
  a.csrf.value,
502
502
  r,
503
503
  c
@@ -505,16 +505,16 @@ function K(e, t, s, n, i, r = void 0, c = void 0) {
505
505
  }
506
506
  );
507
507
  }
508
- function X(e, t, s, n, i, r, c = void 0, a = void 0) {
509
- const o = e.space + `/resources/v1/modeler/documents/${t}/files/CheckinTicket`;
510
- m(o, {
508
+ function V(e, t, s, n, o, r, c = void 0, a = void 0) {
509
+ const i = e.space + `/resources/v1/modeler/documents/${t}/files/CheckinTicket`;
510
+ m(i, {
511
511
  method: "PUT",
512
512
  headers: {
513
513
  ENO_CSRF_TOKEN: r
514
514
  },
515
515
  onComplete(d, l, p) {
516
516
  const u = JSON.parse(d).data[0].dataelements, f = new FormData();
517
- f.append("__fcs__jobTicket", u.ticket), f.append("file_0", n, i);
517
+ f.append("__fcs__jobTicket", u.ticket), f.append("file_0", n, o);
518
518
  const g = {};
519
519
  g.method = "POST", g.data = f, g.onComplete = function(h) {
520
520
  let S = "temp_" + Date.now(), _ = {
@@ -529,7 +529,7 @@ function X(e, t, s, n, i, r, c = void 0, a = void 0) {
529
529
  files: [{
530
530
  id: s,
531
531
  dataelements: {
532
- title: i,
532
+ title: o,
533
533
  receipt: h
534
534
  },
535
535
  updateAction: "REVISE"
@@ -556,12 +556,12 @@ function X(e, t, s, n, i, r, c = void 0, a = void 0) {
556
556
  }
557
557
  });
558
558
  }
559
- async function ke(e, t, s, n, i = void 0, r = void 0) {
560
- const c = e.space, a = e.token, o = e.ctx, d = new FormData(), l = new Blob([JSON.stringify(t)], {
559
+ async function ke(e, t, s, n, o = void 0, r = void 0) {
560
+ const c = e.space, a = e.token, i = e.ctx, d = new FormData(), l = new Blob([JSON.stringify(t)], {
561
561
  type: "text/plain"
562
562
  }), p = {
563
563
  url_Ticket: `${c}/resources/v1/modeler/documents/files/CheckinTicket`,
564
- url_Post: `${c}/resources/v1/modeler/documents/?SecurityContext=ctx::${o}`
564
+ url_Post: `${c}/resources/v1/modeler/documents/?SecurityContext=ctx::${i}`
565
565
  };
566
566
  if (!c && c !== "") {
567
567
  console.log("le store._3DSpace est vide");
@@ -579,7 +579,7 @@ async function ke(e, t, s, n, i = void 0, r = void 0) {
579
579
  method: "POST",
580
580
  data: d,
581
581
  onComplete(C) {
582
- if (o !== "" && a !== "") {
582
+ if (i !== "" && a !== "") {
583
583
  const F = {
584
584
  method: "POST",
585
585
  headers: {
@@ -611,14 +611,14 @@ async function ke(e, t, s, n, i = void 0, r = void 0) {
611
611
  onComplete: _,
612
612
  onFailure: y
613
613
  };
614
- o !== "" && m(p.url_Post, F);
614
+ i !== "" && m(p.url_Post, F);
615
615
  } else
616
616
  console.warn("le store est vide");
617
617
  },
618
618
  onFailure: y
619
619
  };
620
620
  function _(C) {
621
- console.log("Success -- response ", C.data[0]), i && i(C);
621
+ console.log("Success -- response ", C.data[0]), o && o(C);
622
622
  }
623
623
  function y(C, F) {
624
624
  console.log("Erreur -- response ", C, `
@@ -628,12 +628,12 @@ async function ke(e, t, s, n, i = void 0, r = void 0) {
628
628
  }
629
629
  });
630
630
  }
631
- function b(e, t = void 0, s = void 0, n = void 0, i = void 0, r = void 0, c = !1) {
631
+ function N(e, t = void 0, s = void 0, n = void 0, o = void 0, r = void 0, c = !1) {
632
632
  const a = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
633
633
  m(a, {
634
634
  method: "GET",
635
- onComplete(o) {
636
- const d = JSON.parse(o);
635
+ onComplete(i) {
636
+ const d = JSON.parse(i);
637
637
  let l = "", p, u, f;
638
638
  if (t) {
639
639
  let g = d.collabspaces.find((h) => h.title === t);
@@ -667,11 +667,11 @@ function b(e, t = void 0, s = void 0, n = void 0, i = void 0, r = void 0, c = !1
667
667
  }));
668
668
  }
669
669
  }
670
- p && u && f ? (l = f + "." + u + "." + p, i(l)) : d.preferredcredentials && c ? (l = d.preferredcredentials.role.name + "." + d.preferredcredentials.organization.title + "." + d.preferredcredentials.collabspace.title, i(l)) : r && (l = f + "." + u + "." + p, r(l));
670
+ p && u && f ? (l = f + "." + u + "." + p, o(l)) : d.preferredcredentials && c ? (l = d.preferredcredentials.role.name + "." + d.preferredcredentials.organization.title + "." + d.preferredcredentials.collabspace.title, o(l)) : r && (l = f + "." + u + "." + p, r(l));
671
671
  },
672
- onFailure(o, d) {
672
+ onFailure(i, d) {
673
673
  console.log("Erreur de récupération du contexte de sécurité. => ", {
674
- err: o,
674
+ err: i,
675
675
  headers: d
676
676
  });
677
677
  }
@@ -682,7 +682,7 @@ async function v(e, t = void 0, s = void 0) {
682
682
  "_3DSpace_download_doc() / Le paramètre objectId est obligatoire"
683
683
  ), (e.space === "" || !e.space) && console.warn(
684
684
  "_3DSpace_download_doc() / Le paramètre space est obligatoire"
685
- ), (e.token === "" || !e.token) && (E(
685
+ ), (e.token === "" || !e.token) && (G(
686
686
  e,
687
687
  (n) => {
688
688
  e.token = n;
@@ -692,7 +692,7 @@ async function v(e, t = void 0, s = void 0) {
692
692
  }
693
693
  ), console.warn(
694
694
  "_3DSpace_download_doc() / Le paramètre token est obligatoire"
695
- )), new Promise((n, i) => {
695
+ )), new Promise((n, o) => {
696
696
  A(
697
697
  e,
698
698
  (r) => {
@@ -702,49 +702,49 @@ async function v(e, t = void 0, s = void 0) {
702
702
  Accept: "application/json"
703
703
  },
704
704
  onComplete(a) {
705
- let o;
705
+ let i;
706
706
  try {
707
- o = JSON.parse(a);
707
+ i = JSON.parse(a);
708
708
  } catch {
709
- o = a;
709
+ i = a;
710
710
  }
711
- t && t(o), n(o);
711
+ t && t(i), n(i);
712
712
  },
713
- onFailure(a, o, d) {
713
+ onFailure(a, i, d) {
714
714
  s && (console.log("error http", a), s({
715
715
  msg: JSON.parse(a),
716
- headers: o,
716
+ headers: i,
717
717
  xhr: d
718
- }), i({
718
+ }), o({
719
719
  msg: JSON.parse(a),
720
- headers: o,
720
+ headers: i,
721
721
  xhr: d
722
722
  }));
723
723
  }
724
724
  });
725
725
  },
726
726
  (r) => {
727
- s && s(r), console.log("*_3dspace_download_doc / error file URL *", r), i(r);
727
+ s && s(r), console.log("*_3dspace_download_doc / error file URL *", r), o(r);
728
728
  }
729
729
  );
730
730
  });
731
731
  }
732
732
  async function W(e, t, s = void 0, n = void 0) {
733
- let i = [];
733
+ let o = [];
734
734
  if (typeof t < "u" && Array.isArray(t) && t?.length > 0) {
735
735
  for (let a = 0; a < t.length; a += 80) {
736
- const o = t.slice(a, a + 80);
737
- i.push(o);
736
+ const i = t.slice(a, a + 80);
737
+ o.push(i);
738
738
  }
739
739
  const c = (a) => {
740
- V(
740
+ B(
741
741
  e,
742
- i[a],
742
+ o[a],
743
743
  () => {
744
- a++, a < i.length && c(a);
744
+ a++, a < o.length && c(a);
745
745
  },
746
- (o) => {
747
- s && s(o);
746
+ (i) => {
747
+ s && s(i);
748
748
  }
749
749
  );
750
750
  };
@@ -752,11 +752,11 @@ async function W(e, t, s = void 0, n = void 0) {
752
752
  } else
753
753
  console.warn("La liste d'objects dans la fonction _3DSpace_download_multidoc est vide ou non défini."), n && n("La liste d'objects dans la fonction _3DSpace_download_multidoc est vide ou non défini.");
754
754
  }
755
- function V(e, t, s = void 0, n = void 0, i = void 0) {
755
+ function B(e, t, s = void 0, n = void 0, o = void 0) {
756
756
  const r = [];
757
- t.forEach((o) => {
757
+ t.forEach((i) => {
758
758
  r.push({
759
- id: o
759
+ id: i
760
760
  });
761
761
  });
762
762
  let c = JSON.stringify({
@@ -771,9 +771,9 @@ function V(e, t, s = void 0, n = void 0, i = void 0) {
771
771
  method: "PUT",
772
772
  data: c,
773
773
  type: "json",
774
- onComplete(o) {
775
- const d = o.data;
776
- o.success === !0 && (s && s(), d.forEach((l) => {
774
+ onComplete(i) {
775
+ const d = i.data;
776
+ i.success === !0 && (s && s(), d.forEach((l) => {
777
777
  try {
778
778
  const p = l.dataelements.fileName, u = l.dataelements.ticketURL;
779
779
  m(u, {
@@ -789,20 +789,20 @@ function V(e, t, s = void 0, n = void 0, i = void 0) {
789
789
  }
790
790
  });
791
791
  } catch (p) {
792
- console.log(p), i && i(p);
792
+ console.log(p), o && o(p);
793
793
  }
794
794
  }));
795
795
  },
796
- onFailure(o) {
797
- console.log(o), i && i(o);
796
+ onFailure(i) {
797
+ console.log(i), o && o(i);
798
798
  }
799
799
  });
800
800
  }
801
801
  function Fe(e, t, s = void 0, n = void 0) {
802
- return new Promise((i) => {
802
+ return new Promise((o) => {
803
803
  if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
804
804
  const r = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
805
- b(
805
+ N(
806
806
  e.space,
807
807
  "ESPACE COMMUN",
808
808
  ["VPLMProjectLeader", "VPLMCreator"],
@@ -837,18 +837,18 @@ function Fe(e, t, s = void 0, n = void 0) {
837
837
  }
838
838
  });
839
839
  }
840
- function De(e, t, s, n = void 0, i = void 0) {
840
+ function De(e, t, s, n = void 0, o = void 0) {
841
841
  return new Promise((r) => {
842
842
  if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
843
843
  const c = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
844
- b(
844
+ N(
845
845
  e.space,
846
846
  "ESPACE COMMUN",
847
847
  ["VPLMProjectLeader", "VPLMCreator"],
848
848
  void 0,
849
- (o) => e.ctx = o,
850
- (o) => {
851
- console.log("onError =>", o);
849
+ (i) => e.ctx = i,
850
+ (i) => {
851
+ console.log("onError =>", i);
852
852
  }
853
853
  );
854
854
  let a = {
@@ -866,11 +866,11 @@ function De(e, t, s, n = void 0, i = void 0) {
866
866
  }]
867
867
  }),
868
868
  type: "json",
869
- onComplete(o) {
870
- n && n(o);
869
+ onComplete(i) {
870
+ n && n(i);
871
871
  },
872
- onFailure(o) {
873
- i && i(o);
872
+ onFailure(i) {
873
+ o && o(i);
874
874
  }
875
875
  };
876
876
  m(c, a);
@@ -878,10 +878,10 @@ function De(e, t, s, n = void 0, i = void 0) {
878
878
  });
879
879
  }
880
880
  function Ae(e, t, s = void 0, n = void 0) {
881
- return new Promise((i) => {
881
+ return new Promise((o) => {
882
882
  if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
883
883
  const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
884
- b(
884
+ N(
885
885
  e.space,
886
886
  "ESPACE COMMUN",
887
887
  ["VPLMProjectLeader", "VPLMCreator"],
@@ -917,10 +917,10 @@ function Ae(e, t, s = void 0, n = void 0) {
917
917
  });
918
918
  }
919
919
  function $e(e, t, s = void 0, n = void 0) {
920
- return new Promise((i) => {
920
+ return new Promise((o) => {
921
921
  if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
922
922
  const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
923
- b(
923
+ N(
924
924
  e.space,
925
925
  "ESPACE COMMUN",
926
926
  ["VPLMProjectLeader", "VPLMCreator"],
@@ -961,18 +961,18 @@ function $e(e, t, s = void 0, n = void 0) {
961
961
  }
962
962
  });
963
963
  }
964
- function Ue(e, t, s, n = void 0, i = void 0) {
964
+ function Ue(e, t, s, n = void 0, o = void 0) {
965
965
  return new Promise((r) => {
966
966
  if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
967
967
  const c = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
968
- b(
968
+ N(
969
969
  e.space,
970
970
  "ESPACE COMMUN",
971
971
  ["VPLMProjectLeader", "VPLMCreator"],
972
972
  void 0,
973
- (o) => e.ctx = o,
974
- (o) => {
975
- console.log("onError =>", o);
973
+ (i) => e.ctx = i,
974
+ (i) => {
975
+ console.log("onError =>", i);
976
976
  }
977
977
  );
978
978
  let a = {
@@ -995,11 +995,11 @@ function Ue(e, t, s, n = void 0, i = void 0) {
995
995
  notificationTimeout: 600
996
996
  }),
997
997
  type: "json",
998
- onComplete(o) {
999
- n && n(o);
998
+ onComplete(i) {
999
+ n && n(i);
1000
1000
  },
1001
- onFailure(o) {
1002
- i && i(o);
1001
+ onFailure(i) {
1002
+ o && o(i);
1003
1003
  }
1004
1004
  };
1005
1005
  m(c, a);
@@ -1007,17 +1007,30 @@ function Ue(e, t, s, n = void 0, i = void 0) {
1007
1007
  });
1008
1008
  }
1009
1009
  function je(e, t, s = void 0, n = void 0) {
1010
- return new Promise((i) => {
1011
- if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
1012
- const r = N.now().ts;
1010
+ return new Promise((o) => {
1011
+ if (e.token === "" && T(e), !e.space || e.space === "") {
1012
+ const r = J();
1013
+ console.log("platformeInfo", r);
1014
+ }
1015
+ if (N(
1016
+ e.space,
1017
+ "ESPACE COMMUN",
1018
+ ["VPLMProjectLeader", "VPLMCreator"],
1019
+ void 0,
1020
+ (r) => e.ctx = r,
1021
+ (r) => {
1022
+ console.log("onError =>", r);
1023
+ }
1024
+ ), t !== void 0 && t !== "" && t !== null) {
1025
+ const r = b.now().ts;
1013
1026
  `${e.space}`;
1014
- const c = `https://eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dsearch&platformId=${e.tenant}`;
1027
+ const c = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dsearch&platformId=${e.tenant}`;
1015
1028
  m(c, {
1016
1029
  onComplete(a) {
1017
1030
  if (Array.isArray(JSON.parse(a))) {
1018
- const o = JSON.parse(a);
1019
- console.log("serviceId=3dsearch", o);
1020
- const d = `${o[0].services[0].url}/search?xrequestedwith=xmlhttprequest&tenant=${e.tenant}&timestamp=${r}`;
1031
+ const i = JSON.parse(a);
1032
+ console.log("serviceId=3dsearch", i);
1033
+ const d = `${i[0].services[0].url}/search?xrequestedwith=xmlhttprequest&tenant=${e.tenant}&timestamp=${r}`;
1021
1034
  m(d, {
1022
1035
  method: "POST",
1023
1036
  headers: {
@@ -1029,7 +1042,7 @@ function je(e, t, s = void 0, n = void 0) {
1029
1042
  data: JSON.stringify({
1030
1043
  with_indexing_date: !0,
1031
1044
  with_nls: !1,
1032
- label: `yus-${r}`,
1045
+ label: `3DSearch-${r}`,
1033
1046
  locale: "en",
1034
1047
  select_predicate: [
1035
1048
  "ds6w:label",
@@ -1052,7 +1065,12 @@ function je(e, t, s = void 0, n = void 0) {
1052
1065
  "3dspace",
1053
1066
  "usersgroup"
1054
1067
  ],
1055
- tenant: e._platformId
1068
+ tenant: e.tenant,
1069
+ login: {
1070
+ "3dspace": {
1071
+ SecurityContext: `ctx::${e.ctx}`
1072
+ }
1073
+ }
1056
1074
  }),
1057
1075
  type: "json",
1058
1076
  onComplete(l) {
@@ -1093,8 +1111,8 @@ function Re(e, t = void 0, s = void 0) {
1093
1111
  base: `${e.space}`,
1094
1112
  uri: "/resources/bps/cspaces",
1095
1113
  optTenant: `tenant=${e.tenant}`
1096
- }, i = `${n.base}${n.uri}?${n.optTenant}`;
1097
- m(i, {
1114
+ }, o = `${n.base}${n.uri}?${n.optTenant}`;
1115
+ m(o, {
1098
1116
  method: "GET",
1099
1117
  headers: {
1100
1118
  Accept: "application/json,text/javascript,*/*",
@@ -1113,8 +1131,8 @@ function ve(e, t, s, n) {
1113
1131
  A(
1114
1132
  e.space,
1115
1133
  t,
1116
- (i) => {
1117
- m(i, {
1134
+ (o) => {
1135
+ m(o, {
1118
1136
  header: { ENO_CSRF_TOKEN: e.token },
1119
1137
  onComplete: (r) => {
1120
1138
  s && s(r);
@@ -1127,35 +1145,35 @@ function ve(e, t, s, n) {
1127
1145
  );
1128
1146
  }
1129
1147
  async function Ie(e, t, s = void 0, n = void 0) {
1130
- return new Promise((i) => {
1148
+ return new Promise((o) => {
1131
1149
  A(e, t, (r) => {
1132
1150
  m(r, {
1133
- onComplete: (c, a, o) => (i(JSON.parse(c)), s && s(JSON.parse(c), a, o), i),
1134
- onFailure: (c, a, o) => {
1135
- n && n(c, a, o), console.log(c, a?.errormsg);
1151
+ onComplete: (c, a, i) => (o(JSON.parse(c)), s && s(JSON.parse(c), a, i), o),
1152
+ onFailure: (c, a, i) => {
1153
+ n && n(c, a, i), console.log(c, a?.errormsg);
1136
1154
  }
1137
1155
  });
1138
1156
  });
1139
1157
  });
1140
1158
  }
1141
- function xe(e, t, s, n = void 0, i = void 0) {
1159
+ function xe(e, t, s, n = void 0, o = void 0) {
1142
1160
  const r = new Blob([JSON.stringify(t)], { type: "text/plain" });
1143
1161
  k(
1144
1162
  e,
1145
1163
  s,
1146
1164
  (c) => {
1147
- const a = c.data[0].relateddata.files[0].id, o = c.data[0].dataelements.secondaryTitle !== "" ? c.data[0].dataelements.secondaryTitle : c.data[0].dataelements.title;
1148
- K(
1165
+ const a = c.data[0].relateddata.files[0].id, i = c.data[0].dataelements.secondaryTitle !== "" ? c.data[0].dataelements.secondaryTitle : c.data[0].dataelements.title;
1166
+ X(
1149
1167
  e,
1150
1168
  s,
1151
1169
  a,
1152
1170
  r,
1153
- o,
1171
+ i,
1154
1172
  (d) => {
1155
1173
  n && n(d);
1156
1174
  },
1157
1175
  (d) => {
1158
- i && i(d);
1176
+ o && o(d);
1159
1177
  }
1160
1178
  );
1161
1179
  }
@@ -1186,8 +1204,8 @@ async function Me(e, t = void 0, s = void 0) {
1186
1204
  console.log("getDatasByTenant (getDocuments)", e), await v(
1187
1205
  e,
1188
1206
  (n) => {
1189
- const i = {};
1190
- i.obj = n, console.log("getDatasByTenant (getDocuments) _datas", i), t && t?.(i);
1207
+ const o = {};
1208
+ o.obj = n, console.log("getDatasByTenant (getDocuments) _datas", o), t && t?.(o);
1191
1209
  },
1192
1210
  (n) => {
1193
1211
  s && s?.(n);
@@ -1200,30 +1218,30 @@ function Le(e, t = void 0, s = void 0) {
1200
1218
  console.warn("la liste est vide ou n'est pas un tableau");
1201
1219
  return;
1202
1220
  }
1203
- e.objIds.forEach((i, r) => {
1221
+ e.objIds.forEach((o, r) => {
1204
1222
  v(
1205
1223
  e,
1206
- i.objID,
1224
+ o.objID,
1207
1225
  (c) => {
1208
- n.push({ [i.name]: c }), i.name === "dbProjets" && (I = c.affaires.map((a) => a.objectID), B(e, x)), r === e.objIds.length - 1 && (t && t(n), delete e.objIds, delete e.datas);
1226
+ n.push({ [o.name]: c }), o.name === "dbProjets" && (I = c.affaires.map((a) => a.objectID), Y(e, x)), r === e.objIds.length - 1 && (t && t(n), delete e.objIds, delete e.datas);
1209
1227
  }
1210
1228
  );
1211
1229
  });
1212
1230
  }
1213
- function B(e, t, s = void 0, n = void 0) {
1231
+ function Y(e, t, s = void 0, n = void 0) {
1214
1232
  W(
1215
1233
  e,
1216
1234
  I,
1217
- (i) => {
1235
+ (o) => {
1218
1236
  const r = [...t];
1219
- r.find((c) => c.objectID === i.objectId).data = i.data, x = r, $.push(i.data), s && s($);
1237
+ r.find((c) => c.objectID === o.objectId).data = o.data, x = r, $.push(o.data), s && s($);
1220
1238
  },
1221
- (i) => {
1222
- n && (n(i), console.log(i));
1239
+ (o) => {
1240
+ n && (n(o), console.log(o));
1223
1241
  }
1224
1242
  );
1225
1243
  }
1226
- const Y = "FA35FB9B177A280065800EA0000F599C", q = [
1244
+ const q = "FA35FB9B177A280065800EA0000F599C", H = [
1227
1245
  "swym",
1228
1246
  "3dspace",
1229
1247
  "drive",
@@ -1237,18 +1255,18 @@ const Y = "FA35FB9B177A280065800EA0000F599C", q = [
1237
1255
  where: "ds6w:where",
1238
1256
  who: "ds6w:who",
1239
1257
  why: "ds6w:why"
1240
- }, H = {
1241
- objId: Y,
1258
+ }, z = {
1259
+ objId: q,
1242
1260
  pred: "who",
1243
1261
  order_by: "desc",
1244
1262
  tag: "testTag"
1245
1263
  };
1246
1264
  function Je(e, t, s = void 0, n = void 0) {
1247
- const { space: i, tenant: r } = e, { objId: c, pred: a, tag: o } = t, d = {
1265
+ const { space: o, tenant: r } = e, { objId: c, pred: a, tag: i } = t, d = {
1248
1266
  uri: "/resources/6w/tags",
1249
1267
  otpCTX: "SecurityContext=preferred",
1250
1268
  optTenant: `tenant=${r}`
1251
- }, l = `${i}${d.uri}?${d.otpCTX}&${d.optTenant}`, p = {
1269
+ }, l = `${o}${d.uri}?${d.otpCTX}&${d.optTenant}`, p = {
1252
1270
  tag: [
1253
1271
  {
1254
1272
  subject: [
@@ -1258,7 +1276,7 @@ function Je(e, t, s = void 0, n = void 0) {
1258
1276
  ],
1259
1277
  predicate: P[a],
1260
1278
  object: {
1261
- literal: o
1279
+ literal: i
1262
1280
  }
1263
1281
  }
1264
1282
  ]
@@ -1274,12 +1292,12 @@ function Je(e, t, s = void 0, n = void 0) {
1274
1292
  JSON.parse(u);
1275
1293
  const f = {};
1276
1294
  setTimeout(() => {
1277
- G(
1295
+ K(
1278
1296
  e,
1279
1297
  c,
1280
1298
  (g) => {
1281
1299
  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;
1282
- f.name = h, f.ext = S, f.createBy = _, t.info = { ...f }, z(
1300
+ f.name = h, f.ext = S, f.createBy = _, t.info = { ...f }, Q(
1283
1301
  e,
1284
1302
  t,
1285
1303
  (y) => {
@@ -1303,19 +1321,19 @@ function Je(e, t, s = void 0, n = void 0) {
1303
1321
  }
1304
1322
  });
1305
1323
  }
1306
- function z(e, t, s = void 0, n = void 0) {
1324
+ function Q(e, t, s = void 0, n = void 0) {
1307
1325
  console.log("obj ", t);
1308
- const i = t.info.name, r = {
1326
+ const o = t.info.name, r = {
1309
1327
  baseUrl: `https://${e.tenant.toLowerCase()}-eu1-fedsearch.3dexperience.3ds.com`,
1310
1328
  uri: "/federated/search"
1311
1329
  }, c = `${r.baseUrl}${r.uri}`, a = {
1312
1330
  "Content-Type": "application/json",
1313
1331
  Accept: "application/json,text/javascript,*/*"
1314
- }, o = R(), d = {
1332
+ }, i = R(), d = {
1315
1333
  with_indexing_date: !0,
1316
1334
  with_synthesis: !0,
1317
1335
  with_nls: !1,
1318
- label: `3DSearch-${e.currentUser.username}-AjoutDeTagBeam-${o}`,
1336
+ label: `3DSearch-${e.currentUser.username}-AjoutDeTagBeam-${i}`,
1319
1337
  locale: "fr",
1320
1338
  select_predicate: [
1321
1339
  "ds6w:label",
@@ -1343,7 +1361,7 @@ function z(e, t, s = void 0, n = void 0) {
1343
1361
  ],
1344
1362
  with_synthesis_hierarchical: !0,
1345
1363
  select_file: ["icon", "thumbnail_2d"],
1346
- query: i,
1364
+ query: o,
1347
1365
  specific_source_parameter: {
1348
1366
  "3dspace": {
1349
1367
  additional_query: ' AND NOT (owner:"ENOVIA_CLOUD" OR owner:"Service Creator" OR owner:"Corporate" OR owner:"User Agent" OR owner:"SLMInstallerAdmin" OR owner:"Creator" OR owner:"VPLMAdminUser") AND (ds6w_58_islastrevisionperstate:true OR NOT listoffields:ds6w_58_islastrevisionperstate)'
@@ -1353,7 +1371,7 @@ function z(e, t, s = void 0, n = void 0) {
1353
1371
  }
1354
1372
  },
1355
1373
  select_exclude_synthesis: ["ds6w:what/ds6w:topic"],
1356
- order_by: H.order_by,
1374
+ order_by: z.order_by,
1357
1375
  order_field: "relevance",
1358
1376
  select_snippets: [
1359
1377
  "ds6w:snippet",
@@ -1364,7 +1382,7 @@ function z(e, t, s = void 0, n = void 0) {
1364
1382
  ],
1365
1383
  nresults: 40,
1366
1384
  start: "0",
1367
- source: q,
1385
+ source: H,
1368
1386
  tenant: e.tenant,
1369
1387
  login: {
1370
1388
  "3dspace": {
@@ -1387,16 +1405,16 @@ function z(e, t, s = void 0, n = void 0) {
1387
1405
  });
1388
1406
  }
1389
1407
  function Ee(e, t, s = void 0, n = void 0) {
1390
- const { objId: i, pred: r, tag: c } = t, a = {
1408
+ const { objId: o, pred: r, tag: c } = t, a = {
1391
1409
  uri: "/resources/6w/tags",
1392
1410
  otpCTX: "SecurityContext=preferred",
1393
1411
  optTenant: `tenant=${e.tenant}`
1394
- }, o = `${e.space}${a.uri}?${a.otpCTX}&${a.optTenant}`, d = {
1412
+ }, i = `${e.space}${a.uri}?${a.otpCTX}&${a.optTenant}`, d = {
1395
1413
  tag: [
1396
1414
  {
1397
1415
  subject: [
1398
1416
  {
1399
- uri: `pid://${i}`
1417
+ uri: `pid://${o}`
1400
1418
  }
1401
1419
  ],
1402
1420
  predicate: P[r],
@@ -1406,7 +1424,7 @@ function Ee(e, t, s = void 0, n = void 0) {
1406
1424
  }
1407
1425
  ]
1408
1426
  };
1409
- m(o, {
1427
+ m(i, {
1410
1428
  method: "DELETE",
1411
1429
  data: JSON.stringify(d),
1412
1430
  headers: {
@@ -1423,7 +1441,7 @@ function Ee(e, t, s = void 0, n = void 0) {
1423
1441
  });
1424
1442
  }
1425
1443
  function Ge(e, t = "", s = void 0, n = void 0) {
1426
- const { space: i } = e;
1444
+ const { space: o } = e;
1427
1445
  if (t === "")
1428
1446
  return;
1429
1447
  const r = {
@@ -1431,11 +1449,11 @@ function Ge(e, t = "", s = void 0, n = void 0) {
1431
1449
  }, c = {
1432
1450
  "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
1433
1451
  Accept: "application/json,text/javascript,*/*"
1434
- }, a = `${i}${r.uri}`, o = `$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}`;
1452
+ }, a = `${o}${r.uri}`, i = `$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}`;
1435
1453
  m(a, {
1436
1454
  method: "POST",
1437
1455
  headers: c,
1438
- data: o,
1456
+ data: i,
1439
1457
  onComplete(d) {
1440
1458
  s && s(JSON.parse(d));
1441
1459
  },
@@ -1448,18 +1466,18 @@ function Ge(e, t = "", s = void 0, n = void 0) {
1448
1466
  async function w(e, t = void 0, s = void 0) {
1449
1467
  const n = e.space + "/api/index/tk";
1450
1468
  return m(n, {
1451
- onComplete(i, r, c) {
1452
- const a = JSON.parse(i);
1469
+ onComplete(o, r, c) {
1470
+ const a = JSON.parse(o);
1453
1471
  if (t)
1454
1472
  return t(a), e.token = a?.result?.ServerToken;
1455
1473
  },
1456
- onFailure(i) {
1457
- s && s(i);
1474
+ onFailure(o) {
1475
+ s && s(o);
1458
1476
  }
1459
1477
  });
1460
1478
  }
1461
1479
  function Ke(e, t = void 0, s = void 0) {
1462
- const n = `${e.space}/api/exalead/whatsnew`, i = {
1480
+ const n = `${e.space}/api/exalead/whatsnew`, o = {
1463
1481
  params: {
1464
1482
  community_id: null,
1465
1483
  hash_key: null,
@@ -1477,7 +1495,7 @@ function Ke(e, t = void 0, s = void 0) {
1477
1495
  "Content-type": "application/json;charset=UTF-8",
1478
1496
  Accept: "application/json"
1479
1497
  },
1480
- data: JSON.stringify(i),
1498
+ data: JSON.stringify(o),
1481
1499
  type: "json",
1482
1500
  onComplete(c, a) {
1483
1501
  t && t(c, a);
@@ -1489,7 +1507,7 @@ function Ke(e, t = void 0, s = void 0) {
1489
1507
  });
1490
1508
  }
1491
1509
  function Xe(e, t = void 0, s = void 0) {
1492
- const n = `${e.space}/api/Recommendation/getpeoplefamiliartocurrentuser`, i = {
1510
+ const n = `${e.space}/api/Recommendation/getpeoplefamiliartocurrentuser`, o = {
1493
1511
  params: {
1494
1512
  idsToFilterArr: [],
1495
1513
  mode: "offline",
@@ -1506,11 +1524,11 @@ function Xe(e, t = void 0, s = void 0) {
1506
1524
  "Content-type": "application/json;charset=UTF-8",
1507
1525
  Accept: "application/json"
1508
1526
  },
1509
- data: JSON.stringify(i),
1527
+ data: JSON.stringify(o),
1510
1528
  type: "json",
1511
1529
  onComplete(c, a) {
1512
- const o = c.result.hits.map((d) => ({ login: d.login, fullName: d.name }));
1513
- t && t(o, c);
1530
+ const i = c.result.hits.map((d) => ({ login: d.login, fullName: d.name }));
1531
+ t && t(i, c);
1514
1532
  },
1515
1533
  onFailure(c, a) {
1516
1534
  s && s(c, a);
@@ -1518,20 +1536,20 @@ function Xe(e, t = void 0, s = void 0) {
1518
1536
  });
1519
1537
  });
1520
1538
  }
1521
- function We(e, t = void 0, s = void 0) {
1539
+ function Ve(e, t = void 0, s = void 0) {
1522
1540
  const n = {
1523
1541
  base: e.space,
1524
1542
  uri: "/api/community/listmycommunities",
1525
1543
  limit: `/limit/${e.limit ? e.limit : 128}`,
1526
1544
  page: `/page/${e.page ? e.page : "1"}`
1527
- }, i = `${n.base}${n.uri}${n.limit}${n.page}`, r = [];
1545
+ }, o = `${n.base}${n.uri}${n.limit}${n.page}`, r = [];
1528
1546
  w(e, (c) => {
1529
- m(i, {
1547
+ m(o, {
1530
1548
  method: "GET",
1531
1549
  headers: {
1532
1550
  "X-DS-SWYM-CSRFTOKEN": c.result.ServerToken
1533
1551
  },
1534
- onComplete(a, o, d) {
1552
+ onComplete(a, i, d) {
1535
1553
  const p = JSON.parse(a).result;
1536
1554
  let u = 0;
1537
1555
  p.forEach((f) => {
@@ -1543,7 +1561,7 @@ function We(e, t = void 0, s = void 0) {
1543
1561
  role: f.role,
1544
1562
  access: f.access
1545
1563
  };
1546
- Q(
1564
+ Z(
1547
1565
  e,
1548
1566
  f.id,
1549
1567
  (h) => {
@@ -1553,15 +1571,15 @@ function We(e, t = void 0, s = void 0) {
1553
1571
  );
1554
1572
  });
1555
1573
  },
1556
- onFailure(a, o) {
1574
+ onFailure(a, i) {
1557
1575
  const d = a;
1558
- d.status = o.status, d.response = o.errormsg, s && s(d);
1576
+ d.status = i.status, d.response = i.errormsg, s && s(d);
1559
1577
  }
1560
1578
  });
1561
1579
  });
1562
1580
  }
1563
- function Q(e, t, s, n) {
1564
- const i = `${e.space}/api/community/listmembers`, r = {
1581
+ function Z(e, t, s, n) {
1582
+ const o = `${e.space}/api/community/listmembers`, r = {
1565
1583
  params: {
1566
1584
  page: e.page ? e.page : 1,
1567
1585
  limit: e.limit ? e.limit : 50,
@@ -1569,7 +1587,7 @@ function Q(e, t, s, n) {
1569
1587
  }
1570
1588
  };
1571
1589
  w(e, (c) => {
1572
- m(i, {
1590
+ m(o, {
1573
1591
  method: "POST",
1574
1592
  headers: {
1575
1593
  "Content-type": "application/json;charset=UTF-8",
@@ -1578,22 +1596,22 @@ function Q(e, t, s, n) {
1578
1596
  },
1579
1597
  data: JSON.stringify(r),
1580
1598
  type: "json",
1581
- onComplete(a, o, d) {
1599
+ onComplete(a, i, d) {
1582
1600
  s && s(a);
1583
1601
  },
1584
- onFailure(a, o) {
1602
+ onFailure(a, i) {
1585
1603
  const d = a;
1586
- d.status = o.status, d.response = o.errormsg, n && n(d);
1604
+ d.status = i.status, d.response = i.errormsg, n && n(d);
1587
1605
  }
1588
1606
  });
1589
1607
  });
1590
1608
  }
1591
- function Ve(e, t = void 0, s = void 0) {
1609
+ function We(e, t = void 0, s = void 0) {
1592
1610
  const n = "YXdA5x4DSUKtlAi2wmnyTA";
1593
1611
  e.commu_id || (e.commu_id = n);
1594
- const i = `${e.space}/api/v2/communities/${e.commu_id}/ideas/statuses`;
1612
+ const o = `${e.space}/api/v2/communities/${e.commu_id}/ideas/statuses`;
1595
1613
  w(e, (r) => {
1596
- m(i, {
1614
+ m(o, {
1597
1615
  method: "GET",
1598
1616
  headers: {
1599
1617
  "Content-type": "application/json;charset=UTF-8",
@@ -1605,31 +1623,31 @@ function Ve(e, t = void 0, s = void 0) {
1605
1623
  t && t(a);
1606
1624
  },
1607
1625
  onFailure(c, a) {
1608
- const o = c;
1609
- o.status = a.status, o.response = a.errormsg, s && s(o);
1626
+ const i = c;
1627
+ i.status = a.status, i.response = a.errormsg, s && s(i);
1610
1628
  }
1611
1629
  });
1612
1630
  });
1613
1631
  }
1614
1632
  function Be(e, t, s = void 0, n = void 0) {
1615
- const { listAllContacts: i, currentUser: r } = e;
1616
- console.log("__listAllContacts", i.hits);
1633
+ const { listAllContacts: o, currentUser: r } = e;
1634
+ console.log("__listAllContacts", o.hits);
1617
1635
  const c = `${e.space}/api/directmessages`, a = {
1618
1636
  users: [r.login].concat(t.receipt)
1619
- }, o = {
1637
+ }, i = {
1620
1638
  id_msg: "",
1621
1639
  senderId: e.currentUser.login,
1622
1640
  senderName: `${e.currentUser.first_name} ${e.currentUser.last_name}`,
1623
- msg: ee(t.msg)
1641
+ msg: te(t.msg)
1624
1642
  };
1625
1643
  let d = !1;
1626
- Z(
1644
+ ee(
1627
1645
  a.users,
1628
1646
  (l) => {
1629
- l !== void 0 && (o.id_msg = l.id, d = !0, U(e, o));
1647
+ l !== void 0 && (i.id_msg = l.id, d = !0, U(e, i));
1630
1648
  },
1631
1649
  (l) => {
1632
- d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", l), n && n(l), o.id_msg = "";
1650
+ d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", l), n && n(l), i.id_msg = "";
1633
1651
  }
1634
1652
  ), d === !1 && setTimeout(() => {
1635
1653
  d === !1 && w(e, (l) => {
@@ -1644,7 +1662,7 @@ function Be(e, t, s = void 0, n = void 0) {
1644
1662
  type: "json",
1645
1663
  onComplete(p, u, f) {
1646
1664
  const g = p;
1647
- g.reponse = JSON.parse(f.response), g.status = f.status, s && s(g), o.id_msg = g.result.id, U(e, o);
1665
+ g.reponse = JSON.parse(f.response), g.status = f.status, s && s(g), i.id_msg = g.result.id, U(e, i);
1648
1666
  },
1649
1667
  onFailure(p, u, f) {
1650
1668
  const g = p;
@@ -1654,21 +1672,21 @@ function Be(e, t, s = void 0, n = void 0) {
1654
1672
  });
1655
1673
  }, 500);
1656
1674
  }
1657
- function Z(e, t, s, n) {
1658
- const i = `${e.space}/api/directmessages/lite?with_favorites=false`;
1675
+ function ee(e, t, s, n) {
1676
+ const o = `${e.space}/api/directmessages/lite?with_favorites=false`;
1659
1677
  w(e, (r) => {
1660
- m(i, {
1678
+ m(o, {
1661
1679
  method: "GET",
1662
1680
  headers: {
1663
1681
  Accept: "application/json,text/javascript,*/*",
1664
1682
  "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
1665
1683
  },
1666
1684
  onComplete(c) {
1667
- const a = JSON.parse(c), o = [];
1685
+ const a = JSON.parse(c), i = [];
1668
1686
  a.result.forEach((p) => {
1669
- p.users = p.users.sort((u, f) => u.login.localeCompare(f.login)), p.users.length === t.length && o.push(p);
1687
+ p.users = p.users.sort((u, f) => u.login.localeCompare(f.login)), p.users.length === t.length && i.push(p);
1670
1688
  });
1671
- const d = t.sort(), l = o.find((p) => {
1689
+ const d = t.sort(), l = i.find((p) => {
1672
1690
  const u = [];
1673
1691
  return p.users.forEach((f) => {
1674
1692
  u.push(f.login);
@@ -1684,12 +1702,12 @@ function Z(e, t, s, n) {
1684
1702
  });
1685
1703
  }
1686
1704
  function U(e, t, s = void 0, n = void 0) {
1687
- const i = {
1705
+ const o = {
1688
1706
  base: e.space,
1689
1707
  uri: "/api/community",
1690
1708
  id_msg: `${t.id_msg}`,
1691
1709
  endUri: "/instantmessages"
1692
- }, r = `${i.base}${i.uri}/${i.id_msg}${i.endUri}`, c = {
1710
+ }, r = `${o.base}${o.uri}/${o.id_msg}${o.endUri}`, c = {
1693
1711
  author: { login: t.senderId, displayName: t.senderName },
1694
1712
  accessState: null,
1695
1713
  commentUri: null,
@@ -1709,25 +1727,25 @@ function U(e, t, s = void 0, n = void 0) {
1709
1727
  },
1710
1728
  data: JSON.stringify(c),
1711
1729
  type: "json",
1712
- onComplete(o, d, l) {
1713
- const p = o;
1730
+ onComplete(i, d, l) {
1731
+ const p = i;
1714
1732
  p.status = l.status, p.response = JSON.parse(l.response), console.log("✅ _3dSwym_sendDirectMessageData => ", p), s && s(p);
1715
1733
  },
1716
- onFailure(o, d) {
1717
- const l = o;
1734
+ onFailure(i, d) {
1735
+ const l = i;
1718
1736
  l.msg = d.errormsg, l.errCode = d.errorcode, console.log("❌ sendDirectMessage => ", l), n && n(l);
1719
1737
  }
1720
1738
  });
1721
1739
  });
1722
1740
  }
1723
- function ee(e) {
1741
+ function te(e) {
1724
1742
  const t = (/* @__PURE__ */ new Date()).toLocaleDateString(), s = (/* @__PURE__ */ new Date()).toLocaleTimeString();
1725
1743
  return `<p>${e} </p>
1726
1744
  <br/>
1727
1745
  <hr/>
1728
1746
  <p><u>envoyer :</u>Le <b>${t} à ${s}</b></p>`;
1729
1747
  }
1730
- const te = {
1748
+ const ne = {
1731
1749
  title: "TEST DEV COMMUNITY IDEA",
1732
1750
  // titre du post
1733
1751
  community_id: "YXdA5x4DSUKtlAi2wmnyTA",
@@ -1738,29 +1756,29 @@ const te = {
1738
1756
  // id de l'idee qui est créer au post (_3dSwym_postIdea)
1739
1757
  };
1740
1758
  function Ye(e, t, s = void 0, n = void 0) {
1741
- const i = `${e.space}/api/idea/add`, r = e.swymCommunities.find(
1742
- (o) => o.id === t.community_id
1759
+ const o = `${e.space}/api/idea/add`, r = e.swymCommunities.find(
1760
+ (i) => i.id === t.community_id
1743
1761
  ), c = e.swymCommunities.find(
1744
- (o) => o.title.toLowerCase() === t.community_title.toLowerCase()
1762
+ (i) => i.title.toLowerCase() === t.community_title.toLowerCase()
1745
1763
  ), a = {
1746
1764
  params: {
1747
1765
  title: t.title,
1748
1766
  // String, le nom de l'affaire
1749
1767
  community_id: r?.id !== void 0 ? r.id : c.id,
1750
1768
  // String, l'id de la communauté
1751
- message: ne(t.text_html),
1769
+ message: se(t.text_html),
1752
1770
  // STRING => le contenue du message doit être au format HTML
1753
1771
  published: 1
1754
1772
  // 1 publier, 0 non publier
1755
1773
  }
1756
1774
  };
1757
- w(e, (o) => {
1775
+ w(e, (i) => {
1758
1776
  const d = {
1759
1777
  "Content-type": "application/json;charset=UTF-8",
1760
1778
  Accept: "application/json",
1761
- "X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
1779
+ "X-DS-SWYM-CSRFTOKEN": i.result.ServerToken
1762
1780
  };
1763
- m(i, {
1781
+ m(o, {
1764
1782
  method: "POST",
1765
1783
  headers: d,
1766
1784
  data: JSON.stringify(a),
@@ -1777,14 +1795,14 @@ function Ye(e, t, s = void 0, n = void 0) {
1777
1795
  });
1778
1796
  }
1779
1797
  function qe(e, t, s = void 0, n = void 0) {
1780
- const i = `${e.space}/api/idea/delete`, r = {
1798
+ const o = `${e.space}/api/idea/delete`, r = {
1781
1799
  params: {
1782
1800
  community_id: t.community_id,
1783
1801
  ideationIds: [t.idee_id]
1784
1802
  }
1785
1803
  };
1786
1804
  w(e, (c) => {
1787
- m(i, {
1805
+ m(o, {
1788
1806
  method: "POST",
1789
1807
  headers: {
1790
1808
  "Content-type": "application/json;charset=UTF-8",
@@ -1793,19 +1811,19 @@ function qe(e, t, s = void 0, n = void 0) {
1793
1811
  },
1794
1812
  data: JSON.stringify(r),
1795
1813
  type: "json",
1796
- onComplete(a, o, d) {
1814
+ onComplete(a, i, d) {
1797
1815
  s && s(a);
1798
1816
  },
1799
- onFailure(a, o, d) {
1817
+ onFailure(a, i, d) {
1800
1818
  const l = a;
1801
- l.status = o.status, l.response = o.errormsg, n && n(l);
1819
+ l.status = i.status, l.response = i.errormsg, n && n(l);
1802
1820
  }
1803
1821
  });
1804
1822
  });
1805
1823
  }
1806
1824
  function He(e, t = "", s = void 0, n = void 0) {
1807
- const i = e.tenant.toLowerCase() === "r1132101716373" ? "tFtz0G4MR6qNtKgJjNfTog" : e.tenant.toLowerCase() === "r1132101286859" ? "Qpv3HN-tTDOsU-7_c5DnDg" : "Template_d'idée_à_créer";
1808
- t === "" && (t = i);
1825
+ const o = e.tenant.toLowerCase() === "r1132101716373" ? "tFtz0G4MR6qNtKgJjNfTog" : e.tenant.toLowerCase() === "r1132101286859" ? "Qpv3HN-tTDOsU-7_c5DnDg" : "Template_d'idée_à_créer";
1826
+ t === "" && (t = o);
1809
1827
  const r = `${e.space}/api/idea/get`, c = {
1810
1828
  params: {
1811
1829
  id: t
@@ -1821,23 +1839,23 @@ function He(e, t = "", s = void 0, n = void 0) {
1821
1839
  },
1822
1840
  data: JSON.stringify(c),
1823
1841
  type: "json",
1824
- onComplete(o) {
1825
- const d = o;
1842
+ onComplete(i) {
1843
+ const d = i;
1826
1844
  d.msg = d.result.message, s && s(d);
1827
1845
  },
1828
- onFailure(o) {
1829
- const d = o;
1846
+ onFailure(i) {
1847
+ const d = i;
1830
1848
  d.status = headers.status, d.response = headers.errormsg, n && n(d);
1831
1849
  }
1832
1850
  });
1833
1851
  });
1834
1852
  }
1835
- function ze(e, t = te, s = void 0, n = void 0) {
1836
- const i = {
1853
+ function ze(e, t = ne, s = void 0, n = void 0) {
1854
+ const o = {
1837
1855
  uri: "/api/idea/list",
1838
1856
  comId: `/community_id/${e.tenant.toLowerCase() === "r1132101716373" ? t.community_id : "bgnIsG74SUWswyGzS6NC6g"}`,
1839
1857
  limit: `/limit/${t.limit ? t.limit : 10}`
1840
- }, r = `${e.space}${i.uri}${i.comId}${i.limit}`;
1858
+ }, r = `${e.space}${o.uri}${o.comId}${o.limit}`;
1841
1859
  w(e, (c) => {
1842
1860
  m(r, {
1843
1861
  method: "GET",
@@ -1845,17 +1863,17 @@ function ze(e, t = te, s = void 0, n = void 0) {
1845
1863
  "X-DS-SWYM-CSRFTOKEN": c.result.ServerToken
1846
1864
  },
1847
1865
  onComplete(a) {
1848
- const o = JSON.parse(a);
1849
- s && s(o);
1866
+ const i = JSON.parse(a);
1867
+ s && s(i);
1850
1868
  },
1851
- onFailure(a, o) {
1869
+ onFailure(a, i) {
1852
1870
  const d = a;
1853
- d.status = o.status, d.response = o.errormsg, n && n(d);
1871
+ d.status = i.status, d.response = i.errormsg, n && n(d);
1854
1872
  }
1855
1873
  });
1856
1874
  });
1857
1875
  }
1858
- function ne(e) {
1876
+ function se(e) {
1859
1877
  return !e || e === "" ? `<h2><u>INFORMATIONS AFFAIRE :</u></h2>
1860
1878
  <p><u>|⚠️<em> Merci de respecter l&#39;écriture des tags, en MAJUSCULES, nom complet, pas de caractères</em></u></p>
1861
1879
  <p><u><em>|spéciaux, séparation par &#34;_&#34; si besoin !</em></u></p>
@@ -1932,32 +1950,32 @@ function ne(e) {
1932
1950
  }
1933
1951
  function Qe(e, t = void 0, s = void 0) {
1934
1952
  const n = e.space + "/api/user/getcurrent/";
1935
- w(e, (i) => {
1953
+ w(e, (o) => {
1936
1954
  m(n, {
1937
1955
  method: "GET",
1938
1956
  headers: {
1939
- "X-DS-SWYM-CSRFTOKEN": i.result.ServerToken
1957
+ "X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
1940
1958
  },
1941
1959
  onComplete(r, c, a) {
1942
- const o = JSON.parse(r);
1943
- t && t(o.result);
1960
+ const i = JSON.parse(r);
1961
+ t && t(i.result);
1944
1962
  },
1945
1963
  onFailure(r, c, a) {
1946
- const o = { erreur: JSON.parse(r), headers: c, xhr: a };
1947
- s && s(o);
1964
+ const i = { erreur: JSON.parse(r), headers: c, xhr: a };
1965
+ s && s(i);
1948
1966
  }
1949
1967
  });
1950
1968
  });
1951
1969
  }
1952
1970
  function Ze(e, t, s = void 0, n = void 0) {
1953
- const i = e.space + "/api/user/find/login/" + t;
1971
+ const o = e.space + "/api/user/find/login/" + t;
1954
1972
  w(
1955
1973
  e,
1956
1974
  (r) => {
1957
- m(i, {
1975
+ m(o, {
1958
1976
  method: "GET",
1959
1977
  headers: { "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken },
1960
- onComplete(c, a, o) {
1978
+ onComplete(c, a, i) {
1961
1979
  const d = JSON.parse(c);
1962
1980
  s && s(d);
1963
1981
  },
@@ -1980,13 +1998,13 @@ export {
1980
1998
  T as _3DSpace_csrf,
1981
1999
  v as _3DSpace_download_doc,
1982
2000
  W as _3DSpace_download_multidoc,
1983
- K as _3DSpace_file_update,
1984
- X as _3DSpace_file_update_csr,
2001
+ X as _3DSpace_file_update,
2002
+ V as _3DSpace_file_update_csr,
1985
2003
  be as _3DSpace_file_url_csr,
1986
2004
  k as _3DSpace_get_csrf,
1987
- G as _3DSpace_get_docInfo,
1988
- V as _3DSpace_get_downloadTicket_multidoc,
1989
- b as _3DSpace_get_securityContexts,
2005
+ K as _3DSpace_get_docInfo,
2006
+ B as _3DSpace_get_downloadTicket_multidoc,
2007
+ N as _3DSpace_get_securityContexts,
1990
2008
  A as _3DSpace_get_ticket,
1991
2009
  Ue as _3DSpace_lifecycle_changeRevision,
1992
2010
  De as _3DSpace_lifecycle_changeState,
@@ -1995,12 +2013,12 @@ export {
1995
2013
  Fe as _3DSpace_lifecycle_getNextStates,
1996
2014
  Be as _3DSwym_buildDirectMessage,
1997
2015
  qe as _3DSwym_deleteIdea,
1998
- Z as _3DSwym_findCommunityToInstantMSG,
1999
- We as _3DSwym_getAllCommunities,
2016
+ ee as _3DSwym_findCommunityToInstantMSG,
2017
+ Ve as _3DSwym_getAllCommunities,
2000
2018
  Ke as _3DSwym_getAllNews,
2001
2019
  Xe as _3DSwym_getFamiliarPeople,
2002
- Ve as _3DSwym_getIdeaStatusMaturity,
2003
- Q as _3DSwym_getMembersCommunity,
2020
+ We as _3DSwym_getIdeaStatusMaturity,
2021
+ Z as _3DSwym_getMembersCommunity,
2004
2022
  He as _3DSwym_getSWYMIdea,
2005
2023
  ze as _3DSwym_get_AllSWYMIdeas,
2006
2024
  Qe as _3DSwym_get_currentUser,
@@ -2010,31 +2028,31 @@ export {
2010
2028
  U as _3DSwym_sendMessageData,
2011
2029
  Se as _AppMngt_get_info_user,
2012
2030
  he as _AppMngt_get_users,
2013
- me as _getPlateformInfos,
2014
- fe as _getPlatformServices,
2031
+ J as _getPlateformInfos,
2032
+ me as _getPlatformServices,
2015
2033
  m as _httpCallAuthenticated,
2016
- le as _setDraggable,
2017
- ue as _setDroppable,
2018
- pe as _setupTagger,
2034
+ pe as _setDraggable,
2035
+ fe as _setDroppable,
2036
+ ue as _setupTagger,
2019
2037
  Je as addTagToDoc,
2020
2038
  ge as compass_getListAdditionalApps,
2021
2039
  L as couleurs,
2022
2040
  _e as createUserGroups,
2023
- B as dataMixing,
2041
+ Y as dataMixing,
2024
2042
  Ce as deleteUserGroups,
2025
- re as findAdresse,
2043
+ ce as findAdresse,
2026
2044
  Re as getAllContextSecurity,
2027
- E as getCSRFToken,
2028
- oe as getCommunes,
2045
+ G as getCSRFToken,
2046
+ re as getCommunes,
2029
2047
  ye as getComplementUG,
2030
2048
  ve as getDataFrom3DSpace,
2031
- ce as getDataFromGouvFr,
2049
+ de as getDataFromGouvFr,
2032
2050
  Me as getDatasByTenant,
2033
2051
  Le as getDatasFrom3DSpace,
2034
2052
  Ie as getDownloadDocument,
2035
2053
  Ge as getInfoDocTags,
2036
2054
  we as getUserGroupsList,
2037
- J as getUsersGroupRules,
2055
+ E as getUsersGroupRules,
2038
2056
  Pe as get_3DSpace_csrf,
2039
2057
  Te as patchUserGroups,
2040
2058
  Oe as patchUserGroupsControl,
@@ -2042,6 +2060,6 @@ export {
2042
2060
  Ne as readUserGroupControl,
2043
2061
  Ee as removeTagToDoc,
2044
2062
  et as sayHello,
2045
- de as updateEvent
2063
+ le as updateEvent
2046
2064
  };
2047
2065
  //# sourceMappingURL=wb3Api.js.map