@beam3_dev/api_module 0.0.80 → 0.0.82

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/wb3Api.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { v4 as M } from "uuid";
2
2
  import { DateTime as N } from "luxon";
3
- import { requirejs as O, widget as A } from "@widget-lab/3ddashboard-utils";
3
+ import { requirejs as O, widget as $ } from "@widget-lab/3ddashboard-utils";
4
4
  function I() {
5
5
  return M();
6
6
  }
@@ -34,7 +34,7 @@ const L = {
34
34
  b3Edit8: "#616161",
35
35
  b3Edit9: "#795548"
36
36
  };
37
- async function ie(e, t = void 0, s = void 0) {
37
+ async function oe(e, t = void 0, s = void 0) {
38
38
  const n = parseInt(e);
39
39
  await fetch(
40
40
  "https://apicarto.ign.fr/api/codes-postaux/communes/" + n,
@@ -44,10 +44,10 @@ async function ie(e, t = void 0, s = void 0) {
44
44
  Accept: "application/json"
45
45
  }
46
46
  }
47
- ).then((o) => o.json()).then((o) => {
48
- t && t(o);
49
- }).catch((o) => {
50
- s && s(o), console.error("Erreur : " + o);
47
+ ).then((i) => i.json()).then((i) => {
48
+ t && t(i);
49
+ }).catch((i) => {
50
+ s && s(i), console.error("Erreur : " + i);
51
51
  });
52
52
  }
53
53
  async function re(e, t = void 0, s = void 0) {
@@ -67,9 +67,9 @@ 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, o = [], c = (a) => {
71
- for (let i in a)
72
- o.push({ date: i, comment: a[i] });
70
+ const n = e, i = [], c = (a) => {
71
+ for (let o in a)
72
+ i.push({ date: o, comment: a[o] });
73
73
  };
74
74
  for (let a = s; a <= s + 1; a++)
75
75
  await fetch(
@@ -80,20 +80,20 @@ async function ce(e, t = L) {
80
80
  Accept: "application/json"
81
81
  }
82
82
  }
83
- ).then((i) => i.json()).then((i) => {
84
- c(i);
85
- }).catch((i) => console.error("Erreur : " + i));
83
+ ).then((o) => o.json()).then((o) => {
84
+ c(o);
85
+ }).catch((o) => console.error("Erreur : " + o));
86
86
  return (() => {
87
87
  const a = n.length === 0 ? {
88
88
  events: []
89
89
  } : n;
90
- for (let i of o)
90
+ for (let o of i)
91
91
  a.events.findIndex(
92
- (l) => l.start === N.fromISO(i.date).toISODate() && l.name === "Férié : " + i.comment
92
+ (l) => l.start === N.fromISO(o.date).toISODate() && l.name === "Férié : " + o.comment
93
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(),
94
+ name: "Férié : " + o.comment,
95
+ start: N.fromISO(o.date).toISODate(),
96
+ end: N.fromISO(o.date).toISODate(),
97
97
  color: t.b3BusinnessDays,
98
98
  timed: !1
99
99
  });
@@ -101,8 +101,8 @@ async function ce(e, t = L) {
101
101
  })();
102
102
  }
103
103
  async function de(e, t, s = !0) {
104
- const n = e.events.findIndex((o) => o.uuid === t.uuid);
105
- return n === -1 ? e.events.push(t) : s ? e.events[n] = t : e.events.splice(n, 1), e.length > 0 && e.sort((o, c) => o.start - c.start), e;
104
+ const n = e.events.findIndex((i) => i.uuid === t.uuid);
105
+ return n === -1 ? e.events.push(t) : s ? e.events[n] = t : e.events.splice(n, 1), e.length > 0 && e.sort((i, c) => i.start - c.start), e;
106
106
  }
