@beam3_dev/api_module 0.0.149 → 0.0.150

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
@@ -104,7 +104,7 @@ async function le(e, t, n = !0) {
104
104
  const s = e.events.findIndex((a) => a.uuid === t.uuid);
105
105
  return s === -1 ? e.events.push(t) : n ? e.events[s] = t : e.events.splice(s, 1), e.length > 0 && e.sort((a, r) => a.start - r.start), e;
106
106
  }
107
- function f(e, t) {
107
+ function u(e, t) {
108
108
  O(["DS/WAFData/WAFData"], (n) => {
109
109
  n.authenticatedRequest(e, t);
110
110
  });
@@ -164,7 +164,7 @@ function E() {
164
164
  function v(e, t = void 0, n = void 0) {
165
165
  if (e.tenant) {
166
166
  const s = `https://${e.tenant}-eu1-apps.3dexperience.3ds.com/enovia/resources/AppsMngt/api/v1/services?tenant=${e.tenant}&cors=true&xrequestedwith=xmlhttprequest`;
167
- f(s, {
167
+ u(s, {
168
168
  onComplete(a) {
169
169
  const r = typeof a == "string" ? JSON.parse(a) : a;
170
170
  if (r && "platforms" in r) {
@@ -184,7 +184,7 @@ function v(e, t = void 0, n = void 0) {
184
184
  function he(e, t = void 0, n = void 0) {
185
185
  if (e.tenant) {
186
186
  const s = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dpassport&platformId=${e.tenant}`;
187
- f(s, {
187
+ u(s, {
188
188
  onComplete(a) {
189
189
  const r = JSON.parse(a);
190
190
  if (console.log("serviceId=3dpassport", r), Array.isArray(r) && r.length > 0) {
@@ -205,7 +205,7 @@ function Se(e, t, n) {
205
205
  option: `?filter=${e.tenant}`
206
206
  // facultatif
207
207
  }, a = `${s.base}${s.uri}${s.option}`;
208
- f(a, {
208
+ u(a, {
209
209
  method: "GET",
210
210
  headers: {
211
211
  "Content-Type": "application/json",
@@ -213,8 +213,8 @@ function Se(e, t, n) {
213
213
  },
214
214
  onComplete(r, o, i) {
215
215
  const c = JSON.parse(r), d = c.data.map((p) => {
216
- const l = p.attributes.name, u = p.id;
217
- return { name: l, id: u };
216
+ const l = p.attributes.name, f = p.id;
217
+ return { name: l, id: f };
218
218
  });
219
219
  t && t(d, c);
220
220
  },
@@ -226,7 +226,7 @@ function Se(e, t, n) {
226
226
  }
227
227
  function _e(e, t = void 0, n = void 0) {
228
228
  let s = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&limit=-1`;
229
- f(s, {
229
+ u(s, {
230
230
  onComplete(a, r, o) {
231
231
  const i = JSON.parse(a);
232
232
  console.log("_AppMngt_get_users => ", i), t && t(i);
@@ -239,7 +239,7 @@ function _e(e, t = void 0, n = void 0) {
239
239
  }
240
240
  function ye(e, t, n = void 0, s = void 0) {
241
241
  let a = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&id=${t}`;
242
- f(a, {
242
+ u(a, {
243
243
  onComplete(r, o, i) {
244
244
  const c = JSON.parse(r);
245
245
  n && n(c);
@@ -269,7 +269,7 @@ function we(e, t, n = void 0, s = void 0) {
269
269
  }
270
270
  ]
271
271
  };
272
- f(i, {
272
+ u(i, {
273
273
  method: "POST",
274
274
  headers: I,
275
275
  data: JSON.stringify(c),
@@ -285,7 +285,7 @@ function we(e, t, n = void 0, s = void 0) {
285
285
  }
286
286
  function Ce(e, t, n = void 0, s = void 0) {
287
287
  const { space: a, tenant: r } = e, o = a, i = `/3drdfpersist/v1/resources/${t}`, c = `?$mask=dsaccess:Mask.GroupUI.Properties&tenant=dstenant:${r}`, d = `${o}${i}${c}`;
288
- f(d, {
288
+ u(d, {
289
289
  opts: {
290
290
  method: "GET",
291
291
  headers: {
@@ -293,11 +293,11 @@ function Ce(e, t, n = void 0, s = void 0) {
293
293
  Accept: "application/json,text/javascript,*/*"
294
294
  }
295
295
  },
296
- onComplete(u) {
297
- n && n(JSON.parse(u));
296
+ onComplete(f) {
297
+ n && n(JSON.parse(f));
298
298
  },
299
- onFailure(u, m) {
300
- const g = u;
299
+ onFailure(f, m) {
300
+ const g = f;
301
301
  g.msg = m.errormsg, g.errCode = m.errorcode, s && s(g);
302
302
  }
303
303
  });
@@ -307,14 +307,14 @@ function G(e, t = void 0, n = void 0) {
307
307
  method: "GET",
308
308
  Accept: "application/json,*/*,test/javascript"
309
309
  }, d = `${r}${o}${i}`;
310
- f(d, {
310
+ u(d, {
311
311
  OPTsH: c,
312
312
  onComplete(p) {
313
313
  t && t(JSON.parse(p));
314
314
  },
315
315
  onFailure(p, l) {
316
- const u = p;
317
- u.msg = l.errormsg, u.errCode = l.errorcode, n && n(u);
316
+ const f = p;
317
+ f.msg = l.errormsg, f.errCode = l.errorcode, n && n(f);
318
318
  }
319
319
  });
320
320
  }
@@ -324,16 +324,16 @@ function Te(e, t = void 0, n = void 0) {
324
324
  Accept: "application/json,text/javascript,*/*"
325
325
  } };
326
326
  try {
327
- f(i, {
327
+ u(i, {
328
328
  opts: d,
329
329
  onComplete(p) {
330
- const l = JSON.parse(p), u = {}, m = l.groups.filter((g) => g.uri.startsWith("uuid:"));
330
+ const l = JSON.parse(p), f = {}, m = l.groups.filter((g) => g.uri.startsWith("uuid:"));
331
331
  if (a && Object.keys(a).length > 0) {
332
332
  const g = m.filter((_) => _.owner === a.email), h = m.filter((_) => _.members.includes(a.email)), S = g.concat(h);
333
- u.iam = S, u.UG = m, u.iamMember = h, G(
333
+ f.iam = S, f.UG = m, f.iamMember = h, G(
334
334
  e,
335
335
  (_) => {
336
- u.rules = _, t && t(u);
336
+ f.rules = _, t && t(f);
337
337
  },
338
338
  (_) => {
339
339
  n && n(_);
@@ -351,7 +351,7 @@ function Te(e, t = void 0, n = void 0) {
351
351
  }
352
352
  function Oe(e, t) {
353
353
  const { space: n } = e, a = `${n}/3drdfpersist/resources/v1/usersgroup/${t}`;
354
- f(a, {
354
+ u(a, {
355
355
  method: "DELETE"
356
356
  });
357
357
  }
@@ -365,7 +365,7 @@ function be(e, t, n, s = void 0, a = void 0) {
365
365
  OPTsTI: "?$mask=dsaccess:Mask.GroupUI.Properties",
366
366
  OPTsTenant: `tenant=dstenant:${o}`
367
367
  }, c = n, d = `${r}${i.URIUGr}/${t}`, p = JSON.stringify(c);
368
- f(d, {
368
+ u(d, {
369
369
  headers: I,
370
370
  method: "PATCH",
371
371
  data: p,
@@ -380,7 +380,7 @@ function be(e, t, n, s = void 0, a = void 0) {
380
380
  }
381
381
  function Ne(e, t, n, s = void 0, a = void 0) {
382
382
  const { space: r } = e, i = `${r}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
383
- f(i, {
383
+ u(i, {
384
384
  method: "PATCH",
385
385
  headers: I,
386
386
  data: JSON.stringify(n),
@@ -395,7 +395,7 @@ function Ne(e, t, n, s = void 0, a = void 0) {
395
395
  }
396
396
  function ve(e, t, n = void 0, s = void 0) {
397
397
  const { space: a } = e, o = `${a}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
398
- f(o, {
398
+ u(o, {
399
399
  opts: {
400
400
  method: "GET",
401
401
  headers: {
@@ -414,7 +414,7 @@ function ve(e, t, n = void 0, s = void 0) {
414
414
  async function K(e, t, n) {
415
415
  if (e.space) {
416
416
  const s = `${e.space}/resources/v1/application/CSRF`;
417
- f(s, {
417
+ u(s, {
418
418
  onComplete(a) {
419
419
  a = JSON.parse(a), t && t(a.csrf);
420
420
  },
@@ -431,7 +431,7 @@ async function V(e, t = void 0, n = void 0, s = void 0) {
431
431
  return;
432
432
  }
433
433
  const r = a + `/resources/v1/modeler/documents/${t}`;
434
- f(r, {
434
+ u(r, {
435
435
  onComplete(o, i, c) {
436
436
  const d = JSON.parse(o);
437
437
  n && n(d);
@@ -441,10 +441,32 @@ async function V(e, t = void 0, n = void 0, s = void 0) {
441
441
  }
442
442
  });
443
443
  }
444
- function k(e, t = void 0, n = void 0) {
444
+ async function $e(e, t = void 0, n = void 0, s = void 0) {
445
+ const a = e.space;
446
+ if (t === void 0) {
447
+ console.log("Le paramètre docid est obligatoire");
448
+ return;
449
+ }
450
+ const r = a + "/resources/v1/modeler/documents/ids?$fields=revision&$include=!files,!ownerInfo,!originatorInfo,versions";
451
+ u(r, {
452
+ method: "POST",
453
+ headers: {
454
+ "Content-Type": "application/x-www-form-urlencoded"
455
+ },
456
+ data: JSON.stringify({ $ids: t.join(",") }),
457
+ onComplete(o, i, c) {
458
+ const d = JSON.parse(o);
459
+ n && n(d);
460
+ },
461
+ onFailure(o) {
462
+ s && s(o);
463
+ }
464
+ });
465
+ }
466
+ function $(e, t = void 0, n = void 0) {
445
467
  if (e.objID && e.objID !== "") {
446
468
  let s = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
447
- f(s, {
469
+ u(s, {
448
470
  onComplete(a, r, o) {
449
471
  const i = JSON.parse(a);
450
472
  e.token = i?.csrf?.value, e.datas = i?.data[0], t && t(e);
@@ -467,7 +489,7 @@ function k(e, t = void 0, n = void 0) {
467
489
  function T(e, t = void 0, n = void 0) {
468
490
  if (e.space) {
469
491
  const s = e.space + "/resources/v1/application/CSRF";
470
- f(s, {
492
+ u(s, {
471
493
  onComplete(a, r, o) {
472
494
  const i = JSON.parse(a);
473
495
  t && t(i.csrf.value);
@@ -485,10 +507,10 @@ function T(e, t = void 0, n = void 0) {
485
507
  }
486
508
  function A(e, t = void 0, n = void 0) {
487
509
  let s = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
488
- k(
510
+ $(
489
511
  e,
490
512
  (a) => {
491
- f(s, {
513
+ u(s, {
492
514
  method: "PUT",
493
515
  headers: {
494
516
  ENO_CSRF_TOKEN: e.token
@@ -509,7 +531,7 @@ function A(e, t = void 0, n = void 0) {
509
531
  }
510
532
  function ke(e, t, n, s = void 0, a = void 0) {
511
533
  const r = `${e.space}/resources/v1/modeler/documents/${t}/files/DownloadTicket`;
512
- n || (n = e.token), f(r, {
534
+ n || (n = e.token), u(r, {
513
535
  method: "PUT",
514
536
  headers: {
515
537
  ENO_CSRF_TOKEN: n
@@ -530,7 +552,7 @@ function ke(e, t, n, s = void 0, a = void 0) {
530
552
  });
531
553
  }
532
554
  function W(e, t, n, s, a, r = void 0, o = void 0) {
533
- k(
555
+ $(
534
556
  e,
535
557
  t,
536
558
  (i) => {
@@ -549,14 +571,14 @@ function W(e, t, n, s, a, r = void 0, o = void 0) {
549
571
  }
550
572
  function B(e, t, n, s, a, r, o = void 0, i = void 0) {
551
573
  const c = e.space + `/resources/v1/modeler/documents/${t}/files/CheckinTicket`;
552
- f(c, {
574
+ u(c, {
553
575
  method: "PUT",
554
576
  headers: {
555
577
  ENO_CSRF_TOKEN: r
556
578
  },
557
579
  onComplete(d, p, l) {
558
- const u = JSON.parse(d).data[0].dataelements, m = new FormData();
559
- m.append("__fcs__jobTicket", u.ticket), m.append("file_0", s, a);
580
+ const f = JSON.parse(d).data[0].dataelements, m = new FormData();
581
+ m.append("__fcs__jobTicket", f.ticket), m.append("file_0", s, a);
560
582
  const g = {};
561
583
  g.method = "POST", g.data = m, g.onComplete = function(h) {
562
584
  let S = "temp_" + Date.now(), _ = {
@@ -565,24 +587,20 @@ function B(e, t, n, s, a, r, o = void 0, i = void 0) {
565
587
  ENO_CSRF_TOKEN: r
566
588
  },
567
589
  data: JSON.stringify({
568
- data: [
569
- {
570
- id: t,
571
- relateddata: {
572
- files: [
573
- {
574
- id: n,
575
- dataelements: {
576
- title: a,
577
- receipt: h
578
- },
579
- updateAction: "REVISE"
580
- }
581
- ]
582
- },
583
- tempId: S
584
- }
585
- ]
590
+ data: [{
591
+ id: t,
592
+ relateddata: {
593
+ files: [{
594
+ id: n,
595
+ dataelements: {
596
+ title: a,
597
+ receipt: h
598
+ },
599
+ updateAction: "REVISE"
600
+ }]
601
+ },
602
+ tempId: S
603
+ }]
586
604
  }),
587
605
  type: "json",
588
606
  onComplete(y) {
@@ -592,17 +610,17 @@ function B(e, t, n, s, a, r, o = void 0, i = void 0) {
592
610
  i && i(y);
593
611
  }
594
612
  };
595
- f(
613
+ u(
596
614
  e.space + "/resources/v1/modeler/documents",
597
615
  _
598
616
  );
599
617
  }, g.onFailure = function(h) {
600
618
  i && i(h);
601
- }, g.timeout = 0, f(u.ticketURL, g);
619
+ }, g.timeout = 0, u(f.ticketURL, g);
602
620
  }
603
621
  });
604
622
  }
605
- async function $e(e, t, n, s, a = void 0, r = void 0) {
623
+ async function Ie(e, t, n, s, a = void 0, r = void 0) {
606
624
  const o = e.space, i = e.token, c = e.ctx, d = new FormData(), p = new Blob([JSON.stringify(t)], {
607
625
  type: "text/plain"
608
626
  }), l = {
@@ -613,20 +631,20 @@ async function $e(e, t, n, s, a = void 0, r = void 0) {
613
631
  console.log("le store._3DSpace est vide");
614
632
  return;
615
633
  }
616
- f(l.url_Ticket, {
634
+ u(l.url_Ticket, {
617
635
  method: "PUT",
618
636
  headers: {
619
637
  ENO_CSRF_TOKEN: i.value
620
638
  },
621
- onComplete(u, m, g) {
622
- const h = JSON.parse(u).data[0].dataelements;
639
+ onComplete(f, m, g) {
640
+ const h = JSON.parse(f).data[0].dataelements;
623
641
  d.append("__fcs__jobTicket", h.ticket), d.append("filename", p, n);
624
642
  const S = {
625
643
  method: "POST",
626
644
  data: d,
627
645
  onComplete(C) {
628
646
  if (c !== "" && i !== "") {
629
- const $ = {
647
+ const k = {
630
648
  method: "POST",
631
649
  headers: {
632
650
  ENO_CSRF_TOKEN: i,
@@ -634,34 +652,30 @@ async function $e(e, t, n, s, a = void 0, r = void 0) {
634
652
  "Content-Type": "application/json"
635
653
  },
636
654
  data: JSON.stringify({
637
- data: [
638
- {
639
- type: "Document",
640
- dataelements: {
641
- title: `Title_${n.toLowerCase().split(" ").join("_")}`,
642
- policy: "Document Release",
643
- description: s
644
- },
645
- relateddata: {
646
- files: [
647
- {
648
- dataelements: {
649
- title: `${n}.json`,
650
- receipt: C
651
- }
652
- }
653
- ]
654
- },
655
- tempId: D()
656
- }
657
- ]
655
+ data: [{
656
+ type: "Document",
657
+ dataelements: {
658
+ title: `Title_${n.toLowerCase().split(" ").join("_")}`,
659
+ policy: "Document Release",
660
+ description: s
661
+ },
662
+ relateddata: {
663
+ files: [{
664
+ dataelements: {
665
+ title: `${n}.json`,
666
+ receipt: C
667
+ }
668
+ }]
669
+ },
670
+ tempId: D()
671
+ }]
658
672
  }),
659
673
  type: "json",
660
674
  timeout: 0,
661
675
  onComplete: _,
662
676
  onFailure: y
663
677
  };
664
- c !== "" && f(l.url_Post, $);
678
+ c !== "" && u(l.url_Post, k);
665
679
  } else
666
680
  console.warn("le store est vide");
667
681
  },
@@ -670,21 +684,21 @@ async function $e(e, t, n, s, a = void 0, r = void 0) {
670
684
  function _(C) {
671
685
  console.log("Success -- response ", C.data[0]), a && a(C);
672
686
  }
673
- function y(C, $) {
687
+ function y(C, k) {
674
688
  console.log("Erreur -- response ", C, `
675
- headers `, $), r && r(C);
689
+ headers `, k), r && r(C);
676
690
  }
677
- f(h.ticketURL, S);
691
+ u(h.ticketURL, S);
678
692
  }
679
693
  });
680
694
  }
681
695
  function b(e, t = void 0, n = void 0, s = void 0, a = void 0, r = void 0, o = !1) {
682
696
  const i = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
683
- f(i, {
697
+ u(i, {
684
698
  method: "GET",
685
699
  onComplete(c) {
686
700
  const d = JSON.parse(c);
687
- let p = "", l, u, m;
701
+ let p = "", l, f, m;
688
702
  if (t) {
689
703
  let g = d.collabspaces.find((h) => h.title === t);
690
704
  if (g) {
@@ -697,27 +711,27 @@ function b(e, t = void 0, n = void 0, s = void 0, a = void 0, r = void 0, o = !1
697
711
  ), n && (Array.isArray(n) ? n.forEach((S) => {
698
712
  m || h.forEach((_) => {
699
713
  if (S === _.role.name && s === _.organization.title)
700
- m = S, u = s;
714
+ m = S, f = s;
701
715
  else if (S === _.role.name) {
702
716
  let y = h.filter(
703
717
  (C) => C.role.name === S
704
718
  );
705
- y.length === 1 ? (m = y[0].role.name, u = y[0].organization.title) : r(y);
719
+ y.length === 1 ? (m = y[0].role.name, f = y[0].organization.title) : r(y);
706
720
  }
707
721
  });
708
722
  }) : h.forEach((S) => {
709
723
  if (n === S.role.name && s === S.organization.title)
710
- m = n, u = s;
724
+ m = n, f = s;
711
725
  else if (n === S.role.name) {
712
726
  let _ = h.filter(
713
727
  (y) => y.role.name === n
714
728
  );
715
- _.length === 1 ? (m = _[0].role.name, u = _[0].organization.title) : r(_);
729
+ _.length === 1 ? (m = _[0].role.name, f = _[0].organization.title) : r(_);
716
730
  }
717
731
  }));
718
732
  }
719
733
  }
720
- l && u && m ? (p = m + "." + u + "." + l, a(p)) : d.preferredcredentials && o ? (p = d.preferredcredentials.role.name + "." + d.preferredcredentials.organization.title + "." + d.preferredcredentials.collabspace.title, a(p)) : r && (p = m + "." + u + "." + l, r(p));
734
+ l && f && m ? (p = m + "." + f + "." + l, a(p)) : d.preferredcredentials && o ? (p = d.preferredcredentials.role.name + "." + d.preferredcredentials.organization.title + "." + d.preferredcredentials.collabspace.title, a(p)) : r && (p = m + "." + f + "." + l, r(p));
721
735
  },
722
736
  onFailure(c, d) {
723
737
  console.log("Erreur de récupération du contexte de sécurité. => ", {
@@ -744,7 +758,7 @@ async function P(e, t = void 0, n = void 0) {
744
758
  A(
745
759
  e,
746
760
  (r) => {
747
- f(r, {
761
+ u(r, {
748
762
  headers: {
749
763
  "Content-Type": "application/json",
750
764
  Accept: "application/json"
@@ -819,7 +833,7 @@ function Y(e, t, n = void 0, s = void 0, a = void 0) {
819
833
  data: r
820
834
  });
821
835
  const i = `${e.space}/resources/v1/modeler/documents/DownloadTicket?tenant=${e.tenant}&e6w-lang=fr&e6w-timezone=-120`;
822
- f(i, {
836
+ u(i, {
823
837
  method: "PUT",
824
838
  data: o,
825
839
  type: "json",
@@ -827,8 +841,8 @@ function Y(e, t, n = void 0, s = void 0, a = void 0) {
827
841
  const d = c.data;
828
842
  c.success === !0 && (n && n(), d.forEach((p) => {
829
843
  try {
830
- const l = p.dataelements.fileName, u = p.dataelements.ticketURL;
831
- f(u, {
844
+ const l = p.dataelements.fileName, f = p.dataelements.ticketURL;
845
+ u(f, {
832
846
  onComplete: (m) => {
833
847
  s && s({
834
848
  objectId: p.id,
@@ -850,7 +864,7 @@ function Y(e, t, n = void 0, s = void 0, a = void 0) {
850
864
  }
851
865
  });
852
866
  }
853
- function Ie(e, t, n = void 0, s = void 0) {
867
+ function Ae(e, t, n = void 0, s = void 0) {
854
868
  return new Promise((a) => {
855
869
  if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
856
870
  const r = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
@@ -873,11 +887,9 @@ function Ie(e, t, n = void 0, s = void 0) {
873
887
  "Content-Type": "application/json"
874
888
  },
875
889
  data: JSON.stringify({
876
- data: [
877
- {
878
- id: t
879
- }
880
- ]
890
+ data: [{
891
+ id: t
892
+ }]
881
893
  }),
882
894
  type: "json",
883
895
  onComplete(i) {
@@ -887,11 +899,11 @@ function Ie(e, t, n = void 0, s = void 0) {
887
899
  s && s(i);
888
900
  }
889
901
  };
890
- f(r, o);
902
+ u(r, o);
891
903
  }
892
904
  });
893
905
  }
894
- function Ae(e, t, n, s = void 0, a = void 0) {
906
+ function Fe(e, t, n, s = void 0, a = void 0) {
895
907
  return new Promise((r) => {
896
908
  if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
897
909
  const o = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
@@ -914,12 +926,10 @@ function Ae(e, t, n, s = void 0, a = void 0) {
914
926
  "Content-Type": "application/json"
915
927
  },
916
928
  data: JSON.stringify({
917
- data: [
918
- {
919
- id: t,
920
- nextState: n
921
- }
922
- ]
929
+ data: [{
930
+ id: t,
931
+ nextState: n
932
+ }]
923
933
  }),
924
934
  type: "json",
925
935
  onComplete(c) {
@@ -929,11 +939,11 @@ function Ae(e, t, n, s = void 0, a = void 0) {
929
939
  a && a(c);
930
940
  }
931
941
  };
932
- f(o, i);
942
+ u(o, i);
933
943
  }
934
944
  });
935
945
  }
936
- function Fe(e, t, n = void 0, s = void 0) {
946
+ function je(e, t, n = void 0, s = void 0) {
937
947
  return new Promise((a) => {
938
948
  if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
939
949
  const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
@@ -956,11 +966,9 @@ function Fe(e, t, n = void 0, s = void 0) {
956
966
  "Content-Type": "application/json"
957
967
  },
958
968
  data: JSON.stringify({
959
- graphRequests: [
960
- {
961
- id: t
962
- }
963
- ]
969
+ graphRequests: [{
970
+ id: t
971
+ }]
964
972
  }),
965
973
  type: "json",
966
974
  onComplete(i) {
@@ -970,11 +978,11 @@ function Fe(e, t, n = void 0, s = void 0) {
970
978
  s && s(i);
971
979
  }
972
980
  };
973
- f(r, o);
981
+ u(r, o);
974
982
  }
975
983
  });
976
984
  }
977
- function je(e, t, n = void 0, s = void 0) {
985
+ function Ue(e, t, n = void 0, s = void 0) {
978
986
  return new Promise((a) => {
979
987
  if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
980
988
  const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
@@ -997,17 +1005,15 @@ function je(e, t, n = void 0, s = void 0) {
997
1005
  "Content-Type": "application/json"
998
1006
  },
999
1007
  data: JSON.stringify({
1000
- data: [
1001
- {
1002
- "attribute[PLMReference.V_versionComment]": null,
1003
- physicalid: t,
1004
- type: "Document",
1005
- tenant: e.tenant,
1006
- objectId: t,
1007
- policy: "Document Release",
1008
- availableSemantic: ["E", "LAST", "NEW", "DUP"]
1009
- }
1010
- ]
1008
+ data: [{
1009
+ "attribute[PLMReference.V_versionComment]": null,
1010
+ physicalid: t,
1011
+ type: "Document",
1012
+ tenant: e.tenant,
1013
+ objectId: t,
1014
+ policy: "Document Release",
1015
+ availableSemantic: ["E", "LAST", "NEW", "DUP"]
1016
+ }]
1011
1017
  }),
1012
1018
  type: "json",
1013
1019
  onComplete(i) {
@@ -1017,11 +1023,11 @@ function je(e, t, n = void 0, s = void 0) {
1017
1023
  s && s(i);
1018
1024
  }
1019
1025
  };
1020
- f(r, o);
1026
+ u(r, o);
1021
1027
  }
1022
1028
  });
1023
1029
  }
1024
- function Ue(e, t, n, s = void 0, a = void 0) {
1030
+ function De(e, t, n, s = void 0, a = void 0) {
1025
1031
  return new Promise((r) => {
1026
1032
  if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
1027
1033
  const o = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
@@ -1044,15 +1050,13 @@ function Ue(e, t, n, s = void 0, a = void 0) {
1044
1050
  "Content-Type": "application/json"
1045
1051
  },
1046
1052
  data: JSON.stringify({
1047
- data: [
1048
- {
1049
- physicalid: t,
1050
- proposedRevision: n,
1051
- modifiedAttributes: {
1052
- revision: n
1053
- }
1053
+ data: [{
1054
+ physicalid: t,
1055
+ proposedRevision: n,
1056
+ modifiedAttributes: {
1057
+ revision: n
1054
1058
  }
1055
- ],
1059
+ }],
1056
1060
  folderid: null,
1057
1061
  notificationTimeout: 600
1058
1062
  }),
@@ -1064,24 +1068,24 @@ function Ue(e, t, n, s = void 0, a = void 0) {
1064
1068
  a && a(c);
1065
1069
  }
1066
1070
  };
1067
- f(o, i);
1071
+ u(o, i);
1068
1072
  }
1069
1073
  });
1070
1074
  }
1071
- function De(e, t, n, s = void 0, a = void 0) {
1072
- return new Promise((r) => {
1073
- const o = `${e.space}/resources/v1/modeler/dsbks/dsbks:Bookmark`;
1074
- let i = {
1075
+ function Pe(e, t, n, s, a = void 0, r = void 0) {
1076
+ return new Promise((o) => {
1077
+ const i = `${e.space}/resources/v1/modeler/dsbks/dsbks:Bookmark`;
1078
+ let c = {
1075
1079
  attributes: {
1076
1080
  title: n,
1077
- description,
1081
+ description: s,
1078
1082
  inheritedAccess: "no"
1079
1083
  }
1080
- }, c = {
1084
+ }, d = {
1081
1085
  items: []
1082
1086
  };
1083
- t && (c.parentId = t), c.items.push(i);
1084
- let d = {
1087
+ t && (d.parentId = t), d.items.push(c);
1088
+ let p = {
1085
1089
  method: "POST",
1086
1090
  headers: {
1087
1091
  Accept: "application/json",
@@ -1089,49 +1093,47 @@ function De(e, t, n, s = void 0, a = void 0) {
1089
1093
  SecurityContext: e.ctx,
1090
1094
  ENO_CSRF_TOKEN: e.token
1091
1095
  },
1092
- data: JSON.stringify(c),
1096
+ data: JSON.stringify(d),
1093
1097
  type: "json",
1094
- onComplete(p) {
1095
- s && s(p);
1098
+ onComplete(l) {
1099
+ a && a(l);
1096
1100
  },
1097
- onFailure(p) {
1098
- a && a(p);
1101
+ onFailure(l) {
1102
+ r && r(l);
1099
1103
  }
1100
1104
  };
1101
- f(o, d);
1105
+ u(i, p);
1102
1106
  });
1103
1107
  }
1104
- function Pe(e, t, n, s, a = void 0, r = void 0) {
1108
+ function Re(e, t, n, s, a = void 0, r = void 0) {
1105
1109
  return console.log("credentials", e), new Promise((o) => {
1106
1110
  `${e.space}`, JSON.stringify({
1107
1111
  csrf: {
1108
1112
  name: "ENO_CSRF_TOKEN",
1109
1113
  value: e.token
1110
1114
  },
1111
- data: [
1112
- {
1113
- type: "Workspace",
1114
- cestamp: "businessobject",
1115
- relId: t,
1116
- id: t,
1117
- dataelements: {
1118
- personList: n,
1119
- eventsList: s
1120
- },
1121
- tenant: e.tenant
1122
- }
1123
- ]
1115
+ data: [{
1116
+ type: "Workspace",
1117
+ cestamp: "businessobject",
1118
+ relId: t,
1119
+ id: t,
1120
+ dataelements: {
1121
+ personList: n,
1122
+ eventsList: s
1123
+ },
1124
+ tenant: e.tenant
1125
+ }]
1124
1126
  });
1125
1127
  });
1126
1128
  }
1127
1129
  //!SECTION
1128
- function Re(e, t = void 0, n = void 0) {
1130
+ function xe(e, t = void 0, n = void 0) {
1129
1131
  const s = {
1130
1132
  base: `${e.space}`,
1131
1133
  uri: "/resources/bps/cspaces",
1132
1134
  optTenant: `tenant=${e.tenant}`
1133
1135
  }, a = `${s.base}${s.uri}?${s.optTenant}`;
1134
- f(a, {
1136
+ u(a, {
1135
1137
  method: "GET",
1136
1138
  headers: {
1137
1139
  Accept: "application/json,text/javascript,*/*",
@@ -1146,12 +1148,12 @@ function Re(e, t = void 0, n = void 0) {
1146
1148
  }
1147
1149
  });
1148
1150
  }
1149
- function xe(e, t, n, s) {
1151
+ function Me(e, t, n, s) {
1150
1152
  A(
1151
1153
  e.space,
1152
1154
  t,
1153
1155
  (a) => {
1154
- f(a, {
1156
+ u(a, {
1155
1157
  header: { ENO_CSRF_TOKEN: e.token },
1156
1158
  onComplete: (r) => {
1157
1159
  n && n(r);
@@ -1163,10 +1165,10 @@ function xe(e, t, n, s) {
1163
1165
  }
1164
1166
  );
1165
1167
  }
1166
- async function Me(e, t, n = void 0, s = void 0) {
1168
+ async function Le(e, t, n = void 0, s = void 0) {
1167
1169
  return new Promise((a) => {
1168
1170
  A(e, t, (r) => {
1169
- f(r, {
1171
+ u(r, {
1170
1172
  onComplete: (o, i, c) => (a(JSON.parse(o)), n && n(JSON.parse(o), i, c), a),
1171
1173
  onFailure: (o, i, c) => {
1172
1174
  s && s(o, i, c), console.log(o, i?.errormsg);
@@ -1175,9 +1177,9 @@ async function Me(e, t, n = void 0, s = void 0) {
1175
1177
  });
1176
1178
  });
1177
1179
  }
1178
- function Le(e, t, n, s = void 0, a = void 0) {
1180
+ function Je(e, t, n, s = void 0, a = void 0) {
1179
1181
  const r = new Blob([JSON.stringify(t)], { type: "text/plain" });
1180
- k(
1182
+ $(
1181
1183
  e,
1182
1184
  n,
1183
1185
  (o) => {
@@ -1200,8 +1202,8 @@ function Le(e, t, n, s = void 0, a = void 0) {
1200
1202
  }
1201
1203
  let R, x;
1202
1204
  const F = [];
1203
- async function Je(e, t = void 0, n = void 0) {
1204
- e.objID && e.objID !== "" ? k(
1205
+ async function Ee(e, t = void 0, n = void 0) {
1206
+ e.objID && e.objID !== "" ? $(
1205
1207
  e,
1206
1208
  (s) => {
1207
1209
  t && t(s);
@@ -1219,7 +1221,7 @@ async function Je(e, t = void 0, n = void 0) {
1219
1221
  }
1220
1222
  );
1221
1223
  }
1222
- async function Ee(e, t = void 0, n = void 0) {
1224
+ async function Ge(e, t = void 0, n = void 0) {
1223
1225
  console.log("getDatasByTenant (getDocuments)", e), await P(
1224
1226
  e,
1225
1227
  (s) => {
@@ -1231,7 +1233,7 @@ async function Ee(e, t = void 0, n = void 0) {
1231
1233
  }
1232
1234
  );
1233
1235
  }
1234
- function Ge(e, t = void 0, n = void 0) {
1236
+ function Ke(e, t = void 0, n = void 0) {
1235
1237
  const s = [];
1236
1238
  if (!e.objIds && !Array.isArray(e.objIds) && e.objIds.length === 0) {
1237
1239
  console.warn("la liste est vide ou n'est pas un tableau");
@@ -1280,7 +1282,7 @@ const H = "FA35FB9B177A280065800EA0000F599C", z = [
1280
1282
  order_by: "desc",
1281
1283
  tag: "testTag"
1282
1284
  };
1283
- function Ke(e, t, n = void 0, s = void 0) {
1285
+ function Ve(e, t, n = void 0, s = void 0) {
1284
1286
  const { space: a, tenant: r } = e, { objId: o, pred: i, tag: c } = t, d = {
1285
1287
  uri: "/resources/6w/tags",
1286
1288
  otpCTX: "SecurityContext=preferred",
@@ -1300,15 +1302,15 @@ function Ke(e, t, n = void 0, s = void 0) {
1300
1302
  }
1301
1303
  ]
1302
1304
  };
1303
- f(p, {
1305
+ u(p, {
1304
1306
  method: "PUT",
1305
1307
  headers: {
1306
1308
  "Content-Type": "application/json",
1307
1309
  Accept: "application/json"
1308
1310
  },
1309
1311
  data: JSON.stringify(l),
1310
- onComplete(u) {
1311
- JSON.parse(u);
1312
+ onComplete(f) {
1313
+ JSON.parse(f);
1312
1314
  const m = {};
1313
1315
  setTimeout(() => {
1314
1316
  V(
@@ -1334,8 +1336,8 @@ function Ke(e, t, n = void 0, s = void 0) {
1334
1336
  );
1335
1337
  }, 2e3);
1336
1338
  },
1337
- onFailure(u, m) {
1338
- const g = u;
1339
+ onFailure(f, m) {
1340
+ const g = f;
1339
1341
  g.msg = m.errormsg, g.errCode = m.errorcode, console.log("❌ sendDirectMessage => ", g), s && s(g);
1340
1342
  }
1341
1343
  });
@@ -1409,7 +1411,7 @@ function Z(e, t, n = void 0, s = void 0) {
1409
1411
  }
1410
1412
  }
1411
1413
  };
1412
- console.log("dataPattern => ", d), f(o, {
1414
+ console.log("dataPattern => ", d), u(o, {
1413
1415
  method: "POST",
1414
1416
  headers: i,
1415
1417
  data: JSON.stringify(d),
@@ -1418,12 +1420,12 @@ function Z(e, t, n = void 0, s = void 0) {
1418
1420
  n(l);
1419
1421
  },
1420
1422
  onFailure(p, l) {
1421
- const u = p;
1422
- u.msg = l.errormsg, u.errCode = l.errorcode, console.log("❌ sendDirectMessage => ", u), s && s(u), console.log("Erreur de recuperation d'id du doc et des tags", p);
1423
+ const f = p;
1424
+ f.msg = l.errormsg, f.errCode = l.errorcode, console.log("❌ sendDirectMessage => ", f), s && s(f), console.log("Erreur de recuperation d'id du doc et des tags", p);
1423
1425
  }
1424
1426
  });
1425
1427
  }
1426
- function Ve(e, t, n = void 0, s = void 0) {
1428
+ function We(e, t, n = void 0, s = void 0) {
1427
1429
  const { objId: a, pred: r, tag: o } = t, i = {
1428
1430
  uri: "/resources/6w/tags",
1429
1431
  otpCTX: "SecurityContext=preferred",
@@ -1443,7 +1445,7 @@ function Ve(e, t, n = void 0, s = void 0) {
1443
1445
  }
1444
1446
  ]
1445
1447
  };
1446
- f(c, {
1448
+ u(c, {
1447
1449
  method: "DELETE",
1448
1450
  data: JSON.stringify(d),
1449
1451
  headers: {
@@ -1454,12 +1456,12 @@ function Ve(e, t, n = void 0, s = void 0) {
1454
1456
  n && n(p);
1455
1457
  },
1456
1458
  onFailure(p, l) {
1457
- const u = p;
1458
- u.msg = l.errormsg, u.errCode = l.errorcode, console.log("❌ sendDirectMessage => ", u), s && s(u);
1459
+ const f = p;
1460
+ f.msg = l.errormsg, f.errCode = l.errorcode, console.log("❌ sendDirectMessage => ", f), s && s(f);
1459
1461
  }
1460
1462
  });
1461
1463
  }
1462
- function We(e, t = "", n = void 0, s = void 0) {
1464
+ function Be(e, t = "", n = void 0, s = void 0) {
1463
1465
  const { space: a } = e;
1464
1466
  if (t === "")
1465
1467
  return;
@@ -1469,7 +1471,7 @@ function We(e, t = "", n = void 0, s = void 0) {
1469
1471
  "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
1470
1472
  Accept: "application/json,text/javascript,*/*"
1471
1473
  }, i = `${a}${r.uri}`, c = `$include=none,lockerInfo,ownerInfo,originatorInfo,files,ownerInfo,originatorInfo&$fields=none,title,name,typeNLS,collabSpaceTitle,revision,isLatestRevision,files,lockStatus,lockerInfo.name,lockerInfo.firstname,lockerInfo.lastname,owner,ownerInfo.name,ownerInfo.firstname,ownerInfo.lastname,stateNLS,modified,policy,state,organizationTitle,originator,originatorInfo.name,originatorInfo.firstname,originatorInfo.lastname,hasModifyAccess,fileExtension,files.name,files.title,files.revision,files.locker,ownerInfo,ownerInfo.name,ownerInfo.firstname,ownerInfo.lastname,originatorInfo,originatorInfo.name,originatorInfo.firstname,originatorInfo.lastname&$ids=${t}`;
1472
- f(i, {
1474
+ u(i, {
1473
1475
  method: "POST",
1474
1476
  headers: o,
1475
1477
  data: c,
@@ -1484,7 +1486,7 @@ function We(e, t = "", n = void 0, s = void 0) {
1484
1486
  }
1485
1487
  async function w(e, t = void 0, n = void 0) {
1486
1488
  const s = e.space + "/api/index/tk";
1487
- return f(s, {
1489
+ return u(s, {
1488
1490
  onComplete(a, r, o) {
1489
1491
  const i = JSON.parse(a);
1490
1492
  if (t)
@@ -1495,7 +1497,7 @@ async function w(e, t = void 0, n = void 0) {
1495
1497
  }
1496
1498
  });
1497
1499
  }
1498
- function Be(e, t = void 0, n = void 0) {
1500
+ function Xe(e, t = void 0, n = void 0) {
1499
1501
  const s = `${e.space}/api/exalead/whatsnew`, a = {
1500
1502
  params: {
1501
1503
  community_id: null,
@@ -1507,7 +1509,7 @@ function Be(e, t = void 0, n = void 0) {
1507
1509
  }
1508
1510
  };
1509
1511
  w(e, (r) => {
1510
- f(s, {
1512
+ u(s, {
1511
1513
  method: "POST",
1512
1514
  headers: {
1513
1515
  "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken,
@@ -1525,7 +1527,7 @@ function Be(e, t = void 0, n = void 0) {
1525
1527
  });
1526
1528
  });
1527
1529
  }
1528
- function Xe(e, t = void 0, n = void 0) {
1530
+ function Ye(e, t = void 0, n = void 0) {
1529
1531
  const s = `${e.space}/api/Recommendation/getpeoplefamiliartocurrentuser`, a = {
1530
1532
  params: {
1531
1533
  idsToFilterArr: [],
@@ -1536,7 +1538,7 @@ function Xe(e, t = void 0, n = void 0) {
1536
1538
  }
1537
1539
  };
1538
1540
  w(e, (r) => {
1539
- f(s, {
1541
+ u(s, {
1540
1542
  method: "POST",
1541
1543
  headers: {
1542
1544
  "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken,
@@ -1555,7 +1557,7 @@ function Xe(e, t = void 0, n = void 0) {
1555
1557
  });
1556
1558
  });
1557
1559
  }
1558
- function Ye(e, t = void 0, n = void 0) {
1560
+ function qe(e, t = void 0, n = void 0) {
1559
1561
  const s = {
1560
1562
  base: e.space,
1561
1563
  uri: "/api/community/listmycommunities",
@@ -1563,14 +1565,14 @@ function Ye(e, t = void 0, n = void 0) {
1563
1565
  page: `/page/${e.page ? e.page : "1"}`
1564
1566
  }, a = `${s.base}${s.uri}${s.limit}${s.page}`, r = [];
1565
1567
  w(e, (o) => {
1566
- f(a, {
1568
+ u(a, {
1567
1569
  method: "GET",
1568
1570
  headers: {
1569
1571
  "X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
1570
1572
  },
1571
1573
  onComplete(i, c, d) {
1572
1574
  const l = JSON.parse(i).result;
1573
- let u = 0;
1575
+ let f = 0;
1574
1576
  l.forEach((m) => {
1575
1577
  const g = {
1576
1578
  description: m.description,
@@ -1584,7 +1586,7 @@ function Ye(e, t = void 0, n = void 0) {
1584
1586
  e,
1585
1587
  m.id,
1586
1588
  (h) => {
1587
- u++, g.members = h, r.push(g), u === l.length && t && t(r);
1589
+ f++, g.members = h, r.push(g), f === l.length && t && t(r);
1588
1590
  },
1589
1591
  (h) => n(h)
1590
1592
  );
@@ -1606,7 +1608,7 @@ function ee(e, t, n, s) {
1606
1608
  }
1607
1609
  };
1608
1610
  w(e, (o) => {
1609
- f(a, {
1611
+ u(a, {
1610
1612
  method: "POST",
1611
1613
  headers: {
1612
1614
  "Content-type": "application/json;charset=UTF-8",
@@ -1625,12 +1627,12 @@ function ee(e, t, n, s) {
1625
1627
  });
1626
1628
  });
1627
1629
  }
1628
- function qe(e, t = void 0, n = void 0) {
1630
+ function He(e, t = void 0, n = void 0) {
1629
1631
  const s = "YXdA5x4DSUKtlAi2wmnyTA";
1630
1632
  e.commu_id || (e.commu_id = s);
1631
1633
  const a = `${e.space}/api/v2/communities/${e.commu_id}/ideas/statuses`;
1632
1634
  w(e, (r) => {
1633
- f(a, {
1635
+ u(a, {
1634
1636
  method: "GET",
1635
1637
  headers: {
1636
1638
  "Content-type": "application/json;charset=UTF-8",
@@ -1648,7 +1650,7 @@ function qe(e, t = void 0, n = void 0) {
1648
1650
  });
1649
1651
  });
1650
1652
  }
1651
- function He(e, t, n = void 0, s = void 0) {
1653
+ function ze(e, t, n = void 0, s = void 0) {
1652
1654
  const { listAllContacts: a, currentUser: r } = e;
1653
1655
  console.log("__listAllContacts", a.hits);
1654
1656
  const o = `${e.space}/api/directmessages`, i = {
@@ -1670,7 +1672,7 @@ function He(e, t, n = void 0, s = void 0) {
1670
1672
  }
1671
1673
  ), d === !1 && setTimeout(() => {
1672
1674
  d === !1 && w(e, (p) => {
1673
- f(o, {
1675
+ u(o, {
1674
1676
  method: "POST",
1675
1677
  headers: {
1676
1678
  "Content-Type": "application/json",
@@ -1679,13 +1681,13 @@ function He(e, t, n = void 0, s = void 0) {
1679
1681
  },
1680
1682
  data: JSON.stringify(i),
1681
1683
  type: "json",
1682
- onComplete(l, u, m) {
1684
+ onComplete(l, f, m) {
1683
1685
  const g = l;
1684
1686
  g.reponse = JSON.parse(m.response), g.status = m.status, n && n(g), c.id_msg = g.result.id, j(e, c);
1685
1687
  },
1686
- onFailure(l, u, m) {
1688
+ onFailure(l, f, m) {
1687
1689
  const g = l;
1688
- g.msg = u.errormsg, g.status = u.status, s && s(g);
1690
+ g.msg = f.errormsg, g.status = f.status, s && s(g);
1689
1691
  }
1690
1692
  });
1691
1693
  });
@@ -1694,7 +1696,7 @@ function He(e, t, n = void 0, s = void 0) {
1694
1696
  function te(e, t, n, s) {
1695
1697
  const a = `${e.space}/api/directmessages/lite?with_favorites=false`;
1696
1698
  w(e, (r) => {
1697
- f(a, {
1699
+ u(a, {
1698
1700
  method: "GET",
1699
1701
  headers: {
1700
1702
  Accept: "application/json,text/javascript,*/*",
@@ -1703,13 +1705,13 @@ function te(e, t, n, s) {
1703
1705
  onComplete(o) {
1704
1706
  const i = JSON.parse(o), c = [];
1705
1707
  i.result.forEach((l) => {
1706
- l.users = l.users.sort((u, m) => u.login.localeCompare(m.login)), l.users.length === t.length && c.push(l);
1708
+ l.users = l.users.sort((f, m) => f.login.localeCompare(m.login)), l.users.length === t.length && c.push(l);
1707
1709
  });
1708
1710
  const d = t.sort(), p = c.find((l) => {
1709
- const u = [];
1711
+ const f = [];
1710
1712
  return l.users.forEach((m) => {
1711
- u.push(m.login);
1712
- }), JSON.stringify(u) === JSON.stringify(d);
1713
+ f.push(m.login);
1714
+ }), JSON.stringify(f) === JSON.stringify(d);
1713
1715
  });
1714
1716
  n && p !== void 0 ? n(p) : (s || p === void 0) && s(p);
1715
1717
  },
@@ -1737,7 +1739,7 @@ function j(e, t, n = void 0, s = void 0) {
1737
1739
  richMessage: t.msg
1738
1740
  };
1739
1741
  console.log("_3dSwym_sendDirectMessageData url ", r), w(e, (i) => {
1740
- f(r, {
1742
+ u(r, {
1741
1743
  method: "POST",
1742
1744
  headers: {
1743
1745
  "Content-Type": "application/json",
@@ -1774,7 +1776,7 @@ const se = {
1774
1776
  idee_id: "THhRI8rlQNWKRxpv3Xqqug"
1775
1777
  // id de l'idee qui est créer au post (_3dSwym_postIdea)
1776
1778
  };
1777
- function ze(e, t, n = void 0, s = void 0) {
1779
+ function Qe(e, t, n = void 0, s = void 0) {
1778
1780
  const a = `${e.space}/api/idea/add`, r = e.swymCommunities.find(
1779
1781
  (c) => c.id === t.community_id
1780
1782
  ), o = e.swymCommunities.find(
@@ -1797,23 +1799,23 @@ function ze(e, t, n = void 0, s = void 0) {
1797
1799
  Accept: "application/json",
1798
1800
  "X-DS-SWYM-CSRFTOKEN": c.result.ServerToken
1799
1801
  };
1800
- f(a, {
1802
+ u(a, {
1801
1803
  method: "POST",
1802
1804
  headers: d,
1803
1805
  data: JSON.stringify(i),
1804
1806
  type: "json",
1805
- onComplete(p, l, u) {
1807
+ onComplete(p, l, f) {
1806
1808
  const m = JSON.parse(p);
1807
- m.status = u.status, m.response = u.response, n && n(m);
1809
+ m.status = f.status, m.response = f.response, n && n(m);
1808
1810
  },
1809
- onFailure(p, l, u) {
1811
+ onFailure(p, l, f) {
1810
1812
  const m = p;
1811
1813
  m.status = l.status, m.response = l.errormsg, s && s(m);
1812
1814
  }
1813
1815
  });
1814
1816
  });
1815
1817
  }
1816
- function Qe(e, t, n = void 0, s = void 0) {
1818
+ function Ze(e, t, n = void 0, s = void 0) {
1817
1819
  const a = `${e.space}/api/idea/delete`, r = {
1818
1820
  params: {
1819
1821
  community_id: t.community_id,
@@ -1821,7 +1823,7 @@ function Qe(e, t, n = void 0, s = void 0) {
1821
1823
  }
1822
1824
  };
1823
1825
  w(e, (o) => {
1824
- f(a, {
1826
+ u(a, {
1825
1827
  method: "POST",
1826
1828
  headers: {
1827
1829
  "Content-type": "application/json;charset=UTF-8",
@@ -1840,7 +1842,7 @@ function Qe(e, t, n = void 0, s = void 0) {
1840
1842
  });
1841
1843
  });
1842
1844
  }
1843
- function Ze(e, t = "", n = void 0, s = void 0) {
1845
+ function et(e, t = "", n = void 0, s = void 0) {
1844
1846
  const a = e.tenant.toLowerCase() === "r1132101716373" ? "tFtz0G4MR6qNtKgJjNfTog" : e.tenant.toLowerCase() === "r1132101286859" ? "Qpv3HN-tTDOsU-7_c5DnDg" : "Template_d'idée_à_créer";
1845
1847
  t === "" && (t = a);
1846
1848
  const r = `${e.space}/api/idea/get`, o = {
@@ -1849,7 +1851,7 @@ function Ze(e, t = "", n = void 0, s = void 0) {
1849
1851
  }
1850
1852
  };
1851
1853
  w(e, (i) => {
1852
- f(r, {
1854
+ u(r, {
1853
1855
  method: "POST",
1854
1856
  headers: {
1855
1857
  "Content-type": "application/json;charset=UTF-8",
@@ -1869,14 +1871,14 @@ function Ze(e, t = "", n = void 0, s = void 0) {
1869
1871
  });
1870
1872
  });
1871
1873
  }
1872
- function et(e, t = se, n = void 0, s = void 0) {
1874
+ function tt(e, t = se, n = void 0, s = void 0) {
1873
1875
  const a = {
1874
1876
  uri: "/api/idea/list",
1875
1877
  comId: `/community_id/${e.tenant.toLowerCase() === "r1132101716373" ? t.community_id : "bgnIsG74SUWswyGzS6NC6g"}`,
1876
1878
  limit: `/limit/${t.limit ? t.limit : 10}`
1877
1879
  }, r = `${e.space}${a.uri}${a.comId}${a.limit}`;
1878
1880
  w(e, (o) => {
1879
- f(r, {
1881
+ u(r, {
1880
1882
  method: "GET",
1881
1883
  headers: {
1882
1884
  "X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
@@ -1967,10 +1969,10 @@ function ie(e) {
1967
1969
  <p>
1968
1970
  </p>` : e;
1969
1971
  }
1970
- function tt(e, t = void 0, n = void 0) {
1972
+ function nt(e, t = void 0, n = void 0) {
1971
1973
  const s = e.space + "/api/user/getcurrent/";
1972
1974
  w(e, (a) => {
1973
- f(s, {
1975
+ u(s, {
1974
1976
  method: "GET",
1975
1977
  headers: {
1976
1978
  "X-DS-SWYM-CSRFTOKEN": a.result.ServerToken
@@ -1986,12 +1988,12 @@ function tt(e, t = void 0, n = void 0) {
1986
1988
  });
1987
1989
  });
1988
1990
  }
1989
- function nt(e, t, n = void 0, s = void 0) {
1991
+ function st(e, t, n = void 0, s = void 0) {
1990
1992
  const a = e.space + "/api/user/find/login/" + t;
1991
1993
  w(
1992
1994
  e,
1993
1995
  (r) => {
1994
- f(a, {
1996
+ u(a, {
1995
1997
  method: "GET",
1996
1998
  headers: { "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken },
1997
1999
  onComplete(o, i, c) {
@@ -2006,18 +2008,18 @@ function nt(e, t, n = void 0, s = void 0) {
2006
2008
  s
2007
2009
  );
2008
2010
  }
2009
- function st(e, t = void 0, n = void 0) {
2011
+ function it(e, t = void 0, n = void 0) {
2010
2012
  e.tenant && v(e, (s) => {
2011
2013
  console.log("serviceUrls", s);
2012
2014
  const a = s.services.find((r) => r.id === "businessprocess")?.url + "/api/v2";
2013
2015
  t && t(a);
2014
2016
  });
2015
2017
  }
2016
- function it(e, t = void 0, n = void 0) {
2018
+ function at(e, t = void 0, n = void 0) {
2017
2019
  e.tenant && v(e, (s) => {
2018
2020
  console.log("serviceUrls", s);
2019
2021
  const a = s.services.find((i) => i.id === "3dpassport")?.url, r = s.services.find((i) => i.id === "businessprocess")?.url + "/api/v2", o = `${a}/login/?service=${r}/auth/cas`;
2020
- f(o, {
2022
+ u(o, {
2021
2023
  async onComplete(i) {
2022
2024
  console.log("response", i);
2023
2025
  const c = typeof i == "string" ? JSON.parse(i)?.x3ds_service_redirect_url : i?.x3ds_service_redirect_url;
@@ -2033,7 +2035,7 @@ function it(e, t = void 0, n = void 0) {
2033
2035
  });
2034
2036
  });
2035
2037
  }
2036
- async function at(e, t, n = void 0, s = void 0) {
2038
+ async function ot(e, t, n = void 0, s = void 0) {
2037
2039
  e.tenant && v(e, (a) => {
2038
2040
  const o = `${a.services.find((i) => i.id === "businessprocess")?.url + "/api/v2"}/identity/users`;
2039
2041
  fetch(`https://api.uixhome.fr/iterop/listusers?t=${t}&s=${o}`, {
@@ -2045,7 +2047,7 @@ async function at(e, t, n = void 0, s = void 0) {
2045
2047
  });
2046
2048
  });
2047
2049
  }
2048
- async function ot(e, t, n = void 0, s = void 0) {
2050
+ async function rt(e, t, n = void 0, s = void 0) {
2049
2051
  e.tenant && v(e, (a) => {
2050
2052
  const o = `${a.services.find((i) => i.id === "businessprocess")?.url + "/api/v2"}/repository/data/tables`;
2051
2053
  fetch(`https://api.uixhome.fr/iterop/repository/data/tables?t=${t}&s=${o}`, {
@@ -2057,7 +2059,7 @@ async function ot(e, t, n = void 0, s = void 0) {
2057
2059
  });
2058
2060
  });
2059
2061
  }
2060
- async function rt(e, t, n, s, a = void 0, r = void 0) {
2062
+ async function ct(e, t, n, s, a = void 0, r = void 0) {
2061
2063
  e.tenant && v(e, (o) => {
2062
2064
  const i = o.services.find((d) => d.id === "businessprocess")?.url + "/api/v2", c = encodeURIComponent(`${i}`);
2063
2065
  fetch(
@@ -2072,11 +2074,11 @@ async function rt(e, t, n, s, a = void 0, r = void 0) {
2072
2074
  });
2073
2075
  });
2074
2076
  }
2075
- function ct(e) {
2077
+ function dt(e) {
2076
2078
  const t = "Hello " + e;
2077
2079
  return console.log(t), t;
2078
2080
  }
2079
- function dt(e, t = void 0, n = void 0) {
2081
+ function pt(e, t = void 0, n = void 0) {
2080
2082
  return console.log("credentials", e), new Promise((s) => {
2081
2083
  if (e.token === "" && T(e), !e.space || e.space === "") {
2082
2084
  const o = E();
@@ -2094,13 +2096,13 @@ function dt(e, t = void 0, n = void 0) {
2094
2096
  !0
2095
2097
  );
2096
2098
  const a = N.now().ts, r = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dsearch&platformId=${e.tenant}`;
2097
- f(r, {
2099
+ u(r, {
2098
2100
  onComplete(o) {
2099
2101
  if (Array.isArray(JSON.parse(o))) {
2100
2102
  const i = JSON.parse(o);
2101
2103
  console.log("serviceId=3dsearch", i);
2102
2104
  const c = `${i[0].services[0].url}/search?xrequestedwith=xmlhttprequest`;
2103
- f(c, {
2105
+ u(c, {
2104
2106
  method: "POST",
2105
2107
  headers: {
2106
2108
  Accept: "application/json",
@@ -2157,82 +2159,83 @@ function dt(e, t = void 0, n = void 0) {
2157
2159
  }
2158
2160
  export {
2159
2161
  D as UUID,
2160
- dt as _3DSearch_usersGroup,
2161
- $e as _3DSpace_Create_Doc,
2162
- Pe as _3DSpace_bookmark_addSubsciptions,
2163
- De as _3DSpace_bookmark_newWorkspace,
2162
+ pt as _3DSearch_usersGroup,
2163
+ Ie as _3DSpace_Create_Doc,
2164
+ Re as _3DSpace_bookmark_addSubsciptions,
2165
+ Pe as _3DSpace_bookmark_newWorkspace,
2164
2166
  T as _3DSpace_csrf,
2165
2167
  P as _3DSpace_download_doc,
2166
2168
  X as _3DSpace_download_multidoc,
2167
2169
  W as _3DSpace_file_update,
2168
2170
  B as _3DSpace_file_update_csr,
2169
2171
  ke as _3DSpace_file_url_csr,
2170
- k as _3DSpace_get_csrf,
2172
+ $ as _3DSpace_get_csrf,
2171
2173
  V as _3DSpace_get_docInfo,
2172
2174
  Y as _3DSpace_get_downloadTicket_multidoc,
2175
+ $e as _3DSpace_get_multiDocInfo,
2173
2176
  b as _3DSpace_get_securityContexts,
2174
2177
  A as _3DSpace_get_ticket,
2175
- Ue as _3DSpace_lifecycle_changeRevision,
2176
- Ae as _3DSpace_lifecycle_changeState,
2177
- Fe as _3DSpace_lifecycle_getGraph,
2178
- je as _3DSpace_lifecycle_getNextRevision,
2179
- Ie as _3DSpace_lifecycle_getNextStates,
2180
- He as _3DSwym_buildDirectMessage,
2181
- Qe as _3DSwym_deleteIdea,
2178
+ De as _3DSpace_lifecycle_changeRevision,
2179
+ Fe as _3DSpace_lifecycle_changeState,
2180
+ je as _3DSpace_lifecycle_getGraph,
2181
+ Ue as _3DSpace_lifecycle_getNextRevision,
2182
+ Ae as _3DSpace_lifecycle_getNextStates,
2183
+ ze as _3DSwym_buildDirectMessage,
2184
+ Ze as _3DSwym_deleteIdea,
2182
2185
  te as _3DSwym_findCommunityToInstantMSG,
2183
- Ye as _3DSwym_getAllCommunities,
2184
- Be as _3DSwym_getAllNews,
2185
- Xe as _3DSwym_getFamiliarPeople,
2186
- qe as _3DSwym_getIdeaStatusMaturity,
2186
+ qe as _3DSwym_getAllCommunities,
2187
+ Xe as _3DSwym_getAllNews,
2188
+ Ye as _3DSwym_getFamiliarPeople,
2189
+ He as _3DSwym_getIdeaStatusMaturity,
2187
2190
  ee as _3DSwym_getMembersCommunity,
2188
- Ze as _3DSwym_getSWYMIdea,
2189
- et as _3DSwym_get_AllSWYMIdeas,
2190
- tt as _3DSwym_get_currentUser,
2191
- nt as _3DSwym_get_findUser,
2191
+ et as _3DSwym_getSWYMIdea,
2192
+ tt as _3DSwym_get_AllSWYMIdeas,
2193
+ nt as _3DSwym_get_currentUser,
2194
+ st as _3DSwym_get_findUser,
2192
2195
  w as _3DSwym_get_version,
2193
- ze as _3DSwym_postIdea,
2196
+ Qe as _3DSwym_postIdea,
2194
2197
  j as _3DSwym_sendMessageData,
2195
2198
  ye as _AppMngt_get_info_user,
2196
2199
  _e as _AppMngt_get_users,
2197
- it as _Iterop_Auth_CAS,
2198
- at as _Iterop_ListUsers,
2199
- ot as _Iterop_getAllBusinessTables,
2200
- rt as _Iterop_runProcess,
2200
+ at as _Iterop_Auth_CAS,
2201
+ ot as _Iterop_ListUsers,
2202
+ rt as _Iterop_getAllBusinessTables,
2203
+ ct as _Iterop_runProcess,
2201
2204
  E as _getPlateformInfos,
2202
2205
  ge as _getPlatformServices,
2203
2206
  v as _getServiceUrl,
2204
2207
  he as _getServiceUrl_3DPassport,
2205
- st as _getServiceUrl_Iterop,
2206
- f as _httpCallAuthenticated,
2208
+ it as _getServiceUrl_Iterop,
2209
+ u as _httpCallAuthenticated,
2207
2210
  ue as _setDraggable,
2208
2211
  me as _setDroppable,
2209
2212
  fe as _setupTagger,
2210
- Ke as addTagToDoc,
2213
+ Ve as addTagToDoc,
2211
2214
  Se as compass_getListAdditionalApps,
2212
2215
  J as couleurs,
2213
2216
  we as createUserGroups,
2214
2217
  q as dataMixing,
2215
2218
  Oe as deleteUserGroups,
2216
2219
  de as findAdresse,
2217
- Re as getAllContextSecurity,
2220
+ xe as getAllContextSecurity,
2218
2221
  K as getCSRFToken,
2219
2222
  ce as getCommunes,
2220
2223
  Ce as getComplementUG,
2221
- xe as getDataFrom3DSpace,
2224
+ Me as getDataFrom3DSpace,
2222
2225
  pe as getDataFromGouvFr,
2223
- Ee as getDatasByTenant,
2224
- Ge as getDatasFrom3DSpace,
2225
- Me as getDownloadDocument,
2226
- We as getInfoDocTags,
2226
+ Ge as getDatasByTenant,
2227
+ Ke as getDatasFrom3DSpace,
2228
+ Le as getDownloadDocument,
2229
+ Be as getInfoDocTags,
2227
2230
  Te as getUserGroupsList,
2228
2231
  G as getUsersGroupRules,
2229
- Je as get_3DSpace_csrf,
2232
+ Ee as get_3DSpace_csrf,
2230
2233
  be as patchUserGroups,
2231
2234
  Ne as patchUserGroupsControl,
2232
- Le as pushDataIn3DSpace,
2235
+ Je as pushDataIn3DSpace,
2233
2236
  ve as readUserGroupControl,
2234
- Ve as removeTagToDoc,
2235
- ct as sayHello,
2237
+ We as removeTagToDoc,
2238
+ dt as sayHello,
2236
2239
  le as updateEvent
2237
2240
  };
2238
2241
  //# sourceMappingURL=wb3Api.js.map