@beam3_dev/api_module 0.0.226 → 0.0.228

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,10 +1,10 @@
1
- import { v4 as V } from "uuid";
2
- import { DateTime as v } from "luxon";
3
- import { requirejs as $, widget as D } from "@widget-lab/3ddashboard-utils";
4
- function L() {
5
- return V();
1
+ import { v4 as K } from "uuid";
2
+ import { DateTime as $ } from "luxon";
3
+ import { requirejs as I, widget as P } from "@widget-lab/3ddashboard-utils";
4
+ function B() {
5
+ return K();
6
6
  }
7
- const W = {
7
+ const V = {
8
8
  b3M3Yellow: "#FFB300",
9
9
  b3AboutageBlue: "#42A5F5",
10
10
  b3UsinageGreen: "#689F38",
@@ -34,10 +34,10 @@ const W = {
34
34
  b3Edit8: "#616161",
35
35
  b3Edit9: "#795548"
36
36
  };
37
- async function he(e, t = void 0, s = void 0) {
38
- const n = parseInt(e);
37
+ async function Se(e, t = void 0, n = void 0) {
38
+ const s = parseInt(e);
39
39
  await fetch(
40
- "https://apicarto.ign.fr/api/codes-postaux/communes/" + n,
40
+ "https://apicarto.ign.fr/api/codes-postaux/communes/" + s,
41
41
  {
42
42
  method: "GET",
43
43
  headers: {
@@ -47,10 +47,10 @@ async function he(e, t = void 0, s = void 0) {
47
47
  ).then((i) => i.json()).then((i) => {
48
48
  t && t(i);
49
49
  }).catch((i) => {
50
- s && s(i), console.error("Erreur : " + i);
50
+ n && n(i), console.error("Erreur : " + i);
51
51
  });
52
52
  }
53
- async function ye(e, t = void 0, s = void 0) {
53
+ async function _e(e, t = void 0, n = void 0) {
54
54
  e = encodeURIComponent(e), await fetch(
55
55
  "https://api-adresse.data.gouv.fr/search/?q=" + e + "&limit=15",
56
56
  {
@@ -59,19 +59,19 @@ async function ye(e, t = void 0, s = void 0) {
59
59
  Accept: "application/json"
60
60
  }
61
61
  }
62
- ).then((n) => n.json()).then((n) => {
63
- t && t(n);
64
- }).catch((n) => {
65
- s && s(n), console.error("Erreur : " + n);
62
+ ).then((s) => s.json()).then((s) => {
63
+ t && t(s);
64
+ }).catch((s) => {
65
+ n && n(s), console.error("Erreur : " + s);
66
66
  });
67
67
  }
68
- async function Se(e, t = W) {
69
- let s = v.now().year;
70
- const n = e, i = [], r = (a) => {
68
+ async function we(e, t = V) {
69
+ let n = $.now().year;
70
+ const s = e, i = [], r = (a) => {
71
71
  for (let c in a)
72
72
  i.push({ date: c, comment: a[c] });
73
73
  };
74
- for (let a = s; a <= s + 1; a++)
74
+ for (let a = n; a <= n + 1; a++)
75
75
  await fetch(
76
76
  "https://calendrier.api.gouv.fr/jours-feries/metropole/" + a + ".json",
77
77
  {
@@ -84,42 +84,42 @@ async function Se(e, t = W) {
84
84
  r(c);
85
85
  }).catch((c) => console.error("Erreur : " + c));
86
86
  return (() => {
87
- const a = n.length === 0 ? {
87
+ const a = s.length === 0 ? {
88
88
  events: []
89
- } : n;
89
+ } : s;
90
90
  for (let c of i)
91
91
  a.events.findIndex(
92
- (p) => p.start === v.fromISO(c.date).toISODate() && p.name === "Férié : " + c.comment
92
+ (u) => u.start === $.fromISO(c.date).toISODate() && u.name === "Férié : " + c.comment
93
93
  ) === -1 && a.events.push({
94
94
  name: "Férié : " + c.comment,
95
- start: v.fromISO(c.date).toISODate(),
96
- end: v.fromISO(c.date).toISODate(),
95
+ start: $.fromISO(c.date).toISODate(),
96
+ end: $.fromISO(c.date).toISODate(),
97
97
  color: t.b3BusinnessDays,
98
98
  timed: !1
99
99
  });
100
100
  return a;
101
101
  })();
102
102
  }
103
- function X(e, t, s) {
104
- const { credentials: n, myArray: i, chunk: r, fn_to_call: o } = e, a = [];
103
+ function W(e, t, n) {
104
+ const { credentials: s, myArray: i, chunk: r, fn_to_call: o } = e, a = [];
105
105
  for (let c = 0; c < i.length; c += r) {
106
106
  const d = i.slice(c, c + r);
107
107
  a.push(d);
108
108
  }
109
- q(
110
- { credentials: n, chunks: a, initLoop: 0, fn: o },
109
+ X(
110
+ { credentials: s, chunks: a, initLoop: 0, fn: o },
111
111
  (c) => {
112
112
  t && t(c);
113
113
  },
114
114
  (c) => {
115
- s && s(c);
115
+ n && n(c);
116
116
  }
117
117
  );
118
118
  }
119
- function q(e, t, s) {
120
- const { credentials: n, chunks: i, initLoop: r, fn: o } = e, a = (c) => {
119
+ function X(e, t, n) {
120
+ const { credentials: s, chunks: i, initLoop: r, fn: o } = e, a = (c) => {
121
121
  o(
122
- n,
122
+ s,
123
123
  i[c],
124
124
  () => {
125
125
  c++, c < i.length && a(c);
@@ -128,97 +128,97 @@ function q(e, t, s) {
128
128
  t && t(d);
129
129
  },
130
130
  (d) => {
131
- s && s(d);
131
+ n && n(d);
132
132
  }
133
133
  );
134
134
  };
135
135
  a(r);
136
136
  }
137
- async function _e(e, t, s = !0) {
138
- const n = e.events.findIndex((i) => i.uuid === t.uuid);
139
- return n === -1 ? e.events.push(t) : s ? e.events[n] = t : e.events.splice(n, 1), e.length > 0 && e.sort((i, r) => i.start - r.start), e;
137
+ async function Ce(e, t, n = !0) {
138
+ const s = e.events.findIndex((i) => i.uuid === t.uuid);
139
+ return s === -1 ? e.events.push(t) : n ? e.events[s] = t : e.events.splice(s, 1), e.length > 0 && e.sort((i, r) => i.start - r.start), e;
140
140
  }
141
141
  function m(e, t) {
142
- $(["DS/WAFData/WAFData"], (s) => {
143
- s.authenticatedRequest(e, t);
142
+ I(["DS/WAFData/WAFData"], (n) => {
143
+ n.authenticatedRequest(e, t);
144
144
  });
145
145
  }
146
- function we(e, t, s) {
147
- $(["DS/DataDragAndDrop/DataDragAndDrop"], (n) => {
148
- n.draggable(e, {
146
+ function Te(e, t, n) {
147
+ I(["DS/DataDragAndDrop/DataDragAndDrop"], (s) => {
148
+ s.draggable(e, {
149
149
  data: t,
150
- start: s
150
+ start: n
151
151
  });
152
152
  });
153
153
  }
154
- function Ce(e, t = void 0) {
155
- $(["DS/TagNavigatorProxy/TagNavigatorProxy"], (s) => {
156
- let n;
157
- n === void 0 && (n = s.createProxy({
158
- widgetId: D.id,
154
+ function be(e, t = void 0) {
155
+ I(["DS/TagNavigatorProxy/TagNavigatorProxy"], (n) => {
156
+ let s;
157
+ s === void 0 && (s = n.createProxy({
158
+ widgetId: P.id,
159
159
  filteringMode: "WithFilteringServices"
160
- }), t !== void 0 && n.addEvent("onFilterSubjectsChange", t)), n.setSubjectsTags(e);
160
+ }), t !== void 0 && s.addEvent("onFilterSubjectsChange", t)), s.setSubjectsTags(e);
161
161
  });
162
162
  }
163
- function Te(e, t) {
164
- $(["DS/DataDragAndDrop/DataDragAndDrop"], (s) => {
165
- s.droppable(e, {
163
+ function Oe(e, t) {
164
+ I(["DS/DataDragAndDrop/DataDragAndDrop"], (n) => {
165
+ n.droppable(e, {
166
166
  drop: t
167
167
  });
168
168
  });
169
169
  }
170
- async function be(e, t = void 0, s = void 0) {
171
- await $(
170
+ async function $e(e, t = void 0, n = void 0) {
171
+ await I(
172
172
  ["DS/i3DXCompassServices/i3DXCompassServices"],
173
- (n) => {
174
- (!e || e === "") && (e = D.getValue("PlatFormInstanceId")), (!e || e === "") && (e = void 0), t && t(
175
- n.getPlatformServices({
173
+ (s) => {
174
+ (!e || e === "") && (e = P.getValue("PlatFormInstanceId")), (!e || e === "") && (e = void 0), t && t(
175
+ s.getPlatformServices({
176
176
  platformId: e,
177
177
  onComplete: t,
178
- onFailure: s
178
+ onFailure: n
179
179
  })
180
180
  );
181
181
  }
182
182
  );
183
183
  }
184
- function Y() {
184
+ function q() {
185
185
  let e = {};
186
- return $(["DS/PlatformAPI/PlatformAPI"], (t) => {
187
- const s = t.getTenant(), n = t.getUser(), i = t.getAllApplicationConfigurations(), r = t.getApplicationConfiguration(
186
+ return I(["DS/PlatformAPI/PlatformAPI"], (t) => {
187
+ const n = t.getTenant(), s = t.getUser(), i = t.getAllApplicationConfigurations(), r = t.getApplicationConfiguration(
188
188
  "com.3ds.wp.passport.cors"
189
189
  );
190
190
  e = {
191
- tenant: s,
192
- user: n,
191
+ tenant: n,
192
+ user: s,
193
193
  appsConfiguration: i,
194
194
  appConf: r
195
195
  };
196
196
  }), console.log("%cRETOUR API :", "color:blue", e), e;
197
197
  }
198
- function b(e, t = void 0, s = void 0) {
198
+ function b(e, t = void 0, n = void 0) {
199
199
  if (e.tenant) {
200
- const n = `https://${e.tenant}-eu1-apps.3dexperience.3ds.com/enovia/resources/AppsMngt/api/v1/services?tenant=${e.tenant}&cors=true&xrequestedwith=xmlhttprequest`;
201
- m(n, {
200
+ const s = `https://${e.tenant}-eu1-apps.3dexperience.3ds.com/enovia/resources/AppsMngt/api/v1/services?tenant=${e.tenant}&cors=true&xrequestedwith=xmlhttprequest`;
201
+ m(s, {
202
202
  onComplete(i) {
203
203
  const r = typeof i == "string" ? JSON.parse(i) : i;
204
204
  if (r && "platforms" in r) {
205
205
  const o = r.platforms.find(
206
206
  (a) => a.id === e.tenant.toUpperCase()
207
207
  );
208
- t && o ? t(o) : s && s("_getServiceUrl return listServiceUrl = undefined");
208
+ t && o ? t(o) : n && n("_getServiceUrl return listServiceUrl = undefined");
209
209
  } else
210
- s && s("_getServiceUrl return oResponse = undefined");
210
+ n && n("_getServiceUrl return oResponse = undefined");
211
211
  },
212
212
  onFailure(i) {
213
- s && s(i);
213
+ n && n(i);
214
214
  }
215
215
  });
216
216
  }
217
217
  }
218
- function Oe(e, t = void 0, s = void 0) {
218
+ function Ie(e, t = void 0, n = void 0) {
219
219
  if (e.tenant) {
220
- const n = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dpassport&platformId=${e.tenant}`;
221
- m(n, {
220
+ const s = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dpassport&platformId=${e.tenant}`;
221
+ m(s, {
222
222
  onComplete(i) {
223
223
  const r = JSON.parse(i);
224
224
  if (console.log("serviceId=3dpassport", r), Array.isArray(r) && r.length > 0) {
@@ -227,18 +227,18 @@ function Oe(e, t = void 0, s = void 0) {
227
227
  }
228
228
  },
229
229
  onFailure(i) {
230
- s && s(i);
230
+ n && n(i);
231
231
  }
232
232
  });
233
233
  }
234
234
  }
235
- function $e(e, t, s) {
236
- const n = {
235
+ function Ne(e, t, n) {
236
+ const s = {
237
237
  base: `${e.space}`,
238
238
  uri: "/resources/AppsMngt/api/custom/applications",
239
239
  option: `?filter=${e.tenant}`
240
240
  // facultatif
241
- }, i = `${n.base}${n.uri}${n.option}`;
241
+ }, i = `${s.base}${s.uri}${s.option}`;
242
242
  m(i, {
243
243
  method: "GET",
244
244
  headers: {
@@ -246,49 +246,49 @@ function $e(e, t, s) {
246
246
  Accept: "application/json"
247
247
  },
248
248
  onComplete(r, o, a) {
249
- const c = JSON.parse(r), d = c.data.map((p) => {
250
- const u = p.attributes.name, f = p.id;
251
- return { name: u, id: f };
249
+ const c = JSON.parse(r), d = c.data.map((u) => {
250
+ const p = u.attributes.name, f = u.id;
251
+ return { name: p, id: f };
252
252
  });
253
253
  t && t(d, c);
254
254
  },
255
255
  onFailure(r, o) {
256
256
  const a = r;
257
- a.msg = o.errormsg, a.errCode = o.errorcode, s && s(a);
257
+ a.msg = o.errormsg, a.errCode = o.errorcode, n && n(a);
258
258
  }
259
259
  });
260
260
  }
261
- function Ie(e, t = void 0, s = void 0) {
262
- let n = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&limit=-1`;
263
- m(n, {
261
+ function ve(e, t = void 0, n = void 0) {
262
+ let s = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&limit=-1`;
263
+ m(s, {
264
264
  onComplete(i, r, o) {
265
265
  const a = JSON.parse(i);
266
266
  console.log("_AppMngt_get_users => ", a), t && t(a);
267
267
  },
268
268
  onFailure(i, r) {
269
269
  const o = i;
270
- o.msg = r.errormsg, o.errCode = r.errorcode, s && s(o);
270
+ o.msg = r.errormsg, o.errCode = r.errorcode, n && n(o);
271
271
  }
272
272
  });
273
273
  }
274
- function ve(e, t, s = void 0, n = void 0) {
274
+ function ke(e, t, n = void 0, s = void 0) {
275
275
  let i = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&id=${t}`;
276
276
  m(i, {
277
277
  onComplete(r, o, a) {
278
278
  const c = JSON.parse(r);
279
- s && s(c);
279
+ n && n(c);
280
280
  },
281
281
  onFailure(r, o) {
282
282
  const a = r;
283
- a.msg = o.errormsg, a.errCode = o.errorcode, n && n(a);
283
+ a.msg = o.errormsg, a.errCode = o.errorcode, s && s(a);
284
284
  }
285
285
  });
286
286
  }
287
- const U = {
287
+ const F = {
288
288
  "Content-Type": "application/json",
289
289
  Accept: "application/json,text/javascript,*/*"
290
290
  };
291
- function Ne(e, t, s = void 0, n = void 0) {
291
+ function Ae(e, t, n = void 0, s = void 0) {
292
292
  const { space: i, currentUser: r } = e, a = `${i}${{
293
293
  URIUGr: "/3drdfpersist/resources/v1/usersgroup"
294
294
  }.URIUGr}`, c = {
@@ -305,19 +305,19 @@ function Ne(e, t, s = void 0, n = void 0) {
305
305
  };
306
306
  m(a, {
307
307
  method: "POST",
308
- headers: U,
308
+ headers: F,
309
309
  data: JSON.stringify(c),
310
310
  onComplete(d) {
311
- s && s(JSON.parse(d));
311
+ n && n(JSON.parse(d));
312
312
  },
313
- onFailure(d, p) {
313
+ onFailure(d, u) {
314
314
  console.log(d);
315
- const u = d;
316
- u.msg = p.errormsg, u.errCode = p.errorcode, console.log("❌ sendDirectMessage => ", u), n && n(u);
315
+ const p = d;
316
+ p.msg = u.errormsg, p.errCode = u.errorcode, console.log("❌ sendDirectMessage => ", p), s && s(p);
317
317
  }
318
318
  });
319
319
  }
320
- function ke(e, t, s = void 0, n = void 0) {
320
+ function Fe(e, t, n = void 0, s = void 0) {
321
321
  const { space: i, tenant: r } = e, o = i, a = `/3drdfpersist/v1/resources/${t}`, c = `?$mask=dsaccess:Mask.GroupUI.Properties&tenant=dstenant:${r}`, d = `${o}${a}${c}`;
322
322
  m(d, {
323
323
  opts: {
@@ -328,68 +328,68 @@ function ke(e, t, s = void 0, n = void 0) {
328
328
  }
329
329
  },
330
330
  onComplete(f) {
331
- s && s(JSON.parse(f));
331
+ n && n(JSON.parse(f));
332
332
  },
333
333
  onFailure(f, l) {
334
334
  const g = f;
335
- g.msg = l.errormsg, g.errCode = l.errorcode, n && n(g);
335
+ g.msg = l.errormsg, g.errCode = l.errorcode, s && s(g);
336
336
  }
337
337
  });
338
338
  }
339
- function H(e, t = void 0, s = void 0) {
340
- const { space: n, tenant: i } = e, r = n, o = "/3drdfpersist/resources/v1/option-sets/dsusergroup:ListOfGroupResponsibilities/options", a = `?tenant=dstenant:${i}`, c = {
339
+ function Y(e, t = void 0, n = void 0) {
340
+ const { space: s, tenant: i } = e, r = s, o = "/3drdfpersist/resources/v1/option-sets/dsusergroup:ListOfGroupResponsibilities/options", a = `?tenant=dstenant:${i}`, c = {
341
341
  method: "GET",
342
342
  Accept: "application/json,*/*,test/javascript"
343
343
  }, d = `${r}${o}${a}`;
344
344
  m(d, {
345
345
  OPTsH: c,
346
- onComplete(p) {
347
- t && t(JSON.parse(p));
346
+ onComplete(u) {
347
+ t && t(JSON.parse(u));
348
348
  },
349
- onFailure(p, u) {
350
- const f = p;
351
- f.msg = u.errormsg, f.errCode = u.errorcode, s && s(f);
349
+ onFailure(u, p) {
350
+ const f = u;
351
+ f.msg = p.errormsg, f.errCode = p.errorcode, n && n(f);
352
352
  }
353
353
  });
354
354
  }
355
- function Ae(e, t = void 0, s = void 0) {
356
- 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: {
355
+ function xe(e, t = void 0, n = void 0) {
356
+ const { space: s, currentUser: i } = e, a = `${s}/3drdfpersist/resources/v1/usersgroup?select=uri,title,description,owner,members,pending_members,creation_date,modification_date,visibility`, d = { method: "GET", headers: {
357
357
  "Content-Type": "application/json",
358
358
  Accept: "application/json,text/javascript,*/*"
359
359
  } };
360
360
  try {
361
361
  m(a, {
362
362
  opts: d,
363
- onComplete(p) {
364
- const u = JSON.parse(p), f = {}, l = u.groups.filter((g) => g.uri.startsWith("uuid:"));
363
+ onComplete(u) {
364
+ const p = JSON.parse(u), f = {}, l = p.groups.filter((g) => g.uri.startsWith("uuid:"));
365
365
  if (i && Object.keys(i).length > 0) {
366
366
  const g = l.filter((S) => S.owner === i.email), y = l.filter((S) => S.members.includes(i.email)), h = g.concat(y);
367
- f.iam = h, f.UG = l, f.iamMember = y, H(
367
+ f.iam = h, f.UG = l, f.iamMember = y, Y(
368
368
  e,
369
369
  (S) => {
370
370
  f.rules = S, t && t(f);
371
371
  },
372
372
  (S) => {
373
- s && s(S);
373
+ n && n(S);
374
374
  }
375
375
  );
376
376
  }
377
377
  },
378
- onFailure(p) {
379
- s && s(p);
378
+ onFailure(u) {
379
+ n && n(u);
380
380
  }
381
381
  });
382
- } catch (p) {
383
- console.log(p);
382
+ } catch (u) {
383
+ console.log(u);
384
384
  }
385
385
  }
386
- function je(e, t) {
387
- const { space: s } = e, i = `${s}/3drdfpersist/resources/v1/usersgroup/${t}`;
386
+ function Ue(e, t) {
387
+ const { space: n } = e, i = `${n}/3drdfpersist/resources/v1/usersgroup/${t}`;
388
388
  m(i, {
389
389
  method: "DELETE"
390
390
  });
391
391
  }
392
- function Fe(e, t, s, n = void 0, i = void 0) {
392
+ function je(e, t, n, s = void 0, i = void 0) {
393
393
  const { space: r, tenant: o } = e, a = {
394
394
  URITI: "/3drdfpersist/resources/v1/template-instances",
395
395
  URIUGr: "/3drdfpersist/resources/v1/usersgroup",
@@ -398,36 +398,36 @@ function Fe(e, t, s, n = void 0, i = void 0) {
398
398
  nexURImem: "/members",
399
399
  OPTsTI: "?$mask=dsaccess:Mask.GroupUI.Properties",
400
400
  OPTsTenant: `tenant=dstenant:${o}`
401
- }, c = s, d = `${r}${a.URIUGr}/${t}`, p = JSON.stringify(c);
401
+ }, c = n, d = `${r}${a.URIUGr}/${t}`, u = JSON.stringify(c);
402
402
  m(d, {
403
- headers: U,
403
+ headers: F,
404
404
  method: "PATCH",
405
- data: p,
405
+ data: u,
406
406
  type: "json",
407
- onComplete(u) {
408
- n && n(u);
407
+ onComplete(p) {
408
+ s && s(p);
409
409
  },
410
- onFailure(u) {
411
- i && i(u);
410
+ onFailure(p) {
411
+ i && i(p);
412
412
  }
413
413
  });
414
414
  }
415
- function Ue(e, t, s, n = void 0, i = void 0) {
415
+ function Pe(e, t, n, s = void 0, i = void 0) {
416
416
  const { space: r } = e, a = `${r}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
417
417
  m(a, {
418
418
  method: "PATCH",
419
- headers: U,
420
- data: JSON.stringify(s),
419
+ headers: F,
420
+ data: JSON.stringify(n),
421
421
  type: "json",
422
422
  onComplete(d) {
423
- n && n(d);
423
+ s && s(d);
424
424
  },
425
425
  onFailure(d) {
426
426
  i && i(d);
427
427
  }
428
428
  });
429
429
  }
430
- function xe(e, t, s = void 0, n = void 0) {
430
+ function Re(e, t, n = void 0, s = void 0) {
431
431
  const { space: i } = e, o = `${i}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
432
432
  m(o, {
433
433
  opts: {
@@ -438,47 +438,47 @@ function xe(e, t, s = void 0, n = void 0) {
438
438
  }
439
439
  },
440
440
  onComplete(d) {
441
- s && s(JSON.parse(d));
441
+ n && n(JSON.parse(d));
442
442
  },
443
443
  onFailure(d) {
444
- n && n(d);
444
+ s && s(d);
445
445
  }
446
446
  });
447
447
  }
448
- async function z(e, t, s) {
448
+ async function H(e, t, n) {
449
449
  if (e.space) {
450
- const n = `${e.space}/resources/v1/application/CSRF`;
451
- m(n, {
450
+ const s = `${e.space}/resources/v1/application/CSRF`;
451
+ m(s, {
452
452
  onComplete(i) {
453
453
  i = JSON.parse(i), t && t(i.csrf);
454
454
  },
455
455
  onFailure(i, r, o) {
456
- s && s({ error: i, headers: r, xhr: o });
456
+ n && n({ error: i, headers: r, xhr: o });
457
457
  }
458
458
  });
459
459
  }
460
460
  }
461
- var N = {};
462
- function Q(e, t) {
461
+ var v = {};
462
+ function z(e, t) {
463
463
  return Object.prototype.hasOwnProperty.call(e, t);
464
464
  }
465
- var Z = function(e, t, s, n) {
466
- t = t || "&", s = s || "=";
465
+ var Q = function(e, t, n, s) {
466
+ t = t || "&", n = n || "=";
467
467
  var i = {};
468
468
  if (typeof e != "string" || e.length === 0)
469
469
  return i;
470
470
  var r = /\+/g;
471
471
  e = e.split(t);
472
472
  var o = 1e3;
473
- n && typeof n.maxKeys == "number" && (o = n.maxKeys);
473
+ s && typeof s.maxKeys == "number" && (o = s.maxKeys);
474
474
  var a = e.length;
475
475
  o > 0 && a > o && (a = o);
476
476
  for (var c = 0; c < a; ++c) {
477
- var d = e[c].replace(r, "%20"), p = d.indexOf(s), u, f, l, g;
478
- p >= 0 ? (u = d.substr(0, p), f = d.substr(p + 1)) : (u = d, f = ""), l = decodeURIComponent(u), g = decodeURIComponent(f), Q(i, l) ? Array.isArray(i[l]) ? i[l].push(g) : i[l] = [i[l], g] : i[l] = g;
477
+ var d = e[c].replace(r, "%20"), u = d.indexOf(n), p, f, l, g;
478
+ u >= 0 ? (p = d.substr(0, u), f = d.substr(u + 1)) : (p = d, f = ""), l = decodeURIComponent(p), g = decodeURIComponent(f), z(i, l) ? Array.isArray(i[l]) ? i[l].push(g) : i[l] = [i[l], g] : i[l] = g;
479
479
  }
480
480
  return i;
481
- }, I = function(e) {
481
+ }, N = function(e) {
482
482
  switch (typeof e) {
483
483
  case "string":
484
484
  return e;
@@ -489,17 +489,17 @@ var Z = function(e, t, s, n) {
489
489
  default:
490
490
  return "";
491
491
  }
492
- }, ee = function(e, t, s, n) {
493
- return t = t || "&", s = s || "=", e === null && (e = void 0), typeof e == "object" ? Object.keys(e).map(function(i) {
494
- var r = encodeURIComponent(I(i)) + s;
492
+ }, Z = function(e, t, n, s) {
493
+ return t = t || "&", n = n || "=", e === null && (e = void 0), typeof e == "object" ? Object.keys(e).map(function(i) {
494
+ var r = encodeURIComponent(N(i)) + n;
495
495
  return Array.isArray(e[i]) ? e[i].map(function(o) {
496
- return r + encodeURIComponent(I(o));
497
- }).join(t) : r + encodeURIComponent(I(e[i]));
498
- }).filter(Boolean).join(t) : n ? encodeURIComponent(I(n)) + s + encodeURIComponent(I(e)) : "";
496
+ return r + encodeURIComponent(N(o));
497
+ }).join(t) : r + encodeURIComponent(N(e[i]));
498
+ }).filter(Boolean).join(t) : s ? encodeURIComponent(N(s)) + n + encodeURIComponent(N(e)) : "";
499
499
  };
500
- N.decode = N.parse = Z;
501
- N.encode = N.stringify = ee;
502
- async function M(e, t = void 0, s = void 0, n = void 0) {
500
+ v.decode = v.parse = Q;
501
+ v.encode = v.stringify = Z;
502
+ async function R(e, t = void 0, n = void 0, s = void 0) {
503
503
  const i = e.space;
504
504
  if (t === void 0) {
505
505
  console.log("Le paramètre docid est obligatoire");
@@ -509,20 +509,20 @@ async function M(e, t = void 0, s = void 0, n = void 0) {
509
509
  m(r, {
510
510
  onComplete(o, a, c) {
511
511
  const d = JSON.parse(o);
512
- s && s(d);
512
+ n && n(d);
513
513
  },
514
514
  onFailure(o) {
515
- n && n(o);
515
+ s && s(o);
516
516
  }
517
517
  });
518
518
  }
519
- async function Pe(e, t = void 0, s = void 0, n = void 0) {
519
+ async function De(e, t = void 0, n = void 0, s = void 0) {
520
520
  const i = e.space;
521
521
  if (t === void 0) {
522
522
  console.log("Le paramètre docids est obligatoire");
523
523
  return;
524
524
  }
525
- let r = `${i}/resources/v1/modeler/documents/ids?$include=!files,!ownerInfo,!originatorInfo,!relOwnerInfo'`, o = N.stringify({
525
+ let r = `${i}/resources/v1/modeler/documents/ids?$include=!files,!ownerInfo,!originatorInfo,!relOwnerInfo'`, o = v.stringify({
526
526
  $ids: t.toString().replace('"', "").replace("[", "").replace("]", "")
527
527
  });
528
528
  m(r, {
@@ -532,47 +532,47 @@ async function Pe(e, t = void 0, s = void 0, n = void 0) {
532
532
  },
533
533
  data: o,
534
534
  onComplete(a, c, d) {
535
- const p = JSON.parse(a);
536
- s && s(p);
535
+ const u = JSON.parse(a);
536
+ n && n(u);
537
537
  },
538
538
  onFailure(a) {
539
- n && n(a);
539
+ s && s(a);
540
540
  }
541
541
  });
542
542
  }
543
- function k(e, t = void 0, s = void 0) {
543
+ function k(e, t = void 0, n = void 0) {
544
544
  if (e.objID && e.objID !== "") {
545
- let n = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
546
- m(n, {
545
+ let s = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
546
+ m(s, {
547
547
  onComplete(i, r, o) {
548
548
  const a = JSON.parse(i);
549
549
  e.token = a?.csrf?.value, e.datas = a?.data[0], t && t(e);
550
550
  },
551
551
  onFailure(i) {
552
- s && s(i);
552
+ n && n(i);
553
553
  }
554
554
  });
555
555
  } else
556
556
  O(
557
557
  e,
558
- (n) => {
559
- console.log("_3DSpace_get_csrf / _3DSpace_csrf", n), t && t(n);
558
+ (s) => {
559
+ console.log("_3DSpace_get_csrf / _3DSpace_csrf", s), t && t(s);
560
560
  },
561
- (n) => {
562
- s && s(n);
561
+ (s) => {
562
+ n && n(s);
563
563
  }
564
564
  );
565
565
  }
566
- function O(e, t = void 0, s = void 0) {
566
+ function O(e, t = void 0, n = void 0) {
567
567
  if (e.space) {
568
- const n = e.space + "/resources/v1/application/CSRF";
569
- m(n, {
568
+ const s = e.space + "/resources/v1/application/CSRF";
569
+ m(s, {
570
570
  onComplete(i, r, o) {
571
571
  const a = JSON.parse(i);
572
572
  t && t(a.csrf.value);
573
573
  },
574
574
  onFailure(i, r, o) {
575
- s && s({
575
+ n && n({
576
576
  response: i,
577
577
  headers: r,
578
578
  xhr: o
@@ -580,14 +580,14 @@ function O(e, t = void 0, s = void 0) {
580
580
  }
581
581
  });
582
582
  } else
583
- s && s("ERROR : url du 3DSpace non défini.");
583
+ n && n("ERROR : url du 3DSpace non défini.");
584
584
  }
585
- function x(e, t = void 0, s = void 0) {
586
- let n = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
585
+ function x(e, t = void 0, n = void 0) {
586
+ let s = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
587
587
  k(
588
588
  e,
589
589
  (i) => {
590
- m(n, {
590
+ m(s, {
591
591
  method: "PUT",
592
592
  headers: {
593
593
  ENO_CSRF_TOKEN: e.token
@@ -597,28 +597,28 @@ function x(e, t = void 0, s = void 0) {
597
597
  t && t(c, o);
598
598
  },
599
599
  onFailure(r, o) {
600
- console.warn("☠️ error => ", r, o), s && s(r, o);
600
+ console.warn("☠️ error => ", r, o), n && n(r, o);
601
601
  }
602
602
  });
603
603
  },
604
604
  (i) => {
605
- console.warn("_3DSpace_get_ticket / error => ", i), s && s(i);
605
+ console.warn("_3DSpace_get_ticket / error => ", i), n && n(i);
606
606
  }
607
607
  );
608
608
  }
609
- function Re(e, t, s, n = void 0, i = void 0) {
609
+ function Le(e, t, n, s = void 0, i = void 0) {
610
610
  const r = `${e.space}/resources/v1/modeler/documents/${t}/files/DownloadTicket`;
611
- s || (s = e.token), m(r, {
611
+ n || (n = e.token), m(r, {
612
612
  method: "PUT",
613
613
  headers: {
614
- ENO_CSRF_TOKEN: s
614
+ ENO_CSRF_TOKEN: n
615
615
  },
616
616
  onComplete(o) {
617
617
  let a = JSON.parse(o);
618
618
  if (console.log("☠️ info => ", a), a.success === !0)
619
619
  try {
620
620
  const c = a.data[0].dataelements.ticketURL;
621
- n && n(c);
621
+ s && s(c);
622
622
  } catch (c) {
623
623
  i && i(c);
624
624
  }
@@ -628,12 +628,12 @@ function Re(e, t, s, n = void 0, i = void 0) {
628
628
  }
629
629
  });
630
630
  }
631
- function J(e, t, s, n, i, r = void 0, o = void 0) {
632
- const a = () => te(
631
+ function D(e, t, n, s, i, r = void 0, o = void 0) {
632
+ const a = () => ee(
633
633
  e,
634
634
  t,
635
- s,
636
635
  n,
636
+ s,
637
637
  i,
638
638
  e.token,
639
639
  r,
@@ -647,17 +647,17 @@ function J(e, t, s, n, i, r = void 0, o = void 0) {
647
647
  }
648
648
  );
649
649
  }
650
- function te(e, t, s, n, i, r, o = void 0, a = void 0) {
650
+ function ee(e, t, n, s, i, r, o = void 0, a = void 0) {
651
651
  const c = e.space + `/resources/v1/modeler/documents/${t}/files/CheckinTicket`;
652
652
  m(c, {
653
653
  method: "PUT",
654
654
  headers: {
655
655
  ENO_CSRF_TOKEN: e.token
656
656
  },
657
- onComplete(d, p, u) {
657
+ onComplete(d, u, p) {
658
658
  const f = JSON.parse(d).csrf, l = JSON.parse(d).data[0].dataelements, g = new FormData();
659
659
  let y;
660
- n instanceof Blob ? y = n : y = new Blob([n], {
660
+ s instanceof Blob ? y = s : y = new Blob([s], {
661
661
  type: "text/plain"
662
662
  }), g.append("__fcs__jobTicket", l.ticket), g.append("file_0", y, i);
663
663
  const h = {};
@@ -694,9 +694,9 @@ function te(e, t, s, n, i, r, o = void 0, a = void 0) {
694
694
  onFailure(T) {
695
695
  a && a(T);
696
696
  }
697
- }, w = e.tenant.toUpperCase();
697
+ }, C = e.tenant.toUpperCase();
698
698
  m(
699
- e.space + `/resources/v1/modeler/documents/?$include=versions&tenant=${w}&e6w-lang=en&e6w-timezone=-120&xrequestedwith=xmlhttprequest`,
699
+ e.space + `/resources/v1/modeler/documents/?$include=versions&tenant=${C}&e6w-lang=en&e6w-timezone=-120&xrequestedwith=xmlhttprequest`,
700
700
  _
701
701
  );
702
702
  }, h.onFailure = function(S) {
@@ -705,20 +705,20 @@ function te(e, t, s, n, i, r, o = void 0, a = void 0) {
705
705
  }
706
706
  });
707
707
  }
708
- async function De(e, t, s, n = void 0, i = void 0) {
709
- e.space, e.token, e.ctx, M(
708
+ async function Me(e, t, n, s = void 0, i = void 0) {
709
+ e.space, e.token, e.ctx, R(
710
710
  e,
711
711
  t,
712
712
  (r) => {
713
713
  const o = r.data[0].relateddata.files[0].id, a = r.data[0].dataelements.secondaryTitle && r.data[0].dataelements.secondaryTitle !== "" ? r.data[0].dataelements.secondaryTitle : r.data[0].dataelements.title;
714
- J(
714
+ D(
715
715
  e,
716
716
  t,
717
717
  o,
718
- s,
718
+ n,
719
719
  a,
720
720
  (c) => {
721
- n && n(c);
721
+ s && s(c);
722
722
  },
723
723
  (c) => {
724
724
  i && i(c);
@@ -730,121 +730,163 @@ async function De(e, t, s, n = void 0, i = void 0) {
730
730
  }
731
731
  );
732
732
  }
733
- async function Le(e, t, s, n, i = void 0, r = void 0) {
734
- const o = e.space, a = e.token, c = e.ctx;
735
- if (o !== "") {
736
- let d = `${o}/resources/v1/modeler/documents/files/CheckinTicket`;
737
- m(d, {
733
+ async function Je(e, t, n, s, i = void 0, r = void 0) {
734
+ te(
735
+ e,
736
+ (o) => {
737
+ console.log("resultCheckinTicket", n, o), o?.items >= 1 && o.data.forEach((a) => {
738
+ ne(
739
+ a,
740
+ t,
741
+ n,
742
+ (c) => {
743
+ console.log("receipt", n, c), se(
744
+ e,
745
+ c,
746
+ n,
747
+ s,
748
+ (d) => {
749
+ d?.data.length ? i && i(d) : r && r({ success: !1, msg: "Erreur lors de la mise en ralation entre la document et le fichier" });
750
+ },
751
+ (d) => console.warn(d)
752
+ );
753
+ },
754
+ (c) => console.warn(c)
755
+ );
756
+ });
757
+ },
758
+ (o) => console.warn(o)
759
+ );
760
+ }
761
+ function te(e, t = void 0, n = void 0) {
762
+ if (e?.space && e.token && e.ctx) {
763
+ let s = `${e.space}/resources/v1/modeler/documents/files/CheckinTicket`;
764
+ m(s, {
738
765
  method: "PUT",
739
766
  headers: {
740
- ENO_CSRF_TOKEN: a
767
+ ENO_CSRF_TOKEN: e.token,
768
+ Accept: "application/json",
769
+ "Content-Type": "application/json",
770
+ SecurityContext: e.ctx
741
771
  },
742
- onComplete(p, u, f) {
743
- const l = JSON.parse(p).csrf;
744
- let g = JSON.parse(p).data[0].dataelements, y = new FormData(), h;
745
- t instanceof Blob ? h = t : h = new Blob([t], {
746
- type: "text/plain"
747
- }), y.append("__fcs__jobTicket", g.ticket), y.append("file_0", h, s);
748
- const S = (w) => w.indexOf(".") === -1 ? w : w.split(".").slice(0, -1).join(".");
749
- let _ = {
750
- method: "POST",
751
- data: y,
752
- onComplete(w) {
753
- let T = L(), j = {
754
- method: "POST",
755
- headers: {
756
- ENO_CSRF_TOKEN: a,
757
- Accept: "application/json",
758
- "Content-Type": "application/json",
759
- SecurityContext: encodeURIComponent("ctx::" + c)
760
- },
761
- data: JSON.stringify({
762
- csrf: l,
763
- data: [
764
- {
765
- type: "Document",
766
- dataelements: {
767
- title: S(s),
768
- description: n
769
- // policy: "Document Release",
770
- },
771
- relateddata: {
772
- files: [
773
- {
774
- dataelements: {
775
- title: s,
776
- receipt: w
777
- }
778
- }
779
- ]
780
- },
781
- tempId: T
782
- }
783
- ]
784
- }),
785
- type: "json",
786
- onComplete(F) {
787
- i && i(F);
788
- },
789
- onFailure(F) {
790
- r && r(F);
791
- }
792
- };
793
- m(
794
- o + "/resources/v1/modeler/documents/?e6w-lang=fr&e6w-timezone=-120&xrequestedwith=xmlhttprequest",
795
- j
796
- );
772
+ onComplete(i, r, o) {
773
+ try {
774
+ i = JSON.parse(i);
775
+ } catch {
776
+ }
777
+ t && t(i);
778
+ },
779
+ onFailure(i) {
780
+ n && n(i);
781
+ }
782
+ });
783
+ } else
784
+ console.log("Error de credentials", e);
785
+ }
786
+ function ne(e, t, n, s = void 0, i = void 0) {
787
+ let r = new FormData();
788
+ t instanceof Blob || (t = new Blob([t], {
789
+ type: "text/plain"
790
+ })), r.append("__fcs__jobTicket", e.dataelements.ticket), r.append("file_0", t, n);
791
+ let o = e.dataelements.ticketURL;
792
+ m(o, {
793
+ method: "POST",
794
+ data: r,
795
+ onComplete(a) {
796
+ s && s(a.replace(/[\n\r]/g, ""));
797
+ },
798
+ onFailure(a) {
799
+ i && i(a);
800
+ }
801
+ });
802
+ }
803
+ function se(e, t, n, s = void 0, i = void 0, r = void 0) {
804
+ console.log("relatedDocAndFile", { credentials: e, receipt: t, filename: n });
805
+ const o = (d) => d.indexOf(".") === -1 ? d : d.split(".").slice(0, -1).join(".");
806
+ let a = "temp_" + $.now().ts, c = e.space + "/resources/v1/modeler/documents/?e6w-lang=fr&e6w-timezone=-120&xrequestedwith=xmlhttprequest";
807
+ m(c, {
808
+ method: "POST",
809
+ headers: {
810
+ ENO_CSRF_TOKEN: e.token,
811
+ SecurityContext: encodeURIComponent("ctx::") + e.ctx,
812
+ "Content-Type": "application/json"
813
+ },
814
+ data: JSON.stringify({
815
+ csrf: { name: "ENO_CSRF_TOKEN", value: e.token },
816
+ data: [
817
+ {
818
+ type: "Document",
819
+ dataelements: {
820
+ title: o(n),
821
+ description: s
797
822
  },
798
- onFailure(w) {
799
- r && r(w);
823
+ relateddata: {
824
+ files: [
825
+ {
826
+ dataelements: {
827
+ title: n,
828
+ receipt: `${t}
829
+ `
830
+ }
831
+ }
832
+ ]
800
833
  },
801
- timeout: 0
802
- };
803
- m(g.ticketURL, _);
834
+ tempId: a
835
+ }
836
+ ]
837
+ }),
838
+ onComplete(d) {
839
+ try {
840
+ d = JSON.parse(d);
841
+ } catch {
804
842
  }
805
- });
806
- }
843
+ i && i(d);
844
+ },
845
+ onFailure(d) {
846
+ r && r(d);
847
+ }
848
+ });
807
849
  }
808
- function A(e, t = void 0, s = void 0, n = void 0, i = void 0, r = void 0, o = !1) {
850
+ function A(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0, o = !1) {
809
851
  const a = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
810
852
  m(a, {
811
853
  method: "GET",
812
854
  onComplete(c) {
813
855
  const d = JSON.parse(c);
814
- let p = "", u, f, l;
856
+ let u = "", p, f, l;
815
857
  if (t) {
816
858
  let g = d.collabspaces.find((y) => y.title === t);
817
859
  if (g) {
818
- u = t;
860
+ p = t;
819
861
  let y = g.couples;
820
862
  y = y.filter(
821
863
  (h, S, _) => S === _.findIndex(
822
- (w) => w.organization.pid === h.organization.pid && w.role.pid === h.role.pid
864
+ (C) => C.organization.pid === h.organization.pid && C.role.pid === h.role.pid
823
865
  )
824
- ), s && (Array.isArray(s) ? s.forEach((h) => {
866
+ ), n && (Array.isArray(n) ? n.forEach((h) => {
825
867
  l || y.forEach((S) => {
826
- if (h === S.role.name && n === S.organization.title)
827
- l = h, f = n;
868
+ if (h === S.role.name && s === S.organization.title)
869
+ l = h, f = s;
828
870
  else if (h === S.role.name) {
829
871
  let _ = y.filter(
830
- (w) => w.role.name === h
872
+ (C) => C.role.name === h
831
873
  );
832
874
  _.length === 1 ? (l = _[0].role.name, f = _[0].organization.title) : r(_);
833
875
  }
834
876
  });
835
877
  }) : y.forEach((h) => {
836
- if (s === h.role.name && n === h.organization.title)
837
- l = s, f = n;
838
- else if (s === h.role.name) {
878
+ if (n === h.role.name && s === h.organization.title)
879
+ l = n, f = s;
880
+ else if (n === h.role.name) {
839
881
  let S = y.filter(
840
- (_) => _.role.name === s
882
+ (_) => _.role.name === n
841
883
  );
842
884
  S.length === 1 ? (l = S[0].role.name, f = S[0].organization.title) : r(S);
843
885
  }
844
886
  }));
845
887
  }
846
888
  }
847
- u && f && l ? (p = l + "." + f + "." + u, i(p)) : d.preferredcredentials && o ? (p = d.preferredcredentials.role.name + "." + d.preferredcredentials.organization.title + "." + d.preferredcredentials.collabspace.title, i(p)) : r && (p = l + "." + f + "." + u, r(p));
889
+ p && f && l ? (u = l + "." + f + "." + p, i(u)) : d.preferredcredentials && o ? (u = d.preferredcredentials.role.name + "." + d.preferredcredentials.organization.title + "." + d.preferredcredentials.collabspace.title, i(u)) : r && (u = l + "." + f + "." + p, r(u));
848
890
  },
849
891
  onFailure(c, d) {
850
892
  console.warn("Erreur de récupération du contexte de sécurité. => ", {
@@ -854,29 +896,29 @@ function A(e, t = void 0, s = void 0, n = void 0, i = void 0, r = void 0, o = !1
854
896
  }
855
897
  });
856
898
  }
857
- async function G(e, t = void 0, s = void 0) {
899
+ async function L(e, t = void 0, n = void 0) {
858
900
  return (!e.objID || e.objID === "") && (console.warn(
859
901
  "_3DSpace_download_doc() / Le paramètre objectId est obligatoire"
860
- ), s && s(
902
+ ), n && n(
861
903
  "_3DSpace_download_doc() / Le paramètre objectId est obligatoire"
862
904
  )), (e.space === "" || !e.space) && (console.warn(
863
905
  "_3DSpace_download_doc() / Le paramètre space est obligatoire"
864
- ), s && s("_3DSpace_download_doc() / Le paramètre space est obligatoire")), (e.token === "" || !e.token) && z(
906
+ ), n && n("_3DSpace_download_doc() / Le paramètre space est obligatoire")), (e.token === "" || !e.token) && H(
865
907
  e,
866
- (n) => {
867
- e.token = n;
908
+ (s) => {
909
+ e.token = s;
868
910
  },
869
- (n) => {
870
- console.log("☠️ error => ", n);
911
+ (s) => {
912
+ console.log("☠️ error => ", s);
871
913
  }
872
- ), new Promise((n, i) => {
914
+ ), new Promise((s, i) => {
873
915
  x(
874
916
  e,
875
917
  (r) => {
876
918
  e?.returnType === "blob" ? (console.log("ticketURL blob", r), fetch(r).then((o) => o.blob()).then((o) => {
877
919
  t && t(o);
878
920
  }).catch((o) => {
879
- s && s(o);
921
+ n && n(o);
880
922
  })) : m(r, {
881
923
  onComplete(o) {
882
924
  let a;
@@ -885,10 +927,10 @@ async function G(e, t = void 0, s = void 0) {
885
927
  } catch {
886
928
  a = o;
887
929
  }
888
- t && typeof t == "function" && t(a), n(a);
930
+ t && typeof t == "function" && t(a), s(a);
889
931
  },
890
932
  onFailure(o, a, c) {
891
- s && (console.log("error http", o), s({
933
+ n && (console.log("error http", o), n({
892
934
  msg: JSON.parse(o),
893
935
  headers: a,
894
936
  xhr: c
@@ -901,26 +943,26 @@ async function G(e, t = void 0, s = void 0) {
901
943
  });
902
944
  },
903
945
  (r) => {
904
- s && s(r), console.log("*_3dspace_download_doc / error file URL *", r), i(r);
946
+ n && n(r), console.log("*_3dspace_download_doc / error file URL *", r), i(r);
905
947
  }
906
948
  );
907
949
  });
908
950
  }
909
- async function ne(e, t, s = void 0, n = void 0) {
910
- typeof t < "u" && Array.isArray(t) && t?.length > 0 ? X({
951
+ async function ie(e, t, n = void 0, s = void 0) {
952
+ typeof t < "u" && Array.isArray(t) && t?.length > 0 ? W({
911
953
  credentials: e,
912
954
  myArray: t,
913
955
  chunk: 80,
914
- fn_to_call: se
956
+ fn_to_call: ae
915
957
  }, (r) => {
916
- s && s(r);
958
+ n && n(r);
917
959
  }) : (console.warn(
918
960
  "La liste d'objects dans la fonction _3DSpace_download_multidoc est vide ou non défini."
919
- ), n && n(
961
+ ), s && s(
920
962
  "La liste d'objects dans la fonction _3DSpace_download_multidoc est vide ou non défini."
921
963
  ));
922
964
  }
923
- function se(e, t, s = void 0, n = void 0, i = void 0) {
965
+ function ae(e, t, n = void 0, s = void 0, i = void 0) {
924
966
  const r = [];
925
967
  t.forEach((c) => {
926
968
  r.push({
@@ -941,9 +983,9 @@ function se(e, t, s = void 0, n = void 0, i = void 0) {
941
983
  type: "json",
942
984
  onComplete(c) {
943
985
  const d = c.data;
944
- c.success === !0 && (s && s(), d.forEach((p) => {
986
+ c.success === !0 && (n && n(), d.forEach((u) => {
945
987
  try {
946
- const u = p.dataelements.fileName, f = p.dataelements.ticketURL;
988
+ const p = u.dataelements.fileName, f = u.dataelements.ticketURL;
947
989
  m(f, {
948
990
  onComplete: (l, g) => {
949
991
  let y;
@@ -952,10 +994,10 @@ function se(e, t, s = void 0, n = void 0, i = void 0) {
952
994
  } catch {
953
995
  y = l.blob();
954
996
  }
955
- n && n({
956
- objectId: p.id,
997
+ s && s({
998
+ objectId: u.id,
957
999
  headers: g,
958
- fileName: u,
1000
+ fileName: p,
959
1001
  data: y
960
1002
  });
961
1003
  },
@@ -963,8 +1005,8 @@ function se(e, t, s = void 0, n = void 0, i = void 0) {
963
1005
  console.log("error http", l);
964
1006
  }
965
1007
  });
966
- } catch (u) {
967
- console.log(u), i && i(u);
1008
+ } catch (p) {
1009
+ console.log(p), i && i(p);
968
1010
  }
969
1011
  }));
970
1012
  },
@@ -973,7 +1015,7 @@ function se(e, t, s = void 0, n = void 0, i = void 0) {
973
1015
  }
974
1016
  });
975
1017
  }
976
- function Me(e, t, s = void 0, n = void 0) {
1018
+ function Ge(e, t, n = void 0, s = void 0) {
977
1019
  return new Promise((i) => {
978
1020
  if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
979
1021
  const r = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
@@ -994,17 +1036,17 @@ function Me(e, t, s = void 0, n = void 0) {
994
1036
  }),
995
1037
  type: "json",
996
1038
  onComplete(a) {
997
- s && s(a);
1039
+ n && n(a);
998
1040
  },
999
1041
  onFailure(a) {
1000
- n && n(a);
1042
+ s && s(a);
1001
1043
  }
1002
1044
  };
1003
1045
  m(r, o);
1004
1046
  }
1005
1047
  });
1006
1048
  }
1007
- function Je(e, t, s, n = void 0, i = void 0) {
1049
+ function Ee(e, t, n, s = void 0, i = void 0) {
1008
1050
  return new Promise((r) => {
1009
1051
  if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
1010
1052
  const o = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
@@ -1020,13 +1062,13 @@ function Je(e, t, s, n = void 0, i = void 0) {
1020
1062
  data: [
1021
1063
  {
1022
1064
  id: t,
1023
- nextState: s
1065
+ nextState: n
1024
1066
  }
1025
1067
  ]
1026
1068
  }),
1027
1069
  type: "json",
1028
1070
  onComplete(c) {
1029
- n && n(c);
1071
+ s && s(c);
1030
1072
  },
1031
1073
  onFailure(c) {
1032
1074
  i && i(c);
@@ -1036,7 +1078,7 @@ function Je(e, t, s, n = void 0, i = void 0) {
1036
1078
  }
1037
1079
  });
1038
1080
  }
1039
- function Ge(e, t, s = void 0, n = void 0) {
1081
+ function Ke(e, t, n = void 0, s = void 0) {
1040
1082
  return new Promise((i) => {
1041
1083
  if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
1042
1084
  const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
@@ -1067,17 +1109,17 @@ function Ge(e, t, s = void 0, n = void 0) {
1067
1109
  }),
1068
1110
  type: "json",
1069
1111
  onComplete(a) {
1070
- s && s(a);
1112
+ n && n(a);
1071
1113
  },
1072
1114
  onFailure(a) {
1073
- n && n(a);
1115
+ s && s(a);
1074
1116
  }
1075
1117
  };
1076
1118
  m(r, o);
1077
1119
  }
1078
1120
  });
1079
1121
  }
1080
- function Ee(e, t, s = void 0, n = void 0) {
1122
+ function Be(e, t, n = void 0, s = void 0) {
1081
1123
  return new Promise((i) => {
1082
1124
  if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
1083
1125
  const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
@@ -1114,17 +1156,17 @@ function Ee(e, t, s = void 0, n = void 0) {
1114
1156
  }),
1115
1157
  type: "json",
1116
1158
  onComplete(a) {
1117
- s && s(a);
1159
+ n && n(a);
1118
1160
  },
1119
1161
  onFailure(a) {
1120
- n && n(a);
1162
+ s && s(a);
1121
1163
  }
1122
1164
  };
1123
1165
  m(r, o);
1124
1166
  }
1125
1167
  });
1126
1168
  }
1127
- function Ke(e, t, s, n = void 0, i = void 0) {
1169
+ function Ve(e, t, n, s = void 0, i = void 0) {
1128
1170
  return new Promise((r) => {
1129
1171
  if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
1130
1172
  const o = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
@@ -1150,9 +1192,9 @@ function Ke(e, t, s, n = void 0, i = void 0) {
1150
1192
  data: [
1151
1193
  {
1152
1194
  physicalid: t,
1153
- proposedRevision: s,
1195
+ proposedRevision: n,
1154
1196
  modifiedAttributes: {
1155
- revision: s
1197
+ revision: n
1156
1198
  }
1157
1199
  }
1158
1200
  ],
@@ -1161,7 +1203,7 @@ function Ke(e, t, s, n = void 0, i = void 0) {
1161
1203
  }),
1162
1204
  type: "json",
1163
1205
  onComplete(c) {
1164
- n && n(c);
1206
+ s && s(c);
1165
1207
  },
1166
1208
  onFailure(c) {
1167
1209
  i && i(c);
@@ -1171,20 +1213,20 @@ function Ke(e, t, s, n = void 0, i = void 0) {
1171
1213
  }
1172
1214
  });
1173
1215
  }
1174
- function Be(e, t, s, n, i = void 0, r = void 0) {
1216
+ function We(e, t, n, s, i = void 0, r = void 0) {
1175
1217
  return new Promise((o) => {
1176
1218
  const a = `${e.space}/resources/v1/modeler/dsbks/dsbks:Bookmark`;
1177
1219
  let c = {
1178
1220
  attributes: {
1179
- title: s,
1180
- description: n,
1221
+ title: n,
1222
+ description: s,
1181
1223
  inheritedAccess: "no"
1182
1224
  }
1183
1225
  }, d = {
1184
1226
  items: []
1185
1227
  };
1186
1228
  t && (d.parentId = t), d.items.push(c);
1187
- let p = {
1229
+ let u = {
1188
1230
  method: "POST",
1189
1231
  headers: {
1190
1232
  Accept: "application/json",
@@ -1194,17 +1236,17 @@ function Be(e, t, s, n, i = void 0, r = void 0) {
1194
1236
  },
1195
1237
  data: JSON.stringify(d),
1196
1238
  type: "json",
1197
- onComplete(u) {
1198
- i && i(u);
1239
+ onComplete(p) {
1240
+ i && i(p);
1199
1241
  },
1200
- onFailure(u) {
1201
- r && r(u);
1242
+ onFailure(p) {
1243
+ r && r(p);
1202
1244
  }
1203
1245
  };
1204
- m(a, p);
1246
+ m(a, u);
1205
1247
  });
1206
1248
  }
1207
- function Ve(e, t, s, n, i = void 0, r = void 0) {
1249
+ function Xe(e, t, n, s, i = void 0, r = void 0) {
1208
1250
  return console.log("credentials", e), new Promise((o) => {
1209
1251
  `${e.space}`, JSON.stringify({
1210
1252
  csrf: {
@@ -1218,8 +1260,8 @@ function Ve(e, t, s, n, i = void 0, r = void 0) {
1218
1260
  relId: t,
1219
1261
  id: t,
1220
1262
  dataelements: {
1221
- personList: s,
1222
- eventsList: n
1263
+ personList: n,
1264
+ eventsList: s
1223
1265
  },
1224
1266
  tenant: e.tenant
1225
1267
  }
@@ -1228,12 +1270,12 @@ function Ve(e, t, s, n, i = void 0, r = void 0) {
1228
1270
  });
1229
1271
  }
1230
1272
  //!SECTION
1231
- function We(e, t = void 0, s = void 0) {
1232
- const n = {
1273
+ function qe(e, t = void 0, n = void 0) {
1274
+ const s = {
1233
1275
  base: `${e.space}`,
1234
1276
  uri: "/resources/bps/cspaces",
1235
1277
  optTenant: `tenant=${e.tenant}`
1236
- }, i = `${n.base}${n.uri}?${n.optTenant}`;
1278
+ }, i = `${s.base}${s.uri}?${s.optTenant}`;
1237
1279
  m(i, {
1238
1280
  method: "GET",
1239
1281
  headers: {
@@ -1245,11 +1287,11 @@ function We(e, t = void 0, s = void 0) {
1245
1287
  t && t(a, o);
1246
1288
  },
1247
1289
  onFailure(r, o, a) {
1248
- s && s({ response: r, headers: o, xhr: a });
1290
+ n && n({ response: r, headers: o, xhr: a });
1249
1291
  }
1250
1292
  });
1251
1293
  }
1252
- function Xe(e, t, s, n) {
1294
+ function Ye(e, t, n, s) {
1253
1295
  x(
1254
1296
  e.space,
1255
1297
  t,
@@ -1257,42 +1299,42 @@ function Xe(e, t, s, n) {
1257
1299
  m(i, {
1258
1300
  header: { ENO_CSRF_TOKEN: e.token },
1259
1301
  onComplete: (r) => {
1260
- s && s(r);
1302
+ n && n(r);
1261
1303
  },
1262
1304
  onFailure: (r) => {
1263
- console.log("error http", r), n && n(r);
1305
+ console.log("error http", r), s && s(r);
1264
1306
  }
1265
1307
  });
1266
1308
  }
1267
1309
  );
1268
1310
  }
1269
- async function qe(e, t, s = void 0, n = void 0) {
1311
+ async function He(e, t, n = void 0, s = void 0) {
1270
1312
  return new Promise((i) => {
1271
1313
  x(e, t, (r) => {
1272
1314
  m(r, {
1273
- onComplete: (o, a, c) => (i(JSON.parse(o)), s && s(JSON.parse(o), a, c), i),
1315
+ onComplete: (o, a, c) => (i(JSON.parse(o)), n && n(JSON.parse(o), a, c), i),
1274
1316
  onFailure: (o, a, c) => {
1275
- n && n(o, a, c), console.log(o, a?.errormsg);
1317
+ s && s(o, a, c), console.log(o, a?.errormsg);
1276
1318
  }
1277
1319
  });
1278
1320
  });
1279
1321
  });
1280
1322
  }
1281
- function Ye(e, t, s, n = void 0, i = void 0) {
1323
+ function ze(e, t, n, s = void 0, i = void 0) {
1282
1324
  const r = new Blob([JSON.stringify(t)], { type: "text/plain" });
1283
1325
  k(
1284
1326
  e,
1285
- s,
1327
+ n,
1286
1328
  (o) => {
1287
1329
  const a = o.data[0].relateddata.files[0].id, c = o.data[0].dataelements.secondaryTitle !== "" ? o.data[0].dataelements.secondaryTitle : o.data[0].dataelements.title;
1288
- J(
1330
+ D(
1289
1331
  e,
1290
- s,
1332
+ n,
1291
1333
  a,
1292
1334
  r,
1293
1335
  c,
1294
1336
  (d) => {
1295
- n && n(d);
1337
+ s && s(d);
1296
1338
  },
1297
1339
  (d) => {
1298
1340
  i && i(d);
@@ -1301,94 +1343,94 @@ function Ye(e, t, s, n = void 0, i = void 0) {
1301
1343
  }
1302
1344
  );
1303
1345
  }
1304
- let E, K;
1305
- const P = [];
1306
- async function He(e, t = void 0, s = void 0) {
1346
+ let M, J;
1347
+ const U = [];
1348
+ async function Qe(e, t = void 0, n = void 0) {
1307
1349
  e.objID && e.objID !== "" ? k(
1308
1350
  e,
1309
- (n) => {
1310
- t && t(n);
1351
+ (s) => {
1352
+ t && t(s);
1311
1353
  },
1312
- (n) => {
1313
- s && s(n);
1354
+ (s) => {
1355
+ n && n(s);
1314
1356
  }
1315
1357
  ) : (e.objID === null || e.objID === "") && O(
1316
1358
  e,
1317
- (n) => {
1318
- t && t({ rep: n, msg: "Pas d'objID, ou invalide" });
1359
+ (s) => {
1360
+ t && t({ rep: s, msg: "Pas d'objID, ou invalide" });
1319
1361
  },
1320
- (n) => {
1321
- s && s({ msg: "Pas d'objID et erreur sur le Space", err: n });
1362
+ (s) => {
1363
+ n && n({ msg: "Pas d'objID et erreur sur le Space", err: s });
1322
1364
  }
1323
1365
  );
1324
1366
  }
1325
- async function ze(e, t = void 0, s = void 0) {
1326
- console.log("getDatasByTenant (getDocuments)", e), await G(
1367
+ async function Ze(e, t = void 0, n = void 0) {
1368
+ console.log("getDatasByTenant (getDocuments)", e), await L(
1327
1369
  e,
1328
- (n) => {
1370
+ (s) => {
1329
1371
  const i = {};
1330
- i.obj = n, console.log("getDatasByTenant (getDocuments) _datas", i), t && t?.(i);
1372
+ i.obj = s, console.log("getDatasByTenant (getDocuments) _datas", i), t && t?.(i);
1331
1373
  },
1332
- (n) => {
1333
- s && s?.(n);
1374
+ (s) => {
1375
+ n && n?.(s);
1334
1376
  }
1335
1377
  );
1336
1378
  }
1337
- function Qe(e, t = void 0, s = void 0) {
1338
- const n = [];
1379
+ function et(e, t = void 0, n = void 0) {
1380
+ const s = [];
1339
1381
  if (!e.objIds && !Array.isArray(e.objIds) && e.objIds.length === 0) {
1340
1382
  console.warn("la liste est vide ou n'est pas un tableau");
1341
1383
  return;
1342
1384
  }
1343
1385
  e.objIds.forEach((i, r) => {
1344
- G(
1386
+ L(
1345
1387
  e,
1346
1388
  i.objID,
1347
1389
  (o) => {
1348
- n.push({ [i.name]: o }), i.name === "dbProjets" && (E = o.affaires.map((a) => a.objectID), ie(e, K)), r === e.objIds.length - 1 && (t && t(n), delete e.objIds, delete e.datas);
1390
+ s.push({ [i.name]: o }), i.name === "dbProjets" && (M = o.affaires.map((a) => a.objectID), oe(e, J)), r === e.objIds.length - 1 && (t && t(s), delete e.objIds, delete e.datas);
1349
1391
  }
1350
1392
  );
1351
1393
  });
1352
1394
  }
1353
- function ie(e, t, s = void 0, n = void 0) {
1354
- ne(
1395
+ function oe(e, t, n = void 0, s = void 0) {
1396
+ ie(
1355
1397
  e,
1356
- E,
1398
+ M,
1357
1399
  (i) => {
1358
1400
  const r = [...t];
1359
- r.find((o) => o.objectID === i.objectId).data = i.data, K = r, P.push(i.data), s && s(P);
1401
+ r.find((o) => o.objectID === i.objectId).data = i.data, J = r, U.push(i.data), n && n(U);
1360
1402
  },
1361
1403
  (i) => {
1362
- n && (n(i), console.log(i));
1404
+ s && (s(i), console.log(i));
1363
1405
  }
1364
1406
  );
1365
1407
  }
1366
- const ae = "FA35FB9B177A280065800EA0000F599C", oe = [
1408
+ const re = "FA35FB9B177A280065800EA0000F599C", ce = [
1367
1409
  "swym",
1368
1410
  "3dspace",
1369
1411
  "drive",
1370
1412
  "usersgroup",
1371
1413
  "3dplan",
1372
1414
  "dashboard"
1373
- ], B = {
1415
+ ], G = {
1374
1416
  how: "ds6w:how",
1375
1417
  what: "ds6w:what",
1376
1418
  when: "ds6w:when",
1377
1419
  where: "ds6w:where",
1378
1420
  who: "ds6w:who",
1379
1421
  why: "ds6w:why"
1380
- }, re = {
1381
- objId: ae,
1422
+ }, de = {
1423
+ objId: re,
1382
1424
  pred: "who",
1383
1425
  order_by: "desc",
1384
1426
  tag: "testTag"
1385
1427
  };
1386
- function Ze(e, t, s = void 0, n = void 0) {
1428
+ function tt(e, t, n = void 0, s = void 0) {
1387
1429
  const { space: i, tenant: r } = e, { objId: o, pred: a, tag: c } = t, d = {
1388
1430
  uri: "/resources/6w/tags",
1389
1431
  otpCTX: "SecurityContext=preferred",
1390
1432
  optTenant: `tenant=${r}`
1391
- }, p = `${i}${d.uri}?${d.otpCTX}&${d.optTenant}`, u = {
1433
+ }, u = `${i}${d.uri}?${d.otpCTX}&${d.optTenant}`, p = {
1392
1434
  tag: [
1393
1435
  {
1394
1436
  subject: [
@@ -1396,54 +1438,54 @@ function Ze(e, t, s = void 0, n = void 0) {
1396
1438
  uri: `pid://${o}`
1397
1439
  }
1398
1440
  ],
1399
- predicate: B[a],
1441
+ predicate: G[a],
1400
1442
  object: {
1401
1443
  literal: c
1402
1444
  }
1403
1445
  }
1404
1446
  ]
1405
1447
  };
1406
- m(p, {
1448
+ m(u, {
1407
1449
  method: "PUT",
1408
1450
  headers: {
1409
1451
  "Content-Type": "application/json",
1410
1452
  Accept: "application/json"
1411
1453
  },
1412
- data: JSON.stringify(u),
1454
+ data: JSON.stringify(p),
1413
1455
  onComplete(f) {
1414
1456
  JSON.parse(f);
1415
1457
  const l = {};
1416
1458
  setTimeout(() => {
1417
- M(
1459
+ R(
1418
1460
  e,
1419
1461
  o,
1420
1462
  (g) => {
1421
1463
  const y = g.data[0].dataelements.title, h = g.data[0].dataelements.fileExtension !== void 0 ? g.data[0].dataelements.fileExtension : "", S = g.data[0].relateddata.ownerInfo[0].dataelements.name;
1422
- l.name = y, l.ext = h, l.createBy = S, t.info = { ...l }, ce(
1464
+ l.name = y, l.ext = h, l.createBy = S, t.info = { ...l }, ue(
1423
1465
  e,
1424
1466
  t,
1425
1467
  (_) => {
1426
- s && s(_);
1468
+ n && n(_);
1427
1469
  },
1428
1470
  (_) => {
1429
- n && n(_);
1471
+ s && s(_);
1430
1472
  }
1431
1473
  );
1432
1474
  },
1433
1475
  (g, y) => {
1434
1476
  const h = g;
1435
- h.msg = y.errormsg, h.errCode = y.errorcode, console.log("❌ sendDirectMessage => ", h), n && n(h);
1477
+ h.msg = y.errormsg, h.errCode = y.errorcode, console.log("❌ sendDirectMessage => ", h), s && s(h);
1436
1478
  }
1437
1479
  );
1438
1480
  }, 2e3);
1439
1481
  },
1440
1482
  onFailure(f, l) {
1441
1483
  const g = f;
1442
- g.msg = l.errormsg, g.errCode = l.errorcode, console.log("❌ sendDirectMessage => ", g), n && n(g);
1484
+ g.msg = l.errormsg, g.errCode = l.errorcode, console.log("❌ sendDirectMessage => ", g), s && s(g);
1443
1485
  }
1444
1486
  });
1445
1487
  }
1446
- function ce(e, t, s = void 0, n = void 0) {
1488
+ function ue(e, t, n = void 0, s = void 0) {
1447
1489
  console.log("obj ", t);
1448
1490
  const i = t.info.name, r = {
1449
1491
  baseUrl: `https://${e.tenant.toLowerCase()}-eu1-fedsearch.3dexperience.3ds.com`,
@@ -1451,7 +1493,7 @@ function ce(e, t, s = void 0, n = void 0) {
1451
1493
  }, o = `${r.baseUrl}${r.uri}`, a = {
1452
1494
  "Content-Type": "application/json",
1453
1495
  Accept: "application/json,text/javascript,*/*"
1454
- }, c = L(), d = {
1496
+ }, c = B(), d = {
1455
1497
  with_indexing_date: !0,
1456
1498
  with_synthesis: !0,
1457
1499
  with_nls: !1,
@@ -1493,7 +1535,7 @@ function ce(e, t, s = void 0, n = void 0) {
1493
1535
  }
1494
1536
  },
1495
1537
  select_exclude_synthesis: ["ds6w:what/ds6w:topic"],
1496
- order_by: re.order_by,
1538
+ order_by: de.order_by,
1497
1539
  order_field: "relevance",
1498
1540
  select_snippets: [
1499
1541
  "ds6w:snippet",
@@ -1504,7 +1546,7 @@ function ce(e, t, s = void 0, n = void 0) {
1504
1546
  ],
1505
1547
  nresults: 40,
1506
1548
  start: "0",
1507
- source: oe,
1549
+ source: ce,
1508
1550
  tenant: e.tenant,
1509
1551
  login: {
1510
1552
  "3dspace": {
@@ -1516,17 +1558,17 @@ function ce(e, t, s = void 0, n = void 0) {
1516
1558
  method: "POST",
1517
1559
  headers: a,
1518
1560
  data: JSON.stringify(d),
1519
- onComplete(p) {
1520
- const u = JSON.parse(p);
1521
- s(u);
1561
+ onComplete(u) {
1562
+ const p = JSON.parse(u);
1563
+ n(p);
1522
1564
  },
1523
- onFailure(p, u) {
1524
- const f = p;
1525
- f.msg = u.errormsg, f.errCode = u.errorcode, console.log("❌ sendDirectMessage => ", f), n && n(f), console.log("Erreur de recuperation d'id du doc et des tags", p);
1565
+ onFailure(u, p) {
1566
+ const f = u;
1567
+ f.msg = p.errormsg, f.errCode = p.errorcode, console.log("❌ sendDirectMessage => ", f), s && s(f), console.log("Erreur de recuperation d'id du doc et des tags", u);
1526
1568
  }
1527
1569
  });
1528
1570
  }
1529
- function et(e, t, s = void 0, n = void 0) {
1571
+ function nt(e, t, n = void 0, s = void 0) {
1530
1572
  const { objId: i, pred: r, tag: o } = t, a = {
1531
1573
  uri: "/resources/6w/tags",
1532
1574
  otpCTX: "SecurityContext=preferred",
@@ -1539,7 +1581,7 @@ function et(e, t, s = void 0, n = void 0) {
1539
1581
  uri: `pid://${i}`
1540
1582
  }
1541
1583
  ],
1542
- predicate: B[r],
1584
+ predicate: G[r],
1543
1585
  object: {
1544
1586
  literal: o
1545
1587
  }
@@ -1553,16 +1595,16 @@ function et(e, t, s = void 0, n = void 0) {
1553
1595
  "Content-Type": "application/json",
1554
1596
  Accept: "application/json,text/javascript,*/*"
1555
1597
  },
1556
- onComplete(p) {
1557
- s && s(p);
1598
+ onComplete(u) {
1599
+ n && n(u);
1558
1600
  },
1559
- onFailure(p, u) {
1560
- const f = p;
1561
- f.msg = u.errormsg, f.errCode = u.errorcode, console.log("❌ sendDirectMessage => ", f), n && n(f);
1601
+ onFailure(u, p) {
1602
+ const f = u;
1603
+ f.msg = p.errormsg, f.errCode = p.errorcode, console.log("❌ sendDirectMessage => ", f), s && s(f);
1562
1604
  }
1563
1605
  });
1564
1606
  }
1565
- function tt(e, t = "", s = void 0, n = void 0) {
1607
+ function st(e, t = "", n = void 0, s = void 0) {
1566
1608
  const { space: i } = e;
1567
1609
  if (t === "")
1568
1610
  return;
@@ -1577,29 +1619,29 @@ function tt(e, t = "", s = void 0, n = void 0) {
1577
1619
  headers: o,
1578
1620
  data: c,
1579
1621
  onComplete(d) {
1580
- s && s(JSON.parse(d));
1622
+ n && n(JSON.parse(d));
1581
1623
  },
1582
- onFailure(d, p) {
1583
- const u = d;
1584
- u.msg = p.error, n && n(u);
1624
+ onFailure(d, u) {
1625
+ const p = d;
1626
+ p.msg = u.error, s && s(p);
1585
1627
  }
1586
1628
  });
1587
1629
  }
1588
- async function C(e, t = void 0, s = void 0) {
1589
- const n = e.space + "/api/index/tk";
1590
- return m(n, {
1630
+ async function w(e, t = void 0, n = void 0) {
1631
+ const s = e.space + "/api/index/tk";
1632
+ return m(s, {
1591
1633
  onComplete(i, r, o) {
1592
1634
  const a = JSON.parse(i);
1593
1635
  if (t)
1594
1636
  return t(a), e.token = a?.result?.ServerToken;
1595
1637
  },
1596
1638
  onFailure(i) {
1597
- s && s(i);
1639
+ n && n(i);
1598
1640
  }
1599
1641
  });
1600
1642
  }
1601
- function nt(e, t = void 0, s = void 0) {
1602
- const n = `${e.space}/api/exalead/whatsnew`, i = {
1643
+ function it(e, t = void 0, n = void 0) {
1644
+ const s = `${e.space}/api/exalead/whatsnew`, i = {
1603
1645
  params: {
1604
1646
  community_id: null,
1605
1647
  hash_key: null,
@@ -1609,8 +1651,8 @@ function nt(e, t = void 0, s = void 0) {
1609
1651
  start: 0
1610
1652
  }
1611
1653
  };
1612
- C(e, (r) => {
1613
- m(n, {
1654
+ w(e, (r) => {
1655
+ m(s, {
1614
1656
  method: "POST",
1615
1657
  headers: {
1616
1658
  "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken,
@@ -1623,13 +1665,13 @@ function nt(e, t = void 0, s = void 0) {
1623
1665
  t && t(o, a);
1624
1666
  },
1625
1667
  onFailure(o, a) {
1626
- s && s(o, a);
1668
+ n && n(o, a);
1627
1669
  }
1628
1670
  });
1629
1671
  });
1630
1672
  }
1631
- function st(e, t = void 0, s = void 0) {
1632
- const n = `${e.space}/api/Recommendation/getpeoplefamiliartocurrentuser`, i = {
1673
+ function at(e, t = void 0, n = void 0) {
1674
+ const s = `${e.space}/api/Recommendation/getpeoplefamiliartocurrentuser`, i = {
1633
1675
  params: {
1634
1676
  idsToFilterArr: [],
1635
1677
  mode: "offline",
@@ -1638,8 +1680,8 @@ function st(e, t = void 0, s = void 0) {
1638
1680
  maxNbOfCommonElements: "5"
1639
1681
  }
1640
1682
  };
1641
- C(e, (r) => {
1642
- m(n, {
1683
+ w(e, (r) => {
1684
+ m(s, {
1643
1685
  method: "POST",
1644
1686
  headers: {
1645
1687
  "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken,
@@ -1653,28 +1695,28 @@ function st(e, t = void 0, s = void 0) {
1653
1695
  t && t(c, o);
1654
1696
  },
1655
1697
  onFailure(o, a) {
1656
- s && s(o, a);
1698
+ n && n(o, a);
1657
1699
  }
1658
1700
  });
1659
1701
  });
1660
1702
  }
1661
- function it(e, t = void 0, s = void 0) {
1662
- const n = {
1703
+ function ot(e, t = void 0, n = void 0) {
1704
+ const s = {
1663
1705
  base: e.space,
1664
1706
  uri: "/api/community/listmycommunities",
1665
1707
  limit: `/limit/${e.limit ? e.limit : 500}`,
1666
1708
  page: `/page/${e.page ? e.page : "1"}`
1667
- }, i = `${n.base}${n.uri}${n.limit}${n.page}`, r = [];
1668
- C(e, (o) => {
1709
+ }, i = `${s.base}${s.uri}${s.limit}${s.page}`, r = [];
1710
+ w(e, (o) => {
1669
1711
  m(i, {
1670
1712
  method: "GET",
1671
1713
  headers: {
1672
1714
  "X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
1673
1715
  },
1674
1716
  onComplete(a, c, d) {
1675
- const u = JSON.parse(a).result;
1717
+ const p = JSON.parse(a).result;
1676
1718
  let f = 0;
1677
- u.forEach((l) => {
1719
+ p.forEach((l) => {
1678
1720
  const g = {
1679
1721
  description: l.description,
1680
1722
  id: l.id,
@@ -1683,24 +1725,24 @@ function it(e, t = void 0, s = void 0) {
1683
1725
  role: l.role,
1684
1726
  access: l.access
1685
1727
  };
1686
- de(
1728
+ pe(
1687
1729
  e,
1688
1730
  l.id,
1689
1731
  (y) => {
1690
- f++, g.members = y, r.push(g), f === u.length && t && t(r);
1732
+ f++, g.members = y, r.push(g), f === p.length && t && t(r);
1691
1733
  },
1692
- (y) => s(y)
1734
+ (y) => n(y)
1693
1735
  );
1694
1736
  });
1695
1737
  },
1696
1738
  onFailure(a, c) {
1697
1739
  const d = a;
1698
- d.status = c.status, d.response = c.errormsg, s && s(d);
1740
+ d.status = c.status, d.response = c.errormsg, n && n(d);
1699
1741
  }
1700
1742
  });
1701
1743
  });
1702
1744
  }
1703
- function de(e, t, s, n) {
1745
+ function pe(e, t, n, s) {
1704
1746
  const i = `${e.space}/api/community/listmembers`, r = {
1705
1747
  params: {
1706
1748
  page: e.page ? e.page : 1,
@@ -1708,7 +1750,7 @@ function de(e, t, s, n) {
1708
1750
  community_id: t
1709
1751
  }
1710
1752
  };
1711
- C(e, (o) => {
1753
+ w(e, (o) => {
1712
1754
  m(i, {
1713
1755
  method: "POST",
1714
1756
  headers: {
@@ -1719,20 +1761,20 @@ function de(e, t, s, n) {
1719
1761
  data: JSON.stringify(r),
1720
1762
  type: "json",
1721
1763
  onComplete(a, c, d) {
1722
- s && s(a);
1764
+ n && n(a);
1723
1765
  },
1724
1766
  onFailure(a, c) {
1725
1767
  const d = a;
1726
- d.status = c.status, d.response = c.errormsg, n && n(d);
1768
+ d.status = c.status, d.response = c.errormsg, s && s(d);
1727
1769
  }
1728
1770
  });
1729
1771
  });
1730
1772
  }
1731
- function at(e, t = void 0, s = void 0) {
1732
- const n = "YXdA5x4DSUKtlAi2wmnyTA";
1733
- e.commu_id || (e.commu_id = n);
1773
+ function rt(e, t = void 0, n = void 0) {
1774
+ const s = "YXdA5x4DSUKtlAi2wmnyTA";
1775
+ e.commu_id || (e.commu_id = s);
1734
1776
  const i = `${e.space}/api/v2/communities/${e.commu_id}/ideas/statuses`;
1735
- C(e, (r) => {
1777
+ w(e, (r) => {
1736
1778
  m(i, {
1737
1779
  method: "GET",
1738
1780
  headers: {
@@ -1746,12 +1788,12 @@ function at(e, t = void 0, s = void 0) {
1746
1788
  },
1747
1789
  onFailure(o, a) {
1748
1790
  const c = o;
1749
- c.status = a.status, c.response = a.errormsg, s && s(c);
1791
+ c.status = a.status, c.response = a.errormsg, n && n(c);
1750
1792
  }
1751
1793
  });
1752
1794
  });
1753
1795
  }
1754
- function ot(e, t, s = void 0, n = void 0) {
1796
+ function ct(e, t, n = void 0, s = void 0) {
1755
1797
  const { listAllContacts: i, currentUser: r } = e;
1756
1798
  console.log("__listAllContacts", i.hits);
1757
1799
  const o = `${e.space}/api/directmessages`, a = {
@@ -1760,43 +1802,43 @@ function ot(e, t, s = void 0, n = void 0) {
1760
1802
  id_msg: "",
1761
1803
  senderId: e.currentUser.login,
1762
1804
  senderName: `${e.currentUser.first_name} ${e.currentUser.last_name}`,
1763
- msg: ue(t.msg)
1805
+ msg: fe(t.msg)
1764
1806
  };
1765
1807
  let d = !1;
1766
- pe(
1808
+ le(
1767
1809
  a.users,
1768
- (p) => {
1769
- p !== void 0 && (c.id_msg = p.id, d = !0, R(e, c));
1810
+ (u) => {
1811
+ u !== void 0 && (c.id_msg = u.id, d = !0, j(e, c));
1770
1812
  },
1771
- (p) => {
1772
- d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", p), n && n(p), c.id_msg = "";
1813
+ (u) => {
1814
+ d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", u), s && s(u), c.id_msg = "";
1773
1815
  }
1774
1816
  ), d === !1 && setTimeout(() => {
1775
- d === !1 && C(e, (p) => {
1817
+ d === !1 && w(e, (u) => {
1776
1818
  m(o, {
1777
1819
  method: "POST",
1778
1820
  headers: {
1779
1821
  "Content-Type": "application/json",
1780
1822
  Accept: "application/json",
1781
- "X-DS-SWYM-CSRFTOKEN": p.result.ServerToken
1823
+ "X-DS-SWYM-CSRFTOKEN": u.result.ServerToken
1782
1824
  },
1783
1825
  data: JSON.stringify(a),
1784
1826
  type: "json",
1785
- onComplete(u, f, l) {
1786
- const g = u;
1787
- g.reponse = JSON.parse(l.response), g.status = l.status, s && s(g), c.id_msg = g.result.id, R(e, c);
1827
+ onComplete(p, f, l) {
1828
+ const g = p;
1829
+ g.reponse = JSON.parse(l.response), g.status = l.status, n && n(g), c.id_msg = g.result.id, j(e, c);
1788
1830
  },
1789
- onFailure(u, f, l) {
1790
- const g = u;
1791
- g.msg = f.errormsg, g.status = f.status, n && n(g);
1831
+ onFailure(p, f, l) {
1832
+ const g = p;
1833
+ g.msg = f.errormsg, g.status = f.status, s && s(g);
1792
1834
  }
1793
1835
  });
1794
1836
  });
1795
1837
  }, 500);
1796
1838
  }
1797
- function pe(e, t, s, n) {
1839
+ function le(e, t, n, s) {
1798
1840
  const i = `${e.space}/api/directmessages/lite?with_favorites=false`;
1799
- C(e, (r) => {
1841
+ w(e, (r) => {
1800
1842
  m(i, {
1801
1843
  method: "GET",
1802
1844
  headers: {
@@ -1805,25 +1847,25 @@ function pe(e, t, s, n) {
1805
1847
  },
1806
1848
  onComplete(o) {
1807
1849
  const a = JSON.parse(o), c = [];
1808
- a.result.forEach((u) => {
1809
- u.users = u.users.sort((f, l) => f.login.localeCompare(l.login)), u.users.length === t.length && c.push(u);
1850
+ a.result.forEach((p) => {
1851
+ p.users = p.users.sort((f, l) => f.login.localeCompare(l.login)), p.users.length === t.length && c.push(p);
1810
1852
  });
1811
- const d = t.sort(), p = c.find((u) => {
1853
+ const d = t.sort(), u = c.find((p) => {
1812
1854
  const f = [];
1813
- return u.users.forEach((l) => {
1855
+ return p.users.forEach((l) => {
1814
1856
  f.push(l.login);
1815
1857
  }), JSON.stringify(f) === JSON.stringify(d);
1816
1858
  });
1817
- s && p !== void 0 ? s(p) : (n || p === void 0) && n(p);
1859
+ n && u !== void 0 ? n(u) : (s || u === void 0) && s(u);
1818
1860
  },
1819
1861
  onFailure(o) {
1820
1862
  const a = o;
1821
- a.msg = headers.errormsg, a.errCode = headers.errorcode, console.log("❌ sendDirectMessageLite => ", a), n && n(a);
1863
+ a.msg = headers.errormsg, a.errCode = headers.errorcode, console.log("❌ sendDirectMessageLite => ", a), s && s(a);
1822
1864
  }
1823
1865
  });
1824
1866
  });
1825
1867
  }
1826
- function R(e, t, s = void 0, n = void 0) {
1868
+ function j(e, t, n = void 0, s = void 0) {
1827
1869
  const i = {
1828
1870
  base: e.space,
1829
1871
  uri: "/api/community",
@@ -1839,7 +1881,7 @@ function R(e, t, s = void 0, n = void 0) {
1839
1881
  parentCommentUri: null,
1840
1882
  richMessage: t.msg
1841
1883
  };
1842
- console.log("_3dSwym_sendDirectMessageData url ", r), C(e, (a) => {
1884
+ console.log("_3dSwym_sendDirectMessageData url ", r), w(e, (a) => {
1843
1885
  m(r, {
1844
1886
  method: "POST",
1845
1887
  headers: {
@@ -1849,25 +1891,25 @@ function R(e, t, s = void 0, n = void 0) {
1849
1891
  },
1850
1892
  data: JSON.stringify(o),
1851
1893
  type: "json",
1852
- onComplete(c, d, p) {
1853
- const u = c;
1854
- u.status = p.status, u.response = JSON.parse(p.response), console.log("✅ _3dSwym_sendDirectMessageData => ", u), s && s(u);
1894
+ onComplete(c, d, u) {
1895
+ const p = c;
1896
+ p.status = u.status, p.response = JSON.parse(u.response), console.log("✅ _3dSwym_sendDirectMessageData => ", p), n && n(p);
1855
1897
  },
1856
1898
  onFailure(c, d) {
1857
- const p = c;
1858
- p.msg = d.errormsg, p.errCode = d.errorcode, console.log("❌ sendDirectMessage => ", p), n && n(p);
1899
+ const u = c;
1900
+ u.msg = d.errormsg, u.errCode = d.errorcode, console.log("❌ sendDirectMessage => ", u), s && s(u);
1859
1901
  }
1860
1902
  });
1861
1903
  });
1862
1904
  }
1863
- function ue(e) {
1864
- const t = (/* @__PURE__ */ new Date()).toLocaleDateString(), s = (/* @__PURE__ */ new Date()).toLocaleTimeString();
1905
+ function fe(e) {
1906
+ const t = (/* @__PURE__ */ new Date()).toLocaleDateString(), n = (/* @__PURE__ */ new Date()).toLocaleTimeString();
1865
1907
  return `<p>${e} </p>
1866
1908
  <br/>
1867
1909
  <hr/>
1868
- <p><u>envoyer :</u>Le <b>${t} à ${s}</b></p>`;
1910
+ <p><u>envoyer :</u>Le <b>${t} à ${n}</b></p>`;
1869
1911
  }
1870
- function rt(e, t, s = void 0, n = void 0) {
1912
+ function dt(e, t, n = void 0, s = void 0) {
1871
1913
  const i = `${e.space}/api/idea/add`, r = e.swymCommunities.find(
1872
1914
  (c) => c.id === t.community_id
1873
1915
  ), o = e.swymCommunities.find(
@@ -1878,13 +1920,13 @@ function rt(e, t, s = void 0, n = void 0) {
1878
1920
  // String, le nom de l'affaire
1879
1921
  community_id: r?.id !== void 0 ? r.id : o.id,
1880
1922
  // String, l'id de la communauté
1881
- message: le(t.text_html),
1923
+ message: me(t.text_html),
1882
1924
  // STRING => le contenue du message doit être au format HTML
1883
1925
  published: 1
1884
1926
  // 1 publier, 0 non publier
1885
1927
  }
1886
1928
  };
1887
- C(e, (c) => {
1929
+ w(e, (c) => {
1888
1930
  const d = {
1889
1931
  "Content-type": "application/json;charset=UTF-8",
1890
1932
  Accept: "application/json",
@@ -1895,22 +1937,22 @@ function rt(e, t, s = void 0, n = void 0) {
1895
1937
  headers: d,
1896
1938
  data: JSON.stringify(a),
1897
1939
  type: "json",
1898
- onComplete(p, u, f) {
1899
- const l = JSON.parse(p);
1900
- l.status = f.status, l.response = f.response, s && s(l);
1940
+ onComplete(u, p, f) {
1941
+ const l = JSON.parse(u);
1942
+ l.status = f.status, l.response = f.response, n && n(l);
1901
1943
  },
1902
- onFailure(p, u, f) {
1903
- const l = p;
1904
- l.status = u.status, l.response = u.errormsg, n && n(l);
1944
+ onFailure(u, p, f) {
1945
+ const l = u;
1946
+ l.status = p.status, l.response = p.errormsg, s && s(l);
1905
1947
  }
1906
1948
  });
1907
1949
  });
1908
1950
  }
1909
- function ct(e, t = void 0, s = void 0) {
1910
- const n = { base: e.space, uri: "/api/idea/add" };
1951
+ function ut(e, t = void 0, n = void 0) {
1952
+ const s = { base: e.space, uri: "/api/idea/add" };
1911
1953
  if (!Array.isArray(e.swymCommunities)) {
1912
1954
  const o = "☠️ swymCommunities doit être un tableau d'objets de communautés";
1913
- throw new Error(`Erreur sur cette requête : ${n.base + n.uri}`, {
1955
+ throw new Error(`Erreur sur cette requête : ${s.base + s.uri}`, {
1914
1956
  cause: o
1915
1957
  });
1916
1958
  }
@@ -1918,19 +1960,19 @@ function ct(e, t = void 0, s = void 0) {
1918
1960
  (o) => o.id === e.community_id
1919
1961
  ) === -1) {
1920
1962
  const o = "la communauté n'existe pas dans la liste des communautés du Swym";
1921
- throw new Error(`Erreur sur cette requête : ${n.base + n.uri}`, {
1963
+ throw new Error(`Erreur sur cette requête : ${s.base + s.uri}`, {
1922
1964
  cause: o
1923
1965
  });
1924
1966
  }
1925
1967
  if (e.community_id && e.community_id === "") {
1926
1968
  const o = "☠️ community_id doit être un String qui contient l'id de la communauté dans laquelle on souhaite publier l'idée.";
1927
- throw new Error(`Erreur sur cette requête : ${n.base + n.uri}`, {
1969
+ throw new Error(`Erreur sur cette requête : ${s.base + s.uri}`, {
1928
1970
  cause: o
1929
1971
  });
1930
1972
  }
1931
1973
  if (e.title && e.title === "") {
1932
1974
  const o = "☠️ title doit être un String.";
1933
- throw new Error(`Erreur sur cette requête : ${n.base + n.uri}`, {
1975
+ throw new Error(`Erreur sur cette requête : ${s.base + s.uri}`, {
1934
1976
  cause: o
1935
1977
  });
1936
1978
  }
@@ -1946,10 +1988,10 @@ function ct(e, t = void 0, s = void 0) {
1946
1988
  // 1 publier, 0 brouillon
1947
1989
  }
1948
1990
  };
1949
- C(e, (o) => {
1991
+ w(e, (o) => {
1950
1992
  if (!o)
1951
1993
  throw new Error(
1952
- `☠️ token n'est pas disponible pour cette requête : ${n.base + n.uri}`,
1994
+ `☠️ token n'est pas disponible pour cette requête : ${s.base + s.uri}`,
1953
1995
  {
1954
1996
  cause: o
1955
1997
  }
@@ -1962,31 +2004,31 @@ function ct(e, t = void 0, s = void 0) {
1962
2004
  },
1963
2005
  method: "POST",
1964
2006
  data: JSON.stringify(r),
1965
- onComplete(c, d, p) {
1966
- const u = { response: c };
1967
- typeof u.response == "string" && (u.response = JSON.parse(u.response)), u.status = p.status, t && t(u);
2007
+ onComplete(c, d, u) {
2008
+ const p = { response: c };
2009
+ typeof p.response == "string" && (p.response = JSON.parse(p.response)), p.status = u.status, t && t(p);
1968
2010
  },
1969
- onFailure(c, d, p) {
1970
- const u = JSON.parse(d), f = JSON.parse(c), l = new Error(
1971
- `Erreur sur cette requête : ${n.base + n.uri}`,
2011
+ onFailure(c, d, u) {
2012
+ const p = JSON.parse(d), f = JSON.parse(c), l = new Error(
2013
+ `Erreur sur cette requête : ${s.base + s.uri}`,
1972
2014
  {
1973
- cause: { head: u, rep: f }
2015
+ cause: { head: p, rep: f }
1974
2016
  }
1975
2017
  );
1976
- s && s(l);
2018
+ n && n(l);
1977
2019
  }
1978
2020
  };
1979
- m(n.base + n.uri, a);
2021
+ m(s.base + s.uri, a);
1980
2022
  });
1981
2023
  }
1982
- function dt(e, t, s = void 0, n = void 0) {
2024
+ function pt(e, t, n = void 0, s = void 0) {
1983
2025
  const i = `${e.space}/api/idea/delete`, r = {
1984
2026
  params: {
1985
2027
  community_id: t.community_id,
1986
2028
  ideationIds: [t.idee_id]
1987
2029
  }
1988
2030
  };
1989
- C(e, (o) => {
2031
+ w(e, (o) => {
1990
2032
  m(i, {
1991
2033
  method: "POST",
1992
2034
  headers: {
@@ -1997,28 +2039,28 @@ function dt(e, t, s = void 0, n = void 0) {
1997
2039
  data: JSON.stringify(r),
1998
2040
  type: "json",
1999
2041
  onComplete(a, c, d) {
2000
- s && s(a);
2042
+ n && n(a);
2001
2043
  },
2002
2044
  onFailure(a, c, d) {
2003
- const p = a;
2004
- p.status = c.status, p.response = c.errormsg, n && n(p);
2045
+ const u = a;
2046
+ u.status = c.status, u.response = c.errormsg, s && s(u);
2005
2047
  }
2006
2048
  });
2007
2049
  });
2008
2050
  }
2009
- function pt(e, t = void 0, s = void 0) {
2010
- const n = `${e.space}/api/idea/get`;
2051
+ function lt(e, t = void 0, n = void 0) {
2052
+ const s = `${e.space}/api/idea/get`;
2011
2053
  if (e.idPost === "") {
2012
2054
  const r = "☠️ idPost est vide, vous devez renseigner un identifiant de post";
2013
- throw new Error(`Erreur sur cette requête : ${n}`, { cause: r });
2055
+ throw new Error(`Erreur sur cette requête : ${s}`, { cause: r });
2014
2056
  }
2015
2057
  const i = {
2016
2058
  params: {
2017
2059
  id: e.idPost
2018
2060
  }
2019
2061
  };
2020
- C(e, (r) => {
2021
- m(n, {
2062
+ w(e, (r) => {
2063
+ m(s, {
2022
2064
  method: "POST",
2023
2065
  headers: {
2024
2066
  "Content-type": "application/json;charset=UTF-8",
@@ -2031,13 +2073,13 @@ function pt(e, t = void 0, s = void 0) {
2031
2073
  },
2032
2074
  onFailure(o) {
2033
2075
  const a = o;
2034
- a.status = headers.status, a.response = headers.errormsg, s && s(a);
2076
+ a.status = headers.status, a.response = headers.errormsg, n && n(a);
2035
2077
  }
2036
2078
  });
2037
2079
  });
2038
2080
  }
2039
- function ut(e, t, s) {
2040
- const n = {
2081
+ function ft(e, t, n) {
2082
+ const s = {
2041
2083
  base: `${e.space}/api/idea/edit`,
2042
2084
  uri: "/api/idea/edit"
2043
2085
  }, i = {
@@ -2061,24 +2103,24 @@ function ut(e, t, s) {
2061
2103
  },
2062
2104
  data: JSON.stringify(i),
2063
2105
  onComplete(a, c, d) {
2064
- const p = {
2106
+ const u = {
2065
2107
  response: typeof a == "string" ? JSON.parse(a) : a
2066
2108
  };
2067
- p.status = d.status, t && t(p);
2109
+ u.status = d.status, t && t(u);
2068
2110
  },
2069
2111
  onFailure(a) {
2070
- s && s(a);
2112
+ n && n(a);
2071
2113
  }
2072
2114
  };
2073
- m(n.base + n.uri, o);
2115
+ m(s.base + s.uri, o);
2074
2116
  });
2075
2117
  }
2076
- function lt(e, t, s = void 0, n = void 0) {
2118
+ function mt(e, t, n = void 0, s = void 0) {
2077
2119
  const { space: i } = e;
2078
2120
  let { community_id: r, limit: o, page: a, search: c } = t;
2079
- const d = [], p = 1;
2080
- let u = !1, f = 2;
2081
- a || (a = p), o || (o = 100);
2121
+ const d = [], u = 1;
2122
+ let p = !1, f = 2;
2123
+ a || (a = u), o || (o = 100);
2082
2124
  const l = {
2083
2125
  uri: "/api/idea/list",
2084
2126
  comId: `/community_id/${r}`,
@@ -2086,7 +2128,7 @@ function lt(e, t, s = void 0, n = void 0) {
2086
2128
  page: `/page/${a}`
2087
2129
  };
2088
2130
  let g = `${i}${l.uri}${l.comId}${l.limit}${l.page}`;
2089
- C(e, (y) => {
2131
+ w(e, (y) => {
2090
2132
  const h = (S) => {
2091
2133
  m(S, {
2092
2134
  method: "GET",
@@ -2094,36 +2136,36 @@ function lt(e, t, s = void 0, n = void 0) {
2094
2136
  "X-DS-SWYM-CSRFTOKEN": y.result.ServerToken
2095
2137
  },
2096
2138
  onComplete(_) {
2097
- const w = { response: JSON.parse(_) };
2098
- if (f = Math.ceil(Number(w.response.nb_result) / 100), _ && f >= a) {
2139
+ const C = { response: JSON.parse(_) };
2140
+ if (f = Math.ceil(Number(C.response.nb_result) / 100), _ && f >= a) {
2099
2141
  if (a++, l.page = `/page/${a}`, S = `${i}${l.uri}${l.comId}${l.limit}${l.page}`, !c)
2100
- d.push(w.response.result);
2142
+ d.push(C.response.result);
2101
2143
  else {
2102
- const T = w.response.result.find(
2103
- (j) => j.title.includes(c)
2144
+ const T = C.response.result.find(
2145
+ (E) => E.title.includes(c)
2104
2146
  );
2105
2147
  if (T) {
2106
- s(T);
2148
+ n(T);
2107
2149
  return;
2108
2150
  }
2109
2151
  }
2110
- if (s && f < a && !c) {
2111
- u = !0, s(d);
2152
+ if (n && f < a && !c) {
2153
+ p = !0, n(d);
2112
2154
  return;
2113
2155
  }
2114
2156
  h(S);
2115
2157
  }
2116
2158
  },
2117
- onFailure(_, w) {
2159
+ onFailure(_, C) {
2118
2160
  const T = _;
2119
- T.status = w.status, T.response = w.errormsg, n && n(T);
2161
+ T.status = C.status, T.response = C.errormsg, s && s(T);
2120
2162
  }
2121
2163
  });
2122
2164
  };
2123
- u || h(g);
2165
+ p || h(g);
2124
2166
  });
2125
2167
  }
2126
- function le(e) {
2168
+ function me(e) {
2127
2169
  return !e || e === "" ? `<h2><u>INFORMATIONS AFFAIRE :</u></h2>
2128
2170
  <p><u>|⚠️<em> Merci de respecter l&#39;écriture des tags, en MAJUSCULES, nom complet, pas de caractères</em></u></p>
2129
2171
  <p><u><em>|spéciaux, séparation par &#34;_&#34; si besoin !</em></u></p>
@@ -2198,10 +2240,10 @@ function le(e) {
2198
2240
  <p>
2199
2241
  </p>` : e;
2200
2242
  }
2201
- function ft(e, t = void 0, s = void 0) {
2202
- const n = e.space + "/api/user/getcurrent/";
2203
- C(e, (i) => {
2204
- m(n, {
2243
+ function gt(e, t = void 0, n = void 0) {
2244
+ const s = e.space + "/api/user/getcurrent/";
2245
+ w(e, (i) => {
2246
+ m(s, {
2205
2247
  method: "GET",
2206
2248
  headers: {
2207
2249
  "X-DS-SWYM-CSRFTOKEN": i.result.ServerToken
@@ -2212,14 +2254,14 @@ function ft(e, t = void 0, s = void 0) {
2212
2254
  },
2213
2255
  onFailure(r, o, a) {
2214
2256
  const c = { erreur: JSON.parse(r), headers: o, xhr: a };
2215
- s && s(c);
2257
+ n && n(c);
2216
2258
  }
2217
2259
  });
2218
2260
  });
2219
2261
  }
2220
- function mt(e, t, s = void 0, n = void 0) {
2262
+ function ht(e, t, n = void 0, s = void 0) {
2221
2263
  const i = e.space + "/api/user/find/login/" + t;
2222
- C(
2264
+ w(
2223
2265
  e,
2224
2266
  (r) => {
2225
2267
  m(i, {
@@ -2227,25 +2269,25 @@ function mt(e, t, s = void 0, n = void 0) {
2227
2269
  headers: { "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken },
2228
2270
  onComplete(o, a, c) {
2229
2271
  const d = JSON.parse(o);
2230
- s && s(d);
2272
+ n && n(d);
2231
2273
  },
2232
2274
  onFailure(o) {
2233
- n && n(o);
2275
+ s && s(o);
2234
2276
  }
2235
2277
  });
2236
2278
  },
2237
- n
2279
+ s
2238
2280
  );
2239
2281
  }
2240
- function gt(e, t = void 0, s = void 0) {
2241
- e.tenant && b(e, (n) => {
2242
- const i = n.services.find((r) => r.id === "businessprocess")?.url + "/api/v2";
2282
+ function yt(e, t = void 0, n = void 0) {
2283
+ e.tenant && b(e, (s) => {
2284
+ const i = s.services.find((r) => r.id === "businessprocess")?.url + "/api/v2";
2243
2285
  return t && t(i), i;
2244
2286
  });
2245
2287
  }
2246
- function ht(e, t = void 0, s = void 0) {
2247
- e.tenant && b(e, (n) => {
2248
- const i = n.services.find((a) => a.id === "3dpassport")?.url, r = n.services.find((a) => a.id === "businessprocess")?.url + "/api/v2", o = `${i}/login/?service=${r}/auth/cas`;
2288
+ function St(e, t = void 0, n = void 0) {
2289
+ e.tenant && b(e, (s) => {
2290
+ const i = s.services.find((a) => a.id === "3dpassport")?.url, r = s.services.find((a) => a.id === "businessprocess")?.url + "/api/v2", o = `${i}/login/?service=${r}/auth/cas`;
2249
2291
  m(o, {
2250
2292
  async onComplete(a) {
2251
2293
  const c = typeof a == "string" ? JSON.parse(a)?.x3ds_service_redirect_url : a?.x3ds_service_redirect_url;
@@ -2256,88 +2298,88 @@ function ht(e, t = void 0, s = void 0) {
2256
2298
  });
2257
2299
  },
2258
2300
  onFailure(a) {
2259
- s && s(a);
2301
+ n && n(a);
2260
2302
  }
2261
2303
  });
2262
2304
  });
2263
2305
  }
2264
- function yt(e, t = void 0, s = void 0) {
2306
+ function _t(e, t = void 0, n = void 0) {
2265
2307
  if (e.tenant) {
2266
- const n = e.tenant.toLowerCase();
2267
- fetch(`https://api.uixhome.fr/${n}/iterop/jwtuser`, {
2308
+ const s = e.tenant.toLowerCase();
2309
+ fetch(`https://api.uixhome.fr/${s}/iterop/jwtuser`, {
2268
2310
  method: "POST"
2269
2311
  }).then((i) => i.json()).then((i) => {
2270
2312
  t && t(i);
2271
2313
  }).catch((i) => {
2272
- s && s(i);
2314
+ n && n(i);
2273
2315
  });
2274
2316
  }
2275
2317
  }
2276
- async function St(e, t, s = void 0, n = void 0) {
2318
+ async function wt(e, t, n = void 0, s = void 0) {
2277
2319
  e.tenant && b(e, (i) => {
2278
2320
  const o = `${i.services.find((c) => c.id === "businessprocess")?.url + "/api/v2"}/identity/users`, a = e.tenant.toLowerCase();
2279
2321
  fetch(`https://api.uixhome.fr/${a}/iterop/listusers?t=${t}&s=${o}`, {
2280
2322
  method: "POST"
2281
2323
  }).then((c) => c.json()).then((c) => {
2282
- s && s(c);
2283
- }).catch((c) => {
2284
2324
  n && n(c);
2325
+ }).catch((c) => {
2326
+ s && s(c);
2285
2327
  });
2286
2328
  });
2287
2329
  }
2288
- async function _t(e, t, s = void 0, n = void 0) {
2330
+ async function Ct(e, t, n = void 0, s = void 0) {
2289
2331
  e.tenant && b(e, (i) => {
2290
2332
  const o = `${i.services.find((c) => c.id === "businessprocess")?.url + "/api/v2"}/repository/data/tables`, a = e.tenant.toLowerCase();
2291
2333
  fetch(`https://api.uixhome.fr/${a}/iterop/repository/data/tables?t=${t}&s=${o}`, {
2292
2334
  method: "GET"
2293
2335
  }).then((c) => c.json()).then((c) => {
2294
- s && s(c);
2295
- }).catch((c) => {
2296
2336
  n && n(c);
2337
+ }).catch((c) => {
2338
+ s && s(c);
2297
2339
  });
2298
2340
  });
2299
2341
  }
2300
- async function wt(e, t, s, n = void 0, i = void 0) {
2342
+ async function Tt(e, t, n, s = void 0, i = void 0) {
2301
2343
  if (e.tenant) {
2302
2344
  const r = e.tenant.toLowerCase();
2303
- fetch(`https://api.uixhome.fr/${r}/iterop/businesstable/${s}?t=${t}`, {
2345
+ fetch(`https://api.uixhome.fr/${r}/iterop/businesstable/${n}?t=${t}`, {
2304
2346
  method: "POST"
2305
2347
  }).then((o) => o.json()).then((o) => {
2306
- n && n(o);
2348
+ s && s(o);
2307
2349
  }).catch((o) => {
2308
2350
  i && i(o);
2309
2351
  });
2310
2352
  }
2311
2353
  }
2312
- async function Ct(e, t, s, n = void 0, i = void 0) {
2354
+ async function bt(e, t, n, s = void 0, i = void 0) {
2313
2355
  if (e.tenant) {
2314
2356
  const r = e.tenant.toLowerCase();
2315
- fetch(`https://api.uixhome.fr/${r}/iterop/businesstable/rows/${s}/?t=${t}`, {
2357
+ fetch(`https://api.uixhome.fr/${r}/iterop/businesstable/rows/${n}/?t=${t}`, {
2316
2358
  method: "POST"
2317
2359
  }).then((o) => o.json()).then((o) => {
2318
- n && n(o);
2360
+ s && s(o);
2319
2361
  }).catch((o) => {
2320
2362
  i && i(o);
2321
2363
  });
2322
2364
  }
2323
2365
  }
2324
- async function Tt(e, t, s, n, i = void 0, r = void 0) {
2366
+ async function Ot(e, t, n, s, i = void 0, r = void 0) {
2325
2367
  e.tenant && b(e, (o) => {
2326
2368
  o.services.find((c) => c.id === "businessprocess")?.url + "";
2327
2369
  const a = e.tenant.toLowerCase();
2328
- fetch(`https://api.uixhome.fr/${a}/iterop/businesstable/patch/rows/${s}/?t=${t}&b=${n}`, {
2370
+ fetch(`https://api.uixhome.fr/${a}/iterop/businesstable/patch/rows/${n}/?t=${t}&b=${s}`, {
2329
2371
  method: "POST"
2330
2372
  }).then((c) => c.json()).then((c) => {
2331
2373
  i && i(c);
2332
2374
  }).catch((c) => {
2333
- r && r(c, s, n);
2375
+ r && r(c, n, s);
2334
2376
  });
2335
2377
  });
2336
2378
  }
2337
- async function bt(e, t, s, n, i, r = void 0, o = void 0) {
2379
+ async function $t(e, t, n, s, i, r = void 0, o = void 0) {
2338
2380
  if (e.tenant) {
2339
- const a = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/search/rows/${s}?t=${t}&c=${encodeURIComponent(
2340
- n
2381
+ const a = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/search/rows/${n}?t=${t}&c=${encodeURIComponent(
2382
+ s
2341
2383
  )}&b=${encodeURIComponent(i)}`;
2342
2384
  fetch(a, {
2343
2385
  method: "POST"
@@ -2346,17 +2388,17 @@ async function bt(e, t, s, n, i, r = void 0, o = void 0) {
2346
2388
  }).catch((c) => {
2347
2389
  o && o({
2348
2390
  error: c,
2349
- tableId: s,
2350
- columns: n,
2391
+ tableId: n,
2392
+ columns: s,
2351
2393
  body: i
2352
2394
  });
2353
2395
  });
2354
2396
  }
2355
2397
  }
2356
- async function Ot(e, t, s, n, i = void 0, r = void 0) {
2398
+ async function It(e, t, n, s, i = void 0, r = void 0) {
2357
2399
  if (e.tenant) {
2358
- const o = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/update/${s}?t=${t}&b=${encodeURIComponent(
2359
- n
2400
+ const o = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/update/${n}?t=${t}&b=${encodeURIComponent(
2401
+ s
2360
2402
  )}`;
2361
2403
  fetch(o, {
2362
2404
  method: "POST"
@@ -2370,12 +2412,12 @@ async function Ot(e, t, s, n, i = void 0, r = void 0) {
2370
2412
  });
2371
2413
  }
2372
2414
  }
2373
- async function $t(e, t, s, n, i = void 0, r = void 0) {
2415
+ async function Nt(e, t, n, s, i = void 0, r = void 0) {
2374
2416
  e.tenant && b(e, (o) => {
2375
2417
  o.services.find((c) => c.id === "businessprocess")?.url + "";
2376
2418
  const a = e.tenant.toLowerCase();
2377
2419
  fetch(
2378
- `https://api.uixhome.fr/${a}/iterop/runtime/processes/${s}?t=${t}&b=${n}`,
2420
+ `https://api.uixhome.fr/${a}/iterop/runtime/processes/${n}?t=${t}&b=${s}`,
2379
2421
  {
2380
2422
  method: "POST"
2381
2423
  }
@@ -2386,28 +2428,28 @@ async function $t(e, t, s, n, i = void 0, r = void 0) {
2386
2428
  });
2387
2429
  });
2388
2430
  }
2389
- async function It(e, t, s, n = void 0, i = void 0) {
2431
+ async function vt(e, t, n, s = void 0, i = void 0) {
2390
2432
  e.tenant && b(e, (r) => {
2391
2433
  r.services.find((a) => a.id === "businessprocess")?.url + "";
2392
2434
  const o = e.tenant.toLowerCase();
2393
2435
  fetch(
2394
- `https://api.uixhome.fr/${o}/iterop/dependencytable/one/${s}/?t=${t}`,
2436
+ `https://api.uixhome.fr/${o}/iterop/dependencytable/one/${n}/?t=${t}`,
2395
2437
  {
2396
2438
  method: "POST"
2397
2439
  }
2398
2440
  ).then((a) => a.json()).then((a) => {
2399
- n && n(a);
2441
+ s && s(a);
2400
2442
  }).catch((a) => {
2401
2443
  i && i(a);
2402
2444
  });
2403
2445
  });
2404
2446
  }
2405
- async function vt(e, t, s, n, i, r = void 0, o = void 0) {
2447
+ async function kt(e, t, n, s, i, r = void 0, o = void 0) {
2406
2448
  e.tenant && b(e, (a) => {
2407
2449
  a.services.find((d) => d.id === "businessprocess")?.url + "";
2408
2450
  const c = e.tenant.toLowerCase();
2409
2451
  fetch(
2410
- `https://api.uixhome.fr/${c}/iterop/dependencytable/patch/${s}/?t=${t}&cli=${n}&b=${i}`,
2452
+ `https://api.uixhome.fr/${c}/iterop/dependencytable/patch/${n}/?t=${t}&cli=${s}&b=${i}`,
2411
2453
  {
2412
2454
  method: "POST"
2413
2455
  }
@@ -2418,12 +2460,12 @@ async function vt(e, t, s, n, i, r = void 0, o = void 0) {
2418
2460
  });
2419
2461
  });
2420
2462
  }
2421
- async function Nt(e, t, s, n, i = void 0, r = void 0) {
2463
+ async function At(e, t, n, s, i = void 0, r = void 0) {
2422
2464
  e.tenant && b(e, (o) => {
2423
2465
  o.services.find((c) => c.id === "businessprocess")?.url + "";
2424
2466
  const a = e.tenant.toLowerCase();
2425
2467
  fetch(
2426
- `https://api.uixhome.fr/${a}/iterop/dependencytable/put/${s}/?t=${t}&b=${n}`,
2468
+ `https://api.uixhome.fr/${a}/iterop/dependencytable/put/${n}/?t=${t}&b=${s}`,
2427
2469
  {
2428
2470
  method: "POST"
2429
2471
  }
@@ -2435,30 +2477,30 @@ async function Nt(e, t, s, n, i = void 0, r = void 0) {
2435
2477
  });
2436
2478
  }
2437
2479
  //!SECTION
2438
- async function kt(e, t, s, n = void 0, i = void 0) {
2480
+ async function Ft(e, t, n, s = void 0, i = void 0) {
2439
2481
  if (e.tenant) {
2440
2482
  const r = e.tenant.toLowerCase();
2441
2483
  fetch(
2442
- `https://api.uixhome.fr/${r}/iterop/list/one/${s}/?t=${t}`,
2484
+ `https://api.uixhome.fr/${r}/iterop/list/one/${n}/?t=${t}`,
2443
2485
  {
2444
2486
  method: "POST"
2445
2487
  }
2446
2488
  ).then((o) => o.json()).then((o) => {
2447
- n && n(o);
2489
+ s && s(o);
2448
2490
  }).catch((o) => {
2449
2491
  i && i(o);
2450
2492
  });
2451
2493
  }
2452
2494
  }
2453
2495
  //!SECTION
2454
- function At(e) {
2496
+ function xt(e) {
2455
2497
  const t = "Hello " + e;
2456
2498
  return console.log(t), t;
2457
2499
  }
2458
- function jt(e, t = void 0, s = void 0) {
2459
- return console.log("credentials", e), new Promise((n) => {
2500
+ function Ut(e, t = void 0, n = void 0) {
2501
+ return console.log("credentials", e), new Promise((s) => {
2460
2502
  if (e.token === "" && O(e), !e.space || e.space === "") {
2461
- const o = Y();
2503
+ const o = q();
2462
2504
  console.log("platformeInfo", o);
2463
2505
  }
2464
2506
  A(
@@ -2472,7 +2514,7 @@ function jt(e, t = void 0, s = void 0) {
2472
2514
  },
2473
2515
  !0
2474
2516
  );
2475
- const i = v.now().ts, r = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dsearch&platformId=${e.tenant}`;
2517
+ const i = $.now().ts, r = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dsearch&platformId=${e.tenant}`;
2476
2518
  m(r, {
2477
2519
  onComplete(o) {
2478
2520
  if (Array.isArray(JSON.parse(o))) {
@@ -2523,110 +2565,110 @@ function jt(e, t = void 0, s = void 0) {
2523
2565
  t && t(d);
2524
2566
  },
2525
2567
  onFailure(d) {
2526
- s && s(d);
2568
+ n && n(d);
2527
2569
  }
2528
2570
  });
2529
2571
  }
2530
2572
  },
2531
2573
  onFailure(o) {
2532
- s && s(o);
2574
+ n && n(o);
2533
2575
  }
2534
2576
  });
2535
2577
  });
2536
2578
  }
2537
2579
  export {
2538
- L as UUID,
2539
- jt as _3DSearch_usersGroup,
2540
- Le as _3DSpace_Create_Doc,
2541
- De as _3DSpace_Update_Doc,
2542
- Ve as _3DSpace_bookmark_addSubsciptions,
2543
- Be as _3DSpace_bookmark_newWorkspace,
2580
+ B as UUID,
2581
+ Ut as _3DSearch_usersGroup,
2582
+ Je as _3DSpace_Create_Doc,
2583
+ Me as _3DSpace_Update_Doc,
2584
+ Xe as _3DSpace_bookmark_addSubsciptions,
2585
+ We as _3DSpace_bookmark_newWorkspace,
2544
2586
  O as _3DSpace_csrf,
2545
- G as _3DSpace_download_doc,
2546
- ne as _3DSpace_download_multidoc,
2547
- J as _3DSpace_file_update,
2548
- te as _3DSpace_file_update_csr,
2549
- Re as _3DSpace_file_url_csr,
2587
+ L as _3DSpace_download_doc,
2588
+ ie as _3DSpace_download_multidoc,
2589
+ D as _3DSpace_file_update,
2590
+ ee as _3DSpace_file_update_csr,
2591
+ Le as _3DSpace_file_url_csr,
2550
2592
  k as _3DSpace_get_csrf,
2551
- M as _3DSpace_get_docInfo,
2552
- se as _3DSpace_get_downloadTicket_multidoc,
2553
- Pe as _3DSpace_get_multiDocInfo,
2593
+ R as _3DSpace_get_docInfo,
2594
+ ae as _3DSpace_get_downloadTicket_multidoc,
2595
+ De as _3DSpace_get_multiDocInfo,
2554
2596
  A as _3DSpace_get_securityContexts,
2555
2597
  x as _3DSpace_get_ticket,
2556
- Ke as _3DSpace_lifecycle_changeRevision,
2557
- Je as _3DSpace_lifecycle_changeState,
2558
- Ge as _3DSpace_lifecycle_getGraph,
2559
- Ee as _3DSpace_lifecycle_getNextRevision,
2560
- Me as _3DSpace_lifecycle_getNextStates,
2561
- ot as _3DSwym_buildDirectMessage,
2562
- dt as _3DSwym_deleteIdea,
2563
- ut as _3DSwym_editIdea,
2564
- pe as _3DSwym_findCommunityToInstantMSG,
2565
- it as _3DSwym_getAllCommunities,
2566
- lt as _3DSwym_getAllListIdeas,
2567
- nt as _3DSwym_getAllNews,
2568
- st as _3DSwym_getFamiliarPeople,
2569
- at as _3DSwym_getIdeaStatusMaturity,
2570
- de as _3DSwym_getMembersCommunity,
2571
- pt as _3DSwym_getOneIdea,
2572
- C as _3DSwym_get_Token,
2573
- ft as _3DSwym_get_currentUser,
2574
- mt as _3DSwym_get_findUser,
2575
- ct as _3DSwym_postIdea,
2576
- rt as _3DSwym_postIdeaTemplate,
2577
- R as _3DSwym_sendMessageData,
2578
- ve as _AppMngt_get_info_user,
2579
- Ie as _AppMngt_get_users,
2580
- Tt as _Iterop_AddOrRemoveRows,
2581
- ht as _Iterop_Auth_CAS,
2582
- It as _Iterop_GetOneDependencyTable,
2583
- kt as _Iterop_GetOneList,
2584
- St as _Iterop_ListUsers,
2585
- vt as _Iterop_PatchDependencyTable,
2586
- Nt as _Iterop_PutDependencyTable,
2587
- bt as _Iterop_businessTableSearchInRows,
2588
- _t as _Iterop_getAllBusinessTables,
2589
- wt as _Iterop_getOneBusinessTable,
2590
- Ct as _Iterop_getOneBusinessTableRows,
2591
- yt as _Iterop_jwtUser,
2592
- $t as _Iterop_runProcess,
2593
- Ot as _Iterop_updateBusinessTable,
2594
- Y as _getPlateformInfos,
2595
- be as _getPlatformServices,
2598
+ Ve as _3DSpace_lifecycle_changeRevision,
2599
+ Ee as _3DSpace_lifecycle_changeState,
2600
+ Ke as _3DSpace_lifecycle_getGraph,
2601
+ Be as _3DSpace_lifecycle_getNextRevision,
2602
+ Ge as _3DSpace_lifecycle_getNextStates,
2603
+ ct as _3DSwym_buildDirectMessage,
2604
+ pt as _3DSwym_deleteIdea,
2605
+ ft as _3DSwym_editIdea,
2606
+ le as _3DSwym_findCommunityToInstantMSG,
2607
+ ot as _3DSwym_getAllCommunities,
2608
+ mt as _3DSwym_getAllListIdeas,
2609
+ it as _3DSwym_getAllNews,
2610
+ at as _3DSwym_getFamiliarPeople,
2611
+ rt as _3DSwym_getIdeaStatusMaturity,
2612
+ pe as _3DSwym_getMembersCommunity,
2613
+ lt as _3DSwym_getOneIdea,
2614
+ w as _3DSwym_get_Token,
2615
+ gt as _3DSwym_get_currentUser,
2616
+ ht as _3DSwym_get_findUser,
2617
+ ut as _3DSwym_postIdea,
2618
+ dt as _3DSwym_postIdeaTemplate,
2619
+ j as _3DSwym_sendMessageData,
2620
+ ke as _AppMngt_get_info_user,
2621
+ ve as _AppMngt_get_users,
2622
+ Ot as _Iterop_AddOrRemoveRows,
2623
+ St as _Iterop_Auth_CAS,
2624
+ vt as _Iterop_GetOneDependencyTable,
2625
+ Ft as _Iterop_GetOneList,
2626
+ wt as _Iterop_ListUsers,
2627
+ kt as _Iterop_PatchDependencyTable,
2628
+ At as _Iterop_PutDependencyTable,
2629
+ $t as _Iterop_businessTableSearchInRows,
2630
+ Ct as _Iterop_getAllBusinessTables,
2631
+ Tt as _Iterop_getOneBusinessTable,
2632
+ bt as _Iterop_getOneBusinessTableRows,
2633
+ _t as _Iterop_jwtUser,
2634
+ Nt as _Iterop_runProcess,
2635
+ It as _Iterop_updateBusinessTable,
2636
+ q as _getPlateformInfos,
2637
+ $e as _getPlatformServices,
2596
2638
  b as _getServiceUrl,
2597
- Oe as _getServiceUrl_3DPassport,
2598
- gt as _getServiceUrl_Iterop,
2639
+ Ie as _getServiceUrl_3DPassport,
2640
+ yt as _getServiceUrl_Iterop,
2599
2641
  m as _httpCallAuthenticated,
2600
- we as _setDraggable,
2601
- Te as _setDroppable,
2602
- Ce as _setupTagger,
2603
- Ze as addTagToDoc,
2604
- X as chunkArray,
2605
- $e as compass_getListAdditionalApps,
2606
- W as couleurs,
2607
- Ne as createUserGroups,
2608
- ie as dataMixing,
2609
- je as deleteUserGroups,
2610
- ye as findAdresse,
2611
- We as getAllContextSecurity,
2612
- z as getCSRFToken,
2613
- he as getCommunes,
2614
- ke as getComplementUG,
2615
- Xe as getDataFrom3DSpace,
2616
- Se as getDataFromGouvFr,
2617
- ze as getDatasByTenant,
2618
- Qe as getDatasFrom3DSpace,
2619
- qe as getDownloadDocument,
2620
- tt as getInfoDocTags,
2621
- Ae as getUserGroupsList,
2622
- H as getUsersGroupRules,
2623
- He as get_3DSpace_csrf,
2624
- Fe as patchUserGroups,
2625
- Ue as patchUserGroupsControl,
2626
- Ye as pushDataIn3DSpace,
2627
- xe as readUserGroupControl,
2628
- et as removeTagToDoc,
2629
- At as sayHello,
2630
- _e as updateEvent
2642
+ Te as _setDraggable,
2643
+ Oe as _setDroppable,
2644
+ be as _setupTagger,
2645
+ tt as addTagToDoc,
2646
+ W as chunkArray,
2647
+ Ne as compass_getListAdditionalApps,
2648
+ V as couleurs,
2649
+ Ae as createUserGroups,
2650
+ oe as dataMixing,
2651
+ Ue as deleteUserGroups,
2652
+ _e as findAdresse,
2653
+ qe as getAllContextSecurity,
2654
+ H as getCSRFToken,
2655
+ Se as getCommunes,
2656
+ Fe as getComplementUG,
2657
+ Ye as getDataFrom3DSpace,
2658
+ we as getDataFromGouvFr,
2659
+ Ze as getDatasByTenant,
2660
+ et as getDatasFrom3DSpace,
2661
+ He as getDownloadDocument,
2662
+ st as getInfoDocTags,
2663
+ xe as getUserGroupsList,
2664
+ Y as getUsersGroupRules,
2665
+ Qe as get_3DSpace_csrf,
2666
+ je as patchUserGroups,
2667
+ Pe as patchUserGroupsControl,
2668
+ ze as pushDataIn3DSpace,
2669
+ Re as readUserGroupControl,
2670
+ nt as removeTagToDoc,
2671
+ xt as sayHello,
2672
+ Ce as updateEvent
2631
2673
  };
2632
2674
  //# sourceMappingURL=wb3Api.js.map