107
107
  function m(e, t) {
108
108
  O(["DS/WAFData/WAFData"], (s) => {
@@ -118,7 +118,7 @@ function pe(e, t = void 0) {
118
118
  O(["DS/TagNavigatorProxy/TagNavigatorProxy"], (s) => {
119
119
  let n;
120
120
  n === void 0 && (n = s.createProxy({
121
- widgetId: A.id,
121
+ widgetId: $.id,
122
122
  filteringMode: "WithFilteringServices"
123
123
  }), t !== void 0 && n.addEvent("onFilterSubjectsChange", t)), n.setSubjectsTags(e);
124
124
  });
@@ -132,7 +132,7 @@ async function fe(e, t = void 0, s = void 0) {
132
132
  await O(
133
133
  ["DS/i3DXCompassServices/i3DXCompassServices"],
134
134
  (n) => {
135
- (!e || e === "") && (e = A.getValue("PlatFormInstanceId")), (!e || e === "") && (e = void 0), t && t(
135
+ (!e || e === "") && (e = $.getValue("PlatFormInstanceId")), (!e || e === "") && (e = void 0), t && t(
136
136
  n.getPlatformServices({
137
137
  platformId: e,
138
138
  onComplete: t,
@@ -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(), o = t.getAllApplicationConfigurations(), c = t.getApplicationConfiguration(
148
+ const s = t.getTenant(), n = t.getUser(), i = 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: o,
154
+ appsConfiguration: i,
155
155
  appConf: c
156
156
  };
157
157
  }), console.log("%cRETOUR API :", "color:blue", e), e;
@@ -162,19 +162,19 @@ function ge(e, t, s) {
162
162
  uri: "/resources/AppsMngt/api/custom/applications",
163
163
  option: `?filter=${e.tenant}`
164
164
  // facultatif
165
- }, o = `${n.base}${n.uri}${n.option}`;
166
- m(o, {
165
+ }, i = `${n.base}${n.uri}${n.option}`;
166
+ m(i, {
167
167
  method: "GET",
168
168
  headers: {
169
169
  "Content-Type": "application/json",
170
170
  Accept: "application/json"
171
171
  },
172
172
  onComplete(c, r, a) {
173
- const i = JSON.parse(c), d = i.data.map((l) => {
173
+ const o = JSON.parse(c), d = o.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, i);
177
+ t && t(d, o);
178
178
  },
179
179
  onFailure(c, r) {
180
180
  const a = c;
@@ -185,22 +185,22 @@ function ge(e, t, s) {
185
185
  function he(e, t = void 0, s = void 0) {
186
186
  let n = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&limit=-1`;
187
187
  m(n, {
188
- onComplete(o, c, r) {
189
- const a = JSON.parse(o);
188
+ onComplete(i, c, r) {
189
+ const a = JSON.parse(i);
190
190
  console.log("_AppMngt_get_users => ", a), t && t(a);
191
191
  },
192
- onFailure(o, c) {
193
- const r = o;
192
+ onFailure(i, c) {
193
+ const r = i;
194
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 o = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&id=${t}`;
200
- m(o, {
199
+ let i = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&id=${t}`;
200
+ m(i, {
201
201
  onComplete(c, r, a) {
202
- const i = JSON.parse(c);
203
- s && s(i);
202
+ const o = JSON.parse(c);
203
+ s && s(o);
204
204
  },
205
205
  onFailure(c, r) {
206
206
  const a = c;
@@ -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: o, currentUser: c } = e, a = `${o}${{
216
+ const { space: i, currentUser: c } = e, a = `${i}${{
217
217
  URIUGr: "/3drdfpersist/resources/v1/usersgroup"
218
- }.URIUGr}`, i = {
218
+ }.URIUGr}`, o = {
219
219
  groups: [
220
220
  {
221
221
  title: t.title,
@@ -230,7 +230,7 @@ function _e(e, t, s = void 0, n = void 0) {
230
230
  m(a, {
231
231
  method: "POST",
232
232
  headers: F,
233
- data: JSON.stringify(i),
233
+ data: JSON.stringify(o),
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: o, tenant: c } = e, r = o, a = `/3drdfpersist/v1/resources/${t}`, i = `?$mask=dsaccess:Mask.GroupUI.Properties&tenant=dstenant:${c}`, d = `${r}${a}${i}`;
245
+ const { space: i, tenant: c } = e, r = i, a = `/3drdfpersist/v1/resources/${t}`, o = `?$mask=dsaccess:Mask.GroupUI.Properties&tenant=dstenant:${c}`, d = `${r}${a}${o}`;
246
246
  m(d, {
247
247
  opts: {
248
248
  method: "GET",
@@ -260,13 +260,13 @@ function ye(e, t, s = void 0, n = void 0) {
260
260
  }
261
261
  });
262
262
  }
263
- function E(e, t = void 0, s = void 0) {
264
- const { space: n, tenant: o } = e, c = n, r = "/3drdfpersist/resources/v1/option-sets/dsusergroup:ListOfGroupResponsibilities/options", a = `?tenant=dstenant:${o}`, i = {
263
+ function J(e, t = void 0, s = void 0) {
264
+ const { space: n, tenant: i } = e, c = n, r = "/3drdfpersist/resources/v1/option-sets/dsusergroup:ListOfGroupResponsibilities/options", a = `?tenant=dstenant:${i}`, o = {
265
265
  method: "GET",
266
266
  Accept: "application/json,*/*,test/javascript"
267
267
  }, d = `${c}${r}${a}`;
268
268
  m(d, {
269
- OPTsH: i,
269
+ OPTsH: o,
270
270
  onComplete(l) {
271
271
  t && t(JSON.parse(l));
272
272
  },
@@ -277,7 +277,7 @@ 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: 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: {
280
+ const { space: n, currentUser: i } = e, a = `${n}/3drdfpersist/resources/v1/usersgroup?select=uri,title,description,owner,members,pending_members,creation_date,modification_date,visibility`, d = { method: "GET", headers: {
281
281
  "Content-Type": "application/json",
282
282
  Accept: "application/json,text/javascript,*/*"
283
283
  } };
@@ -286,9 +286,9 @@ function we(e, t = void 0, s = void 0) {
286
286
  opts: d,
287
287
  onComplete(l) {
288
288
  const p = JSON.parse(l), u = {}, f = p.groups.filter((g) => g.uri.startsWith("uuid:"));
289
- if (o && Object.keys(o).length > 0) {
290
- const g = f.filter((_) => _.owner === o.email), h = f.filter((_) => _.members.includes(o.email)), S = g.concat(h);
291
- u.iam = S, u.UG = f, u.iamMember = h, E(
289
+ if (i && Object.keys(i).length > 0) {
290
+ const g = f.filter((_) => _.owner === i.email), h = f.filter((_) => _.members.includes(i.email)), S = g.concat(h);
291
+ u.iam = S, u.UG = f, u.iamMember = h, J(
292
292
  e,
293
293
  (_) => {
294
294
  u.rules = _, t && t(u);
@@ -308,12 +308,12 @@ function we(e, t = void 0, s = void 0) {
308
308
  }
309
309
  }
310
310
  function Te(e, t) {
311
- const { space: s } = e, o = `${s}/3drdfpersist/resources/v1/usersgroup/${t}`;
312
- m(o, {
311
+ const { space: s } = e, i = `${s}/3drdfpersist/resources/v1/usersgroup/${t}`;
312
+ m(i, {
313
313
  method: "DELETE"
314
314
  });
315
315
  }
316
- function Ce(e, t, s, n = void 0, o = void 0) {
316
+ function Ce(e, t, s, n = void 0, i = void 0) {
317
317
  const { space: c, tenant: r } = e, a = {
318
318
  URITI: "/3drdfpersist/resources/v1/template-instances",
319
319
  URIUGr: "/3drdfpersist/resources/v1/usersgroup",
@@ -322,7 +322,7 @@ function Ce(e, t, s, n = void 0, o = void 0) {
322
322
  nexURImem: "/members",
323
323
  OPTsTI: "?$mask=dsaccess:Mask.GroupUI.Properties",
324
324
  OPTsTenant: `tenant=dstenant:${r}`
325
- }, i = s, d = `${c}${a.URIUGr}/${t}`, l = JSON.stringify(i);
325
+ }, o = s, d = `${c}${a.URIUGr}/${t}`, l = JSON.stringify(o);
326
326
  m(d, {
327
327
  headers: F,
328
328
  method: "PATCH",
@@ -332,11 +332,11 @@ function Ce(e, t, s, n = void 0, o = void 0) {
332
332
  n && n(p);
333
333
  },
334
334
  onFailure(p) {
335
- o && o(p);
335
+ i && i(p);
336
336
  }
337
337
  });
338
338
  }
339
- function Oe(e, t, s, n = void 0, o = void 0) {
339
+ function Oe(e, t, s, n = void 0, i = void 0) {
340
340
  const { space: c } = e, a = `${c}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
341
341
  m(a, {
342
342
  method: "PATCH",
@@ -347,12 +347,12 @@ function Oe(e, t, s, n = void 0, o = void 0) {
347
347
  n && n(d);
348
348
  },
349
349
  onFailure(d) {
350
- o && o(d);
350
+ i && i(d);
351
351
  }
352
352
  });
353
353
  }
354
354
  function be(e, t, s = void 0, n = void 0) {
355
- const { space: o } = e, r = `${o}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
355
+ const { space: i } = e, r = `${i}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
356
356
  m(r, {
357
357
  opts: {
358
358
  method: "GET",
@@ -369,28 +369,28 @@ function be(e, t, s = void 0, n = void 0) {
369
369
  }
370
370
  });
371
371
  }
372
- async function J(e, t, s) {
372
+ async function E(e, t, s) {
373
373
  if (e.space) {
374
374
  const n = `${e.space}/resources/v1/application/CSRF`;
375
375
  m(n, {
376
- onComplete(o) {
377
- o = JSON.parse(o), t && t(o.csrf);
376
+ onComplete(i) {
377
+ i = JSON.parse(i), t && t(i.csrf);
378
378
  },
379
- onFailure(o, c, r) {
380
- s && s({ error: o, headers: c, xhr: r });
379
+ onFailure(i, c, r) {
380
+ s && s({ error: i, 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 o = e.space;
386
+ const i = 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 = o + `/resources/v1/modeler/documents/${t}`;
391
+ const c = i + `/resources/v1/modeler/documents/${t}`;
392
392
  m(c, {
393
- onComplete(r, a, i) {
393
+ onComplete(r, a, o) {
394
394
  const d = JSON.parse(r);
395
395
  s && s(d);
396
396
  },
@@ -403,12 +403,12 @@ function k(e, t = void 0, s = void 0) {
403
403
  if (e.objID && e.objID !== "") {
404
404
  let n = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
405
405
  m(n, {
406
- onComplete(o, c, r) {
407
- const a = JSON.parse(o);
406
+ onComplete(i, c, r) {
407
+ const a = JSON.parse(i);
408
408
  e.token = a?.csrf?.value, e.datas = a?.data[0], t && t(e);
409
409
  },
410
- onFailure(o) {
411
- s && s(o);
410
+ onFailure(i) {
411
+ s && s(i);
412
412
  }
413
413
  });
414
414
  } else
@@ -426,13 +426,13 @@ 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
  m(n, {
429
- onComplete(o, c, r) {
430
- const a = JSON.parse(o);
429
+ onComplete(i, c, r) {
430
+ const a = JSON.parse(i);
431
431
  t && t(a.csrf.value);
432
432
  },
433
- onFailure(o, c, r) {
433
+ onFailure(i, c, r) {
434
434
  s && s({
435
- response: o,
435
+ response: i,
436
436
  headers: c,
437
437
  xhr: r
438
438
  });
@@ -445,7 +445,7 @@ function U(e, t = void 0, s = void 0) {
445
445
  let n = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
446
446
  k(
447
447
  e,
448
- (o) => {
448
+ (i) => {
449
449
  m(n, {
450
450
  method: "PUT",
451
451
  headers: {
@@ -460,12 +460,12 @@ function U(e, t = void 0, s = void 0) {
460
460
  }
461
461
  });
462
462
  },
463
- (o) => {
464
- console.warn("_3DSpace_get_ticket / error => ", o), s && s(o);
463
+ (i) => {
464
+ console.warn("_3DSpace_get_ticket / error => ", i), s && s(i);
465
465
  }
466
466
  );
467
467
  }
468
- function Ne(e, t, s, n = void 0, o = void 0) {
468
+ function Ne(e, t, s, n = void 0, i = void 0) {
469
469
  const c = `${e.space}/resources/v1/modeler/documents/${t}/files/DownloadTicket`;
470
470
  s || (s = e.token), m(c, {
471
471
  method: "PUT",
@@ -476,18 +476,18 @@ function Ne(e, t, s, n = void 0, o = void 0) {
476
476
  let a = JSON.parse(r);
477
477
  if (console.log("☠️ info => ", a), a.success === !0)
478
478
  try {
479
- const i = a.data[0].dataelements.ticketURL;
480
- n && n(i);
481
- } catch (i) {
482
- o && o(i);
479
+ const o = a.data[0].dataelements.ticketURL;
480
+ n && n(o);
481
+ } catch (o) {
482
+ i && i(o);
483
483
  }
484
484
  },
485
485
  onFailure(r) {
486
- o && o(r);
486
+ i && i(r);
487
487
  }
488
488
  });
489
489
  }
490
- function K(e, t, s, n, o, c = void 0, r = void 0) {
490
+ function K(e, t, s, n, i, c = void 0, r = void 0) {
491
491
  k(
492
492
  e,
493
493
  t,
@@ -497,7 +497,7 @@ function K(e, t, s, n, o, c = void 0, r = void 0) {
497
497
  t,
498
498
  s,
499
499
  n,
500
- o,
500
+ i,
501
501
  a.csrf.value,
502
502
  c,
503
503
  r
@@ -505,16 +505,16 @@ function K(e, t, s, n, o, c = void 0, r = void 0) {
505
505
  }
506
506
  );
507
507
  }
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
- m(i, {
508
+ function W(e, t, s, n, i, c, r = void 0, a = void 0) {
509
+ const o = e.space + `/resources/v1/modeler/documents/${t}/files/CheckinTicket`;
510
+ m(o, {
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, f = new FormData();
517
- f.append("__fcs__jobTicket", u.ticket), f.append("file_0", n, o);
517
+ f.append("__fcs__jobTicket", u.ticket), f.append("file_0", n, i);
518
518
  const g = {};
519
519
  g.method = "POST", g.data = f, g.onComplete = function(h) {
520
520
  let S = "temp_" + Date.now(), _ = {
@@ -523,24 +523,20 @@ function W(e, t, s, n, o, c, r = void 0, a = void 0) {
523
523
  ENO_CSRF_TOKEN: c
524
524
  },
525
525
  data: JSON.stringify({
526
- data: [
527
- {
528
- id: t,
529
- relateddata: {
530
- files: [
531
- {
532
- id: s,
533
- dataelements: {
534
- title: o,
535
- receipt: h
536
- },
537
- updateAction: "REVISE"
538
- }
539
- ]
540
- },
541
- tempId: S
542
- }
543
- ]
526
+ data: [{
527
+ id: t,
528
+ relateddata: {
529
+ files: [{
530
+ id: s,
531
+ dataelements: {
532
+ title: i,
533
+ receipt: h
534
+ },
535
+ updateAction: "REVISE"
536
+ }]
537
+ },
538
+ tempId: S
539
+ }]
544
540
  }),
545
541
  type: "json",
546
542
  onComplete(y) {
@@ -560,12 +556,12 @@ function W(e, t, s, n, o, c, r = void 0, a = void 0) {
560
556
  }
561
557
  });
562
558
  }
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)], {
559
+ async function ke(e, t, s, n, i = void 0, c = void 0) {
560
+ const r = e.space, a = e.token, o = e.ctx, d = new FormData(), l = new Blob([JSON.stringify(t)], {
565
561
  type: "text/plain"
566
562
  }), p = {
567
563
  url_Ticket: `${r}/resources/v1/modeler/documents/files/CheckinTicket`,
568
- url_Post: `${r}/resources/v1/modeler/documents/?SecurityContext=ctx::${i}`
564
+ url_Post: `${r}/resources/v1/modeler/documents/?SecurityContext=ctx::${o}`
569
565
  };
570
566
  if (!r && r !== "") {
571
567
  console.log("le store._3DSpace est vide");
@@ -583,7 +579,7 @@ async function ke(e, t, s, n, o = void 0, c = void 0) {
583
579
  method: "POST",
584
580
  data: d,
585
581
  onComplete(T) {
586
- if (i !== "" && a !== "") {
582
+ if (o !== "" && a !== "") {
587
583
  const D = {
588
584
  method: "POST",
589
585
  headers: {
@@ -592,41 +588,37 @@ async function ke(e, t, s, n, o = void 0, c = void 0) {
592
588
  "Content-Type": "application/json"
593
589
  },
594
590
  data: JSON.stringify({
595
- data: [
596
- {
597
- type: "Document",
598
- dataelements: {
599
- title: `Title_${s.toLowerCase().split(" ").join("_")}`,
600
- policy: "Document Release",
601
- description: n
602
- },
603
- relateddata: {
604
- files: [
605
- {
606
- dataelements: {
607
- title: `${s}.json`,
608
- receipt: T
609
- }
610
- }
611
- ]
612
- },
613
- tempId: I()
614
- }
615
- ]
591
+ data: [{
592
+ type: "Document",
593
+ dataelements: {
594
+ title: `Title_${s.toLowerCase().split(" ").join("_")}`,
595
+ policy: "Document Release",
596
+ description: n
597
+ },
598
+ relateddata: {
599
+ files: [{
600
+ dataelements: {
601
+ title: `${s}.json`,
602
+ receipt: T
603
+ }
604
+ }]
605
+ },
606
+ tempId: I()
607
+ }]
616
608
  }),
617
609
  type: "json",
618
610
  timeout: 0,
619
611
  onComplete: _,
620
612
  onFailure: y
621
613
  };
622
- i !== "" && m(p.url_Post, D);
614
+ o !== "" && m(p.url_Post, D);
623
615
  } else
624
616
  console.warn("le store est vide");
625
617
  },
626
618
  onFailure: y
627
619
  };
628
620
  function _(T) {
629
- console.log("Success -- response ", T.data[0]), o && o(T);
621
+ console.log("Success -- response ", T.data[0]), i && i(T);
630
622
  }
631
623
  function y(T, D) {
632
624
  console.log("Erreur -- response ", T, `
@@ -636,12 +628,12 @@ async function ke(e, t, s, n, o = void 0, c = void 0) {
636
628
  }
637
629
  });
638
630
  }
639
- function b(e, t = void 0, s = void 0, n = void 0, o = void 0, c = void 0, r = !1) {
631
+ function b(e, t = void 0, s = void 0, n = void 0, i = void 0, c = void 0, r = !1) {
640
632
  const a = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
641
633
  m(a, {
642
634
  method: "GET",
643
- onComplete(i) {
644
- const d = JSON.parse(i);
635
+ onComplete(o) {
636
+ const d = JSON.parse(o);
645
637
  let l = "", p, u, f;
646
638
  if (t) {
647
639
  let g = d.collabspaces.find((h) => h.title === t);
@@ -675,11 +667,11 @@ function b(e, t = void 0, s = void 0, n = void 0, o = void 0, c = void 0, r = !1
675
667
  }));
676
668
  }
677
669
  }
678
- p && u && f ? (l = f + "." + u + "." + p, o(l)) : d.preferredcredentials && r ? (l = d.preferredcredentials.role.name + "." + d.preferredcredentials.organization.title + "." + d.preferredcredentials.collabspace.title, o(l)) : c && (l = f + "." + u + "." + p, c(l));
670
+ p && u && f ? (l = f + "." + u + "." + p, i(l)) : d.preferredcredentials && r ? (l = d.preferredcredentials.role.name + "." + d.preferredcredentials.organization.title + "." + d.preferredcredentials.collabspace.title, i(l)) : c && (l = f + "." + u + "." + p, c(l));
679
671
  },
680
- onFailure(i, d) {
672
+ onFailure(o, d) {
681
673
  console.log("Erreur de récupération du contexte de sécurité. => ", {
682
- err: i,
674
+ err: o,
683
675
  headers: d
684
676
  });
685
677
  }
@@ -690,7 +682,7 @@ async function R(e, t = void 0, s = void 0) {
690
682
  "_3DSpace_download_doc() / Le paramètre objectId est obligatoire"
691
683
  ), (e.space === "" || !e.space) && console.warn(
692
684
  "_3DSpace_download_doc() / Le paramètre space est obligatoire"
693
- ), (e.token === "" || !e.token) && (J(
685
+ ), (e.token === "" || !e.token) && (E(
694
686
  e,
695
687
  (n) => {
696
688
  e.token = n;
@@ -700,7 +692,7 @@ async function R(e, t = void 0, s = void 0) {
700
692
  }
701
693
  ), console.warn(
702
694
  "_3DSpace_download_doc() / Le paramètre token est obligatoire"
703
- )), new Promise((n, o) => {
695
+ )), new Promise((n, i) => {
704
696
  U(
705
697
  e,
706
698
  (c) => {
@@ -710,58 +702,61 @@ async function R(e, t = void 0, s = void 0) {
710
702
  Accept: "application/json"
711
703
  },
712
704
  onComplete(a) {
713
- let i;
705
+ let o;
714
706
  try {
715
- i = JSON.parse(a);
707
+ o = JSON.parse(a);
716
708
  } catch {
717
- i = a;
709
+ o = a;
718
710
  }
719
- t && t(i), n(i);
711
+ t && t(o), n(o);
720
712
  },
721
- onFailure(a, i, d) {
713
+ onFailure(a, o, d) {
722
714
  s && (console.log("error http", a), s({
723
715
  msg: JSON.parse(a),
724
- headers: i,
716
+ headers: o,
725
717
  xhr: d
726
- }), o({
718
+ }), i({
727
719
  msg: JSON.parse(a),
728
- headers: i,
720
+ headers: o,
729
721
  xhr: d
730
722
  }));
731
723
  }
732
724
  });
733
725
  },
734
726
  (c) => {
735
- s && s(c), console.log("*_3dspace_download_doc / error file URL *", c), o(c);
727
+ s && s(c), console.log("*_3dspace_download_doc / error file URL *", c), i(c);
736
728
  }
737
729
  );
738
730
  });
739
731
  }
740
732
  async function X(e, t, s = void 0, n = void 0) {
741
- let o = [];
742
- for (let a = 0; a < t.length; a += 80) {
743
- const i = t.slice(a, a + 80);
744
- o.push(i);
745
- }
746
- const r = (a) => {
747
- V(
748
- e,
749
- o[a],
750
- () => {
751
- a++, a < o.length && r(a);
752
- },
753
- (i) => {
754
- s && s(i);
755
- }
756
- );
757
- };
758
- r(0);
733
+ let i = [];
734
+ if (typeof t < "u" && Array.isArray(t) && t?.length > 0) {
735
+ for (let a = 0; a < t.length; a += 80) {
736
+ const o = t.slice(a, a + 80);
737
+ i.push(o);
738
+ }
739
+ const r = (a) => {
740
+ V(
741
+ e,
742
+ i[a],
743
+ () => {
744
+ a++, a < i.length && r(a);
745
+ },
746
+ (o) => {
747
+ s && s(o);
748
+ }
749
+ );
750
+ };
751
+ r(0);
752
+ } else
753
+ console.warn("La liste d'objects dans la fonction _3DSpace_download_multidoc est vide ou non défini."), n && n("La liste d'objects dans la fonction _3DSpace_download_multidoc est vide ou non défini.");
759
754
  }
760
- function V(e, t, s = void 0, n = void 0, o = void 0) {
755
+ function V(e, t, s = void 0, n = void 0, i = void 0) {
761
756
  const c = [];
762
- t.forEach((i) => {
757
+ t.forEach((o) => {
763
758
  c.push({
764
- id: i
759
+ id: o
765
760
  });
766
761
  });
767
762
  let r = JSON.stringify({
@@ -776,9 +771,9 @@ function V(e, t, s = void 0, n = void 0, o = void 0) {
776
771
  method: "PUT",
777
772
  data: r,
778
773
  type: "json",
779
- onComplete(i) {
780
- const d = i.data;
781
- i.success === !0 && (s && s(), d.forEach((l) => {
774
+ onComplete(o) {
775
+ const d = o.data;
776
+ o.success === !0 && (s && s(), d.forEach((l) => {
782
777
  try {
783
778
  const p = l.dataelements.fileName, u = l.dataelements.ticketURL;
784
779
  m(u, {
@@ -794,17 +789,17 @@ function V(e, t, s = void 0, n = void 0, o = void 0) {
794
789
  }
795
790
  });
796
791
  } catch (p) {
797
- console.log(p), o && o(p);
792
+ console.log(p), i && i(p);
798
793
  }
799
794
  }));
800
795
  },
801
- onFailure(i) {
802
- console.log(i), o && o(i);
796
+ onFailure(o) {
797
+ console.log(o), i && i(o);
803
798
  }
804
799
  });
805
800
  }
806
801
  function De(e, t, s = void 0, n = void 0) {
807
- return new Promise((o) => {
802
+ return new Promise((i) => {
808
803
  if (e.token === "" && C(e), t !== void 0 && t !== "" && t !== null) {
809
804
  const c = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
810
805
  b(
@@ -826,11 +821,9 @@ function De(e, t, s = void 0, n = void 0) {
826
821
  "Content-Type": "application/json"
827
822
  },
828
823
  data: JSON.stringify({
829
- data: [
830
- {
831
- id: t
832
- }
833
- ]
824
+ data: [{
825
+ id: t
826
+ }]
834
827
  }),
835
828
  type: "json",
836
829
  onComplete(a) {
@@ -844,7 +837,7 @@ function De(e, t, s = void 0, n = void 0) {
844
837
  }
845
838
  });
846
839
  }
847
- function Fe(e, t, s, n = void 0, o = void 0) {
840
+ function Fe(e, t, s, n = void 0, i = void 0) {
848
841
  return new Promise((c) => {
849
842
  if (e.token === "" && C(e), t !== void 0 && t !== "" && t !== null) {
850
843
  const r = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
@@ -853,9 +846,9 @@ function Fe(e, t, s, n = void 0, o = void 0) {
853
846
  "ESPACE COMMUN",
854
847
  ["VPLMProjectLeader", "VPLMCreator"],
855
848
  void 0,
856
- (i) => e.ctx = i,
857
- (i) => {
858
- console.log("onError =>", i);
849
+ (o) => e.ctx = o,
850
+ (o) => {
851
+ console.log("onError =>", o);
859
852
  }
860
853
  );
861
854
  let a = {
@@ -867,19 +860,17 @@ function Fe(e, t, s, n = void 0, o = void 0) {
867
860
  "Content-Type": "application/json"
868
861
  },
869
862
  data: JSON.stringify({
870
- data: [
871
- {
872
- id: t,
873
- nextState: s
874
- }
875
- ]
863
+ data: [{
864
+ id: t,
865
+ nextState: s
866
+ }]
876
867
  }),
877
868
  type: "json",
878
- onComplete(i) {
879
- n && n(i);
869
+ onComplete(o) {
870
+ n && n(o);
880
871
  },
881
- onFailure(i) {
882
- o && o(i);
872
+ onFailure(o) {
873
+ i && i(o);
883
874
  }
884
875
  };
885
876
  m(r, a);
@@ -887,7 +878,7 @@ function Fe(e, t, s, n = void 0, o = void 0) {
887
878
  });
888
879
  }
889
880
  function Ue(e, t, s = void 0, n = void 0) {
890
- return new Promise((o) => {
881
+ return new Promise((i) => {
891
882
  if (e.token === "" && C(e), t !== void 0 && t !== "" && t !== null) {
892
883
  const c = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
893
884
  b(
@@ -909,11 +900,9 @@ function Ue(e, t, s = void 0, n = void 0) {
909
900
  "Content-Type": "application/json"
910
901
  },
911
902
  data: JSON.stringify({
912
- graphRequests: [
913
- {
914
- id: t
915
- }
916
- ]
903
+ graphRequests: [{
904
+ id: t
905
+ }]
917
906
  }),
918
907
  type: "json",
919
908
  onComplete(a) {
@@ -928,7 +917,7 @@ function Ue(e, t, s = void 0, n = void 0) {
928
917
  });
929
918
  }
930
919
  function je(e, t, s = void 0, n = void 0) {
931
- return new Promise((o) => {
920
+ return new Promise((i) => {
932
921
  if (e.token === "" && C(e), t !== void 0 && t !== "" && t !== null) {
933
922
  const c = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
934
923
  b(
@@ -950,17 +939,15 @@ function je(e, t, s = void 0, n = void 0) {
950
939
  "Content-Type": "application/json"
951
940
  },
952
941
  data: JSON.stringify({
953
- data: [
954
- {
955
- "attribute[PLMReference.V_versionComment]": null,
956
- physicalid: t,
957
- type: "Document",
958
- tenant: e.tenant,
959
- objectId: t,
960
- policy: "Document Release",
961
- availableSemantic: ["E", "LAST", "NEW", "DUP"]
962
- }
963
- ]
942
+ data: [{
943
+ "attribute[PLMReference.V_versionComment]": null,
944
+ physicalid: t,
945
+ type: "Document",
946
+ tenant: e.tenant,
947
+ objectId: t,
948
+ policy: "Document Release",
949
+ availableSemantic: ["E", "LAST", "NEW", "DUP"]
950
+ }]
964
951
  }),
965
952
  type: "json",
966
953
  onComplete(a) {
@@ -974,7 +961,7 @@ function je(e, t, s = void 0, n = void 0) {
974
961
  }
975
962
  });
976
963
  }
977
- function $e(e, t, s, n = void 0, o = void 0) {
964
+ function Ae(e, t, s, n = void 0, i = void 0) {
978
965
  return new Promise((c) => {
979
966
  if (e.token === "" && C(e), t !== void 0 && t !== "" && t !== null) {
980
967
  const r = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
@@ -983,9 +970,9 @@ function $e(e, t, s, n = void 0, o = void 0) {
983
970
  "ESPACE COMMUN",
984
971
  ["VPLMProjectLeader", "VPLMCreator"],
985
972
  void 0,
986
- (i) => e.ctx = i,
987
- (i) => {
988
- console.log("onError =>", i);
973
+ (o) => e.ctx = o,
974
+ (o) => {
975
+ console.log("onError =>", o);
989
976
  }
990
977
  );
991
978
  let a = {
@@ -997,24 +984,22 @@ function $e(e, t, s, n = void 0, o = void 0) {
997
984
  "Content-Type": "application/json"
998
985
  },
999
986
  data: JSON.stringify({
1000
- data: [
1001
- {
1002
- physicalid: t,
1003
- proposedRevision: s,
1004
- modifiedAttributes: {
1005
- revision: s
1006
- }
987
+ data: [{
988
+ physicalid: t,
989
+ proposedRevision: s,
990
+ modifiedAttributes: {
991
+ revision: s
1007
992
  }
1008
- ],
993
+ }],
1009
994
  folderid: null,
1010
995
  notificationTimeout: 600
1011
996
  }),
1012
997
  type: "json",
1013
- onComplete(i) {
1014
- n && n(i);
998
+ onComplete(o) {
999
+ n && n(o);
1015
1000
  },
1016
- onFailure(i) {
1017
- o && o(i);
1001
+ onFailure(o) {
1002
+ i && i(o);
1018
1003
  }
1019
1004
  };
1020
1005
  m(r, a);
@@ -1022,13 +1007,13 @@ function $e(e, t, s, n = void 0, o = void 0) {
1022
1007
  });
1023
1008
  }
1024
1009
  //!SECTION
1025
- function Ae(e, t = void 0, s = void 0) {
1010
+ function $e(e, t = void 0, s = void 0) {
1026
1011
  const n = {
1027
1012
  base: `${e.space}`,
1028
1013
  uri: "/resources/bps/cspaces",
1029
1014
  optTenant: `tenant=${e.tenant}`
1030
- }, o = `${n.base}${n.uri}?${n.optTenant}`;
1031
- m(o, {
1015
+ }, i = `${n.base}${n.uri}?${n.optTenant}`;
1016
+ m(i, {
1032
1017
  method: "GET",
1033
1018
  headers: {
1034
1019
  Accept: "application/json,text/javascript,*/*",
@@ -1047,8 +1032,8 @@ function Ie(e, t, s, n) {
1047
1032
  U(
1048
1033
  e.space,
1049
1034
  t,
1050
- (o) => {
1051
- m(o, {
1035
+ (i) => {
1036
+ m(i, {
1052
1037
  header: { ENO_CSRF_TOKEN: e.token },
1053
1038
  onComplete: (c) => {
1054
1039
  s && s(c);
@@ -1061,35 +1046,35 @@ function Ie(e, t, s, n) {
1061
1046
  );
1062
1047
  }
1063
1048
  async function Re(e, t, s = void 0, n = void 0) {
1064
- return new Promise((o) => {
1049
+ return new Promise((i) => {
1065
1050
  U(e, t, (c) => {
1066
1051
  m(c, {
1067
- onComplete: (r, a, i) => (o(JSON.parse(r)), s && s(JSON.parse(r), a, i), o),
1068
- onFailure: (r, a, i) => {
1069
- n && n(r, a, i), console.log(r, a?.errormsg);
1052
+ onComplete: (r, a, o) => (i(JSON.parse(r)), s && s(JSON.parse(r), a, o), i),
1053
+ onFailure: (r, a, o) => {
1054
+ n && n(r, a, o), console.log(r, a?.errormsg);
1070
1055
  }
1071
1056
  });
1072
1057
  });
1073
1058
  });
1074
1059
  }
1075
- function ve(e, t, s, n = void 0, o = void 0) {
1060
+ function ve(e, t, s, n = void 0, i = void 0) {
1076
1061
  const c = new Blob([JSON.stringify(t)], { type: "text/plain" });
1077
1062
  k(
1078
1063
  e,
1079
1064
  s,
1080
1065
  (r) => {
1081
- 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
+ const a = r.data[0].relateddata.files[0].id, o = r.data[0].dataelements.secondaryTitle !== "" ? r.data[0].dataelements.secondaryTitle : r.data[0].dataelements.title;
1082
1067
  K(
1083
1068
  e,
1084
1069
  s,
1085
1070
  a,
1086
1071
  c,
1087
- i,
1072
+ o,
1088
1073
  (d) => {
1089
1074
  n && n(d);
1090
1075
  },
1091
1076
  (d) => {
1092
- o && o(d);
1077
+ i && i(d);
1093
1078
  }
1094
1079
  );
1095
1080
  }
@@ -1120,8 +1105,8 @@ async function xe(e, t = void 0, s = void 0) {
1120
1105
  console.log("getDatasByTenant (getDocuments)", e), await R(
1121
1106
  e,
1122
1107
  (n) => {
1123
- const o = {};
1124
- o.obj = n, console.log("getDatasByTenant (getDocuments) _datas", o), t && t?.(o);
1108
+ const i = {};
1109
+ i.obj = n, console.log("getDatasByTenant (getDocuments) _datas", i), t && t?.(i);
1125
1110
  },
1126
1111
  (n) => {
1127
1112
  s && s?.(n);
@@ -1134,12 +1119,12 @@ function Me(e, t = void 0, s = void 0) {
1134
1119
  console.warn("la liste est vide ou n'est pas un tableau");
1135
1120
  return;
1136
1121
  }
1137
- e.objIds.forEach((o, c) => {
1122
+ e.objIds.forEach((i, c) => {
1138
1123
  R(
1139
1124
  e,
1140
- o.objID,
1125
+ i.objID,
1141
1126
  (r) => {
1142
- 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), delete e.objIds, delete e.datas);
1127
+ n.push({ [i.name]: r }), i.name === "dbProjets" && (v = r.affaires.map((a) => a.objectID), B(e, P)), c === e.objIds.length - 1 && (t && t(n), delete e.objIds, delete e.datas);
1143
1128
  }
1144
1129
  );
1145
1130
  });
@@ -1148,12 +1133,12 @@ function B(e, t, s = void 0, n = void 0) {
1148
1133
  X(
1149
1134
  e,
1150
1135
  v,
1151
- (o) => {
1136
+ (i) => {
1152
1137
  const c = [...t];
1153
- c.find((r) => r.objectID === o.objectId).data = o.data, P = c, j.push(o.data), s && s(j);
1138
+ c.find((r) => r.objectID === i.objectId).data = i.data, P = c, j.push(i.data), s && s(j);
1154
1139
  },
1155
- (o) => {
1156
- n && (n(o), console.log(o));
1140
+ (i) => {
1141
+ n && (n(i), console.log(i));
1157
1142
  }
1158
1143
  );
1159
1144
  }
@@ -1178,11 +1163,11 @@ const Y = "FA35FB9B177A280065800EA0000F599C", H = [
1178
1163
  tag: "testTag"
1179
1164
  };
1180
1165
  function Le(e, t, s = void 0, n = void 0) {
1181
- const { space: o, tenant: c } = e, { objId: r, pred: a, tag: i } = t, d = {
1166
+ const { space: i, tenant: c } = e, { objId: r, pred: a, tag: o } = t, d = {
1182
1167
  uri: "/resources/6w/tags",
1183
1168
  otpCTX: "SecurityContext=preferred",
1184
1169
  optTenant: `tenant=${c}`
1185
- }, l = `${o}${d.uri}?${d.otpCTX}&${d.optTenant}`, p = {
1170
+ }, l = `${i}${d.uri}?${d.otpCTX}&${d.optTenant}`, p = {
1186
1171
  tag: [
1187
1172
  {
1188
1173
  subject: [
@@ -1192,7 +1177,7 @@ function Le(e, t, s = void 0, n = void 0) {
1192
1177
  ],
1193
1178
  predicate: x[a],
1194
1179
  object: {
1195
- literal: i
1180
+ literal: o
1196
1181
  }
1197
1182
  }
1198
1183
  ]
@@ -1239,17 +1224,17 @@ function Le(e, t, s = void 0, n = void 0) {
1239
1224
  }
1240
1225
  function q(e, t, s = void 0, n = void 0) {
1241
1226
  console.log("obj ", t);
1242
- const o = t.info.name, c = {
1227
+ const i = t.info.name, c = {
1243
1228
  baseUrl: `https://${e.tenant.toLowerCase()}-eu1-fedsearch.3dexperience.3ds.com`,
1244
1229
  uri: "/federated/search"
1245
1230
  }, r = `${c.baseUrl}${c.uri}`, a = {
1246
1231
  "Content-Type": "application/json",
1247
1232
  Accept: "application/json,text/javascript,*/*"
1248
- }, i = I(), d = {
1233
+ }, o = I(), d = {
1249
1234
  with_indexing_date: !0,
1250
1235
  with_synthesis: !0,
1251
1236
  with_nls: !1,
1252
- label: `3DSearch-${e.currentUser.username}-AjoutDeTagBeam-${i}`,
1237
+ label: `3DSearch-${e.currentUser.username}-AjoutDeTagBeam-${o}`,
1253
1238
  locale: "fr",
1254
1239
  select_predicate: [
1255
1240
  "ds6w:label",
@@ -1277,7 +1262,7 @@ function q(e, t, s = void 0, n = void 0) {
1277
1262
  ],
1278
1263
  with_synthesis_hierarchical: !0,
1279
1264
  select_file: ["icon", "thumbnail_2d"],
1280
- query: o,
1265
+ query: i,
1281
1266
  specific_source_parameter: {
1282
1267
  "3dspace": {
1283
1268
  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)'
@@ -1320,17 +1305,17 @@ function q(e, t, s = void 0, n = void 0) {
1320
1305
  }
1321
1306
  });
1322
1307
  }
1323
- function Ee(e, t, s = void 0, n = void 0) {
1324
- const { objId: o, pred: c, tag: r } = t, a = {
1308
+ function Je(e, t, s = void 0, n = void 0) {
1309
+ const { objId: i, pred: c, tag: r } = t, a = {
1325
1310
  uri: "/resources/6w/tags",
1326
1311
  otpCTX: "SecurityContext=preferred",
1327
1312
  optTenant: `tenant=${e.tenant}`
1328
- }, i = `${e.space}${a.uri}?${a.otpCTX}&${a.optTenant}`, d = {
1313
+ }, o = `${e.space}${a.uri}?${a.otpCTX}&${a.optTenant}`, d = {
1329
1314
  tag: [
1330
1315
  {
1331
1316
  subject: [
1332
1317
  {
1333
- uri: `pid://${o}`
1318
+ uri: `pid://${i}`
1334
1319
  }
1335
1320
  ],
1336
1321
  predicate: x[c],
@@ -1340,7 +1325,7 @@ function Ee(e, t, s = void 0, n = void 0) {
1340
1325
  }
1341
1326
  ]
1342
1327
  };
1343
- m(i, {
1328
+ m(o, {
1344
1329
  method: "DELETE",
1345
1330
  data: JSON.stringify(d),
1346
1331
  headers: {
@@ -1356,8 +1341,8 @@ function Ee(e, t, s = void 0, n = void 0) {
1356
1341
  }
1357
1342
  });
1358
1343
  }
1359
- function Je(e, t = "", s = void 0, n = void 0) {
1360
- const { space: o } = e;
1344
+ function Ee(e, t = "", s = void 0, n = void 0) {
1345
+ const { space: i } = e;
1361
1346
  if (t === "")
1362
1347
  return;
1363
1348
  const c = {
@@ -1365,11 +1350,11 @@ function Je(e, t = "", s = void 0, n = void 0) {
1365
1350
  }, r = {
1366
1351
  "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
1367
1352
  Accept: "application/json,text/javascript,*/*"
1368
- }, a = `${o}${c.uri}`, i = `$include=none,lockerInfo,ownerInfo,originatorInfo,files,ownerInfo,originatorInfo&$fields=none,title,name,typeNLS,collabSpaceTitle,revision,isLatestRevision,files,lockStatus,lockerInfo.name,lockerInfo.firstname,lockerInfo.lastname,owner,ownerInfo.name,ownerInfo.firstname,ownerInfo.lastname,stateNLS,modified,policy,state,organizationTitle,originator,originatorInfo.name,originatorInfo.firstname,originatorInfo.lastname,hasModifyAccess,fileExtension,files.name,files.title,files.revision,files.locker,ownerInfo,ownerInfo.name,ownerInfo.firstname,ownerInfo.lastname,originatorInfo,originatorInfo.name,originatorInfo.firstname,originatorInfo.lastname&$ids=${t}`;
1353
+ }, a = `${i}${c.uri}`, o = `$include=none,lockerInfo,ownerInfo,originatorInfo,files,ownerInfo,originatorInfo&$fields=none,title,name,typeNLS,collabSpaceTitle,revision,isLatestRevision,files,lockStatus,lockerInfo.name,lockerInfo.firstname,lockerInfo.lastname,owner,ownerInfo.name,ownerInfo.firstname,ownerInfo.lastname,stateNLS,modified,policy,state,organizationTitle,originator,originatorInfo.name,originatorInfo.firstname,originatorInfo.lastname,hasModifyAccess,fileExtension,files.name,files.title,files.revision,files.locker,ownerInfo,ownerInfo.name,ownerInfo.firstname,ownerInfo.lastname,originatorInfo,originatorInfo.name,originatorInfo.firstname,originatorInfo.lastname&$ids=${t}`;
1369
1354
  m(a, {
1370
1355
  method: "POST",
1371
1356
  headers: r,
1372
- data: i,
1357
+ data: o,
1373
1358
  onComplete(d) {
1374
1359
  s && s(JSON.parse(d));
1375
1360
  },
@@ -1382,18 +1367,18 @@ function Je(e, t = "", s = void 0, n = void 0) {
1382
1367
  async function w(e, t = void 0, s = void 0) {
1383
1368
  const n = e.space + "/api/index/tk";
1384
1369
  return m(n, {
1385
- onComplete(o, c, r) {
1386
- const a = JSON.parse(o);
1370
+ onComplete(i, c, r) {
1371
+ const a = JSON.parse(i);
1387
1372
  if (t)
1388
1373
  return t(a), e.token = a?.result?.ServerToken;
1389
1374
  },
1390
- onFailure(o) {
1391
- s && s(o);
1375
+ onFailure(i) {
1376
+ s && s(i);
1392
1377
  }
1393
1378
  });
1394
1379
  }
1395
1380
  function Ge(e, t = void 0, s = void 0) {
1396
- const n = `${e.space}/api/exalead/whatsnew`, o = {
1381
+ const n = `${e.space}/api/exalead/whatsnew`, i = {
1397
1382
  params: {
1398
1383
  community_id: null,
1399
1384
  hash_key: null,
@@ -1411,7 +1396,7 @@ function Ge(e, t = void 0, s = void 0) {
1411
1396
  "Content-type": "application/json;charset=UTF-8",
1412
1397
  Accept: "application/json"
1413
1398
  },
1414
- data: JSON.stringify(o),
1399
+ data: JSON.stringify(i),
1415
1400
  type: "json",
1416
1401
  onComplete(r, a) {
1417
1402
  t && t(r, a);
@@ -1423,7 +1408,7 @@ function Ge(e, t = void 0, s = void 0) {
1423
1408
  });
1424
1409
  }
1425
1410
  function Ke(e, t = void 0, s = void 0) {
1426
- const n = `${e.space}/api/Recommendation/getpeoplefamiliartocurrentuser`, o = {
1411
+ const n = `${e.space}/api/Recommendation/getpeoplefamiliartocurrentuser`, i = {
1427
1412
  params: {
1428
1413
  idsToFilterArr: [],
1429
1414
  mode: "offline",
@@ -1440,11 +1425,11 @@ function Ke(e, t = void 0, s = void 0) {
1440
1425
  "Content-type": "application/json;charset=UTF-8",
1441
1426
  Accept: "application/json"
1442
1427
  },
1443
- data: JSON.stringify(o),
1428
+ data: JSON.stringify(i),
1444
1429
  type: "json",
1445
1430
  onComplete(r, a) {
1446
- const i = r.result.hits.map((d) => ({ login: d.login, fullName: d.name }));
1447
- t && t(i, r);
1431
+ const o = r.result.hits.map((d) => ({ login: d.login, fullName: d.name }));
1432
+ t && t(o, r);
1448
1433
  },
1449
1434
  onFailure(r, a) {
1450
1435
  s && s(r, a);
@@ -1458,14 +1443,14 @@ function We(e, t = void 0, s = void 0) {
1458
1443
  uri: "/api/community/listmycommunities",
1459
1444
  limit: `/limit/${e.limit ? e.limit : 128}`,
1460
1445
  page: `/page/${e.page ? e.page : "1"}`
1461
- }, o = `${n.base}${n.uri}${n.limit}${n.page}`, c = [];
1446
+ }, i = `${n.base}${n.uri}${n.limit}${n.page}`, c = [];
1462
1447
  w(e, (r) => {
1463
- m(o, {
1448
+ m(i, {
1464
1449
  method: "GET",
1465
1450
  headers: {
1466
1451
  "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
1467
1452
  },
1468
- onComplete(a, i, d) {
1453
+ onComplete(a, o, d) {
1469
1454
  const p = JSON.parse(a).result;
1470
1455
  let u = 0;
1471
1456
  p.forEach((f) => {
@@ -1487,15 +1472,15 @@ function We(e, t = void 0, s = void 0) {
1487
1472
  );
1488
1473
  });
1489
1474
  },
1490
- onFailure(a, i) {
1475
+ onFailure(a, o) {
1491
1476
  const d = a;
1492
- d.status = i.status, d.response = i.errormsg, s && s(d);
1477
+ d.status = o.status, d.response = o.errormsg, s && s(d);
1493
1478
  }
1494
1479
  });
1495
1480
  });
1496
1481
  }
1497
1482
  function Q(e, t, s, n) {
1498
- const o = `${e.space}/api/community/listmembers`, c = {
1483
+ const i = `${e.space}/api/community/listmembers`, c = {
1499
1484
  params: {
1500
1485
  page: e.page ? e.page : 1,
1501
1486
  limit: e.limit ? e.limit : 50,
@@ -1503,7 +1488,7 @@ function Q(e, t, s, n) {
1503
1488
  }
1504
1489
  };
1505
1490
  w(e, (r) => {
1506
- m(o, {
1491
+ m(i, {
1507
1492
  method: "POST",
1508
1493
  headers: {
1509
1494
  "Content-type": "application/json;charset=UTF-8",
@@ -1512,12 +1497,12 @@ function Q(e, t, s, n) {
1512
1497
  },
1513
1498
  data: JSON.stringify(c),
1514
1499
  type: "json",
1515
- onComplete(a, i, d) {
1500
+ onComplete(a, o, d) {
1516
1501
  s && s(a);
1517
1502
  },
1518
- onFailure(a, i) {
1503
+ onFailure(a, o) {
1519
1504
  const d = a;
1520
- d.status = i.status, d.response = i.errormsg, n && n(d);
1505
+ d.status = o.status, d.response = o.errormsg, n && n(d);
1521
1506
  }
1522
1507
  });
1523
1508
  });
@@ -1525,9 +1510,9 @@ function Q(e, t, s, n) {
1525
1510
  function Xe(e, t = void 0, s = void 0) {
1526
1511
  const n = "YXdA5x4DSUKtlAi2wmnyTA";
1527
1512
  e.commu_id || (e.commu_id = n);
1528
- const o = `${e.space}/api/v2/communities/${e.commu_id}/ideas/statuses`;
1513
+ const i = `${e.space}/api/v2/communities/${e.commu_id}/ideas/statuses`;
1529
1514
  w(e, (c) => {
1530
- m(o, {
1515
+ m(i, {
1531
1516
  method: "GET",
1532
1517
  headers: {
1533
1518
  "Content-type": "application/json;charset=UTF-8",
@@ -1539,18 +1524,18 @@ function Xe(e, t = void 0, s = void 0) {
1539
1524
  t && t(a);
1540
1525
  },
1541
1526
  onFailure(r, a) {
1542
- const i = r;
1543
- i.status = a.status, i.response = a.errormsg, s && s(i);
1527
+ const o = r;
1528
+ o.status = a.status, o.response = a.errormsg, s && s(o);
1544
1529
  }
1545
1530
  });
1546
1531
  });
1547
1532
  }
1548
1533
  function Ve(e, t, s = void 0, n = void 0) {
1549
- const { listAllContacts: o, currentUser: c } = e;
1550
- console.log("__listAllContacts", o.hits);
1534
+ const { listAllContacts: i, currentUser: c } = e;
1535
+ console.log("__listAllContacts", i.hits);
1551
1536
  const r = `${e.space}/api/directmessages`, a = {
1552
1537
  users: [c.login].concat(t.receipt)
1553
- }, i = {
1538
+ }, o = {
1554
1539
  id_msg: "",
1555
1540
  senderId: e.currentUser.login,
1556
1541
  senderName: `${e.currentUser.first_name} ${e.currentUser.last_name}`,
@@ -1560,10 +1545,10 @@ function Ve(e, t, s = void 0, n = void 0) {
1560
1545
  Z(
1561
1546
  a.users,
1562
1547
  (l) => {
1563
- l !== void 0 && (i.id_msg = l.id, d = !0, $(e, i));
1548
+ l !== void 0 && (o.id_msg = l.id, d = !0, A(e, o));
1564
1549
  },
1565
1550
  (l) => {
1566
- d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", l), n && n(l), i.id_msg = "";
1551
+ d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", l), n && n(l), o.id_msg = "";
1567
1552
  }
1568
1553
  ), d === !1 && setTimeout(() => {
1569
1554
  d === !1 && w(e, (l) => {
@@ -1578,7 +1563,7 @@ function Ve(e, t, s = void 0, n = void 0) {
1578
1563
  type: "json",
1579
1564
  onComplete(p, u, f) {
1580
1565
  const g = p;
1581
- g.reponse = JSON.parse(f.response), g.status = f.status, s && s(g), i.id_msg = g.result.id, $(e, i);
1566
+ g.reponse = JSON.parse(f.response), g.status = f.status, s && s(g), o.id_msg = g.result.id, A(e, o);
1582
1567
  },
1583
1568
  onFailure(p, u, f) {
1584
1569
  const g = p;
@@ -1589,20 +1574,20 @@ function Ve(e, t, s = void 0, n = void 0) {
1589
1574
  }, 500);
1590
1575
  }
1591
1576
  function Z(e, t, s, n) {
1592
- const o = `${e.space}/api/directmessages/lite?with_favorites=false`;
1577
+ const i = `${e.space}/api/directmessages/lite?with_favorites=false`;
1593
1578
  w(e, (c) => {
1594
- m(o, {
1579
+ m(i, {
1595
1580
  method: "GET",
1596
1581
  headers: {
1597
1582
  Accept: "application/json,text/javascript,*/*",
1598
1583
  "X-DS-SWYM-CSRFTOKEN": c.result.ServerToken
1599
1584
  },
1600
1585
  onComplete(r) {
1601
- const a = JSON.parse(r), i = [];
1586
+ const a = JSON.parse(r), o = [];
1602
1587
  a.result.forEach((p) => {
1603
- p.users = p.users.sort((u, f) => u.login.localeCompare(f.login)), p.users.length === t.length && i.push(p);
1588
+ p.users = p.users.sort((u, f) => u.login.localeCompare(f.login)), p.users.length === t.length && o.push(p);
1604
1589
  });
1605
- const d = t.sort(), l = i.find((p) => {
1590
+ const d = t.sort(), l = o.find((p) => {
1606
1591
  const u = [];
1607
1592
  return p.users.forEach((f) => {
1608
1593
  u.push(f.login);
@@ -1617,13 +1602,13 @@ function Z(e, t, s, n) {
1617
1602
  });
1618
1603
  });
1619
1604
  }
1620
- function $(e, t, s = void 0, n = void 0) {
1621
- const o = {
1605
+ function A(e, t, s = void 0, n = void 0) {
1606
+ const i = {
1622
1607
  base: e.space,
1623
1608
  uri: "/api/community",
1624
1609
  id_msg: `${t.id_msg}`,
1625
1610
  endUri: "/instantmessages"
1626
- }, c = `${o.base}${o.uri}/${o.id_msg}${o.endUri}`, r = {
1611
+ }, c = `${i.base}${i.uri}/${i.id_msg}${i.endUri}`, r = {
1627
1612
  author: { login: t.senderId, displayName: t.senderName },
1628
1613
  accessState: null,
1629
1614
  commentUri: null,
@@ -1643,12 +1628,12 @@ function $(e, t, s = void 0, n = void 0) {
1643
1628
  },
1644
1629
  data: JSON.stringify(r),
1645
1630
  type: "json",
1646
- onComplete(i, d, l) {
1647
- const p = i;
1631
+ onComplete(o, d, l) {
1632
+ const p = o;
1648
1633
  p.status = l.status, p.response = JSON.parse(l.response), console.log("✅ _3dSwym_sendDirectMessageData => ", p), s && s(p);
1649
1634
  },
1650
- onFailure(i, d) {
1651
- const l = i;
1635
+ onFailure(o, d) {
1636
+ const l = o;
1652
1637
  l.msg = d.errormsg, l.errCode = d.errorcode, console.log("❌ sendDirectMessage => ", l), n && n(l);
1653
1638
  }
1654
1639
  });
@@ -1672,10 +1657,10 @@ const te = {
1672
1657
  // id de l'idee qui est créer au post (_3dSwym_postIdea)
1673
1658
  };
1674
1659
  function Be(e, t, s = void 0, n = void 0) {
1675
- const o = `${e.space}/api/idea/add`, c = e.swymCommunities.find(
1676
- (i) => i.id === t.community_id
1660
+ const i = `${e.space}/api/idea/add`, c = e.swymCommunities.find(
1661
+ (o) => o.id === t.community_id
1677
1662
  ), r = e.swymCommunities.find(
1678
- (i) => i.title.toLowerCase() === t.community_title.toLowerCase()
1663
+ (o) => o.title.toLowerCase() === t.community_title.toLowerCase()
1679
1664
  ), a = {
1680
1665
  params: {
1681
1666
  title: t.title,
@@ -1688,13 +1673,13 @@ function Be(e, t, s = void 0, n = void 0) {
1688
1673
  // 1 publier, 0 non publier
1689
1674
  }
1690
1675
  };
1691
- w(e, (i) => {
1676
+ w(e, (o) => {
1692
1677
  const d = {
1693
1678
  "Content-type": "application/json;charset=UTF-8",
1694
1679
  Accept: "application/json",
1695
- "X-DS-SWYM-CSRFTOKEN": i.result.ServerToken
1680
+ "X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
1696
1681
  };
1697
- m(o, {
1682
+ m(i, {
1698
1683
  method: "POST",
1699
1684
  headers: d,
1700
1685
  data: JSON.stringify(a),
@@ -1711,14 +1696,14 @@ function Be(e, t, s = void 0, n = void 0) {
1711
1696
  });
1712
1697
  }
1713
1698
  function Ye(e, t, s = void 0, n = void 0) {
1714
- const o = `${e.space}/api/idea/delete`, c = {
1699
+ const i = `${e.space}/api/idea/delete`, c = {
1715
1700
  params: {
1716
1701
  community_id: t.community_id,
1717
1702
  ideationIds: [t.idee_id]
1718
1703
  }
1719
1704
  };
1720
1705
  w(e, (r) => {
1721
- m(o, {
1706
+ m(i, {
1722
1707
  method: "POST",
1723
1708
  headers: {
1724
1709
  "Content-type": "application/json;charset=UTF-8",
@@ -1727,19 +1712,19 @@ function Ye(e, t, s = void 0, n = void 0) {
1727
1712
  },
1728
1713
  data: JSON.stringify(c),
1729
1714
  type: "json",
1730
- onComplete(a, i, d) {
1715
+ onComplete(a, o, d) {
1731
1716
  s && s(a);
1732
1717
  },
1733
- onFailure(a, i, d) {
1718
+ onFailure(a, o, d) {
1734
1719
  const l = a;
1735
- l.status = i.status, l.response = i.errormsg, n && n(l);
1720
+ l.status = o.status, l.response = o.errormsg, n && n(l);
1736
1721
  }
1737
1722
  });
1738
1723
  });
1739
1724
  }
1740
1725
  function He(e, t = "", s = void 0, n = void 0) {
1741
- const o = e.tenant.toLowerCase() === "r1132101716373" ? "tFtz0G4MR6qNtKgJjNfTog" : e.tenant.toLowerCase() === "r1132101286859" ? "Qpv3HN-tTDOsU-7_c5DnDg" : "Template_d'idée_à_créer";
1742
- t === "" && (t = o);
1726
+ const i = e.tenant.toLowerCase() === "r1132101716373" ? "tFtz0G4MR6qNtKgJjNfTog" : e.tenant.toLowerCase() === "r1132101286859" ? "Qpv3HN-tTDOsU-7_c5DnDg" : "Template_d'idée_à_créer";
1727
+ t === "" && (t = i);
1743
1728
  const c = `${e.space}/api/idea/get`, r = {
1744
1729
  params: {
1745
1730
  id: t
@@ -1755,23 +1740,23 @@ function He(e, t = "", s = void 0, n = void 0) {
1755
1740
  },
1756
1741
  data: JSON.stringify(r),
1757
1742
  type: "json",
1758
- onComplete(i) {
1759
- const d = i;
1743
+ onComplete(o) {
1744
+ const d = o;
1760
1745
  d.msg = d.result.message, s && s(d);
1761
1746
  },
1762
- onFailure(i) {
1763
- const d = i;
1747
+ onFailure(o) {
1748
+ const d = o;
1764
1749
  d.status = headers.status, d.response = headers.errormsg, n && n(d);
1765
1750
  }
1766
1751
  });
1767
1752
  });
1768
1753
  }
1769
1754
  function ze(e, t = te, s = void 0, n = void 0) {
1770
- const o = {
1755
+ const i = {
1771
1756
  uri: "/api/idea/list",
1772
1757
  comId: `/community_id/${e.tenant.toLowerCase() === "r1132101716373" ? t.community_id : "bgnIsG74SUWswyGzS6NC6g"}`,
1773
1758
  limit: `/limit/${t.limit ? t.limit : 10}`
1774
- }, c = `${e.space}${o.uri}${o.comId}${o.limit}`;
1759
+ }, c = `${e.space}${i.uri}${i.comId}${i.limit}`;
1775
1760
  w(e, (r) => {
1776
1761
  m(c, {
1777
1762
  method: "GET",
@@ -1779,12 +1764,12 @@ function ze(e, t = te, s = void 0, n = void 0) {
1779
1764
  "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
1780
1765
  },
1781
1766
  onComplete(a) {
1782
- const i = JSON.parse(a);
1783
- s && s(i);
1767
+ const o = JSON.parse(a);
1768
+ s && s(o);
1784
1769
  },
1785
- onFailure(a, i) {
1770
+ onFailure(a, o) {
1786
1771
  const d = a;
1787
- d.status = i.status, d.response = i.errormsg, n && n(d);
1772
+ d.status = o.status, d.response = o.errormsg, n && n(d);
1788
1773
  }
1789
1774
  });
1790
1775
  });
@@ -1866,32 +1851,32 @@ function ne(e) {
1866
1851
  }
1867
1852
  function qe(e, t = void 0, s = void 0) {
1868
1853
  const n = e.space + "/api/user/getcurrent/";
1869
- w(e, (o) => {
1854
+ w(e, (i) => {
1870
1855
  m(n, {
1871
1856
  method: "GET",
1872
1857
  headers: {
1873
- "X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
1858
+ "X-DS-SWYM-CSRFTOKEN": i.result.ServerToken
1874
1859
  },
1875
1860
  onComplete(c, r, a) {
1876
- const i = JSON.parse(c);
1877
- t && t(i.result);
1861
+ const o = JSON.parse(c);
1862
+ t && t(o.result);
1878
1863
  },
1879
1864
  onFailure(c, r, a) {
1880
- const i = { erreur: JSON.parse(c), headers: r, xhr: a };
1881
- s && s(i);
1865
+ const o = { erreur: JSON.parse(c), headers: r, xhr: a };
1866
+ s && s(o);
1882
1867
  }
1883
1868
  });
1884
1869
  });
1885
1870
  }
1886
1871
  function Qe(e, t, s = void 0, n = void 0) {
1887
- const o = e.space + "/api/user/find/login/" + t;
1872
+ const i = e.space + "/api/user/find/login/" + t;
1888
1873
  w(
1889
1874
  e,
1890
1875
  (c) => {
1891
- m(o, {
1876
+ m(i, {
1892
1877
  method: "GET",
1893
1878
  headers: { "X-DS-SWYM-CSRFTOKEN": c.result.ServerToken },
1894
- onComplete(r, a, i) {
1879
+ onComplete(r, a, o) {
1895
1880
  const d = JSON.parse(r);
1896
1881
  s && s(d);
1897
1882
  },
@@ -1921,7 +1906,7 @@ export {
1921
1906
  V as _3DSpace_get_downloadTicket_multidoc,
1922
1907
  b as _3DSpace_get_securityContexts,
1923
1908
  U as _3DSpace_get_ticket,
1924
- $e as _3DSpace_lifecycle_changeRevision,
1909
+ Ae as _3DSpace_lifecycle_changeRevision,
1925
1910
  Fe as _3DSpace_lifecycle_changeState,
1926
1911
  Ue as _3DSpace_lifecycle_getGraph,
1927
1912
  je as _3DSpace_lifecycle_getNextRevision,
@@ -1940,7 +1925,7 @@ export {
1940
1925
  Qe as _3DSwym_get_findUser,
1941
1926
  w as _3DSwym_get_version,
1942
1927
  Be as _3DSwym_postIdea,
1943
- $ as _3DSwym_sendMessageData,
1928
+ A as _3DSwym_sendMessageData,
1944
1929
  Se as _AppMngt_get_info_user,
1945
1930
  he as _AppMngt_get_users,
1946
1931
  me as _getPlateformInfos,
@@ -1956,24 +1941,24 @@ export {
1956
1941
  B as dataMixing,
1957
1942
  Te as deleteUserGroups,
1958
1943
  re as findAdresse,
1959
- Ae as getAllContextSecurity,
1960
- J as getCSRFToken,
1961
- ie as getCommunes,
1944
+ $e as getAllContextSecurity,
1945
+ E as getCSRFToken,
1946
+ oe as getCommunes,
1962
1947
  ye as getComplementUG,
1963
1948
  Ie as getDataFrom3DSpace,
1964
1949
  ce as getDataFromGouvFr,
1965
1950
  xe as getDatasByTenant,
1966
1951
  Me as getDatasFrom3DSpace,
1967
1952
  Re as getDownloadDocument,
1968
- Je as getInfoDocTags,
1953
+ Ee as getInfoDocTags,
1969
1954
  we as getUserGroupsList,
1970
- E as getUsersGroupRules,
1955
+ J as getUsersGroupRules,
1971
1956
  Pe as get_3DSpace_csrf,
1972
1957
  Ce as patchUserGroups,
1973
1958
  Oe as patchUserGroupsControl,
1974
1959
  ve as pushDataIn3DSpace,
1975
1960
  be as readUserGroupControl,
1976
- Ee as removeTagToDoc,
1961
+ Je as removeTagToDoc,
1977
1962
  Ze as sayHello,
1978
1963
  de as updateEvent
1979
1964
  };