@beam3_dev/api_module 0.0.65 → 0.0.66

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,96 @@ 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
+ f(a, {
706
+ headers: {
707
+ "Content-Type": "application/json",
708
+ Accept: "application/json",
709
+ ENO_CSRF_TOKEN: e.token
710
+ },
711
+ onComplete(i) {
712
+ const d = JSON.parse(i);
713
+ console.log("_3DSpace_download_doc / reponse ", d), t && t(d), c(d);
714
+ },
715
+ onFailure(i, d, l) {
716
+ s && (console.log("error http", i), s({ error: i, headers: d, xhr: l }), r({ error: i, headers: d, xhr: l }));
717
+ }
718
+ });
719
+ },
720
+ (a) => {
721
+ s && s(a), console.log("*_3dspace_download_doc / error file URL *", a), r(a);
722
+ }
723
+ );
724
+ });
723
725
  }
724
726
  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);
727
+ let o = [];
728
+ for (let a = 0; a < t.length; a += 80) {
729
+ const i = t.slice(a, a + 80);
730
+ o.push(i);
729
731
  }
730
- const i = (o) => {
732
+ const r = (a) => {
731
733
  V(
732
734
  e,
733
- a[o],
735
+ o[a],
734
736
  () => {
735
- o++, o < a.length && i(o);
737
+ a++, a < o.length && r(a);
736
738
  },
737
- (r) => {
738
- s && s(r);
739
+ (i) => {
740
+ s && s(i);
739
741
  }
740
742
  );
741
743
  };
742
- i(0);
744
+ r(0);
743
745
  }
744
- function V(e, t, s = void 0, n = void 0, a = void 0) {
746
+ function V(e, t, s = void 0, n = void 0, o = void 0) {
745
747
  const c = [];
746
- t.forEach((r) => {
748
+ t.forEach((i) => {
747
749
  c.push({
748
- id: r
750
+ id: i
749
751
  });
750
752
  });
751
- let i = JSON.stringify({
753
+ let r = JSON.stringify({
752
754
  csrf: {
753
755
  name: "ENO_CSRF_TOKEN",
754
756
  value: e.token
755
757
  },
756
758
  data: c
757
759
  });
758
- const o = `${e.space}/resources/v1/modeler/documents/DownloadTicket?tenant=${e.tenant}&e6w-lang=fr&e6w-timezone=-120`;
759
- f(o, {
760
+ const a = `${e.space}/resources/v1/modeler/documents/DownloadTicket?tenant=${e.tenant}&e6w-lang=fr&e6w-timezone=-120`;
761
+ f(a, {
760
762
  method: "PUT",
761
- data: i,
763
+ data: r,
762
764
  type: "json",
763
- onComplete(r) {
764
- const d = r.data;
765
- r.success === !0 && (s && s(), d.forEach((l) => {
765
+ onComplete(i) {
766
+ const d = i.data;
767
+ i.success === !0 && (s && s(), d.forEach((l) => {
766
768
  try {
767
769
  const p = l.dataelements.fileName, u = l.dataelements.ticketURL;
768
770
  f(u, {
@@ -778,17 +780,17 @@ function V(e, t, s = void 0, n = void 0, a = void 0) {
778
780
  }
779
781
  });
780
782
  } catch (p) {
781
- console.log(p), a && a(p);
783
+ console.log(p), o && o(p);
782
784
  }
783
785
  }));
784
786
  },
785
- onFailure(r) {
786
- console.log(r), a && a(r);
787
+ onFailure(i) {
788
+ console.log(i), o && o(i);
787
789
  }
788
790
  });
789
791
  }
790
792
  function De(e, t, s = void 0, n = void 0) {
791
- return new Promise((a) => {
793
+ return new Promise((o) => {
792
794
  if (e.token === "" && C(e), t !== void 0 && t !== "" && t !== null) {
793
795
  const c = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
794
796
  b(
@@ -796,12 +798,12 @@ function De(e, t, s = void 0, n = void 0) {
796
798
  "ESPACE COMMUN",
797
799
  ["VPLMProjectLeader", "VPLMCreator"],
798
800
  void 0,
799
- (o) => e.ctx = o,
800
- (o) => {
801
- console.log("onError =>", o);
801
+ (a) => e.ctx = a,
802
+ (a) => {
803
+ console.log("onError =>", a);
802
804
  }
803
805
  );
804
- let i = {
806
+ let r = {
805
807
  method: "POST",
806
808
  headers: {
807
809
  SecurityContext: "ctx::" + e.ctx,
@@ -817,32 +819,32 @@ function De(e, t, s = void 0, n = void 0) {
817
819
  ]
818
820
  }),
819
821
  type: "json",
820
- onComplete(o) {
821
- s && s(o);
822
+ onComplete(a) {
823
+ s && s(a);
822
824
  },
823
- onFailure(o) {
824
- n && n(o);
825
+ onFailure(a) {
826
+ n && n(a);
825
827
  }
826
828
  };
827
- f(c, i);
829
+ f(c, r);
828
830
  }
829
831
  });
830
832
  }
831
- function Fe(e, t, s, n = void 0, a = void 0) {
833
+ function Fe(e, t, s, n = void 0, o = void 0) {
832
834
  return new Promise((c) => {
833
835
  if (e.token === "" && C(e), t !== void 0 && t !== "" && t !== null) {
834
- const i = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
836
+ const r = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
835
837
  b(
836
838
  e.space,
837
839
  "ESPACE COMMUN",
838
840
  ["VPLMProjectLeader", "VPLMCreator"],
839
841
  void 0,
840
- (r) => e.ctx = r,
841
- (r) => {
842
- console.log("onError =>", r);
842
+ (i) => e.ctx = i,
843
+ (i) => {
844
+ console.log("onError =>", i);
843
845
  }
844
846
  );
845
- let o = {
847
+ let a = {
846
848
  method: "POST",
847
849
  headers: {
848
850
  SecurityContext: "ctx::" + e.ctx,
@@ -859,19 +861,19 @@ function Fe(e, t, s, n = void 0, a = void 0) {
859
861
  ]
860
862
  }),
861
863
  type: "json",
862
- onComplete(r) {
863
- n && n(r);
864
+ onComplete(i) {
865
+ n && n(i);
864
866
  },
865
- onFailure(r) {
866
- a && a(r);
867
+ onFailure(i) {
868
+ o && o(i);
867
869
  }
868
870
  };
869
- f(i, o);
871
+ f(r, a);
870
872
  }
871
873
  });
872
874
  }
873
875
  function Ue(e, t, s = void 0, n = void 0) {
874
- return new Promise((a) => {
876
+ return new Promise((o) => {
875
877
  if (e.token === "" && C(e), t !== void 0 && t !== "" && t !== null) {
876
878
  const c = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
877
879
  b(
@@ -879,12 +881,12 @@ function Ue(e, t, s = void 0, n = void 0) {
879
881
  "ESPACE COMMUN",
880
882
  ["VPLMProjectLeader", "VPLMCreator"],
881
883
  void 0,
882
- (o) => e.ctx = o,
883
- (o) => {
884
- console.log("onError =>", o);
884
+ (a) => e.ctx = a,
885
+ (a) => {
886
+ console.log("onError =>", a);
885
887
  }
886
888
  );
887
- let i = {
889
+ let r = {
888
890
  method: "POST",
889
891
  headers: {
890
892
  securitycontext: "ctx::" + e.ctx,
@@ -900,19 +902,19 @@ function Ue(e, t, s = void 0, n = void 0) {
900
902
  ]
901
903
  }),
902
904
  type: "json",
903
- onComplete(o) {
904
- s && s(o);
905
+ onComplete(a) {
906
+ s && s(a);
905
907
  },
906
- onFailure(o) {
907
- n && n(o);
908
+ onFailure(a) {
909
+ n && n(a);
908
910
  }
909
911
  };
910
- f(c, i);
912
+ f(c, r);
911
913
  }
912
914
  });
913
915
  }
914
916
  function $e(e, t, s = void 0, n = void 0) {
915
- return new Promise((a) => {
917
+ return new Promise((o) => {
916
918
  if (e.token === "" && C(e), t !== void 0 && t !== "" && t !== null) {
917
919
  const c = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
918
920
  b(
@@ -920,12 +922,12 @@ function $e(e, t, s = void 0, n = void 0) {
920
922
  "ESPACE COMMUN",
921
923
  ["VPLMProjectLeader", "VPLMCreator"],
922
924
  void 0,
923
- (o) => e.ctx = o,
924
- (o) => {
925
- console.log("onError =>", o);
925
+ (a) => e.ctx = a,
926
+ (a) => {
927
+ console.log("onError =>", a);
926
928
  }
927
929
  );
928
- let i = {
930
+ let r = {
929
931
  method: "POST",
930
932
  headers: {
931
933
  SecurityContext: "ctx::" + e.ctx,
@@ -947,32 +949,32 @@ function $e(e, t, s = void 0, n = void 0) {
947
949
  ]
948
950
  }),
949
951
  type: "json",
950
- onComplete(o) {
951
- s && s(o);
952
+ onComplete(a) {
953
+ s && s(a);
952
954
  },
953
- onFailure(o) {
954
- n && n(o);
955
+ onFailure(a) {
956
+ n && n(a);
955
957
  }
956
958
  };
957
- f(c, i);
959
+ f(c, r);
958
960
  }
959
961
  });
960
962
  }
961
- function je(e, t, s, n = void 0, a = void 0) {
963
+ function je(e, t, s, n = void 0, o = void 0) {
962
964
  return new Promise((c) => {
963
965
  if (e.token === "" && C(e), t !== void 0 && t !== "" && t !== null) {
964
- const i = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
966
+ const r = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
965
967
  b(
966
968
  e.space,
967
969
  "ESPACE COMMUN",
968
970
  ["VPLMProjectLeader", "VPLMCreator"],
969
971
  void 0,
970
- (r) => e.ctx = r,
971
- (r) => {
972
- console.log("onError =>", r);
972
+ (i) => e.ctx = i,
973
+ (i) => {
974
+ console.log("onError =>", i);
973
975
  }
974
976
  );
975
- let o = {
977
+ let a = {
976
978
  method: "POST",
977
979
  headers: {
978
980
  securitycontext: "ctx::" + e.ctx,
@@ -994,14 +996,14 @@ function je(e, t, s, n = void 0, a = void 0) {
994
996
  notificationTimeout: 600
995
997
  }),
996
998
  type: "json",
997
- onComplete(r) {
998
- n && n(r);
999
+ onComplete(i) {
1000
+ n && n(i);
999
1001
  },
1000
- onFailure(r) {
1001
- a && a(r);
1002
+ onFailure(i) {
1003
+ o && o(i);
1002
1004
  }
1003
1005
  };
1004
- f(i, o);
1006
+ f(r, a);
1005
1007
  }
1006
1008
  });
1007
1009
  }
@@ -1011,19 +1013,19 @@ function Ae(e, t = void 0, s = void 0) {
1011
1013
  base: `${e.space}`,
1012
1014
  uri: "/resources/bps/cspaces",
1013
1015
  optTenant: `tenant=${e.tenant}`
1014
- }, a = `${n.base}${n.uri}?${n.optTenant}`;
1015
- f(a, {
1016
+ }, o = `${n.base}${n.uri}?${n.optTenant}`;
1017
+ f(o, {
1016
1018
  method: "GET",
1017
1019
  headers: {
1018
1020
  Accept: "application/json,text/javascript,*/*",
1019
1021
  "Content-Type": "application/ds-json"
1020
1022
  },
1021
- onComplete(c, i) {
1022
- const o = JSON.parse(c);
1023
- t && t(o, i);
1023
+ onComplete(c, r) {
1024
+ const a = JSON.parse(c);
1025
+ t && t(a, r);
1024
1026
  },
1025
- onFailure(c, i, o) {
1026
- s && s({ response: c, headers: i, xhr: o });
1027
+ onFailure(c, r, a) {
1028
+ s && s({ response: c, headers: r, xhr: a });
1027
1029
  }
1028
1030
  });
1029
1031
  }
@@ -1031,8 +1033,8 @@ function Re(e, t, s, n) {
1031
1033
  U(
1032
1034
  e.space,
1033
1035
  t,
1034
- (a) => {
1035
- f(a, {
1036
+ (o) => {
1037
+ f(o, {
1036
1038
  header: { ENO_CSRF_TOKEN: e.token },
1037
1039
  onComplete: (c) => {
1038
1040
  s && s(c);
@@ -1045,43 +1047,43 @@ function Re(e, t, s, n) {
1045
1047
  );
1046
1048
  }
1047
1049
  async function Ie(e, t, s = void 0, n = void 0) {
1048
- return new Promise((a) => {
1050
+ return new Promise((o) => {
1049
1051
  U(e, t, (c) => {
1050
1052
  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);
1053
+ onComplete: (r, a, i) => (o(JSON.parse(r)), s && s(JSON.parse(r), a, i), o),
1054
+ onFailure: (r, a, i) => {
1055
+ n && n(r, a, i), console.log(r, a?.errormsg);
1054
1056
  }
1055
1057
  });
1056
1058
  });
1057
1059
  });
1058
1060
  }
1059
- function ve(e, t, s, n = void 0, a = void 0) {
1061
+ function ve(e, t, s, n = void 0, o = void 0) {
1060
1062
  const c = new Blob([JSON.stringify(t)], { type: "text/plain" });
1061
1063
  k(
1062
1064
  e,
1063
1065
  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;
1066
+ (r) => {
1067
+ 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
1068
  K(
1067
1069
  e,
1068
1070
  s,
1069
- o,
1071
+ a,
1070
1072
  c,
1071
- r,
1073
+ i,
1072
1074
  (d) => {
1073
1075
  n && n(d);
1074
1076
  },
1075
1077
  (d) => {
1076
- a && a(d);
1078
+ o && o(d);
1077
1079
  }
1078
1080
  );
1079
1081
  }
1080
1082
  );
1081
1083
  }
1082
- let v, x;
1084
+ let v, P;
1083
1085
  const $ = [];
1084
- async function xe(e, t = void 0, s = void 0) {
1086
+ async function Pe(e, t = void 0, s = void 0) {
1085
1087
  e.objID && e.objID !== "" ? (console.log("obj est présent"), k(
1086
1088
  e,
1087
1089
  (n) => {
@@ -1100,12 +1102,12 @@ async function xe(e, t = void 0, s = void 0) {
1100
1102
  }
1101
1103
  );
1102
1104
  }
1103
- async function Pe(e, t = void 0, s = void 0) {
1105
+ async function xe(e, t = void 0, s = void 0) {
1104
1106
  console.log("getDatasByTenant (getDocuments)", e), await I(
1105
1107
  e,
1106
1108
  (n) => {
1107
- const a = {};
1108
- a.obj = n, console.log("getDatasByTenant (getDocuments) _datas", a), t && t?.(a);
1109
+ const o = {};
1110
+ o.obj = n, console.log("getDatasByTenant (getDocuments) _datas", o), t && t?.(o);
1109
1111
  },
1110
1112
  (n) => {
1111
1113
  s && s?.(n);
@@ -1114,12 +1116,12 @@ async function Pe(e, t = void 0, s = void 0) {
1114
1116
  }
1115
1117
  function Me(e, t = void 0, s = void 0) {
1116
1118
  const n = [];
1117
- e.objIds.forEach((a, c) => {
1119
+ e.objIds.forEach((o, c) => {
1118
1120
  I(
1119
1121
  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);
1122
+ o.objId,
1123
+ (r) => {
1124
+ 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
1125
  }
1124
1126
  );
1125
1127
  });
@@ -1128,12 +1130,12 @@ function B(e, t, s = void 0, n = void 0) {
1128
1130
  X(
1129
1131
  e,
1130
1132
  v,
1131
- (a) => {
1133
+ (o) => {
1132
1134
  const c = [...t];
1133
- c.find((i) => i.objectID === a.objectId).data = a.data, x = c, $.push(a.data), s && s($);
1135
+ c.find((r) => r.objectID === o.objectId).data = o.data, P = c, $.push(o.data), s && s($);
1134
1136
  },
1135
- (a) => {
1136
- n && (n(a), console.log(a));
1137
+ (o) => {
1138
+ n && (n(o), console.log(o));
1137
1139
  }
1138
1140
  );
1139
1141
  }
@@ -1144,7 +1146,7 @@ const Y = "FA35FB9B177A280065800EA0000F599C", H = [
1144
1146
  "usersgroup",
1145
1147
  "3dplan",
1146
1148
  "dashboard"
1147
- ], P = {
1149
+ ], x = {
1148
1150
  how: "ds6w:how",
1149
1151
  what: "ds6w:what",
1150
1152
  when: "ds6w:when",
@@ -1158,21 +1160,21 @@ const Y = "FA35FB9B177A280065800EA0000F599C", H = [
1158
1160
  tag: "testTag"
1159
1161
  };
1160
1162
  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 = {
1163
+ const { space: o, tenant: c } = e, { objId: r, pred: a, tag: i } = t, d = {
1162
1164
  uri: "/resources/6w/tags",
1163
1165
  otpCTX: "SecurityContext=preferred",
1164
1166
  optTenant: `tenant=${c}`
1165
- }, l = `${a}${d.uri}?${d.otpCTX}&${d.optTenant}`, p = {
1167
+ }, l = `${o}${d.uri}?${d.otpCTX}&${d.optTenant}`, p = {
1166
1168
  tag: [
1167
1169
  {
1168
1170
  subject: [
1169
1171
  {
1170
- uri: `pid://${i}`
1172
+ uri: `pid://${r}`
1171
1173
  }
1172
1174
  ],
1173
- predicate: P[o],
1175
+ predicate: x[a],
1174
1176
  object: {
1175
- literal: r
1177
+ literal: i
1176
1178
  }
1177
1179
  }
1178
1180
  ]
@@ -1190,7 +1192,7 @@ function Le(e, t, s = void 0, n = void 0) {
1190
1192
  setTimeout(() => {
1191
1193
  G(
1192
1194
  e,
1193
- i,
1195
+ r,
1194
1196
  (g) => {
1195
1197
  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
1198
  m.name = h, m.ext = S, m.createBy = _, t.info = { ...m }, q(
@@ -1219,17 +1221,17 @@ function Le(e, t, s = void 0, n = void 0) {
1219
1221
  }
1220
1222
  function q(e, t, s = void 0, n = void 0) {
1221
1223
  console.log("obj ", t);
1222
- const a = t.info.name, c = {
1224
+ const o = t.info.name, c = {
1223
1225
  baseUrl: `https://${e.tenant.toLowerCase()}-eu1-fedsearch.3dexperience.3ds.com`,
1224
1226
  uri: "/federated/search"
1225
- }, i = `${c.baseUrl}${c.uri}`, o = {
1227
+ }, r = `${c.baseUrl}${c.uri}`, a = {
1226
1228
  "Content-Type": "application/json",
1227
1229
  Accept: "application/json,text/javascript,*/*"
1228
- }, r = R(), d = {
1230
+ }, i = R(), d = {
1229
1231
  with_indexing_date: !0,
1230
1232
  with_synthesis: !0,
1231
1233
  with_nls: !1,
1232
- label: `3DSearch-${e.currentUser.username}-AjoutDeTagBeam-${r}`,
1234
+ label: `3DSearch-${e.currentUser.username}-AjoutDeTagBeam-${i}`,
1233
1235
  locale: "fr",
1234
1236
  select_predicate: [
1235
1237
  "ds6w:label",
@@ -1257,7 +1259,7 @@ function q(e, t, s = void 0, n = void 0) {
1257
1259
  ],
1258
1260
  with_synthesis_hierarchical: !0,
1259
1261
  select_file: ["icon", "thumbnail_2d"],
1260
- query: a,
1262
+ query: o,
1261
1263
  specific_source_parameter: {
1262
1264
  "3dspace": {
1263
1265
  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 +1288,9 @@ function q(e, t, s = void 0, n = void 0) {
1286
1288
  }
1287
1289
  }
1288
1290
  };
1289
- console.log("dataPattern => ", d), f(i, {
1291
+ console.log("dataPattern => ", d), f(r, {
1290
1292
  method: "POST",
1291
- headers: o,
1293
+ headers: a,
1292
1294
  data: JSON.stringify(d),
1293
1295
  onComplete(l) {
1294
1296
  const p = JSON.parse(l);
@@ -1301,26 +1303,26 @@ function q(e, t, s = void 0, n = void 0) {
1301
1303
  });
1302
1304
  }
1303
1305
  function Ee(e, t, s = void 0, n = void 0) {
1304
- const { objId: a, pred: c, tag: i } = t, o = {
1306
+ const { objId: o, pred: c, tag: r } = t, a = {
1305
1307
  uri: "/resources/6w/tags",
1306
1308
  otpCTX: "SecurityContext=preferred",
1307
1309
  optTenant: `tenant=${e.tenant}`
1308
- }, r = `${e.space}${o.uri}?${o.otpCTX}&${o.optTenant}`, d = {
1310
+ }, i = `${e.space}${a.uri}?${a.otpCTX}&${a.optTenant}`, d = {
1309
1311
  tag: [
1310
1312
  {
1311
1313
  subject: [
1312
1314
  {
1313
- uri: `pid://${a}`
1315
+ uri: `pid://${o}`
1314
1316
  }
1315
1317
  ],
1316
- predicate: P[c],
1318
+ predicate: x[c],
1317
1319
  object: {
1318
- literal: i
1320
+ literal: r
1319
1321
  }
1320
1322
  }
1321
1323
  ]
1322
1324
  };
1323
- f(r, {
1325
+ f(i, {
1324
1326
  method: "DELETE",
1325
1327
  data: JSON.stringify(d),
1326
1328
  headers: {
@@ -1337,19 +1339,19 @@ function Ee(e, t, s = void 0, n = void 0) {
1337
1339
  });
1338
1340
  }
1339
1341
  function Je(e, t = "", s = void 0, n = void 0) {
1340
- const { space: a } = e;
1342
+ const { space: o } = e;
1341
1343
  if (t === "")
1342
1344
  return;
1343
1345
  const c = {
1344
1346
  uri: "/resources/v1/modeler/documents"
1345
- }, i = {
1347
+ }, r = {
1346
1348
  "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
1347
1349
  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, {
1350
+ }, 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}`;
1351
+ f(a, {
1350
1352
  method: "POST",
1351
- headers: i,
1352
- data: r,
1353
+ headers: r,
1354
+ data: i,
1353
1355
  onComplete(d) {
1354
1356
  s && s(JSON.parse(d));
1355
1357
  },
@@ -1362,18 +1364,18 @@ function Je(e, t = "", s = void 0, n = void 0) {
1362
1364
  async function w(e, t = void 0, s = void 0) {
1363
1365
  const n = e.space + "/api/index/tk";
1364
1366
  return f(n, {
1365
- onComplete(a, c, i) {
1366
- const o = JSON.parse(a);
1367
+ onComplete(o, c, r) {
1368
+ const a = JSON.parse(o);
1367
1369
  if (t)
1368
- return t(o), e.token = o?.result?.ServerToken;
1370
+ return t(a), e.token = a?.result?.ServerToken;
1369
1371
  },
1370
- onFailure(a) {
1371
- s && s(a);
1372
+ onFailure(o) {
1373
+ s && s(o);
1372
1374
  }
1373
1375
  });
1374
1376
  }
1375
1377
  function Ge(e, t = void 0, s = void 0) {
1376
- const n = `${e.space}/api/exalead/whatsnew`, a = {
1378
+ const n = `${e.space}/api/exalead/whatsnew`, o = {
1377
1379
  params: {
1378
1380
  community_id: null,
1379
1381
  hash_key: null,
@@ -1391,19 +1393,19 @@ function Ge(e, t = void 0, s = void 0) {
1391
1393
  "Content-type": "application/json;charset=UTF-8",
1392
1394
  Accept: "application/json"
1393
1395
  },
1394
- data: JSON.stringify(a),
1396
+ data: JSON.stringify(o),
1395
1397
  type: "json",
1396
- onComplete(i, o) {
1397
- t && t(i, o);
1398
+ onComplete(r, a) {
1399
+ t && t(r, a);
1398
1400
  },
1399
- onFailure(i, o) {
1400
- s && s(i, o);
1401
+ onFailure(r, a) {
1402
+ s && s(r, a);
1401
1403
  }
1402
1404
  });
1403
1405
  });
1404
1406
  }
1405
1407
  function Ke(e, t = void 0, s = void 0) {
1406
- const n = `${e.space}/api/Recommendation/getpeoplefamiliartocurrentuser`, a = {
1408
+ const n = `${e.space}/api/Recommendation/getpeoplefamiliartocurrentuser`, o = {
1407
1409
  params: {
1408
1410
  idsToFilterArr: [],
1409
1411
  mode: "offline",
@@ -1420,14 +1422,14 @@ function Ke(e, t = void 0, s = void 0) {
1420
1422
  "Content-type": "application/json;charset=UTF-8",
1421
1423
  Accept: "application/json"
1422
1424
  },
1423
- data: JSON.stringify(a),
1425
+ data: JSON.stringify(o),
1424
1426
  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);
1427
+ onComplete(r, a) {
1428
+ const i = r.result.hits.map((d) => ({ login: d.login, fullName: d.name }));
1429
+ t && t(i, r);
1428
1430
  },
1429
- onFailure(i, o) {
1430
- s && s(i, o);
1431
+ onFailure(r, a) {
1432
+ s && s(r, a);
1431
1433
  }
1432
1434
  });
1433
1435
  });
@@ -1438,15 +1440,15 @@ function We(e, t = void 0, s = void 0) {
1438
1440
  uri: "/api/community/listmycommunities",
1439
1441
  limit: `/limit/${e.limit ? e.limit : 128}`,
1440
1442
  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, {
1443
+ }, o = `${n.base}${n.uri}${n.limit}${n.page}`, c = [];
1444
+ w(e, (r) => {
1445
+ f(o, {
1444
1446
  method: "GET",
1445
1447
  headers: {
1446
- "X-DS-SWYM-CSRFTOKEN": i.result.ServerToken
1448
+ "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
1447
1449
  },
1448
- onComplete(o, r, d) {
1449
- const p = JSON.parse(o).result;
1450
+ onComplete(a, i, d) {
1451
+ const p = JSON.parse(a).result;
1450
1452
  let u = 0;
1451
1453
  p.forEach((m) => {
1452
1454
  const g = {
@@ -1467,37 +1469,37 @@ function We(e, t = void 0, s = void 0) {
1467
1469
  );
1468
1470
  });
1469
1471
  },
1470
- onFailure(o, r) {
1471
- const d = o;
1472
- d.status = r.status, d.response = r.errormsg, s && s(d);
1472
+ onFailure(a, i) {
1473
+ const d = a;
1474
+ d.status = i.status, d.response = i.errormsg, s && s(d);
1473
1475
  }
1474
1476
  });
1475
1477
  });
1476
1478
  }
1477
1479
  function Q(e, t, s, n) {
1478
- const a = `${e.space}/api/community/listmembers`, c = {
1480
+ const o = `${e.space}/api/community/listmembers`, c = {
1479
1481
  params: {
1480
1482
  page: e.page ? e.page : 1,
1481
1483
  limit: e.limit ? e.limit : 50,
1482
1484
  community_id: t
1483
1485
  }
1484
1486
  };
1485
- w(e, (i) => {
1486
- f(a, {
1487
+ w(e, (r) => {
1488
+ f(o, {
1487
1489
  method: "POST",
1488
1490
  headers: {
1489
1491
  "Content-type": "application/json;charset=UTF-8",
1490
1492
  Accept: "application/json",
1491
- "X-DS-SWYM-CSRFTOKEN": i.result.ServerToken
1493
+ "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
1492
1494
  },
1493
1495
  data: JSON.stringify(c),
1494
1496
  type: "json",
1495
- onComplete(o, r, d) {
1496
- s && s(o);
1497
+ onComplete(a, i, d) {
1498
+ s && s(a);
1497
1499
  },
1498
- onFailure(o, r) {
1499
- const d = o;
1500
- d.status = r.status, d.response = r.errormsg, n && n(d);
1500
+ onFailure(a, i) {
1501
+ const d = a;
1502
+ d.status = i.status, d.response = i.errormsg, n && n(d);
1501
1503
  }
1502
1504
  });
1503
1505
  });
@@ -1505,32 +1507,32 @@ function Q(e, t, s, n) {
1505
1507
  function Xe(e, t = void 0, s = void 0) {
1506
1508
  const n = "YXdA5x4DSUKtlAi2wmnyTA";
1507
1509
  e.commu_id || (e.commu_id = n);
1508
- const a = `${e.space}/api/v2/communities/${e.commu_id}/ideas/statuses`;
1510
+ const o = `${e.space}/api/v2/communities/${e.commu_id}/ideas/statuses`;
1509
1511
  w(e, (c) => {
1510
- f(a, {
1512
+ f(o, {
1511
1513
  method: "GET",
1512
1514
  headers: {
1513
1515
  "Content-type": "application/json;charset=UTF-8",
1514
1516
  Accept: "application/json",
1515
1517
  "X-DS-SWYM-CSRFTOKEN": c.result.ServerToken
1516
1518
  },
1517
- onComplete(i) {
1518
- const o = JSON.parse(i);
1519
- t && t(o);
1519
+ onComplete(r) {
1520
+ const a = JSON.parse(r);
1521
+ t && t(a);
1520
1522
  },
1521
- onFailure(i, o) {
1522
- const r = i;
1523
- r.status = o.status, r.response = o.errormsg, s && s(r);
1523
+ onFailure(r, a) {
1524
+ const i = r;
1525
+ i.status = a.status, i.response = a.errormsg, s && s(i);
1524
1526
  }
1525
1527
  });
1526
1528
  });
1527
1529
  }
1528
1530
  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 = {
1531
+ const { listAllContacts: o, currentUser: c } = e;
1532
+ console.log("__listAllContacts", o.hits);
1533
+ const r = `${e.space}/api/directmessages`, a = {
1532
1534
  users: [c.login].concat(t.receipt)
1533
- }, r = {
1535
+ }, i = {
1534
1536
  id_msg: "",
1535
1537
  senderId: e.currentUser.login,
1536
1538
  senderName: `${e.currentUser.first_name} ${e.currentUser.last_name}`,
@@ -1538,27 +1540,27 @@ function Ve(e, t, s = void 0, n = void 0) {
1538
1540
  };
1539
1541
  let d = !1;
1540
1542
  Z(
1541
- o.users,
1543
+ a.users,
1542
1544
  (l) => {
1543
- l !== void 0 && (r.id_msg = l.id, d = !0, j(e, r));
1545
+ l !== void 0 && (i.id_msg = l.id, d = !0, j(e, i));
1544
1546
  },
1545
1547
  (l) => {
1546
- d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", l), n && n(l), r.id_msg = "";
1548
+ d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", l), n && n(l), i.id_msg = "";
1547
1549
  }
1548
1550
  ), d === !1 && setTimeout(() => {
1549
1551
  d === !1 && w(e, (l) => {
1550
- f(i, {
1552
+ f(r, {
1551
1553
  method: "POST",
1552
1554
  headers: {
1553
1555
  "Content-Type": "application/json",
1554
1556
  Accept: "application/json",
1555
1557
  "X-DS-SWYM-CSRFTOKEN": l.result.ServerToken
1556
1558
  },
1557
- data: JSON.stringify(o),
1559
+ data: JSON.stringify(a),
1558
1560
  type: "json",
1559
1561
  onComplete(p, u, m) {
1560
1562
  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);
1563
+ g.reponse = JSON.parse(m.response), g.status = m.status, s && s(g), i.id_msg = g.result.id, j(e, i);
1562
1564
  },
1563
1565
  onFailure(p, u, m) {
1564
1566
  const g = p;
@@ -1569,20 +1571,20 @@ function Ve(e, t, s = void 0, n = void 0) {
1569
1571
  }, 500);
1570
1572
  }
1571
1573
  function Z(e, t, s, n) {
1572
- const a = `${e.space}/api/directmessages/lite?with_favorites=false`;
1574
+ const o = `${e.space}/api/directmessages/lite?with_favorites=false`;
1573
1575
  w(e, (c) => {
1574
- f(a, {
1576
+ f(o, {
1575
1577
  method: "GET",
1576
1578
  headers: {
1577
1579
  Accept: "application/json,text/javascript,*/*",
1578
1580
  "X-DS-SWYM-CSRFTOKEN": c.result.ServerToken
1579
1581
  },
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);
1582
+ onComplete(r) {
1583
+ const a = JSON.parse(r), i = [];
1584
+ a.result.forEach((p) => {
1585
+ p.users = p.users.sort((u, m) => u.login.localeCompare(m.login)), p.users.length === t.length && i.push(p);
1584
1586
  });
1585
- const d = t.sort(), l = r.find((p) => {
1587
+ const d = t.sort(), l = i.find((p) => {
1586
1588
  const u = [];
1587
1589
  return p.users.forEach((m) => {
1588
1590
  u.push(m.login);
@@ -1590,20 +1592,20 @@ function Z(e, t, s, n) {
1590
1592
  });
1591
1593
  s && l !== void 0 ? s(l) : (n || l === void 0) && n(l);
1592
1594
  },
1593
- onFailure(i) {
1594
- const o = i;
1595
- o.msg = headers.errormsg, o.errCode = headers.errorcode, console.log("❌ sendDirectMessageLite => ", o), n && n(o);
1595
+ onFailure(r) {
1596
+ const a = r;
1597
+ a.msg = headers.errormsg, a.errCode = headers.errorcode, console.log("❌ sendDirectMessageLite => ", a), n && n(a);
1596
1598
  }
1597
1599
  });
1598
1600
  });
1599
1601
  }
1600
1602
  function j(e, t, s = void 0, n = void 0) {
1601
- const a = {
1603
+ const o = {
1602
1604
  base: e.space,
1603
1605
  uri: "/api/community",
1604
1606
  id_msg: `${t.id_msg}`,
1605
1607
  endUri: "/instantmessages"
1606
- }, c = `${a.base}${a.uri}/${a.id_msg}${a.endUri}`, i = {
1608
+ }, c = `${o.base}${o.uri}/${o.id_msg}${o.endUri}`, r = {
1607
1609
  author: { login: t.senderId, displayName: t.senderName },
1608
1610
  accessState: null,
1609
1611
  commentUri: null,
@@ -1613,22 +1615,22 @@ function j(e, t, s = void 0, n = void 0) {
1613
1615
  parentCommentUri: null,
1614
1616
  richMessage: t.msg
1615
1617
  };
1616
- console.log("_3dSwym_sendDirectMessageData url ", c), w(e, (o) => {
1618
+ console.log("_3dSwym_sendDirectMessageData url ", c), w(e, (a) => {
1617
1619
  f(c, {
1618
1620
  method: "POST",
1619
1621
  headers: {
1620
1622
  "Content-Type": "application/json",
1621
1623
  Accept: "application/json",
1622
- "X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
1624
+ "X-DS-SWYM-CSRFTOKEN": a.result.ServerToken
1623
1625
  },
1624
- data: JSON.stringify(i),
1626
+ data: JSON.stringify(r),
1625
1627
  type: "json",
1626
- onComplete(r, d, l) {
1627
- const p = r;
1628
+ onComplete(i, d, l) {
1629
+ const p = i;
1628
1630
  p.status = l.status, p.response = JSON.parse(l.response), console.log("✅ _3dSwym_sendDirectMessageData => ", p), s && s(p);
1629
1631
  },
1630
- onFailure(r, d) {
1631
- const l = r;
1632
+ onFailure(i, d) {
1633
+ const l = i;
1632
1634
  l.msg = d.errormsg, l.errCode = d.errorcode, console.log("❌ sendDirectMessage => ", l), n && n(l);
1633
1635
  }
1634
1636
  });
@@ -1652,15 +1654,15 @@ const te = {
1652
1654
  // id de l'idee qui est créer au post (_3dSwym_postIdea)
1653
1655
  };
1654
1656
  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 = {
1657
+ const o = `${e.space}/api/idea/add`, c = e.swymCommunities.find(
1658
+ (i) => i.id === t.community_id
1659
+ ), r = e.swymCommunities.find(
1660
+ (i) => i.title.toLowerCase() === t.community_title.toLowerCase()
1661
+ ), a = {
1660
1662
  params: {
1661
1663
  title: t.title,
1662
1664
  // String, le nom de l'affaire
1663
- community_id: c?.id !== void 0 ? c.id : i.id,
1665
+ community_id: c?.id !== void 0 ? c.id : r.id,
1664
1666
  // String, l'id de la communauté
1665
1667
  message: ne(t.text_html),
1666
1668
  // STRING => le contenue du message doit être au format HTML
@@ -1668,16 +1670,16 @@ function Be(e, t, s = void 0, n = void 0) {
1668
1670
  // 1 publier, 0 non publier
1669
1671
  }
1670
1672
  };
1671
- w(e, (r) => {
1673
+ w(e, (i) => {
1672
1674
  const d = {
1673
1675
  "Content-type": "application/json;charset=UTF-8",
1674
1676
  Accept: "application/json",
1675
- "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
1677
+ "X-DS-SWYM-CSRFTOKEN": i.result.ServerToken
1676
1678
  };
1677
- f(a, {
1679
+ f(o, {
1678
1680
  method: "POST",
1679
1681
  headers: d,
1680
- data: JSON.stringify(o),
1682
+ data: JSON.stringify(a),
1681
1683
  type: "json",
1682
1684
  onComplete(l, p, u) {
1683
1685
  const m = JSON.parse(l);
@@ -1691,80 +1693,80 @@ function Be(e, t, s = void 0, n = void 0) {
1691
1693
  });
1692
1694
  }
1693
1695
  function Ye(e, t, s = void 0, n = void 0) {
1694
- const a = `${e.space}/api/idea/delete`, c = {
1696
+ const o = `${e.space}/api/idea/delete`, c = {
1695
1697
  params: {
1696
1698
  community_id: t.community_id,
1697
1699
  ideationIds: [t.idee_id]
1698
1700
  }
1699
1701
  };
1700
- w(e, (i) => {
1701
- f(a, {
1702
+ w(e, (r) => {
1703
+ f(o, {
1702
1704
  method: "POST",
1703
1705
  headers: {
1704
1706
  "Content-type": "application/json;charset=UTF-8",
1705
1707
  Accept: "application/json",
1706
- "X-DS-SWYM-CSRFTOKEN": i.result.ServerToken
1708
+ "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
1707
1709
  },
1708
1710
  data: JSON.stringify(c),
1709
1711
  type: "json",
1710
- onComplete(o, r, d) {
1711
- s && s(o);
1712
+ onComplete(a, i, d) {
1713
+ s && s(a);
1712
1714
  },
1713
- onFailure(o, r, d) {
1714
- const l = o;
1715
- l.status = r.status, l.response = r.errormsg, n && n(l);
1715
+ onFailure(a, i, d) {
1716
+ const l = a;
1717
+ l.status = i.status, l.response = i.errormsg, n && n(l);
1716
1718
  }
1717
1719
  });
1718
1720
  });
1719
1721
  }
1720
1722
  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 = {
1723
+ const o = e.tenant.toLowerCase() === "r1132101716373" ? "tFtz0G4MR6qNtKgJjNfTog" : e.tenant.toLowerCase() === "r1132101286859" ? "Qpv3HN-tTDOsU-7_c5DnDg" : "Template_d'idée_à_créer";
1724
+ t === "" && (t = o);
1725
+ const c = `${e.space}/api/idea/get`, r = {
1724
1726
  params: {
1725
1727
  id: t
1726
1728
  }
1727
1729
  };
1728
- w(e, (o) => {
1730
+ w(e, (a) => {
1729
1731
  f(c, {
1730
1732
  method: "POST",
1731
1733
  headers: {
1732
1734
  "Content-type": "application/json;charset=UTF-8",
1733
1735
  Accept: "application/json",
1734
- "X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
1736
+ "X-DS-SWYM-CSRFTOKEN": a.result.ServerToken
1735
1737
  },
1736
- data: JSON.stringify(i),
1738
+ data: JSON.stringify(r),
1737
1739
  type: "json",
1738
- onComplete(r) {
1739
- const d = r;
1740
+ onComplete(i) {
1741
+ const d = i;
1740
1742
  d.msg = d.result.message, s && s(d);
1741
1743
  },
1742
- onFailure(r) {
1743
- const d = r;
1744
+ onFailure(i) {
1745
+ const d = i;
1744
1746
  d.status = headers.status, d.response = headers.errormsg, n && n(d);
1745
1747
  }
1746
1748
  });
1747
1749
  });
1748
1750
  }
1749
1751
  function ze(e, t = te, s = void 0, n = void 0) {
1750
- const a = {
1752
+ const o = {
1751
1753
  uri: "/api/idea/list",
1752
1754
  comId: `/community_id/${e.tenant.toLowerCase() === "r1132101716373" ? t.community_id : "bgnIsG74SUWswyGzS6NC6g"}`,
1753
1755
  limit: `/limit/${t.limit ? t.limit : 10}`
1754
- }, c = `${e.space}${a.uri}${a.comId}${a.limit}`;
1755
- w(e, (i) => {
1756
+ }, c = `${e.space}${o.uri}${o.comId}${o.limit}`;
1757
+ w(e, (r) => {
1756
1758
  f(c, {
1757
1759
  method: "GET",
1758
1760
  headers: {
1759
- "X-DS-SWYM-CSRFTOKEN": i.result.ServerToken
1761
+ "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
1760
1762
  },
1761
- onComplete(o) {
1762
- const r = JSON.parse(o);
1763
- s && s(r);
1763
+ onComplete(a) {
1764
+ const i = JSON.parse(a);
1765
+ s && s(i);
1764
1766
  },
1765
- onFailure(o, r) {
1766
- const d = o;
1767
- d.status = r.status, d.response = r.errormsg, n && n(d);
1767
+ onFailure(a, i) {
1768
+ const d = a;
1769
+ d.status = i.status, d.response = i.errormsg, n && n(d);
1768
1770
  }
1769
1771
  });
1770
1772
  });
@@ -1846,37 +1848,37 @@ function ne(e) {
1846
1848
  }
1847
1849
  function qe(e, t = void 0, s = void 0) {
1848
1850
  const n = e.space + "/api/user/getcurrent/";
1849
- w(e, (a) => {
1851
+ w(e, (o) => {
1850
1852
  f(n, {
1851
1853
  method: "GET",
1852
1854
  headers: {
1853
- "X-DS-SWYM-CSRFTOKEN": a.result.ServerToken
1855
+ "X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
1854
1856
  },
1855
- onComplete(c, i, o) {
1856
- const r = JSON.parse(c);
1857
- t && t(r.result);
1857
+ onComplete(c, r, a) {
1858
+ const i = JSON.parse(c);
1859
+ t && t(i.result);
1858
1860
  },
1859
- onFailure(c, i, o) {
1860
- const r = { erreur: JSON.parse(c), headers: i, xhr: o };
1861
- s && s(r);
1861
+ onFailure(c, r, a) {
1862
+ const i = { erreur: JSON.parse(c), headers: r, xhr: a };
1863
+ s && s(i);
1862
1864
  }
1863
1865
  });
1864
1866
  });
1865
1867
  }
1866
1868
  function Qe(e, t, s = void 0, n = void 0) {
1867
- const a = e.space + "/api/user/find/login/" + t;
1869
+ const o = e.space + "/api/user/find/login/" + t;
1868
1870
  w(
1869
1871
  e,
1870
1872
  (c) => {
1871
- f(a, {
1873
+ f(o, {
1872
1874
  method: "GET",
1873
1875
  headers: { "X-DS-SWYM-CSRFTOKEN": c.result.ServerToken },
1874
- onComplete(i, o, r) {
1875
- const d = JSON.parse(i);
1876
+ onComplete(r, a, i) {
1877
+ const d = JSON.parse(r);
1876
1878
  s && s(d);
1877
1879
  },
1878
- onFailure(i) {
1879
- n && n(i);
1880
+ onFailure(r) {
1881
+ n && n(r);
1880
1882
  }
1881
1883
  });
1882
1884
  },
@@ -1942,13 +1944,13 @@ export {
1942
1944
  ye as getComplementUG,
1943
1945
  Re as getDataFrom3DSpace,
1944
1946
  ce as getDataFromGouvFr,
1945
- Pe as getDatasByTenant,
1947
+ xe as getDatasByTenant,
1946
1948
  Me as getDatasFrom3DSpace,
1947
1949
  Ie as getDownloadDocument,
1948
1950
  Je as getInfoDocTags,
1949
1951
  we as getUserGroupsList,
1950
1952
  E as getUsersGroupRules,
1951
- xe as get_3DSpace_csrf,
1953
+ Pe as get_3DSpace_csrf,
1952
1954
  Ce as patchUserGroups,
1953
1955
  Oe as patchUserGroupsControl,
1954
1956
  ve as pushDataIn3DSpace,