@beam3_dev/api_module 0.0.65 → 0.0.67

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
@@ -44,10 +44,10 @@ async function ie(e, t = void 0, s = void 0) {
44
44
  Accept: "application/json"
45
45
  }
46
46
  }
47
- ).then((a) => a.json()).then((a) => {
48
- t && t(a);
49
- }).catch((a) => {
50
- s && s(a), console.error("Erreur : " + a);
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
53
  async function re(e, t = void 0, s = void 0) {
@@ -67,42 +67,42 @@ async function re(e, t = void 0, s = void 0) {
67
67
  }
68
68
  async function ce(e, t = L) {
69
69
  let s = N.now().year;
70
- const n = e, a = [], c = (o) => {
71
- for (let r in o)
72
- a.push({ date: r, comment: o[r] });
70
+ const n = e, o = [], c = (a) => {
71
+ for (let i in a)
72
+ o.push({ date: i, comment: a[i] });
73
73
  };
74
- for (let o = s; o <= s + 1; o++)
74
+ for (let a = s; a <= s + 1; a++)
75
75
  await fetch(
76
- "https://calendrier.api.gouv.fr/jours-feries/metropole/" + o + ".json",
76
+ "https://calendrier.api.gouv.fr/jours-feries/metropole/" + a + ".json",
77
77
  {
78
78
  method: "GET",
79
79
  headers: {
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((i) => i.json()).then((i) => {
84
+ c(i);
85
+ }).catch((i) => console.error("Erreur : " + i));
86
86
  return (() => {
87
- const o = n.length === 0 ? {
87
+ const a = n.length === 0 ? {
88
88
  events: []
89
89
  } : n;
90
- for (let r of a)
91
- o.events.findIndex(
92
- (l) => l.start === N.fromISO(r.date).toISODate() && l.name === "Férié : " + r.comment
93
- ) === -1 && o.events.push({
94
- name: "Férié : " + r.comment,
95
- start: N.fromISO(r.date).toISODate(),
96
- end: N.fromISO(r.date).toISODate(),
90
+ for (let i of o)
91
+ a.events.findIndex(
92
+ (l) => l.start === N.fromISO(i.date).toISODate() && l.name === "Férié : " + i.comment
93
+ ) === -1 && a.events.push({
94
+ name: "Férié : " + i.comment,
95
+ start: N.fromISO(i.date).toISODate(),
96
+ end: N.fromISO(i.date).toISODate(),
97
97
  color: t.b3BusinnessDays,
98
98
  timed: !1
99
99
  });
100
- return o;
100
+ return a;
101
101
  })();
102
102
  }
103
103
  async function de(e, t, s = !0) {
104
- const n = e.events.findIndex((a) => a.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((a, c) => a.start - c.start), e;
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, c) => o.start - c.start), e;
106
106
  }
107
107
  function f(e, t) {
108
108
  O(["DS/WAFData/WAFData"], (s) => {
@@ -145,13 +145,13 @@ async function fe(e, t = void 0, s = void 0) {
145
145
  function me() {
146
146
  let e = {};
147
147
  return O(["DS/PlatformAPI/PlatformAPI"], (t) => {
148
- const s = t.getTenant(), n = t.getUser(), a = t.getAllApplicationConfigurations(), c = t.getApplicationConfiguration(
148
+ const s = t.getTenant(), n = t.getUser(), o = t.getAllApplicationConfigurations(), c = t.getApplicationConfiguration(
149
149
  "com.3ds.wp.passport.cors"
150
150
  );
151
151
  e = {
152
152
  tenant: s,
153
153
  user: n,
154
- appsConfiguration: a,
154
+ appsConfiguration: o,
155
155
  appConf: c
156
156
  };
157
157
  }), console.log("%cRETOUR API :", "color:blue", e), e;
@@ -162,49 +162,49 @@ function ge(e, t, s) {
162
162
  uri: "/resources/AppsMngt/api/custom/applications",
163
163
  option: `?filter=${e.tenant}`
164
164
  // facultatif
165
- }, a = `${n.base}${n.uri}${n.option}`;
166
- f(a, {
165
+ }, o = `${n.base}${n.uri}${n.option}`;
166
+ f(o, {
167
167
  method: "GET",
168
168
  headers: {
169
169
  "Content-Type": "application/json",
170
170
  Accept: "application/json"
171
171
  },
172
- onComplete(c, i, o) {
173
- const r = JSON.parse(c), d = r.data.map((l) => {
172
+ onComplete(c, r, a) {
173
+ const i = JSON.parse(c), 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, r);
177
+ t && t(d, i);
178
178
  },
179
- onFailure(c, i) {
180
- const o = c;
181
- o.msg = i.errormsg, o.errCode = i.errorcode, s && s(o);
179
+ onFailure(c, r) {
180
+ const a = c;
181
+ a.msg = r.errormsg, a.errCode = r.errorcode, s && s(a);
182
182
  }
183
183
  });
184
184
  }
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
  f(n, {
188
- onComplete(a, c, i) {
189
- const o = JSON.parse(a);
190
- console.log("_AppMngt_get_users => ", o), t && t(o);
188
+ onComplete(o, c, r) {
189
+ const a = JSON.parse(o);
190
+ console.log("_AppMngt_get_users => ", a), t && t(a);
191
191
  },
192
- onFailure(a, c) {
193
- const i = a;
194
- i.msg = c.errormsg, i.errCode = c.errorcode, s && s(i);
192
+ onFailure(o, c) {
193
+ const r = o;
194
+ r.msg = c.errormsg, r.errCode = c.errorcode, s && s(r);
195
195
  }
196
196
  });
197
197
  }
198
198
  function Se(e, t, s = void 0, n = void 0) {
199
- let a = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&id=${t}`;
200
- f(a, {
201
- onComplete(c, i, o) {
202
- const r = JSON.parse(c);
203
- s && s(r);
199
+ let o = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&id=${t}`;
200
+ f(o, {
201
+ onComplete(c, r, a) {
202
+ const i = JSON.parse(c);
203
+ s && s(i);
204
204
  },
205
- onFailure(c, i) {
206
- const o = c;
207
- o.msg = i.errormsg, o.errCode = i.errorcode, n && n(o);
205
+ onFailure(c, r) {
206
+ const a = c;
207
+ a.msg = r.errormsg, a.errCode = r.errorcode, n && n(a);
208
208
  }
209
209
  });
210
210
  }
@@ -213,9 +213,9 @@ const F = {
213
213
  Accept: "application/json,text/javascript,*/*"
214
214
  };
215
215
  function _e(e, t, s = void 0, n = void 0) {
216
- const { space: a, currentUser: c } = e, o = `${a}${{
216
+ const { space: o, currentUser: c } = e, a = `${o}${{
217
217
  URIUGr: "/3drdfpersist/resources/v1/usersgroup"
218
- }.URIUGr}`, r = {
218
+ }.URIUGr}`, i = {
219
219
  groups: [
220
220
  {
221
221
  title: t.title,
@@ -227,10 +227,10 @@ function _e(e, t, s = void 0, n = void 0) {
227
227
  }
228
228
  ]
229
229
  };
230
- f(o, {
230
+ f(a, {
231
231
  method: "POST",
232
232
  headers: F,
233
- data: JSON.stringify(r),
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: a, tenant: c } = e, i = a, o = `/3drdfpersist/v1/resources/${t}`, r = `?$mask=dsaccess:Mask.GroupUI.Properties&tenant=dstenant:${c}`, d = `${i}${o}${r}`;
245
+ const { space: o, tenant: c } = e, r = o, a = `/3drdfpersist/v1/resources/${t}`, i = `?$mask=dsaccess:Mask.GroupUI.Properties&tenant=dstenant:${c}`, d = `${r}${a}${i}`;
246
246
  f(d, {
247
247
  opts: {
248
248
  method: "GET",
@@ -261,12 +261,12 @@ function ye(e, t, s = void 0, n = void 0) {
261
261
  });
262
262
  }
263
263
  function E(e, t = void 0, s = void 0) {
264
- const { space: n, tenant: a } = e, c = n, i = "/3drdfpersist/resources/v1/option-sets/dsusergroup:ListOfGroupResponsibilities/options", o = `?tenant=dstenant:${a}`, r = {
264
+ const { space: n, tenant: o } = e, c = n, r = "/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
- }, d = `${c}${i}${o}`;
267
+ }, d = `${c}${r}${a}`;
268
268
  f(d, {
269
- OPTsH: r,
269
+ OPTsH: i,
270
270
  onComplete(l) {
271
271
  t && t(JSON.parse(l));
272
272
  },
@@ -277,17 +277,17 @@ function E(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: a } = e, o = `${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
  } };
284
284
  try {
285
- f(o, {
285
+ f(a, {
286
286
  opts: d,
287
287
  onComplete(l) {
288
288
  const p = JSON.parse(l), u = {}, m = p.groups.filter((g) => g.uri.startsWith("uuid:"));
289
- if (a && Object.keys(a).length > 0) {
290
- const g = m.filter((_) => _.owner === a.email), h = m.filter((_) => _.members.includes(a.email)), S = g.concat(h);
289
+ if (o && Object.keys(o).length > 0) {
290
+ const g = m.filter((_) => _.owner === o.email), h = m.filter((_) => _.members.includes(o.email)), S = g.concat(h);
291
291
  u.iam = S, u.UG = m, u.iamMember = h, E(
292
292
  e,
293
293
  (_) => {
@@ -308,21 +308,21 @@ function we(e, t = void 0, s = void 0) {
308
308
  }
309
309
  }
310
310
  function Te(e, t) {
311
- const { space: s } = e, a = `${s}/3drdfpersist/resources/v1/usersgroup/${t}`;
312
- f(a, {
311
+ const { space: s } = e, o = `${s}/3drdfpersist/resources/v1/usersgroup/${t}`;
312
+ f(o, {
313
313
  method: "DELETE"
314
314
  });
315
315
  }
316
- function Ce(e, t, s, n = void 0, a = void 0) {
317
- const { space: c, tenant: i } = e, o = {
316
+ function Ce(e, t, s, n = void 0, o = void 0) {
317
+ const { space: c, tenant: r } = e, a = {
318
318
  URITI: "/3drdfpersist/resources/v1/template-instances",
319
319
  URIUGr: "/3drdfpersist/resources/v1/usersgroup",
320
320
  nextURICh: "/characteristics",
321
321
  nextURIGr: "/group",
322
322
  nexURImem: "/members",
323
323
  OPTsTI: "?$mask=dsaccess:Mask.GroupUI.Properties",
324
- OPTsTenant: `tenant=dstenant:${i}`
325
- }, r = s, d = `${c}${o.URIUGr}/${t}`, l = JSON.stringify(r);
324
+ OPTsTenant: `tenant=dstenant:${r}`
325
+ }, i = s, d = `${c}${a.URIUGr}/${t}`, l = JSON.stringify(i);
326
326
  f(d, {
327
327
  headers: F,
328
328
  method: "PATCH",
@@ -332,13 +332,13 @@ function Ce(e, t, s, n = void 0, a = void 0) {
332
332
  n && n(p);
333
333
  },
334
334
  onFailure(p) {
335
- a && a(p);
335
+ o && o(p);
336
336
  }
337
337
  });
338
338
  }
339
- function Oe(e, t, s, n = void 0, a = void 0) {
340
- const { space: c } = e, o = `${c}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
341
- f(o, {
339
+ function Oe(e, t, s, n = void 0, o = void 0) {
340
+ const { space: c } = e, a = `${c}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
341
+ f(a, {
342
342
  method: "PATCH",
343
343
  headers: F,
344
344
  data: JSON.stringify(s),
@@ -347,13 +347,13 @@ function Oe(e, t, s, n = void 0, a = void 0) {
347
347
  n && n(d);
348
348
  },
349
349
  onFailure(d) {
350
- a && a(d);
350
+ o && o(d);
351
351
  }
352
352
  });
353
353
  }
354
354
  function be(e, t, s = void 0, n = void 0) {
355
- const { space: a } = e, i = `${a}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
356
- f(i, {
355
+ const { space: o } = e, r = `${o}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
356
+ f(r, {
357
357
  opts: {
358
358
  method: "GET",
359
359
  headers: {
@@ -373,29 +373,29 @@ async function J(e, t, s) {
373
373
  if (e.space) {
374
374
  const n = `${e.space}/resources/v1/application/CSRF`;
375
375
  f(n, {
376
- onComplete(a) {
377
- a = JSON.parse(a), console.log("getCSRFToken() / response => ", a), t && t(a.csrf);
376
+ onComplete(o) {
377
+ o = JSON.parse(o), console.log("getCSRFToken() / response => ", o), t && t(o.csrf);
378
378
  },
379
- onFailure(a, c, i) {
380
- s && s({ error: a, headers: c, xhr: i });
379
+ onFailure(o, c, r) {
380
+ s && s({ error: o, headers: c, xhr: r });
381
381
  }
382
382
  });
383
383
  }
384
384
  }
385
385
  async function G(e, t = void 0, s = void 0, n = void 0) {
386
- const a = e.space;
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 c = a + `/resources/v1/modeler/documents/${t}`;
391
+ const c = o + `/resources/v1/modeler/documents/${t}`;
392
392
  f(c, {
393
- onComplete(i, o, r) {
394
- const d = JSON.parse(i);
393
+ onComplete(r, a, i) {
394
+ const d = JSON.parse(r);
395
395
  s && s(d);
396
396
  },
397
- onFailure(i) {
398
- n && n(i);
397
+ onFailure(r) {
398
+ n && n(r);
399
399
  }
400
400
  });
401
401
  }
@@ -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
  console.log("_3DSpace_get_csrf / url", n), f(n, {
406
- onComplete(a, c, i) {
407
- const o = JSON.parse(a);
408
- e.token = o?.csrf?.value, e.datas = o?.data[0], t && t(e);
406
+ onComplete(o, c, r) {
407
+ const a = JSON.parse(o);
408
+ e.token = a?.csrf?.value, e.datas = a?.data[0], t && t(e);
409
409
  },
410
- onFailure(a) {
411
- s && s(a);
410
+ onFailure(o) {
411
+ s && s(o);
412
412
  }
413
413
  });
414
414
  } else
@@ -426,12 +426,12 @@ function C(e, t = void 0, s = void 0) {
426
426
  if (e.space) {
427
427
  const n = e.space + "/resources/v1/application/CSRF";
428
428
  f(n, {
429
- onComplete(a, c, i) {
430
- const o = JSON.parse(a);
431
- console.log("_3DSpace_csrf() / info => ", o), t && t(o.csrf.value);
429
+ onComplete(o, c, r) {
430
+ const a = JSON.parse(o);
431
+ console.log("_3DSpace_csrf() / info => ", a), t && t(a.csrf.value);
432
432
  },
433
- onFailure(a, c, i) {
434
- s && s({ response: a, headers: c, xhr: i });
433
+ onFailure(o, c, r) {
434
+ s && s({ response: o, headers: c, xhr: r });
435
435
  }
436
436
  });
437
437
  } else
@@ -441,10 +441,10 @@ function U(e, t = void 0, s = void 0) {
441
441
  let n = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
442
442
  k(
443
443
  e,
444
- (a) => {
444
+ (o) => {
445
445
  console.log(
446
446
  "_3DSpace_get_ticket / onComplete / ☠️ info => ",
447
- a,
447
+ o,
448
448
  e.token
449
449
  ), f(n, {
450
450
  method: "PUT",
@@ -452,69 +452,69 @@ function U(e, t = void 0, s = void 0) {
452
452
  ENO_CSRF_TOKEN: e.token
453
453
  },
454
454
  onComplete(c) {
455
- const o = JSON.parse(c).data[0].dataelements.ticketURL;
456
- console.log("le ticket est dans la callback"), t && t(o);
455
+ const a = JSON.parse(c).data[0].dataelements.ticketURL;
456
+ console.log("le ticket est dans la callback"), t && t(a);
457
457
  },
458
- onFailure(c, i) {
459
- console.warn("☠️ error => ", c, i), s && s(c, i);
458
+ onFailure(c, r) {
459
+ console.warn("☠️ error => ", c, r), s && s(c, r);
460
460
  }
461
461
  });
462
462
  },
463
- (a) => {
464
- console.warn("_3DSpace_get_ticket / error => ", a), s && s(a);
463
+ (o) => {
464
+ console.warn("_3DSpace_get_ticket / error => ", o), s && s(o);
465
465
  }
466
466
  );
467
467
  }
468
- function Ne(e, t, s, n = void 0, a = void 0) {
468
+ function Ne(e, t, s, n = void 0, o = void 0) {
469
469
  const c = `${e.space}/resources/v1/modeler/documents/${t}/files/DownloadTicket`;
470
470
  s || (s = e.token), f(c, {
471
471
  method: "PUT",
472
472
  headers: {
473
473
  ENO_CSRF_TOKEN: s
474
474
  },
475
- onComplete(i) {
476
- let o = JSON.parse(i);
477
- if (console.log("☠️ info => ", o), o.success === !0)
475
+ onComplete(r) {
476
+ let a = JSON.parse(r);
477
+ if (console.log("☠️ info => ", a), a.success === !0)
478
478
  try {
479
- const r = o.data[0].dataelements.ticketURL;
480
- n && n(r);
481
- } catch (r) {
482
- a && a(r);
479
+ const i = a.data[0].dataelements.ticketURL;
480
+ n && n(i);
481
+ } catch (i) {
482
+ o && o(i);
483
483
  }
484
484
  },
485
- onFailure(i) {
486
- a && a(i);
485
+ onFailure(r) {
486
+ o && o(r);
487
487
  }
488
488
  });
489
489
  }
490
- function K(e, t, s, n, a, c = void 0, i = void 0) {
490
+ function K(e, t, s, n, o, c = void 0, r = void 0) {
491
491
  k(
492
492
  e,
493
493
  t,
494
- (o) => {
494
+ (a) => {
495
495
  W(
496
496
  e,
497
497
  t,
498
498
  s,
499
499
  n,
500
- a,
501
- o.csrf.value,
500
+ o,
501
+ a.csrf.value,
502
502
  c,
503
- i
503
+ r
504
504
  );
505
505
  }
506
506
  );
507
507
  }
508
- function W(e, t, s, n, a, c, i = void 0, o = void 0) {
509
- const r = e.space + `/resources/v1/modeler/documents/${t}/files/CheckinTicket`;
510
- f(r, {
508
+ function W(e, t, s, n, o, c, r = void 0, a = void 0) {
509
+ const i = e.space + `/resources/v1/modeler/documents/${t}/files/CheckinTicket`;
510
+ f(i, {
511
511
  method: "PUT",
512
512
  headers: {
513
513
  ENO_CSRF_TOKEN: c
514
514
  },
515
515
  onComplete(d, l, p) {
516
516
  const u = JSON.parse(d).data[0].dataelements, m = new FormData();
517
- m.append("__fcs__jobTicket", u.ticket), m.append("file_0", n, a);
517
+ m.append("__fcs__jobTicket", u.ticket), m.append("file_0", n, o);
518
518
  const g = {};
519
519
  g.method = "POST", g.data = m, g.onComplete = function(h) {
520
520
  let S = "temp_" + Date.now(), _ = {
@@ -531,7 +531,7 @@ function W(e, t, s, n, a, c, i = void 0, o = void 0) {
531
531
  {
532
532
  id: s,
533
533
  dataelements: {
534
- title: a,
534
+ title: o,
535
535
  receipt: h
536
536
  },
537
537
  updateAction: "REVISE"
@@ -544,10 +544,10 @@ function W(e, t, s, n, a, c, i = void 0, o = void 0) {
544
544
  }),
545
545
  type: "json",
546
546
  onComplete(y) {
547
- i && i(y);
547
+ r && r(y);
548
548
  },
549
549
  onFailure(y) {
550
- o && o(y);
550
+ a && a(y);
551
551
  }
552
552
  };
553
553
  f(
@@ -555,26 +555,26 @@ function W(e, t, s, n, a, c, i = void 0, o = void 0) {
555
555
  _
556
556
  );
557
557
  }, g.onFailure = function(h) {
558
- o && o(h);
558
+ a && a(h);
559
559
  }, g.timeout = 0, f(u.ticketURL, g);
560
560
  }
561
561
  });
562
562
  }
563
- async function ke(e, t, s, n, a = void 0, c = void 0) {
564
- const i = e.space, o = e.token, r = e.ctx, d = new FormData(), l = new Blob([JSON.stringify(t)], {
563
+ async function ke(e, t, s, n, o = void 0, c = void 0) {
564
+ const r = e.space, a = e.token, i = e.ctx, d = new FormData(), l = new Blob([JSON.stringify(t)], {
565
565
  type: "text/plain"
566
566
  }), p = {
567
- url_Ticket: `${i}/resources/v1/modeler/documents/files/CheckinTicket`,
568
- url_Post: `${i}/resources/v1/modeler/documents/?SecurityContext=ctx::${r}`
567
+ url_Ticket: `${r}/resources/v1/modeler/documents/files/CheckinTicket`,
568
+ url_Post: `${r}/resources/v1/modeler/documents/?SecurityContext=ctx::${i}`
569
569
  };
570
- if (!i && i !== "") {
570
+ if (!r && r !== "") {
571
571
  console.log("le store._3DSpace est vide");
572
572
  return;
573
573
  }
574
574
  f(p.url_Ticket, {
575
575
  method: "PUT",
576
576
  headers: {
577
- ENO_CSRF_TOKEN: o.value
577
+ ENO_CSRF_TOKEN: a.value
578
578
  },
579
579
  onComplete(u, m, g) {
580
580
  const h = JSON.parse(u).data[0].dataelements;
@@ -583,11 +583,11 @@ async function ke(e, t, s, n, a = void 0, c = void 0) {
583
583
  method: "POST",
584
584
  data: d,
585
585
  onComplete(T) {
586
- if (r !== "" && o !== "") {
586
+ if (i !== "" && a !== "") {
587
587
  const D = {
588
588
  method: "POST",
589
589
  headers: {
590
- ENO_CSRF_TOKEN: o,
590
+ ENO_CSRF_TOKEN: a,
591
591
  Accept: "application/json",
592
592
  "Content-Type": "application/json"
593
593
  },
@@ -619,14 +619,14 @@ async function ke(e, t, s, n, a = void 0, c = void 0) {
619
619
  onComplete: _,
620
620
  onFailure: y
621
621
  };
622
- r !== "" && f(p.url_Post, D);
622
+ i !== "" && f(p.url_Post, D);
623
623
  } else
624
624
  console.warn("le store est vide");
625
625
  },
626
626
  onFailure: y
627
627
  };
628
628
  function _(T) {
629
- console.log("Success -- response ", T.data[0]), a && a(T);
629
+ console.log("Success -- response ", T.data[0]), o && o(T);
630
630
  }
631
631
  function y(T, D) {
632
632
  console.log("Erreur -- response ", T, `
@@ -636,15 +636,15 @@ async function ke(e, t, s, n, a = void 0, c = void 0) {
636
636
  }
637
637
  });
638
638
  }
639
- function b(e, t = void 0, s = void 0, n = void 0, a = void 0, c = void 0) {
640
- const i = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
641
- f(i, {
639
+ function b(e, t = void 0, s = void 0, n = void 0, o = void 0, c = void 0) {
640
+ const r = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
641
+ f(r, {
642
642
  method: "GET",
643
- onComplete(o) {
644
- const r = JSON.parse(o);
643
+ onComplete(a) {
644
+ const i = JSON.parse(a);
645
645
  let d = "", l, p, u;
646
646
  if (t) {
647
- let m = r.collabspaces.find((g) => g.title === t);
647
+ let m = i.collabspaces.find((g) => g.title === t);
648
648
  if (m) {
649
649
  l = t;
650
650
  let g = m.couples;
@@ -675,94 +675,98 @@ function b(e, t = void 0, s = void 0, n = void 0, a = void 0, c = void 0) {
675
675
  }));
676
676
  }
677
677
  }
678
- l && p && u ? (d = u + "." + p + "." + l, a(d)) : r.preferredcredentials ? (d = r.preferredcredentials.role.name + "." + r.preferredcredentials.organization.title + "." + r.preferredcredentials.collabspace.title, a(d)) : c && (d = u + "." + p + "." + l, c(d));
678
+ l && p && u ? (d = u + "." + p + "." + l, o(d)) : i.preferredcredentials ? (d = i.preferredcredentials.role.name + "." + i.preferredcredentials.organization.title + "." + i.preferredcredentials.collabspace.title, o(d)) : c && (d = u + "." + p + "." + l, c(d));
679
679
  },
680
- onFailure(o) {
681
- console.log("Erreur de récupération du contexte de sécurité. => ", o);
680
+ onFailure(a) {
681
+ console.log("Erreur de récupération du contexte de sécurité. => ", a);
682
682
  }
683
683
  });
684
684
  }
685
685
  async function I(e, t = void 0, s = void 0) {
686
686
  const n = e.objID;
687
- (!n || n === "") && console.warn(
687
+ return (!n || n === "") && console.warn(
688
688
  "_3DSpace_download_doc() / Le paramètre objectId est obligatoire"
689
689
  ), (e.space === "" || !e.space) && console.warn(
690
690
  "_3DSpace_download_doc() / Le paramètre space est obligatoire"
691
691
  ), (e.token === "" || !e.token) && (J(
692
692
  e,
693
- (a) => {
694
- e.token = a;
693
+ (c) => {
694
+ e.token = c;
695
695
  },
696
- (a) => {
697
- console.log("☠️ error => ", a);
696
+ (c) => {
697
+ console.log("☠️ error => ", c);
698
698
  }
699
699
  ), console.warn(
700
700
  "_3DSpace_download_doc() / Le paramètre token est obligatoire"
701
- )), console.log("_3DSpace_download_doc / credentials", e), U(
702
- e,
703
- (a) => {
704
- f(a, {
705
- headers: {
706
- "Content-Type": "application/json",
707
- Accept: "application/json",
708
- ENO_CSRF_TOKEN: e.token
709
- },
710
- onComplete(c) {
711
- const i = JSON.parse(c);
712
- console.log("_3DSpace_download_doc / reponse ", i), t && t(i);
713
- },
714
- onFailure(c, i, o) {
715
- s && (console.log("error http", c), s({ error: c, headers: i, xhr: o }));
716
- }
717
- });
718
- },
719
- (a) => {
720
- s && s(a), console.log("*_3dspace_download_doc / error file URL *", a);
721
- }
722
- );
701
+ )), console.log("_3DSpace_download_doc / credentials", e), new Promise((c, r) => {
702
+ U(
703
+ e,
704
+ (a) => {
705
+ setTimeout(() => {
706
+ f(a, {
707
+ headers: {
708
+ "Content-Type": "application/json",
709
+ Accept: "application/json",
710
+ ENO_CSRF_TOKEN: e.token
711
+ },
712
+ onComplete(i) {
713
+ const d = JSON.parse(i);
714
+ console.log("_3DSpace_download_doc / reponse ", d), t && t(d), c(d);
715
+ },
716
+ onFailure(i, d, l) {
717
+ s && (console.log("error http", i), s({ error: i, headers: d, xhr: l }), r({ error: i, headers: d, xhr: l }));
718
+ }
719
+ });
720
+ }, 500);
721
+ },
722
+ (a) => {
723
+ s && s(a), console.log("*_3dspace_download_doc / error file URL *", a), r(a);
724
+ }
725
+ );
726
+ });
723
727
  }
724
728
  async function X(e, t, s = void 0, n = void 0) {
725
- let a = [];
726
- for (let o = 0; o < t.length; o += 80) {
727
- const r = t.slice(o, o + 80);
728
- a.push(r);
729
+ let o = [];
730
+ for (let a = 0; a < t.length; a += 80) {
731
+ const i = t.slice(a, a + 80);
732
+ o.push(i);
729
733
  }
730
- const i = (o) => {
734
+ const r = (a) => {
731
735
  V(
732
736
  e,
733
- a[o],
737
+ o[a],
734
738
  () => {
735
- o++, o < a.length && i(o);
739
+ a++, a < o.length && r(a);
736
740
  },
737
- (r) => {
738
- s && s(r);
741
+ (i) => {
742
+ s && s(i);
739
743
  }
740
744
  );
741
745
  };
742
- i(0);
746
+ r(0);
743
747
  }
744
- function V(e, t, s = void 0, n = void 0, a = void 0) {
748
+ function V(e, t, s = void 0, n = void 0, o = void 0) {
745
749
  const c = [];
746
- t.forEach((r) => {
750
+ t.forEach((i) => {
747
751
  c.push({
748
- id: r
752
+ id: i
749
753
  });
750
754
  });
751
- let i = JSON.stringify({
755
+ let r = JSON.stringify({
752
756
  csrf: {
753
757
  name: "ENO_CSRF_TOKEN",
754
758
  value: e.token
755
759
  },
756
760
  data: c
757
761
  });
758
- const o = `${e.space}/resources/v1/modeler/documents/DownloadTicket?tenant=${e.tenant}&e6w-lang=fr&e6w-timezone=-120`;
759
- f(o, {
762
+ const a = `${e.space}/resources/v1/modeler/documents/DownloadTicket?tenant=${e.tenant}&e6w-lang=fr&e6w-timezone=-120`;
763
+ f(a, {
760
764
  method: "PUT",
761
- data: i,
765
+ data: r,
762
766
  type: "json",
763
- onComplete(r) {
764
- const d = r.data;
765
- r.success === !0 && (s && s(), d.forEach((l) => {
767
+ onComplete(i) {
768
+ const d = i.data;
769
+ i.success === !0 && (s && s(), d.forEach((l) => {
766
770
  try {
767
771
  const p = l.dataelements.fileName, u = l.dataelements.ticketURL;
768
772
  f(u, {
@@ -778,17 +782,17 @@ function V(e, t, s = void 0, n = void 0, a = void 0) {
778
782
  }
779
783
  });
780
784
  } catch (p) {
781
- console.log(p), a && a(p);
785
+ console.log(p), o && o(p);
782
786
  }
783
787
  }));
784
788
  },
785
- onFailure(r) {
786
- console.log(r), a && a(r);
789
+ onFailure(i) {
790
+ console.log(i), o && o(i);
787
791
  }
788
792
  });
789
793
  }
790
794
  function De(e, t, s = void 0, n = void 0) {
791
- return new Promise((a) => {
795
+ return new Promise((o) => {
792
796
  if (e.token === "" && C(e), t !== void 0 && t !== "" && t !== null) {
793
797
  const c = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
794
798
  b(
@@ -796,12 +800,12 @@ function De(e, t, s = void 0, n = void 0) {
796
800
  "ESPACE COMMUN",
797
801
  ["VPLMProjectLeader", "VPLMCreator"],
798
802
  void 0,
799
- (o) => e.ctx = o,
800
- (o) => {
801
- console.log("onError =>", o);
803
+ (a) => e.ctx = a,
804
+ (a) => {
805
+ console.log("onError =>", a);
802
806
  }
803
807
  );
804
- let i = {
808
+ let r = {
805
809
  method: "POST",
806
810
  headers: {
807
811
  SecurityContext: "ctx::" + e.ctx,
@@ -817,32 +821,32 @@ function De(e, t, s = void 0, n = void 0) {
817
821
  ]
818
822
  }),
819
823
  type: "json",
820
- onComplete(o) {
821
- s && s(o);
824
+ onComplete(a) {
825
+ s && s(a);
822
826
  },
823
- onFailure(o) {
824
- n && n(o);
827
+ onFailure(a) {
828
+ n && n(a);
825
829
  }
826
830
  };
827
- f(c, i);
831
+ f(c, r);
828
832
  }
829
833
  });
830
834
  }
831
- function Fe(e, t, s, n = void 0, a = void 0) {
835
+ function Fe(e, t, s, n = void 0, o = void 0) {
832
836
  return new Promise((c) => {
833
837
  if (e.token === "" && C(e), t !== void 0 && t !== "" && t !== null) {
834
- const i = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
838
+ const r = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
835
839
  b(
836
840
  e.space,
837
841
  "ESPACE COMMUN",
838
842
  ["VPLMProjectLeader", "VPLMCreator"],
839
843
  void 0,
840
- (r) => e.ctx = r,
841
- (r) => {
842
- console.log("onError =>", r);
844
+ (i) => e.ctx = i,
845
+ (i) => {
846
+ console.log("onError =>", i);
843
847
  }
844
848
  );
845
- let o = {
849
+ let a = {
846
850
  method: "POST",
847
851
  headers: {
848
852
  SecurityContext: "ctx::" + e.ctx,
@@ -859,19 +863,19 @@ function Fe(e, t, s, n = void 0, a = void 0) {
859
863
  ]
860
864
  }),
861
865
  type: "json",
862
- onComplete(r) {
863
- n && n(r);
866
+ onComplete(i) {
867
+ n && n(i);
864
868
  },
865
- onFailure(r) {
866
- a && a(r);
869
+ onFailure(i) {
870
+ o && o(i);
867
871
  }
868
872
  };
869
- f(i, o);
873
+ f(r, a);
870
874
  }
871
875
  });
872
876
  }
873
877
  function Ue(e, t, s = void 0, n = void 0) {
874
- return new Promise((a) => {
878
+ return new Promise((o) => {
875
879
  if (e.token === "" && C(e), t !== void 0 && t !== "" && t !== null) {
876
880
  const c = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
877
881
  b(
@@ -879,12 +883,12 @@ function Ue(e, t, s = void 0, n = void 0) {
879
883
  "ESPACE COMMUN",
880
884
  ["VPLMProjectLeader", "VPLMCreator"],
881
885
  void 0,
882
- (o) => e.ctx = o,
883
- (o) => {
884
- console.log("onError =>", o);
886
+ (a) => e.ctx = a,
887
+ (a) => {
888
+ console.log("onError =>", a);
885
889
  }
886
890
  );
887
- let i = {
891
+ let r = {
888
892
  method: "POST",
889
893
  headers: {
890
894
  securitycontext: "ctx::" + e.ctx,
@@ -900,19 +904,19 @@ function Ue(e, t, s = void 0, n = void 0) {
900
904
  ]
901
905
  }),
902
906
  type: "json",
903
- onComplete(o) {
904
- s && s(o);
907
+ onComplete(a) {
908
+ s && s(a);
905
909
  },
906
- onFailure(o) {
907
- n && n(o);
910
+ onFailure(a) {
911
+ n && n(a);
908
912
  }
909
913
  };
910
- f(c, i);
914
+ f(c, r);
911
915
  }
912
916
  });
913
917
  }
914
918
  function $e(e, t, s = void 0, n = void 0) {
915
- return new Promise((a) => {
919
+ return new Promise((o) => {
916
920
  if (e.token === "" && C(e), t !== void 0 && t !== "" && t !== null) {
917
921
  const c = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
918
922
  b(
@@ -920,12 +924,12 @@ function $e(e, t, s = void 0, n = void 0) {
920
924
  "ESPACE COMMUN",
921
925
  ["VPLMProjectLeader", "VPLMCreator"],
922
926
  void 0,
923
- (o) => e.ctx = o,
924
- (o) => {
925
- console.log("onError =>", o);
927
+ (a) => e.ctx = a,
928
+ (a) => {
929
+ console.log("onError =>", a);
926
930
  }
927
931
  );
928
- let i = {
932
+ let r = {
929
933
  method: "POST",
930
934
  headers: {
931
935
  SecurityContext: "ctx::" + e.ctx,
@@ -947,32 +951,32 @@ function $e(e, t, s = void 0, n = void 0) {
947
951
  ]
948
952
  }),
949
953
  type: "json",
950
- onComplete(o) {
951
- s && s(o);
954
+ onComplete(a) {
955
+ s && s(a);
952
956
  },
953
- onFailure(o) {
954
- n && n(o);
957
+ onFailure(a) {
958
+ n && n(a);
955
959
  }
956
960
  };
957
- f(c, i);
961
+ f(c, r);
958
962
  }
959
963
  });
960
964
  }
961
- function je(e, t, s, n = void 0, a = void 0) {
965
+ function je(e, t, s, n = void 0, o = void 0) {
962
966
  return new Promise((c) => {
963
967
  if (e.token === "" && C(e), t !== void 0 && t !== "" && t !== null) {
964
- const i = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
968
+ const r = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
965
969
  b(
966
970
  e.space,
967
971
  "ESPACE COMMUN",
968
972
  ["VPLMProjectLeader", "VPLMCreator"],
969
973
  void 0,
970
- (r) => e.ctx = r,
971
- (r) => {
972
- console.log("onError =>", r);
974
+ (i) => e.ctx = i,
975
+ (i) => {
976
+ console.log("onError =>", i);
973
977
  }
974
978
  );
975
- let o = {
979
+ let a = {
976
980
  method: "POST",
977
981
  headers: {
978
982
  securitycontext: "ctx::" + e.ctx,
@@ -994,14 +998,14 @@ function je(e, t, s, n = void 0, a = void 0) {
994
998
  notificationTimeout: 600
995
999
  }),
996
1000
  type: "json",
997
- onComplete(r) {
998
- n && n(r);
1001
+ onComplete(i) {
1002
+ n && n(i);
999
1003
  },
1000
- onFailure(r) {
1001
- a && a(r);
1004
+ onFailure(i) {
1005
+ o && o(i);
1002
1006
  }
1003
1007
  };
1004
- f(i, o);
1008
+ f(r, a);
1005
1009
  }
1006
1010
  });
1007
1011
  }
@@ -1011,19 +1015,19 @@ function Ae(e, t = void 0, s = void 0) {
1011
1015
  base: `${e.space}`,
1012
1016
  uri: "/resources/bps/cspaces",
1013
1017
  optTenant: `tenant=${e.tenant}`
1014
- }, a = `${n.base}${n.uri}?${n.optTenant}`;
1015
- f(a, {
1018
+ }, o = `${n.base}${n.uri}?${n.optTenant}`;
1019
+ f(o, {
1016
1020
  method: "GET",
1017
1021
  headers: {
1018
1022
  Accept: "application/json,text/javascript,*/*",
1019
1023
  "Content-Type": "application/ds-json"
1020
1024
  },
1021
- onComplete(c, i) {
1022
- const o = JSON.parse(c);
1023
- t && t(o, i);
1025
+ onComplete(c, r) {
1026
+ const a = JSON.parse(c);
1027
+ t && t(a, r);
1024
1028
  },
1025
- onFailure(c, i, o) {
1026
- s && s({ response: c, headers: i, xhr: o });
1029
+ onFailure(c, r, a) {
1030
+ s && s({ response: c, headers: r, xhr: a });
1027
1031
  }
1028
1032
  });
1029
1033
  }
@@ -1031,8 +1035,8 @@ function Re(e, t, s, n) {
1031
1035
  U(
1032
1036
  e.space,
1033
1037
  t,
1034
- (a) => {
1035
- f(a, {
1038
+ (o) => {
1039
+ f(o, {
1036
1040
  header: { ENO_CSRF_TOKEN: e.token },
1037
1041
  onComplete: (c) => {
1038
1042
  s && s(c);
@@ -1045,43 +1049,43 @@ function Re(e, t, s, n) {
1045
1049
  );
1046
1050
  }
1047
1051
  async function Ie(e, t, s = void 0, n = void 0) {
1048
- return new Promise((a) => {
1052
+ return new Promise((o) => {
1049
1053
  U(e, t, (c) => {
1050
1054
  f(c, {
1051
- onComplete: (i, o, r) => (a(JSON.parse(i)), s && s(JSON.parse(i), o, r), a),
1052
- onFailure: (i, o, r) => {
1053
- n && n(i, o, r), console.log(i, o?.errormsg);
1055
+ onComplete: (r, a, i) => (o(JSON.parse(r)), s && s(JSON.parse(r), a, i), o),
1056
+ onFailure: (r, a, i) => {
1057
+ n && n(r, a, i), console.log(r, a?.errormsg);
1054
1058
  }
1055
1059
  });
1056
1060
  });
1057
1061
  });
1058
1062
  }
1059
- function ve(e, t, s, n = void 0, a = void 0) {
1063
+ function ve(e, t, s, n = void 0, o = void 0) {
1060
1064
  const c = new Blob([JSON.stringify(t)], { type: "text/plain" });
1061
1065
  k(
1062
1066
  e,
1063
1067
  s,
1064
- (i) => {
1065
- const o = i.data[0].relateddata.files[0].id, r = i.data[0].dataelements.secondaryTitle !== "" ? i.data[0].dataelements.secondaryTitle : i.data[0].dataelements.title;
1068
+ (r) => {
1069
+ const a = r.data[0].relateddata.files[0].id, i = r.data[0].dataelements.secondaryTitle !== "" ? r.data[0].dataelements.secondaryTitle : r.data[0].dataelements.title;
1066
1070
  K(
1067
1071
  e,
1068
1072
  s,
1069
- o,
1073
+ a,
1070
1074
  c,
1071
- r,
1075
+ i,
1072
1076
  (d) => {
1073
1077
  n && n(d);
1074
1078
  },
1075
1079
  (d) => {
1076
- a && a(d);
1080
+ o && o(d);
1077
1081
  }
1078
1082
  );
1079
1083
  }
1080
1084
  );
1081
1085
  }
1082
- let v, x;
1086
+ let v, P;
1083
1087
  const $ = [];
1084
- async function xe(e, t = void 0, s = void 0) {
1088
+ async function Pe(e, t = void 0, s = void 0) {
1085
1089
  e.objID && e.objID !== "" ? (console.log("obj est présent"), k(
1086
1090
  e,
1087
1091
  (n) => {
@@ -1100,12 +1104,12 @@ async function xe(e, t = void 0, s = void 0) {
1100
1104
  }
1101
1105
  );
1102
1106
  }
1103
- async function Pe(e, t = void 0, s = void 0) {
1107
+ async function xe(e, t = void 0, s = void 0) {
1104
1108
  console.log("getDatasByTenant (getDocuments)", e), await I(
1105
1109
  e,
1106
1110
  (n) => {
1107
- const a = {};
1108
- a.obj = n, console.log("getDatasByTenant (getDocuments) _datas", a), t && t?.(a);
1111
+ const o = {};
1112
+ o.obj = n, console.log("getDatasByTenant (getDocuments) _datas", o), t && t?.(o);
1109
1113
  },
1110
1114
  (n) => {
1111
1115
  s && s?.(n);
@@ -1114,12 +1118,12 @@ async function Pe(e, t = void 0, s = void 0) {
1114
1118
  }
1115
1119
  function Me(e, t = void 0, s = void 0) {
1116
1120
  const n = [];
1117
- e.objIds.forEach((a, c) => {
1121
+ e.objIds.forEach((o, c) => {
1118
1122
  I(
1119
1123
  e,
1120
- a.objId,
1121
- (i) => {
1122
- n.push({ [a.name]: i }), a.name === "dbProjets" && (v = i.affaires.map((o) => o.objectID), B(e, x)), c === e.objIds.length - 1 && t && t(n);
1124
+ o.objId,
1125
+ (r) => {
1126
+ n.push({ [o.name]: r }), o.name === "dbProjets" && (v = r.affaires.map((a) => a.objectID), B(e, P)), c === e.objIds.length - 1 && t && t(n);
1123
1127
  }
1124
1128
  );
1125
1129
  });
@@ -1128,12 +1132,12 @@ function B(e, t, s = void 0, n = void 0) {
1128
1132
  X(
1129
1133
  e,
1130
1134
  v,
1131
- (a) => {
1135
+ (o) => {
1132
1136
  const c = [...t];
1133
- c.find((i) => i.objectID === a.objectId).data = a.data, x = c, $.push(a.data), s && s($);
1137
+ c.find((r) => r.objectID === o.objectId).data = o.data, P = c, $.push(o.data), s && s($);
1134
1138
  },
1135
- (a) => {
1136
- n && (n(a), console.log(a));
1139
+ (o) => {
1140
+ n && (n(o), console.log(o));
1137
1141
  }
1138
1142
  );
1139
1143
  }
@@ -1144,7 +1148,7 @@ const Y = "FA35FB9B177A280065800EA0000F599C", H = [
1144
1148
  "usersgroup",
1145
1149
  "3dplan",
1146
1150
  "dashboard"
1147
- ], P = {
1151
+ ], x = {
1148
1152
  how: "ds6w:how",
1149
1153
  what: "ds6w:what",
1150
1154
  when: "ds6w:when",
@@ -1158,21 +1162,21 @@ const Y = "FA35FB9B177A280065800EA0000F599C", H = [
1158
1162
  tag: "testTag"
1159
1163
  };
1160
1164
  function Le(e, t, s = void 0, n = void 0) {
1161
- const { space: a, tenant: c } = e, { objId: i, pred: o, tag: r } = t, d = {
1165
+ const { space: o, tenant: c } = e, { objId: r, pred: a, tag: i } = t, d = {
1162
1166
  uri: "/resources/6w/tags",
1163
1167
  otpCTX: "SecurityContext=preferred",
1164
1168
  optTenant: `tenant=${c}`
1165
- }, l = `${a}${d.uri}?${d.otpCTX}&${d.optTenant}`, p = {
1169
+ }, l = `${o}${d.uri}?${d.otpCTX}&${d.optTenant}`, p = {
1166
1170
  tag: [
1167
1171
  {
1168
1172
  subject: [
1169
1173
  {
1170
- uri: `pid://${i}`
1174
+ uri: `pid://${r}`
1171
1175
  }
1172
1176
  ],
1173
- predicate: P[o],
1177
+ predicate: x[a],
1174
1178
  object: {
1175
- literal: r
1179
+ literal: i
1176
1180
  }
1177
1181
  }
1178
1182
  ]
@@ -1190,7 +1194,7 @@ function Le(e, t, s = void 0, n = void 0) {
1190
1194
  setTimeout(() => {
1191
1195
  G(
1192
1196
  e,
1193
- i,
1197
+ r,
1194
1198
  (g) => {
1195
1199
  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;
1196
1200
  m.name = h, m.ext = S, m.createBy = _, t.info = { ...m }, q(
@@ -1219,17 +1223,17 @@ function Le(e, t, s = void 0, n = void 0) {
1219
1223
  }
1220
1224
  function q(e, t, s = void 0, n = void 0) {
1221
1225
  console.log("obj ", t);
1222
- const a = t.info.name, c = {
1226
+ const o = t.info.name, c = {
1223
1227
  baseUrl: `https://${e.tenant.toLowerCase()}-eu1-fedsearch.3dexperience.3ds.com`,
1224
1228
  uri: "/federated/search"
1225
- }, i = `${c.baseUrl}${c.uri}`, o = {
1229
+ }, r = `${c.baseUrl}${c.uri}`, a = {
1226
1230
  "Content-Type": "application/json",
1227
1231
  Accept: "application/json,text/javascript,*/*"
1228
- }, r = R(), d = {
1232
+ }, i = R(), d = {
1229
1233
  with_indexing_date: !0,
1230
1234
  with_synthesis: !0,
1231
1235
  with_nls: !1,
1232
- label: `3DSearch-${e.currentUser.username}-AjoutDeTagBeam-${r}`,
1236
+ label: `3DSearch-${e.currentUser.username}-AjoutDeTagBeam-${i}`,
1233
1237
  locale: "fr",
1234
1238
  select_predicate: [
1235
1239
  "ds6w:label",
@@ -1257,7 +1261,7 @@ function q(e, t, s = void 0, n = void 0) {
1257
1261
  ],
1258
1262
  with_synthesis_hierarchical: !0,
1259
1263
  select_file: ["icon", "thumbnail_2d"],
1260
- query: a,
1264
+ query: o,
1261
1265
  specific_source_parameter: {
1262
1266
  "3dspace": {
1263
1267
  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)'
@@ -1286,9 +1290,9 @@ function q(e, t, s = void 0, n = void 0) {
1286
1290
  }
1287
1291
  }
1288
1292
  };
1289
- console.log("dataPattern => ", d), f(i, {
1293
+ console.log("dataPattern => ", d), f(r, {
1290
1294
  method: "POST",
1291
- headers: o,
1295
+ headers: a,
1292
1296
  data: JSON.stringify(d),
1293
1297
  onComplete(l) {
1294
1298
  const p = JSON.parse(l);
@@ -1301,26 +1305,26 @@ function q(e, t, s = void 0, n = void 0) {
1301
1305
  });
1302
1306
  }
1303
1307
  function Ee(e, t, s = void 0, n = void 0) {
1304
- const { objId: a, pred: c, tag: i } = t, o = {
1308
+ const { objId: o, pred: c, tag: r } = t, a = {
1305
1309
  uri: "/resources/6w/tags",
1306
1310
  otpCTX: "SecurityContext=preferred",
1307
1311
  optTenant: `tenant=${e.tenant}`
1308
- }, r = `${e.space}${o.uri}?${o.otpCTX}&${o.optTenant}`, d = {
1312
+ }, i = `${e.space}${a.uri}?${a.otpCTX}&${a.optTenant}`, d = {
1309
1313
  tag: [
1310
1314
  {
1311
1315
  subject: [
1312
1316
  {
1313
- uri: `pid://${a}`
1317
+ uri: `pid://${o}`
1314
1318
  }
1315
1319
  ],
1316
- predicate: P[c],
1320
+ predicate: x[c],
1317
1321
  object: {
1318
- literal: i
1322
+ literal: r
1319
1323
  }
1320
1324
  }
1321
1325
  ]
1322
1326
  };
1323
- f(r, {
1327
+ f(i, {
1324
1328
  method: "DELETE",
1325
1329
  data: JSON.stringify(d),
1326
1330
  headers: {
@@ -1337,19 +1341,19 @@ function Ee(e, t, s = void 0, n = void 0) {
1337
1341
  });
1338
1342
  }
1339
1343
  function Je(e, t = "", s = void 0, n = void 0) {
1340
- const { space: a } = e;
1344
+ const { space: o } = e;
1341
1345
  if (t === "")
1342
1346
  return;
1343
1347
  const c = {
1344
1348
  uri: "/resources/v1/modeler/documents"
1345
- }, i = {
1349
+ }, r = {
1346
1350
  "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
1347
1351
  Accept: "application/json,text/javascript,*/*"
1348
- }, o = `${a}${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}`;
1349
- f(o, {
1352
+ }, a = `${o}${c.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}`;
1353
+ f(a, {
1350
1354
  method: "POST",
1351
- headers: i,
1352
- data: r,
1355
+ headers: r,
1356
+ data: i,
1353
1357
  onComplete(d) {
1354
1358
  s && s(JSON.parse(d));
1355
1359
  },
@@ -1362,18 +1366,18 @@ function Je(e, t = "", s = void 0, n = void 0) {
1362
1366
  async function w(e, t = void 0, s = void 0) {
1363
1367
  const n = e.space + "/api/index/tk";
1364
1368
  return f(n, {
1365
- onComplete(a, c, i) {
1366
- const o = JSON.parse(a);
1369
+ onComplete(o, c, r) {
1370
+ const a = JSON.parse(o);
1367
1371
  if (t)
1368
- return t(o), e.token = o?.result?.ServerToken;
1372
+ return t(a), e.token = a?.result?.ServerToken;
1369
1373
  },
1370
- onFailure(a) {
1371
- s && s(a);
1374
+ onFailure(o) {
1375
+ s && s(o);
1372
1376
  }
1373
1377
  });
1374
1378
  }
1375
1379
  function Ge(e, t = void 0, s = void 0) {
1376
- const n = `${e.space}/api/exalead/whatsnew`, a = {
1380
+ const n = `${e.space}/api/exalead/whatsnew`, o = {
1377
1381
  params: {
1378
1382
  community_id: null,
1379
1383
  hash_key: null,
@@ -1391,19 +1395,19 @@ function Ge(e, t = void 0, s = void 0) {
1391
1395
  "Content-type": "application/json;charset=UTF-8",
1392
1396
  Accept: "application/json"
1393
1397
  },
1394
- data: JSON.stringify(a),
1398
+ data: JSON.stringify(o),
1395
1399
  type: "json",
1396
- onComplete(i, o) {
1397
- t && t(i, o);
1400
+ onComplete(r, a) {
1401
+ t && t(r, a);
1398
1402
  },
1399
- onFailure(i, o) {
1400
- s && s(i, o);
1403
+ onFailure(r, a) {
1404
+ s && s(r, a);
1401
1405
  }
1402
1406
  });
1403
1407
  });
1404
1408
  }
1405
1409
  function Ke(e, t = void 0, s = void 0) {
1406
- const n = `${e.space}/api/Recommendation/getpeoplefamiliartocurrentuser`, a = {
1410
+ const n = `${e.space}/api/Recommendation/getpeoplefamiliartocurrentuser`, o = {
1407
1411
  params: {
1408
1412
  idsToFilterArr: [],
1409
1413
  mode: "offline",
@@ -1420,14 +1424,14 @@ function Ke(e, t = void 0, s = void 0) {
1420
1424
  "Content-type": "application/json;charset=UTF-8",
1421
1425
  Accept: "application/json"
1422
1426
  },
1423
- data: JSON.stringify(a),
1427
+ data: JSON.stringify(o),
1424
1428
  type: "json",
1425
- onComplete(i, o) {
1426
- const r = i.result.hits.map((d) => ({ login: d.login, fullName: d.name }));
1427
- t && t(r, i);
1429
+ onComplete(r, a) {
1430
+ const i = r.result.hits.map((d) => ({ login: d.login, fullName: d.name }));
1431
+ t && t(i, r);
1428
1432
  },
1429
- onFailure(i, o) {
1430
- s && s(i, o);
1433
+ onFailure(r, a) {
1434
+ s && s(r, a);
1431
1435
  }
1432
1436
  });
1433
1437
  });
@@ -1438,15 +1442,15 @@ function We(e, t = void 0, s = void 0) {
1438
1442
  uri: "/api/community/listmycommunities",
1439
1443
  limit: `/limit/${e.limit ? e.limit : 128}`,
1440
1444
  page: `/page/${e.page ? e.page : "1"}`
1441
- }, a = `${n.base}${n.uri}${n.limit}${n.page}`, c = [];
1442
- w(e, (i) => {
1443
- f(a, {
1445
+ }, o = `${n.base}${n.uri}${n.limit}${n.page}`, c = [];
1446
+ w(e, (r) => {
1447
+ f(o, {
1444
1448
  method: "GET",
1445
1449
  headers: {
1446
- "X-DS-SWYM-CSRFTOKEN": i.result.ServerToken
1450
+ "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
1447
1451
  },
1448
- onComplete(o, r, d) {
1449
- const p = JSON.parse(o).result;
1452
+ onComplete(a, i, d) {
1453
+ const p = JSON.parse(a).result;
1450
1454
  let u = 0;
1451
1455
  p.forEach((m) => {
1452
1456
  const g = {
@@ -1467,37 +1471,37 @@ function We(e, t = void 0, s = void 0) {
1467
1471
  );
1468
1472
  });
1469
1473
  },
1470
- onFailure(o, r) {
1471
- const d = o;
1472
- d.status = r.status, d.response = r.errormsg, s && s(d);
1474
+ onFailure(a, i) {
1475
+ const d = a;
1476
+ d.status = i.status, d.response = i.errormsg, s && s(d);
1473
1477
  }
1474
1478
  });
1475
1479
  });
1476
1480
  }
1477
1481
  function Q(e, t, s, n) {
1478
- const a = `${e.space}/api/community/listmembers`, c = {
1482
+ const o = `${e.space}/api/community/listmembers`, c = {
1479
1483
  params: {
1480
1484
  page: e.page ? e.page : 1,
1481
1485
  limit: e.limit ? e.limit : 50,
1482
1486
  community_id: t
1483
1487
  }
1484
1488
  };
1485
- w(e, (i) => {
1486
- f(a, {
1489
+ w(e, (r) => {
1490
+ f(o, {
1487
1491
  method: "POST",
1488
1492
  headers: {
1489
1493
  "Content-type": "application/json;charset=UTF-8",
1490
1494
  Accept: "application/json",
1491
- "X-DS-SWYM-CSRFTOKEN": i.result.ServerToken
1495
+ "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
1492
1496
  },
1493
1497
  data: JSON.stringify(c),
1494
1498
  type: "json",
1495
- onComplete(o, r, d) {
1496
- s && s(o);
1499
+ onComplete(a, i, d) {
1500
+ s && s(a);
1497
1501
  },
1498
- onFailure(o, r) {
1499
- const d = o;
1500
- d.status = r.status, d.response = r.errormsg, n && n(d);
1502
+ onFailure(a, i) {
1503
+ const d = a;
1504
+ d.status = i.status, d.response = i.errormsg, n && n(d);
1501
1505
  }
1502
1506
  });
1503
1507
  });
@@ -1505,32 +1509,32 @@ function Q(e, t, s, n) {
1505
1509
  function Xe(e, t = void 0, s = void 0) {
1506
1510
  const n = "YXdA5x4DSUKtlAi2wmnyTA";
1507
1511
  e.commu_id || (e.commu_id = n);
1508
- const a = `${e.space}/api/v2/communities/${e.commu_id}/ideas/statuses`;
1512
+ const o = `${e.space}/api/v2/communities/${e.commu_id}/ideas/statuses`;
1509
1513
  w(e, (c) => {
1510
- f(a, {
1514
+ f(o, {
1511
1515
  method: "GET",
1512
1516
  headers: {
1513
1517
  "Content-type": "application/json;charset=UTF-8",
1514
1518
  Accept: "application/json",
1515
1519
  "X-DS-SWYM-CSRFTOKEN": c.result.ServerToken
1516
1520
  },
1517
- onComplete(i) {
1518
- const o = JSON.parse(i);
1519
- t && t(o);
1521
+ onComplete(r) {
1522
+ const a = JSON.parse(r);
1523
+ t && t(a);
1520
1524
  },
1521
- onFailure(i, o) {
1522
- const r = i;
1523
- r.status = o.status, r.response = o.errormsg, s && s(r);
1525
+ onFailure(r, a) {
1526
+ const i = r;
1527
+ i.status = a.status, i.response = a.errormsg, s && s(i);
1524
1528
  }
1525
1529
  });
1526
1530
  });
1527
1531
  }
1528
1532
  function Ve(e, t, s = void 0, n = void 0) {
1529
- const { listAllContacts: a, currentUser: c } = e;
1530
- console.log("__listAllContacts", a.hits);
1531
- const i = `${e.space}/api/directmessages`, o = {
1533
+ const { listAllContacts: o, currentUser: c } = e;
1534
+ console.log("__listAllContacts", o.hits);
1535
+ const r = `${e.space}/api/directmessages`, a = {
1532
1536
  users: [c.login].concat(t.receipt)
1533
- }, r = {
1537
+ }, i = {
1534
1538
  id_msg: "",
1535
1539
  senderId: e.currentUser.login,
1536
1540
  senderName: `${e.currentUser.first_name} ${e.currentUser.last_name}`,
@@ -1538,27 +1542,27 @@ function Ve(e, t, s = void 0, n = void 0) {
1538
1542
  };
1539
1543
  let d = !1;
1540
1544
  Z(
1541
- o.users,
1545
+ a.users,
1542
1546
  (l) => {
1543
- l !== void 0 && (r.id_msg = l.id, d = !0, j(e, r));
1547
+ l !== void 0 && (i.id_msg = l.id, d = !0, j(e, i));
1544
1548
  },
1545
1549
  (l) => {
1546
- d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", l), n && n(l), r.id_msg = "";
1550
+ d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", l), n && n(l), i.id_msg = "";
1547
1551
  }
1548
1552
  ), d === !1 && setTimeout(() => {
1549
1553
  d === !1 && w(e, (l) => {
1550
- f(i, {
1554
+ f(r, {
1551
1555
  method: "POST",
1552
1556
  headers: {
1553
1557
  "Content-Type": "application/json",
1554
1558
  Accept: "application/json",
1555
1559
  "X-DS-SWYM-CSRFTOKEN": l.result.ServerToken
1556
1560
  },
1557
- data: JSON.stringify(o),
1561
+ data: JSON.stringify(a),
1558
1562
  type: "json",
1559
1563
  onComplete(p, u, m) {
1560
1564
  const g = p;
1561
- g.reponse = JSON.parse(m.response), g.status = m.status, s && s(g), r.id_msg = g.result.id, j(e, r);
1565
+ g.reponse = JSON.parse(m.response), g.status = m.status, s && s(g), i.id_msg = g.result.id, j(e, i);
1562
1566
  },
1563
1567
  onFailure(p, u, m) {
1564
1568
  const g = p;
@@ -1569,20 +1573,20 @@ function Ve(e, t, s = void 0, n = void 0) {
1569
1573
  }, 500);
1570
1574
  }
1571
1575
  function Z(e, t, s, n) {
1572
- const a = `${e.space}/api/directmessages/lite?with_favorites=false`;
1576
+ const o = `${e.space}/api/directmessages/lite?with_favorites=false`;
1573
1577
  w(e, (c) => {
1574
- f(a, {
1578
+ f(o, {
1575
1579
  method: "GET",
1576
1580
  headers: {
1577
1581
  Accept: "application/json,text/javascript,*/*",
1578
1582
  "X-DS-SWYM-CSRFTOKEN": c.result.ServerToken
1579
1583
  },
1580
- onComplete(i) {
1581
- const o = JSON.parse(i), r = [];
1582
- o.result.forEach((p) => {
1583
- p.users = p.users.sort((u, m) => u.login.localeCompare(m.login)), p.users.length === t.length && r.push(p);
1584
+ onComplete(r) {
1585
+ const a = JSON.parse(r), i = [];
1586
+ a.result.forEach((p) => {
1587
+ p.users = p.users.sort((u, m) => u.login.localeCompare(m.login)), p.users.length === t.length && i.push(p);
1584
1588
  });
1585
- const d = t.sort(), l = r.find((p) => {
1589
+ const d = t.sort(), l = i.find((p) => {
1586
1590
  const u = [];
1587
1591
  return p.users.forEach((m) => {
1588
1592
  u.push(m.login);
@@ -1590,20 +1594,20 @@ function Z(e, t, s, n) {
1590
1594
  });
1591
1595
  s && l !== void 0 ? s(l) : (n || l === void 0) && n(l);
1592
1596
  },
1593
- onFailure(i) {
1594
- const o = i;
1595
- o.msg = headers.errormsg, o.errCode = headers.errorcode, console.log("❌ sendDirectMessageLite => ", o), n && n(o);
1597
+ onFailure(r) {
1598
+ const a = r;
1599
+ a.msg = headers.errormsg, a.errCode = headers.errorcode, console.log("❌ sendDirectMessageLite => ", a), n && n(a);
1596
1600
  }
1597
1601
  });
1598
1602
  });
1599
1603
  }
1600
1604
  function j(e, t, s = void 0, n = void 0) {
1601
- const a = {
1605
+ const o = {
1602
1606
  base: e.space,
1603
1607
  uri: "/api/community",
1604
1608
  id_msg: `${t.id_msg}`,
1605
1609
  endUri: "/instantmessages"
1606
- }, c = `${a.base}${a.uri}/${a.id_msg}${a.endUri}`, i = {
1610
+ }, c = `${o.base}${o.uri}/${o.id_msg}${o.endUri}`, r = {
1607
1611
  author: { login: t.senderId, displayName: t.senderName },
1608
1612
  accessState: null,
1609
1613
  commentUri: null,
@@ -1613,22 +1617,22 @@ function j(e, t, s = void 0, n = void 0) {
1613
1617
  parentCommentUri: null,
1614
1618
  richMessage: t.msg
1615
1619
  };
1616
- console.log("_3dSwym_sendDirectMessageData url ", c), w(e, (o) => {
1620
+ console.log("_3dSwym_sendDirectMessageData url ", c), w(e, (a) => {
1617
1621
  f(c, {
1618
1622
  method: "POST",
1619
1623
  headers: {
1620
1624
  "Content-Type": "application/json",
1621
1625
  Accept: "application/json",
1622
- "X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
1626
+ "X-DS-SWYM-CSRFTOKEN": a.result.ServerToken
1623
1627
  },
1624
- data: JSON.stringify(i),
1628
+ data: JSON.stringify(r),
1625
1629
  type: "json",
1626
- onComplete(r, d, l) {
1627
- const p = r;
1630
+ onComplete(i, d, l) {
1631
+ const p = i;
1628
1632
  p.status = l.status, p.response = JSON.parse(l.response), console.log("✅ _3dSwym_sendDirectMessageData => ", p), s && s(p);
1629
1633
  },
1630
- onFailure(r, d) {
1631
- const l = r;
1634
+ onFailure(i, d) {
1635
+ const l = i;
1632
1636
  l.msg = d.errormsg, l.errCode = d.errorcode, console.log("❌ sendDirectMessage => ", l), n && n(l);
1633
1637
  }
1634
1638
  });
@@ -1652,15 +1656,15 @@ const te = {
1652
1656
  // id de l'idee qui est créer au post (_3dSwym_postIdea)
1653
1657
  };
1654
1658
  function Be(e, t, s = void 0, n = void 0) {
1655
- const a = `${e.space}/api/idea/add`, c = e.swymCommunities.find(
1656
- (r) => r.id === t.community_id
1657
- ), i = e.swymCommunities.find(
1658
- (r) => r.title.toLowerCase() === t.community_title.toLowerCase()
1659
- ), o = {
1659
+ const o = `${e.space}/api/idea/add`, c = e.swymCommunities.find(
1660
+ (i) => i.id === t.community_id
1661
+ ), r = e.swymCommunities.find(
1662
+ (i) => i.title.toLowerCase() === t.community_title.toLowerCase()
1663
+ ), a = {
1660
1664
  params: {
1661
1665
  title: t.title,
1662
1666
  // String, le nom de l'affaire
1663
- community_id: c?.id !== void 0 ? c.id : i.id,
1667
+ community_id: c?.id !== void 0 ? c.id : r.id,
1664
1668
  // String, l'id de la communauté
1665
1669
  message: ne(t.text_html),
1666
1670
  // STRING => le contenue du message doit être au format HTML
@@ -1668,16 +1672,16 @@ function Be(e, t, s = void 0, n = void 0) {
1668
1672
  // 1 publier, 0 non publier
1669
1673
  }
1670
1674
  };
1671
- w(e, (r) => {
1675
+ w(e, (i) => {
1672
1676
  const d = {
1673
1677
  "Content-type": "application/json;charset=UTF-8",
1674
1678
  Accept: "application/json",
1675
- "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
1679
+ "X-DS-SWYM-CSRFTOKEN": i.result.ServerToken
1676
1680
  };
1677
- f(a, {
1681
+ f(o, {
1678
1682
  method: "POST",
1679
1683
  headers: d,
1680
- data: JSON.stringify(o),
1684
+ data: JSON.stringify(a),
1681
1685
  type: "json",
1682
1686
  onComplete(l, p, u) {
1683
1687
  const m = JSON.parse(l);
@@ -1691,80 +1695,80 @@ function Be(e, t, s = void 0, n = void 0) {
1691
1695
  });
1692
1696
  }
1693
1697
  function Ye(e, t, s = void 0, n = void 0) {
1694
- const a = `${e.space}/api/idea/delete`, c = {
1698
+ const o = `${e.space}/api/idea/delete`, c = {
1695
1699
  params: {
1696
1700
  community_id: t.community_id,
1697
1701
  ideationIds: [t.idee_id]
1698
1702
  }
1699
1703
  };
1700
- w(e, (i) => {
1701
- f(a, {
1704
+ w(e, (r) => {
1705
+ f(o, {
1702
1706
  method: "POST",
1703
1707
  headers: {
1704
1708
  "Content-type": "application/json;charset=UTF-8",
1705
1709
  Accept: "application/json",
1706
- "X-DS-SWYM-CSRFTOKEN": i.result.ServerToken
1710
+ "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
1707
1711
  },
1708
1712
  data: JSON.stringify(c),
1709
1713
  type: "json",
1710
- onComplete(o, r, d) {
1711
- s && s(o);
1714
+ onComplete(a, i, d) {
1715
+ s && s(a);
1712
1716
  },
1713
- onFailure(o, r, d) {
1714
- const l = o;
1715
- l.status = r.status, l.response = r.errormsg, n && n(l);
1717
+ onFailure(a, i, d) {
1718
+ const l = a;
1719
+ l.status = i.status, l.response = i.errormsg, n && n(l);
1716
1720
  }
1717
1721
  });
1718
1722
  });
1719
1723
  }
1720
1724
  function He(e, t = "", s = void 0, n = void 0) {
1721
- const a = e.tenant.toLowerCase() === "r1132101716373" ? "tFtz0G4MR6qNtKgJjNfTog" : e.tenant.toLowerCase() === "r1132101286859" ? "Qpv3HN-tTDOsU-7_c5DnDg" : "Template_d'idée_à_créer";
1722
- t === "" && (t = a);
1723
- const c = `${e.space}/api/idea/get`, i = {
1725
+ const o = e.tenant.toLowerCase() === "r1132101716373" ? "tFtz0G4MR6qNtKgJjNfTog" : e.tenant.toLowerCase() === "r1132101286859" ? "Qpv3HN-tTDOsU-7_c5DnDg" : "Template_d'idée_à_créer";
1726
+ t === "" && (t = o);
1727
+ const c = `${e.space}/api/idea/get`, r = {
1724
1728
  params: {
1725
1729
  id: t
1726
1730
  }
1727
1731
  };
1728
- w(e, (o) => {
1732
+ w(e, (a) => {
1729
1733
  f(c, {
1730
1734
  method: "POST",
1731
1735
  headers: {
1732
1736
  "Content-type": "application/json;charset=UTF-8",
1733
1737
  Accept: "application/json",
1734
- "X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
1738
+ "X-DS-SWYM-CSRFTOKEN": a.result.ServerToken
1735
1739
  },
1736
- data: JSON.stringify(i),
1740
+ data: JSON.stringify(r),
1737
1741
  type: "json",
1738
- onComplete(r) {
1739
- const d = r;
1742
+ onComplete(i) {
1743
+ const d = i;
1740
1744
  d.msg = d.result.message, s && s(d);
1741
1745
  },
1742
- onFailure(r) {
1743
- const d = r;
1746
+ onFailure(i) {
1747
+ const d = i;
1744
1748
  d.status = headers.status, d.response = headers.errormsg, n && n(d);
1745
1749
  }
1746
1750
  });
1747
1751
  });
1748
1752
  }
1749
1753
  function ze(e, t = te, s = void 0, n = void 0) {
1750
- const a = {
1754
+ const o = {
1751
1755
  uri: "/api/idea/list",
1752
1756
  comId: `/community_id/${e.tenant.toLowerCase() === "r1132101716373" ? t.community_id : "bgnIsG74SUWswyGzS6NC6g"}`,
1753
1757
  limit: `/limit/${t.limit ? t.limit : 10}`
1754
- }, c = `${e.space}${a.uri}${a.comId}${a.limit}`;
1755
- w(e, (i) => {
1758
+ }, c = `${e.space}${o.uri}${o.comId}${o.limit}`;
1759
+ w(e, (r) => {
1756
1760
  f(c, {
1757
1761
  method: "GET",
1758
1762
  headers: {
1759
- "X-DS-SWYM-CSRFTOKEN": i.result.ServerToken
1763
+ "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
1760
1764
  },
1761
- onComplete(o) {
1762
- const r = JSON.parse(o);
1763
- s && s(r);
1765
+ onComplete(a) {
1766
+ const i = JSON.parse(a);
1767
+ s && s(i);
1764
1768
  },
1765
- onFailure(o, r) {
1766
- const d = o;
1767
- d.status = r.status, d.response = r.errormsg, n && n(d);
1769
+ onFailure(a, i) {
1770
+ const d = a;
1771
+ d.status = i.status, d.response = i.errormsg, n && n(d);
1768
1772
  }
1769
1773
  });
1770
1774
  });
@@ -1846,37 +1850,37 @@ function ne(e) {
1846
1850
  }
1847
1851
  function qe(e, t = void 0, s = void 0) {
1848
1852
  const n = e.space + "/api/user/getcurrent/";
1849
- w(e, (a) => {
1853
+ w(e, (o) => {
1850
1854
  f(n, {
1851
1855
  method: "GET",
1852
1856
  headers: {
1853
- "X-DS-SWYM-CSRFTOKEN": a.result.ServerToken
1857
+ "X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
1854
1858
  },
1855
- onComplete(c, i, o) {
1856
- const r = JSON.parse(c);
1857
- t && t(r.result);
1859
+ onComplete(c, r, a) {
1860
+ const i = JSON.parse(c);
1861
+ t && t(i.result);
1858
1862
  },
1859
- onFailure(c, i, o) {
1860
- const r = { erreur: JSON.parse(c), headers: i, xhr: o };
1861
- s && s(r);
1863
+ onFailure(c, r, a) {
1864
+ const i = { erreur: JSON.parse(c), headers: r, xhr: a };
1865
+ s && s(i);
1862
1866
  }
1863
1867
  });
1864
1868
  });
1865
1869
  }
1866
1870
  function Qe(e, t, s = void 0, n = void 0) {
1867
- const a = e.space + "/api/user/find/login/" + t;
1871
+ const o = e.space + "/api/user/find/login/" + t;
1868
1872
  w(
1869
1873
  e,
1870
1874
  (c) => {
1871
- f(a, {
1875
+ f(o, {
1872
1876
  method: "GET",
1873
1877
  headers: { "X-DS-SWYM-CSRFTOKEN": c.result.ServerToken },
1874
- onComplete(i, o, r) {
1875
- const d = JSON.parse(i);
1878
+ onComplete(r, a, i) {
1879
+ const d = JSON.parse(r);
1876
1880
  s && s(d);
1877
1881
  },
1878
- onFailure(i) {
1879
- n && n(i);
1882
+ onFailure(r) {
1883
+ n && n(r);
1880
1884
  }
1881
1885
  });
1882
1886
  },
@@ -1942,13 +1946,13 @@ export {
1942
1946
  ye as getComplementUG,
1943
1947
  Re as getDataFrom3DSpace,
1944
1948
  ce as getDataFromGouvFr,
1945
- Pe as getDatasByTenant,
1949
+ xe as getDatasByTenant,
1946
1950
  Me as getDatasFrom3DSpace,
1947
1951
  Ie as getDownloadDocument,
1948
1952
  Je as getInfoDocTags,
1949
1953
  we as getUserGroupsList,
1950
1954
  E as getUsersGroupRules,
1951
- xe as get_3DSpace_csrf,
1955
+ Pe as get_3DSpace_csrf,
1952
1956
  Ce as patchUserGroups,
1953
1957
  Oe as patchUserGroupsControl,
1954
1958
  ve as pushDataIn3DSpace,