@beam3_dev/api_module 0.0.16 → 0.0.17

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,2000 +1,239 @@
1
- import { v4 as ee } from "uuid";
2
- import { DateTime as F } from "luxon";
3
- import { requirejs as N, widget as R } from "@widget-lab/3ddashboard-utils";
4
- function D() {
5
- return ee();
6
- }
7
- const M = {
8
- b3M3Yellow: "#FFB300",
9
- b3AboutageBlue: "#42A5F5",
10
- b3UsinageGreen: "#689F38",
11
- b3PanneauOrange: "#ff8000",
12
- b3M350percent: "#fafa6e",
13
- b3M380percent: "#aae479",
14
- b3M390percent: "#64c987",
15
- b3M3100percent: "#23aa8f",
16
- b3M3105percent: "#00898a",
17
- b3M3110percent: "#176877",
18
- b3M3120percent: "#2a4858",
19
- b3Aboutage50percent: "#fafa6e",
20
- b3Aboutage80percent: "#aae479",
21
- b3Aboutage90percent: "#64c987",
22
- b3Aboutage100percent: "#23aa8f",
23
- b3Aboutage105percent: "#00898a",
24
- b3Aboutage110percent: "#176877",
25
- b3Aboutage120percent: "#2a4858",
26
- b3Warning: "#FF0000",
27
- b3Edit1: "#AD1457",
28
- b3Edit2: "#F4511E",
29
- b3Edit3: "#009688",
30
- b3Edit4: "#D50000",
31
- b3Edit5: "#039BE5",
32
- b3Edit6: "#9E69AF",
33
- b3Edit7: "#A79B8E",
34
- b3Edit8: "#616161",
35
- b3Edit9: "#795548"
36
- };
37
- async function te(e, t = void 0, s = void 0) {
38
- const n = parseInt(e);
39
- await fetch(
40
- "https://apicarto.ign.fr/api/codes-postaux/communes/" + n,
41
- {
42
- method: "GET",
43
- headers: {
44
- Accept: "application/json"
45
- }
46
- }
47
- ).then((i) => i.json()).then((i) => {
48
- t && t(i);
49
- }).catch((i) => {
50
- s && s(i), console.error("Erreur : " + i);
51
- });
52
- }
53
- async function ne(e, t = void 0, s = void 0) {
54
- e = encodeURIComponent(e), await fetch(
55
- "https://api-adresse.data.gouv.fr/search/?q=" + e + "&limit=15",
56
- {
57
- method: "GET",
58
- headers: {
59
- Accept: "application/json"
60
- }
61
- }
62
- ).then((n) => n.json()).then((n) => {
63
- t && t(n);
64
- }).catch((n) => {
65
- s && s(n), console.error("Erreur : " + n);
66
- });
67
- }
68
- async function se(e, t = M) {
69
- let s = F.now().year;
70
- const n = e, i = [], c = (a) => {
71
- for (let o in a)
72
- i.push({ date: o, comment: a[o] });
73
- };
74
- for (let a = s; a <= s + 1; a++)
75
- await fetch(
76
- "https://calendrier.api.gouv.fr/jours-feries/metropole/" + a + ".json",
77
- {
78
- method: "GET",
79
- headers: {
80
- Accept: "application/json"
81
- }
82
- }
83
- ).then((o) => o.json()).then((o) => {
84
- c(o);
85
- }).catch((o) => console.error("Erreur : " + o));
86
- return (() => {
87
- const a = n.length === 0 ? {
88
- events: []
89
- } : n;
90
- for (let o of i)
91
- a.events.findIndex(
92
- (l) => l.start === F.fromISO(o.date).toISODate() && l.name === "Férié : " + o.comment
93
- ) === -1 && a.events.push({
94
- name: "Férié : " + o.comment,
95
- start: F.fromISO(o.date).toISODate(),
96
- end: F.fromISO(o.date).toISODate(),
97
- color: t.b3BusinnessDays,
98
- timed: !1
99
- });
100
- return a;
101
- })();
102
- }
103
- async function ae(e, t, s = !0) {
104
- const n = e.events.findIndex((i) => i.uuid === t.uuid);
105
- return n === -1 ? e.events.push(t) : s ? e.events[n] = t : e.events.splice(n, 1), e.length > 0 && e.sort((i, c) => i.start - c.start), e;
106
- }
107
- function f(e, t) {
108
- N(["DS/WAFData/WAFData"], (s) => {
109
- s.authenticatedRequest(e, t);
110
- });
111
- }
112
- function ie(e, t, s) {
113
- N(["DS/DataDragAndDrop/DataDragAndDrop"], (n) => {
114
- n.draggable(e, { data: t, start: s });
115
- });
116
- }
117
- function oe(e, t = void 0) {
118
- N(["DS/TagNavigatorProxy/TagNavigatorProxy"], (s) => {
119
- let n;
120
- n === void 0 && (n = s.createProxy({
121
- widgetId: R.id,
122
- filteringMode: "WithFilteringServices"
123
- }), t !== void 0 && n.addEvent("onFilterSubjectsChange", t)), n.setSubjectsTags(e);
124
- });
125
- }
126
- function re(e, t) {
127
- N(["DS/DataDragAndDrop/DataDragAndDrop"], (s) => {
128
- s.droppable(e, { drop: t });
1
+ import "uuid";
2
+ import "luxon";
3
+ import { requirejs as C, widget as v } from "@widget-lab/3ddashboard-utils";
4
+ function x(e, t) {
5
+ C(["DS/WAFData/WAFData"], (i) => {
6
+ i.authenticatedRequest(e, t);
129
7
  });
130
8
  }
131
- function v(e, t = void 0, s = void 0) {
132
- N(
9
+ function A(e, t = void 0, i = void 0) {
10
+ C(
133
11
  ["DS/i3DXCompassServices/i3DXCompassServices"],
134
- (n) => {
135
- (!e || e === "") && (e = R.getValue("PlatFormInstanceId")), (!e || e === "") && (e = void 0), n.getPlatformServices({
12
+ (l) => {
13
+ (!e || e === "") && (e = v.getValue("PlatFormInstanceId")), (!e || e === "") && (e = void 0), l.getPlatformServices({
136
14
  platformId: e,
137
15
  onComplete: t,
138
- onFailure: s
16
+ onFailure: i
139
17
  });
140
18
  }
141
- ), $(), t && t($());
19
+ ), T(), t && t(T());
142
20
  }
143
- function $() {
21
+ function T() {
144
22
  let e = {};
145
- return N(["DS/PlatformAPI/PlatformAPI"], (t) => {
146
- const s = t.getTenant(), n = t.getUser(), i = t.getAllApplicationConfigurations(), c = t.getWidgetTenant(), r = t.getApplicationConfiguration(
23
+ return C(["DS/PlatformAPI/PlatformAPI"], (t) => {
24
+ const i = t.getTenant(), l = t.getUser(), o = t.getAllApplicationConfigurations(), r = t.getWidgetTenant(), d = t.getApplicationConfiguration(
147
25
  "com.3ds.wp.passport.cors"
148
26
  );
149
27
  e = {
150
- tenant: s,
151
- user: n,
152
- appsConfiguration: i,
153
- widgetTenant: c,
154
- appConf: r
28
+ tenant: i,
29
+ user: l,
30
+ appsConfiguration: o,
31
+ widgetTenant: r,
32
+ appConf: d
155
33
  };
156
34
  }), console.log("%cRETOUR API :", "color:blue", e), e;
157
35
  }
158
- function ce(e, t, s) {
159
- const n = {
160
- base: `${e.space}`,
161
- uri: "/resources/AppsMngt/api/custom/applications",
162
- option: `?filter=${e.tenant}`
163
- // facultatif
164
- }, i = `${n.base}${n.uri}${n.option}`;
165
- f(i, {
166
- method: "GET",
167
- headers: {
168
- "Content-Type": "application/json",
169
- Accept: "application/json"
170
- },
171
- onComplete(c, r, a) {
172
- const o = JSON.parse(c), d = o.data.map((l) => {
173
- const p = l.attributes.name, u = l.id;
174
- return { name: p, id: u };
175
- });
176
- t && t(d, o);
177
- },
178
- onFailure(c, r) {
179
- const a = c;
180
- a.msg = r.errormsg, a.errCode = r.errorcode, s && s(a);
181
- }
182
- });
183
- }
184
- function de(e, t = void 0, s = void 0) {
185
- let n = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&limit=-1`;
186
- f(n, {
187
- onComplete(i, c, r) {
188
- const a = JSON.parse(i);
189
- console.log("_AppMngt_get_users => ", a), t && t(a);
190
- },
191
- onFailure(i, c) {
192
- const r = i;
193
- r.msg = c.errormsg, r.errCode = c.errorcode, s && s(r);
194
- }
195
- });
196
- }
197
- function le(e, t, s = void 0, n = void 0) {
198
- let i = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&id=${t}`;
199
- f(i, {
200
- onComplete(c, r, a) {
201
- const o = JSON.parse(c);
202
- s && s(o);
203
- },
204
- onFailure(c, r) {
205
- const a = c;
206
- a.msg = r.errormsg, a.errCode = r.errorcode, n && n(a);
207
- }
208
- });
209
- }
210
- const j = {
211
- "Content-Type": "application/json",
212
- Accept: "application/json,text/javascript,*/*"
213
- };
214
- function pe(e, t, s = void 0, n = void 0) {
215
- const { space: i, currentUser: c } = e, a = `${i}${{
216
- URIUGr: "/3drdfpersist/resources/v1/usersgroup"
217
- }.URIUGr}`, o = {
218
- groups: [
219
- {
220
- title: t.title,
221
- description: t.description,
222
- members: t.members || [c.email, "samuel.mureau@beam3.fr"],
223
- pending_members: [],
224
- sharing: t.sharing,
225
- visibility: t.visibility
226
- }
227
- ]
228
- };
229
- f(a, {
230
- method: "POST",
231
- headers: j,
232
- data: JSON.stringify(o),
233
- onComplete(d) {
234
- s && s(JSON.parse(d));
235
- },
236
- onFailure(d, l) {
237
- console.log(d);
238
- const p = d;
239
- p.msg = l.errormsg, p.errCode = l.errorcode, console.log("❌ sendDirectMessage => ", p), n && n(p);
240
- }
241
- });
242
- }
243
- function ue(e, t, s = void 0, n = void 0) {
244
- const { space: i, tenant: c } = e, r = i, a = `/3drdfpersist/v1/resources/${t}`, o = `?$mask=dsaccess:Mask.GroupUI.Properties&tenant=dstenant:${c}`, d = `${r}${a}${o}`;
245
- f(d, {
246
- opts: {
247
- method: "GET",
248
- headers: {
249
- "Content-Type": "application/json",
250
- Accept: "application/json,text/javascript,*/*"
251
- }
252
- },
253
- onComplete(u) {
254
- s && s(JSON.parse(u));
255
- },
256
- onFailure(u, m) {
257
- const g = u;
258
- g.msg = m.errormsg, g.errCode = m.errorcode, n && n(g);
259
- }
260
- });
261
- }
262
- function L(e, t = void 0, s = void 0) {
263
- const { space: n, tenant: i } = e, c = n, r = "/3drdfpersist/resources/v1/option-sets/dsusergroup:ListOfGroupResponsibilities/options", a = `?tenant=dstenant:${i}`, o = {
264
- method: "GET",
265
- Accept: "application/json,*/*,test/javascript"
266
- }, d = `${c}${r}${a}`;
267
- f(d, {
268
- OPTsH: o,
269
- onComplete(l) {
270
- t && t(JSON.parse(l));
271
- },
272
- onFailure(l, p) {
273
- const u = l;
274
- u.msg = p.errormsg, u.errCode = p.errorcode, s && s(u);
275
- }
276
- });
277
- }
278
- function fe(e, t = void 0, s = void 0) {
279
- 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: {
280
- "Content-Type": "application/json",
281
- Accept: "application/json,text/javascript,*/*"
282
- } };
283
- try {
284
- f(a, {
285
- opts: d,
286
- onComplete(l) {
287
- const p = JSON.parse(l), u = {}, m = p.groups.filter((g) => g.uri.startsWith("uuid:"));
288
- if (i && Object.keys(i).length > 0) {
289
- const g = m.filter((_) => _.owner === i.email), h = m.filter((_) => _.members.includes(i.email)), S = g.concat(h);
290
- u.iam = S, u.UG = m, u.iamMember = h, L(
291
- e,
292
- (_) => {
293
- u.rules = _, t && t(u);
294
- },
295
- (_) => {
296
- s && s(_);
297
- }
298
- );
299
- }
300
- },
301
- onFailure(l) {
302
- s && s(l);
303
- }
304
- });
305
- } catch (l) {
306
- console.log(l);
307
- }
308
- }
309
- function me(e, t) {
310
- const { space: s } = e, i = `${s}/3drdfpersist/resources/v1/usersgroup/${t}`;
311
- f(i, {
312
- method: "DELETE"
313
- });
314
- }
315
- function ge(e, t, s, n = void 0, i = void 0) {
316
- const { space: c, tenant: r } = e, a = {
317
- URITI: "/3drdfpersist/resources/v1/template-instances",
318
- URIUGr: "/3drdfpersist/resources/v1/usersgroup",
319
- nextURICh: "/characteristics",
320
- nextURIGr: "/group",
321
- nexURImem: "/members",
322
- OPTsTI: "?$mask=dsaccess:Mask.GroupUI.Properties",
323
- OPTsTenant: `tenant=dstenant:${r}`
324
- }, o = s, d = `${c}${a.URIUGr}/${t}`, l = JSON.stringify(o);
325
- f(d, {
326
- headers: j,
327
- method: "PATCH",
328
- data: l,
329
- type: "json",
330
- onComplete(p) {
331
- n && n(p);
332
- },
333
- onFailure(p) {
334
- i && i(p);
335
- }
336
- });
337
- }
338
- function he(e, t, s, n = void 0, i = void 0) {
339
- const { space: c } = e, a = `${c}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
340
- f(a, {
341
- method: "PATCH",
342
- headers: j,
343
- data: JSON.stringify(s),
344
- type: "json",
345
- onComplete(d) {
346
- n && n(d);
347
- },
348
- onFailure(d) {
349
- i && i(d);
350
- }
351
- });
352
- }
353
- function Se(e, t, s = void 0, n = void 0) {
354
- const { space: i } = e, r = `${i}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
355
- f(r, {
356
- opts: {
357
- method: "GET",
358
- headers: {
359
- "Content-Type": "application/json",
360
- Accept: "application/json,text/javascript,*/*"
361
- }
362
- },
363
- onComplete(d) {
364
- s && s(JSON.parse(d));
365
- },
366
- onFailure(d) {
367
- n && n(d);
368
- }
369
- });
370
- }
371
- const I = new FileReader();
372
- I.onload = () => console.log(I.result);
373
- async function E(e, t = void 0, s = void 0, n = void 0) {
374
- const i = e.space;
375
- if (t === void 0) {
376
- console.log("Le paramètre docid est obligatoire");
377
- return;
378
- }
379
- const c = i + `/resources/v1/modeler/documents/${t}`;
380
- f(c, {
381
- onComplete(r, a, o) {
382
- const d = JSON.parse(r);
383
- s && s(d);
384
- },
385
- onFailure(r) {
386
- n && n(r);
387
- }
388
- });
389
- }
390
- function b(e, t, s = void 0, n = void 0) {
391
- if (t !== null) {
392
- let i = `${e.space}/resources/v1/modeler/documents/${t}`;
393
- f(i, {
394
- onComplete(c, r, a) {
395
- const o = JSON.parse(c);
396
- s && s(o);
397
- },
398
- onFailure(c) {
399
- n && n(c);
400
- }
401
- });
402
- } else
403
- T(e);
404
- }
405
- function T(e, t = void 0, s = void 0) {
406
- const n = e.space;
407
- if (n !== "" && !n) {
408
- const i = n + "/resources/v1/application/CSRF";
409
- f(i, {
410
- onComplete(c, r, a) {
411
- const o = JSON.parse(c);
412
- t && t(o.csrf.value);
413
- },
414
- onFailure(c) {
415
- s && s(c);
416
- }
417
- });
418
- } else
419
- s && s("ERROR : url du 3DSpace non défini.");
420
- }
421
- function U(e, t, s = void 0, n = void 0) {
422
- let i = e.space + `/resources/v1/modeler/documents/${t}/files/DownloadTicket`;
423
- b(
424
- e,
425
- t,
426
- (c) => {
427
- f(i, {
428
- method: "PUT",
429
- headers: {
430
- ENO_CSRF_TOKEN: c.csrf.value
431
- },
432
- onComplete(r) {
433
- let a = JSON.parse(r);
434
- if (a.success === !0)
435
- try {
436
- const o = a.data[0].dataelements.ticketURL;
437
- s && s(o);
438
- } catch (o) {
439
- n && n(o);
440
- }
441
- },
442
- onFailure(r, a) {
443
- console.log("☠️ error => ", r, a), n && n(r, a);
444
- }
445
- });
446
- },
447
- n
448
- );
449
- }
450
- function _e(e, t, s, n = void 0, i = void 0) {
451
- const c = `${e.space}/resources/v1/modeler/documents/${t}/files/DownloadTicket`;
452
- f(c, {
453
- method: "PUT",
454
- headers: {
455
- ENO_CSRF_TOKEN: s
456
- },
457
- onComplete(r) {
458
- let a = JSON.parse(r);
459
- if (a.success === !0)
460
- try {
461
- const o = a.data[0].dataelements.ticketURL;
462
- n && n(o);
463
- } catch (o) {
464
- i && i(o);
465
- }
466
- },
467
- onFailure(r) {
468
- i && i(r);
469
- }
470
- });
471
- }
472
- function J(e, t, s, n, i, c = void 0, r = void 0) {
473
- b(
474
- e,
475
- t,
476
- (a) => {
477
- G(
478
- e,
479
- t,
480
- s,
481
- n,
482
- i,
483
- a.csrf.value,
484
- c,
485
- r
486
- );
487
- },
488
- r
489
- );
490
- }
491
- function G(e, t, s, n, i, c, r = void 0, a = void 0) {
492
- const o = e.space + `/resources/v1/modeler/documents/${t}/files/CheckinTicket`;
493
- f(o, {
494
- method: "PUT",
495
- headers: {
496
- ENO_CSRF_TOKEN: c
497
- },
498
- onComplete(d, l, p) {
499
- const u = JSON.parse(d).data[0].dataelements, m = new FormData();
500
- m.append("__fcs__jobTicket", u.ticket), m.append("file_0", n, i);
501
- const g = {};
502
- g.method = "POST", g.data = m, g.onComplete = function(h) {
503
- let S = "temp_" + Date.now(), _ = {
504
- method: "PUT",
505
- headers: {
506
- ENO_CSRF_TOKEN: c
507
- },
508
- data: JSON.stringify({
509
- data: [
510
- {
511
- id: t,
512
- relateddata: {
513
- files: [
514
- {
515
- id: s,
516
- dataelements: {
517
- title: i,
518
- receipt: h
519
- },
520
- updateAction: "REVISE"
521
- }
522
- ]
523
- },
524
- tempId: S
525
- }
526
- ]
527
- }),
528
- type: "json",
529
- onComplete(y) {
530
- r && r(y);
531
- },
532
- onFailure(y) {
533
- a && a(y);
534
- }
535
- };
536
- f(
537
- e.space + "/resources/v1/modeler/documents",
538
- _
539
- );
540
- }, g.onFailure = function(h) {
541
- a && a(h);
542
- }, g.timeout = 0, f(u.ticketURL, g);
543
- }
544
- });
545
- }
546
- async function ye(e, t, s, n, i = void 0, c = void 0) {
547
- const r = e.space, a = e.token, o = e.ctx, d = new FormData(), l = new Blob([JSON.stringify(t)], {
548
- type: "text/plain"
549
- }), p = {
550
- url_Ticket: `${r}/resources/v1/modeler/documents/files/CheckinTicket`,
551
- url_Post: `${r}/resources/v1/modeler/documents/?SecurityContext=ctx::${o}`
552
- };
553
- if (!r && r !== "") {
554
- console.log("le store._3DSpace est vide");
555
- return;
556
- }
557
- f(p.url_Ticket, {
558
- method: "PUT",
559
- headers: {
560
- ENO_CSRF_TOKEN: a.value
561
- },
562
- onComplete(u, m, g) {
563
- const h = JSON.parse(u).data[0].dataelements;
564
- d.append("__fcs__jobTicket", h.ticket), d.append("filename", l, s);
565
- const S = {
566
- method: "POST",
567
- data: d,
568
- onComplete(C) {
569
- if (o !== "" && a !== "") {
570
- const k = {
571
- method: "POST",
572
- headers: {
573
- ENO_CSRF_TOKEN: a,
574
- Accept: "application/json",
575
- "Content-Type": "application/json"
576
- },
577
- data: JSON.stringify({
578
- data: [
579
- {
580
- type: "Document",
581
- dataelements: {
582
- title: `Title_${s.toLowerCase().split(" ").join("_")}`,
583
- policy: "Document Release",
584
- description: n
585
- },
586
- relateddata: {
587
- files: [
588
- {
589
- dataelements: {
590
- title: `${s}.json`,
591
- receipt: C
592
- }
593
- }
594
- ]
595
- },
596
- tempId: D()
597
- }
598
- ]
599
- }),
600
- type: "json",
601
- timeout: 0,
602
- onComplete: _,
603
- onFailure: y
604
- };
605
- o !== "" && f(p.url_Post, k);
606
- } else
607
- console.warn("le store est vide");
608
- },
609
- onFailure: y
610
- };
611
- function _(C) {
612
- console.log("Success -- response ", C.data[0]), i && i(C);
613
- }
614
- function y(C, k) {
615
- console.log("Erreur -- response ", C, `
616
- headers `, k), c && c(C);
617
- }
618
- f(h.ticketURL, S);
619
- }
620
- });
621
- }
622
- function O(e, t = void 0, s = void 0, n = void 0, i = void 0, c = void 0) {
623
- const r = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces&xrequestedwith=xmlhttprequest`;
624
- f(r, {
36
+ const P = new FileReader();
37
+ P.onload = () => console.log(P.result);
38
+ function y(e, t = void 0, i = void 0, l = void 0, o = void 0, r = void 0) {
39
+ const d = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces&xrequestedwith=xmlhttprequest`;
40
+ x(d, {
625
41
  method: "GET",
626
42
  onComplete(a) {
627
- const o = JSON.parse(a);
628
- let d = "", l, p, u;
43
+ const n = JSON.parse(a);
44
+ let c = "", S, m, u;
629
45
  if (t) {
630
- let m = o.collabspaces.find((g) => g.title === t);
631
- if (m) {
632
- l = t;
633
- let g = m.couples;
634
- g = g.filter(
635
- (h, S, _) => S === _.findIndex(
636
- (y) => y.organization.pid === h.organization.pid && y.role.pid === h.role.pid
46
+ let _ = n.collabspaces.find((p) => p.title === t);
47
+ if (_) {
48
+ S = t;
49
+ let p = _.couples;
50
+ p = p.filter(
51
+ (s, f, g) => f === g.findIndex(
52
+ (h) => h.organization.pid === s.organization.pid && h.role.pid === s.role.pid
637
53
  )
638
- ), s && (Array.isArray(s) ? s.forEach((h) => {
639
- u || g.forEach((S) => {
640
- if (h === S.role.name && n === S.organization.title)
641
- u = h, p = n;
642
- else if (h === S.role.name) {
643
- let _ = g.filter(
644
- (y) => y.role.name === h
54
+ ), i && (Array.isArray(i) ? i.forEach((s) => {
55
+ u || p.forEach((f) => {
56
+ if (s === f.role.name && l === f.organization.title)
57
+ u = s, m = l;
58
+ else if (s === f.role.name) {
59
+ let g = p.filter(
60
+ (h) => h.role.name === s
645
61
  );
646
- _.length === 1 ? (u = _[0].role.name, p = _[0].organization.title) : c(_);
62
+ g.length === 1 ? (u = g[0].role.name, m = g[0].organization.title) : r(g);
647
63
  }
648
64
  });
649
- }) : g.forEach((h) => {
650
- if (s === h.role.name && n === h.organization.title)
651
- u = s, p = n;
652
- else if (s === h.role.name) {
653
- let S = g.filter(
654
- (_) => _.role.name === s
65
+ }) : p.forEach((s) => {
66
+ if (i === s.role.name && l === s.organization.title)
67
+ u = i, m = l;
68
+ else if (i === s.role.name) {
69
+ let f = p.filter(
70
+ (g) => g.role.name === i
655
71
  );
656
- S.length === 1 ? (u = S[0].role.name, p = S[0].organization.title) : c(S);
72
+ f.length === 1 ? (u = f[0].role.name, m = f[0].organization.title) : r(f);
657
73
  }
658
74
  }));
659
75
  }
660
76
  }
661
- l && p && u ? (d = u + "." + p + "." + l, i(d)) : o.preferredcredentials ? (d = o.preferredcredentials.role.name + "." + o.preferredcredentials.organization.title + "." + o.preferredcredentials.collabspace.title, i(d)) : c && (d = u + "." + p + "." + l, c(d));
77
+ S && m && u ? (c = u + "." + m + "." + S, o(c)) : n.preferredcredentials ? (c = n.preferredcredentials.role.name + "." + n.preferredcredentials.organization.title + "." + n.preferredcredentials.collabspace.title, o(c)) : r && (c = u + "." + m + "." + S, r(c));
662
78
  },
663
79
  onFailure(a) {
664
80
  console.log("Erreur de récupération du contexte de sécurité. => ", a);
665
81
  }
666
82
  });
667
83
  }
668
- async function x(e, t, s = void 0, n = void 0, i = void 0) {
669
- return t === void 0 || t === "" ? "Le paramètre objectId est obligatoire" : new Promise((c) => {
670
- (e.space === "" || !e.space) && v(), t !== void 0 && t !== "" && t !== null && U(
671
- e.space,
672
- t,
673
- (r) => {
674
- f(r, {
675
- headers: {
676
- ENO_CSRF_TOKEN: e.token
677
- },
678
- onComplete(a) {
679
- return s && s(JSON.parse(a)), c = JSON.parse(a), c;
680
- },
681
- onFailure(a) {
682
- n && (console.log("error http", a), n(a));
683
- }
684
- });
685
- },
686
- (r) => {
687
- n && n(r), console.log("*_3dspace_download_doc / error file URL *", r);
688
- }
689
- );
690
- });
691
- }
692
- async function K(e, t, s = void 0, n = void 0) {
693
- let i = [];
694
- for (let a = 0; a < t.length; a += 80) {
695
- const o = t.slice(a, a + 80);
696
- i.push(o);
697
- }
698
- const r = (a) => {
699
- V(
700
- e,
701
- i[a],
702
- () => {
703
- a++, a < i.length && r(a);
704
- },
705
- (o) => {
706
- s && s(o);
707
- }
708
- );
709
- };
710
- r(0);
711
- }
712
- function V(e, t, s = void 0, n = void 0, i = void 0) {
713
- const c = [];
714
- t.forEach((o) => {
715
- c.push({
716
- id: o
717
- });
718
- });
719
- let r = JSON.stringify({
720
- csrf: {
721
- name: "ENO_CSRF_TOKEN",
722
- value: e.token
723
- },
724
- data: c
725
- });
726
- const a = `${e.space}/resources/v1/modeler/documents/DownloadTicket?tenant=${e.tenant}&e6w-lang=fr&e6w-timezone=-120`;
727
- f(a, {
728
- method: "PUT",
729
- data: r,
730
- type: "json",
731
- onComplete(o) {
732
- const d = o.data;
733
- o.success === !0 && (s && s(), d.forEach((l) => {
734
- try {
735
- const p = l.dataelements.fileName, u = l.dataelements.ticketURL;
736
- f(u, {
737
- onComplete: (m) => {
738
- n && n({
739
- objectId: l.id,
740
- fileName: p,
741
- data: JSON.parse(m)
742
- });
743
- },
744
- onFailure: (m) => {
745
- console.log("error http", m);
746
- }
747
- });
748
- } catch (p) {
749
- console.log(p), i && i(p);
750
- }
751
- }));
752
- },
753
- onFailure(o) {
754
- console.log(o), i && i(o);
755
- }
756
- });
757
- }
758
- function we(e, t, s = void 0, n = void 0) {
759
- return new Promise((i) => {
760
- if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
761
- const c = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
762
- O(
763
- e.space,
764
- "ESPACE COMMUN",
765
- ["VPLMProjectLeader", "VPLMCreator"],
766
- void 0,
767
- (a) => e.ctx = a,
768
- (a) => {
769
- console.log("onError =>", a);
770
- }
771
- );
772
- let r = {
773
- method: "POST",
774
- headers: {
775
- SecurityContext: "ctx::" + e.ctx,
776
- ENO_CSRF_TOKEN: e.token,
777
- Accept: "application/json",
778
- "Content-Type": "application/json"
779
- },
780
- data: JSON.stringify({
781
- data: [
782
- {
783
- id: t
784
- }
785
- ]
786
- }),
787
- type: "json",
788
- onComplete(a) {
789
- s && s(a);
790
- },
791
- onFailure(a) {
792
- n && n(a);
793
- }
794
- };
795
- f(c, r);
796
- }
797
- });
798
- }
799
- function Te(e, t, s, n = void 0, i = void 0) {
800
- return new Promise((c) => {
801
- if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
802
- const r = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
803
- O(
804
- e.space,
805
- "ESPACE COMMUN",
806
- ["VPLMProjectLeader", "VPLMCreator"],
807
- void 0,
808
- (o) => e.ctx = o,
809
- (o) => {
810
- console.log("onError =>", o);
811
- }
812
- );
813
- let a = {
814
- method: "POST",
815
- headers: {
816
- SecurityContext: "ctx::" + e.ctx,
817
- ENO_CSRF_TOKEN: e.token,
818
- Accept: "application/json",
819
- "Content-Type": "application/json"
820
- },
821
- data: JSON.stringify({
822
- data: [
823
- {
824
- id: t,
825
- nextState: s
826
- }
827
- ]
828
- }),
829
- type: "json",
830
- onComplete(o) {
831
- n && n(o);
832
- },
833
- onFailure(o) {
834
- i && i(o);
835
- }
836
- };
837
- f(r, a);
838
- }
839
- });
840
- }
841
- function Ce(e, t, s = void 0, n = void 0) {
842
- return new Promise((i) => {
843
- if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
844
- const c = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
845
- O(
846
- e.space,
847
- "ESPACE COMMUN",
848
- ["VPLMProjectLeader", "VPLMCreator"],
849
- void 0,
850
- (a) => e.ctx = a,
851
- (a) => {
852
- console.log("onError =>", a);
853
- }
854
- );
855
- let r = {
856
- method: "POST",
857
- headers: {
858
- securitycontext: "ctx::" + e.ctx,
859
- ENO_CSRF_TOKEN: e.token,
860
- Accept: "application/json",
861
- "Content-Type": "application/json"
862
- },
863
- data: JSON.stringify({
864
- graphRequests: [
865
- {
866
- id: t
867
- }
868
- ]
869
- }),
870
- type: "json",
871
- onComplete(a) {
872
- s && s(a);
873
- },
874
- onFailure(a) {
875
- n && n(a);
876
- }
877
- };
878
- f(c, r);
879
- }
880
- });
881
- }
882
- function Oe(e, t, s = void 0, n = void 0) {
883
- return new Promise((i) => {
884
- if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
885
- const c = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
886
- O(
887
- e.space,
888
- "ESPACE COMMUN",
889
- ["VPLMProjectLeader", "VPLMCreator"],
890
- void 0,
891
- (a) => e.ctx = a,
892
- (a) => {
893
- console.log("onError =>", a);
894
- }
895
- );
896
- let r = {
897
- method: "POST",
898
- headers: {
899
- SecurityContext: "ctx::" + e.ctx,
900
- ENO_CSRF_TOKEN: e.token,
901
- Accept: "application/json",
902
- "Content-Type": "application/json"
903
- },
904
- data: JSON.stringify({
905
- data: [
906
- {
907
- "attribute[PLMReference.V_versionComment]": null,
908
- physicalid: t,
909
- type: "Document",
910
- tenant: e.tenant,
911
- objectId: t,
912
- policy: "Document Release",
913
- availableSemantic: ["E", "LAST", "NEW", "DUP"]
914
- }
915
- ]
916
- }),
917
- type: "json",
918
- onComplete(a) {
919
- s && s(a);
920
- },
921
- onFailure(a) {
922
- n && n(a);
923
- }
924
- };
925
- f(c, r);
926
- }
927
- });
928
- }
929
- function Ne(e, t, s, n = void 0, i = void 0) {
930
- return new Promise((c) => {
931
- if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
932
- const r = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
933
- O(
934
- e.space,
935
- "ESPACE COMMUN",
936
- ["VPLMProjectLeader", "VPLMCreator"],
937
- void 0,
938
- (o) => e.ctx = o,
939
- (o) => {
940
- console.log("onError =>", o);
941
- }
942
- );
943
- let a = {
944
- method: "POST",
945
- headers: {
946
- securitycontext: "ctx::" + e.ctx,
947
- ENO_CSRF_TOKEN: e.token,
948
- Accept: "application/json",
949
- "Content-Type": "application/json"
950
- },
951
- data: JSON.stringify({
952
- data: [
953
- {
954
- physicalid: t,
955
- proposedRevision: s,
956
- modifiedAttributes: {
957
- revision: s
958
- }
959
- }
960
- ],
961
- folderid: null,
962
- notificationTimeout: 600
963
- }),
964
- type: "json",
965
- onComplete(o) {
966
- n && n(o);
967
- },
968
- onFailure(o) {
969
- i && i(o);
970
- }
971
- };
972
- f(r, a);
973
- }
974
- });
975
- }
976
84
  //!SECTION
977
- function w(e, t = void 0, s = void 0) {
978
- const n = e.space + "/api/index/tk";
979
- f(n, {
980
- onComplete(i, c, r) {
981
- var o;
982
- const a = JSON.parse(i);
983
- t && (e.token = (o = a == null ? void 0 : a.result) == null ? void 0 : o.ServerToken, t(a));
85
+ function D(e, t = void 0, i = void 0) {
86
+ const l = e.space + "/api/index/tk";
87
+ x(l, {
88
+ onComplete(o, r, d) {
89
+ var n;
90
+ const a = JSON.parse(o);
91
+ t && (e.token = (n = a == null ? void 0 : a.result) == null ? void 0 : n.ServerToken, t(a));
984
92
  },
985
- onFailure(i) {
986
- s && s(i);
987
- }
988
- });
989
- }
990
- function be(e, t = void 0, s = void 0) {
991
- const n = `${e.space}/api/exalead/whatsnew`, i = {
992
- params: {
993
- community_id: null,
994
- hash_key: null,
995
- legacyFormat: !1,
996
- nresults: 1,
997
- query: "#all",
998
- start: 0
999
- }
1000
- };
1001
- w(e, (c) => {
1002
- f(n, {
1003
- method: "POST",
1004
- headers: {
1005
- "X-DS-SWYM-CSRFTOKEN": c.result.ServerToken,
1006
- "Content-type": "application/json;charset=UTF-8",
1007
- Accept: "application/json"
1008
- },
1009
- data: JSON.stringify(i),
1010
- type: "json",
1011
- onComplete(r, a) {
1012
- t && t(r, a);
1013
- },
1014
- onFailure(r, a) {
1015
- s && s(r, a);
1016
- }
1017
- });
1018
- });
1019
- }
1020
- function Fe(e, t = void 0, s = void 0) {
1021
- const n = `${e.space}/api/Recommendation/getpeoplefamiliartocurrentuser`, i = {
1022
- params: {
1023
- idsToFilterArr: [],
1024
- mode: "offline",
1025
- limit: 30,
1026
- itemType: "User",
1027
- maxNbOfCommonElements: "5"
93
+ onFailure(o) {
94
+ i && i(o);
1028
95
  }
1029
- };
1030
- w(e, (c) => {
1031
- f(n, {
1032
- method: "POST",
1033
- headers: {
1034
- "X-DS-SWYM-CSRFTOKEN": c.result.ServerToken,
1035
- "Content-type": "application/json;charset=UTF-8",
1036
- Accept: "application/json"
1037
- },
1038
- data: JSON.stringify(i),
1039
- type: "json",
1040
- onComplete(r, a) {
1041
- const o = r.result.hits.map((d) => ({ login: d.login, fullName: d.name }));
1042
- t && t(o, r);
1043
- },
1044
- onFailure(r, a) {
1045
- s && s(r, a);
1046
- }
1047
- });
1048
96
  });
1049
97
  }
1050
- function W(e, t = void 0, s = void 0) {
1051
- const n = e.space + "/api/user/getcurrent/";
1052
- w(
98
+ function O(e, t = void 0, i = void 0) {
99
+ const l = e.space + "/api/user/getcurrent/";
100
+ D(
1053
101
  e,
1054
- (i) => {
1055
- f(n, {
102
+ (o) => {
103
+ x(l, {
1056
104
  method: "GET",
1057
- headers: { "X-DS-SWYM-CSRFTOKEN": i.result.ServerToken },
1058
- onComplete(c, r, a) {
1059
- const o = JSON.parse(c);
1060
- t && t(o.result);
1061
- },
1062
- onFailure(c) {
1063
- s && s(c);
1064
- }
1065
- });
1066
- },
1067
- s
1068
- );
1069
- }
1070
- function Ue(e, t, s = void 0, n = void 0) {
1071
- const i = e.space + "/api/user/find/login/" + t;
1072
- w(
1073
- e,
1074
- (c) => {
1075
- f(i, {
1076
- method: "GET",
1077
- headers: { "X-DS-SWYM-CSRFTOKEN": c.result.ServerToken },
1078
- onComplete(r, a, o) {
1079
- const d = JSON.parse(r);
1080
- s && s(d);
105
+ headers: { "X-DS-SWYM-CSRFTOKEN": o.result.ServerToken },
106
+ onComplete(r, d, a) {
107
+ const n = JSON.parse(r);
108
+ t && t(n.result);
1081
109
  },
1082
110
  onFailure(r) {
1083
- n && n(r);
111
+ i && i(r);
1084
112
  }
1085
113
  });
1086
114
  },
1087
- n
115
+ i
1088
116
  );
1089
117
  }
1090
- function X(e, t = void 0, s = void 0) {
1091
- v(
118
+ function F(e, t = void 0, i = void 0) {
119
+ A(
1092
120
  null,
1093
- (n) => {
1094
- let i = [], c = [], r, a = {};
1095
- for (let o of n)
1096
- "3DSpace" in o && (c.push({
1097
- label: `${o.displayName} ( ${o.platformId} )`,
1098
- value: `${c.length}`
1099
- }), c.sort(), i.push(o));
1100
- for (let [o, d] of i.entries())
1101
- d.platformId === e.tenant && (a = d, r = o);
1102
- R.addPreference({
121
+ (l) => {
122
+ let o = [], r = [], d, a = {};
123
+ for (let n of l)
124
+ "3DSpace" in n && (r.push({
125
+ label: `${n.displayName} ( ${n.platformId} )`,
126
+ value: `${r.length}`
127
+ }), r.sort(), o.push(n));
128
+ for (let [n, c] of o.entries())
129
+ c.platformId === e.tenant && (a = c, d = n);
130
+ v.addPreference({
1103
131
  name: "_CurrentTenantID_",
1104
132
  type: "list",
1105
133
  label: "Tenant",
1106
- defaultValue: r,
1107
- options: c
1108
- }), Object.keys(a).length > 0, O(
134
+ defaultValue: d,
135
+ options: r
136
+ }), Object.keys(a).length > 0, y(
1109
137
  e.space,
1110
138
  "ESPACE COMMUN",
1111
139
  // "B3-R&D" || "ESPACE COMMUN",
1112
140
  ["VPLMProjectLeader", "VPLMCreator"],
1113
141
  void 0,
1114
- (o) => e.ctx = o,
1115
- (o) => {
1116
- console.log("on Error CTX =>", o);
1117
- }
1118
- ), W(
1119
- e,
1120
- (o) => {
1121
- t && t(o, a);
1122
- },
1123
- (o) => {
1124
- s && s(o);
1125
- }
1126
- );
1127
- },
1128
- (n) => {
1129
- console.log("** _getPlatformServices Erreur **", n);
1130
- }
1131
- );
1132
- }
1133
- module.exports = { getActiveServices: X };
1134
- async function ke(e, t, s) {
1135
- const n = `${e.space}/resources/v1/application/CSRF`;
1136
- f(n, {
1137
- onComplete(i) {
1138
- i = JSON.parse(i), t && t(i.csrf);
1139
- },
1140
- onFailure(i) {
1141
- s && s(i);
1142
- }
1143
- });
1144
- }
1145
- function $e(e, t = void 0, s = void 0) {
1146
- const n = {
1147
- base: `${e.space}`,
1148
- uri: "/resources/bps/cspaces",
1149
- optTenant: `tenant=${e.tenant}`
1150
- }, i = `${n.base}${n.uri}?${n.optTenant}`;
1151
- f(i, {
1152
- method: "GET",
1153
- headers: {
1154
- Accept: "application/json,text/javascript,*/*",
1155
- "Content-Type": "application/ds-json"
1156
- },
1157
- onComplete(c, r) {
1158
- const a = JSON.parse(c);
1159
- t && t(a, r);
1160
- },
1161
- onFailure(c, r, a) {
1162
- s && s(c, r, a);
1163
- }
1164
- });
1165
- }
1166
- function Ae(e, t, s, n) {
1167
- U(
1168
- e.space,
1169
- t,
1170
- (i) => {
1171
- f(i, {
1172
- header: { ENO_CSRF_TOKEN: e.token },
1173
- onComplete: (c) => {
1174
- s && s(c);
1175
- },
1176
- onFailure: (c) => {
1177
- console.log("error http", c), n && n(c);
142
+ (n) => e.ctx = n,
143
+ (n) => {
144
+ console.log("on Error CTX =>", n);
1178
145
  }
1179
- });
1180
- },
1181
- (i) => {
1182
- console.log("error file URL", i), n && n(i);
1183
- }
1184
- );
1185
- }
1186
- async function Re(e, t, s = void 0, n = void 0) {
1187
- return new Promise((i) => {
1188
- U(e.space, t, (c) => {
1189
- f(c, {
1190
- onComplete: (r, a, o) => (i(JSON.parse(r)), s && s(JSON.parse(r), a, o), i),
1191
- onFailure: (r, a, o) => {
1192
- n && n(r, a, o), console.log(r, a == null ? void 0 : a.errormsg);
1193
- }
1194
- });
1195
- });
1196
- });
1197
- }
1198
- function De(e, t, s, n = void 0, i = void 0) {
1199
- const c = new Blob([JSON.stringify(t)], { type: "text/plain" });
1200
- b(
1201
- e,
1202
- s,
1203
- (r) => {
1204
- const a = r.data[0].relateddata.files[0].id, o = r.data[0].dataelements.secondaryTitle !== "" ? r.data[0].dataelements.secondaryTitle : r.data[0].dataelements.title;
1205
- J(
1206
- e,
1207
- s,
1208
- a,
1209
- c,
1210
- o,
1211
- (d) => {
1212
- n && n(d);
1213
- },
1214
- (d) => {
1215
- i && i(d);
1216
- }
1217
- );
1218
- },
1219
- (r) => {
1220
- console.log("En cas d'erreur nous avons :", r), alert("Erreur lors de la sauvegarde, Veuillez réessayez"), i && i(r);
1221
- }
1222
- );
1223
- }
1224
- let Y, B;
1225
- const P = [];
1226
- async function ve(e, t = void 0, s = void 0) {
1227
- console.log(
1228
- `%c 3ds & objID ok ${e.space} et ${e.objID} *`,
1229
- "color: green"
1230
- ), e.objID && e.objID !== "" ? b(
1231
- e.space,
1232
- e.objID,
1233
- (n) => {
1234
- t && t(n.csrf.value);
1235
- },
1236
- (n) => {
1237
- s && s(n);
1238
- }
1239
- ) : e.objID === null && T(e);
1240
- }
1241
- async function je(e, t = void 0, s = void 0) {
1242
- await x(
1243
- e,
1244
- (n) => {
1245
- const i = {};
1246
- i.obj = n, z(
146
+ ), O(
1247
147
  e,
1248
- (c) => {
1249
- i.datas = c, t && t(i);
148
+ (n) => {
149
+ t && t(n, a);
1250
150
  },
1251
- (c) => {
1252
- s && s(c);
151
+ (n) => {
152
+ i && i(n);
1253
153
  }
1254
154
  );
1255
155
  },
1256
- (n) => {
1257
- s && s(n);
1258
- }
1259
- );
1260
- }
1261
- function z(e, t = void 0, s = void 0) {
1262
- const n = [];
1263
- e.objIds.forEach((i, c) => {
1264
- x(
1265
- e,
1266
- i.objId,
1267
- (r) => {
1268
- n.push({ [i.name]: r }), i.name === "dbProjets" && (Y = r.affaires.map((a) => a.objectID), H(e, B)), c === e.objIds.length - 1 && t && t(n);
1269
- },
1270
- (r) => {
1271
- s && s(r);
1272
- }
1273
- );
1274
- });
1275
- }
1276
- function H(e, t, s = void 0, n = void 0) {
1277
- K(
1278
- e,
1279
- Y,
1280
- (i) => {
1281
- const c = [...t];
1282
- c.find((r) => r.objectID === i.objectId).data = i.data, B = c, P.push(i.data), s && s(P);
1283
- },
1284
- (i) => {
1285
- n && (n(i), console.log(i));
1286
- }
1287
- );
1288
- }
1289
- const xe = "FA35FB9B177A280065800EA0000F599C", Ie = [
1290
- "swym",
1291
- "3dspace",
1292
- "drive",
1293
- "usersgroup",
1294
- "3dplan",
1295
- "dashboard"
1296
- ], q = {
1297
- how: "ds6w:how",
1298
- what: "ds6w:what",
1299
- when: "ds6w:when",
1300
- where: "ds6w:where",
1301
- who: "ds6w:who",
1302
- why: "ds6w:why"
1303
- }, Pe = {
1304
- objId: xe,
1305
- pred: "who",
1306
- order_by: "desc",
1307
- tag: "testTag"
1308
- };
1309
- function Me(e, t, s = void 0, n = void 0) {
1310
- const { space: i, tenant: c } = e, { objId: r, pred: a, tag: o } = t, d = {
1311
- uri: "/resources/6w/tags",
1312
- otpCTX: "SecurityContext=preferred",
1313
- optTenant: `tenant=${c}`
1314
- }, l = `${i}${d.uri}?${d.otpCTX}&${d.optTenant}`, p = {
1315
- tag: [
1316
- {
1317
- subject: [
1318
- {
1319
- uri: `pid://${r}`
1320
- }
1321
- ],
1322
- predicate: q[a],
1323
- object: {
1324
- literal: o
1325
- }
1326
- }
1327
- ]
1328
- };
1329
- f(l, {
1330
- method: "PUT",
1331
- headers: {
1332
- "Content-Type": "application/json",
1333
- Accept: "application/json"
1334
- },
1335
- data: JSON.stringify(p),
1336
- onComplete(u) {
1337
- JSON.parse(u);
1338
- const m = {};
1339
- setTimeout(() => {
1340
- E(
1341
- e,
1342
- r,
1343
- (g) => {
1344
- const h = g.data[0].dataelements.title, S = g.data[0].dataelements.fileExtension !== void 0 ? g.data[0].dataelements.fileExtension : "", _ = g.data[0].relateddata.ownerInfo[0].dataelements.name;
1345
- m.name = h, m.ext = S, m.createBy = _, t.info = { ...m }, Le(
1346
- e,
1347
- t,
1348
- (y) => {
1349
- s && s(y);
1350
- },
1351
- (y) => {
1352
- n && n(y);
1353
- }
1354
- );
1355
- },
1356
- (g, h) => {
1357
- const S = g;
1358
- S.msg = h.errormsg, S.errCode = h.errorcode, console.log("❌ sendDirectMessage => ", S), n && n(S);
1359
- }
1360
- );
1361
- }, 2e3);
1362
- },
1363
- onFailure(u, m) {
1364
- const g = u;
1365
- g.msg = m.errormsg, g.errCode = m.errorcode, console.log("❌ sendDirectMessage => ", g), n && n(g);
1366
- }
1367
- });
1368
- }
1369
- function Le(e, t, s = void 0, n = void 0) {
1370
- console.log("obj ", t);
1371
- const i = t.info.name, c = {
1372
- baseUrl: `https://${e.tenant.toLowerCase()}-eu1-fedsearch.3dexperience.3ds.com`,
1373
- uri: "/federated/search"
1374
- }, r = `${c.baseUrl}${c.uri}`, a = {
1375
- "Content-Type": "application/json",
1376
- Accept: "application/json,text/javascript,*/*"
1377
- }, o = D(), d = {
1378
- with_indexing_date: !0,
1379
- with_synthesis: !0,
1380
- with_nls: !1,
1381
- label: `3DSearch-${e.currentUser.username}-AjoutDeTagBeam-${o}`,
1382
- locale: "fr",
1383
- select_predicate: [
1384
- "ds6w:label",
1385
- "ds6w:type",
1386
- "ds6w:description",
1387
- "ds6w:identifier",
1388
- "ds6w:modified",
1389
- "ds6w:created",
1390
- "ds6wg:revision",
1391
- "ds6w:status",
1392
- "ds6w:responsible",
1393
- "owner",
1394
- "ds6w:responsibleUid",
1395
- "ds6wg:filesize",
1396
- "ds6w:project",
1397
- "ds6w:dataSource",
1398
- "ds6w:community",
1399
- "ds6w:originator",
1400
- "dsgeo:referential",
1401
- "ds6w:lastModifiedBy",
1402
- "ds6w:repository",
1403
- "dcterms:title",
1404
- "dcterms:description",
1405
- "ds6w:containerUid"
1406
- ],
1407
- with_synthesis_hierarchical: !0,
1408
- select_file: ["icon", "thumbnail_2d"],
1409
- query: i,
1410
- specific_source_parameter: {
1411
- "3dspace": {
1412
- additional_query: ' AND NOT (owner:"ENOVIA_CLOUD" OR owner:"Service Creator" OR owner:"Corporate" OR owner:"User Agent" OR owner:"SLMInstallerAdmin" OR owner:"Creator" OR owner:"VPLMAdminUser") AND (ds6w_58_islastrevisionperstate:true OR NOT listoffields:ds6w_58_islastrevisionperstate)'
1413
- },
1414
- drive: {
1415
- additional_query: ' AND NOT ([flattenedtaxonomies]:"types/DriveNode" AND ( [current]:"Trashed" OR [policy]:"Drive File Iteration") )'
1416
- }
1417
- },
1418
- select_exclude_synthesis: ["ds6w:what/ds6w:topic"],
1419
- order_by: Pe.order_by,
1420
- order_field: "relevance",
1421
- select_snippets: [
1422
- "ds6w:snippet",
1423
- "ds6w:label:snippet",
1424
- "ds6w:responsible:snippet",
1425
- "ds6w:community:snippet",
1426
- "swym:message_text:snippet"
1427
- ],
1428
- nresults: 40,
1429
- start: "0",
1430
- source: Ie,
1431
- tenant: e.tenant,
1432
- login: {
1433
- "3dspace": {
1434
- SecurityContext: e.ctx
1435
- }
1436
- }
1437
- };
1438
- console.log("dataPattern => ", d), f(r, {
1439
- method: "POST",
1440
- headers: a,
1441
- data: JSON.stringify(d),
1442
- onComplete(l) {
1443
- const p = JSON.parse(l);
1444
- s(p);
1445
- },
1446
- onFailure(l, p) {
1447
- const u = l;
1448
- u.msg = p.errormsg, u.errCode = p.errorcode, console.log("❌ sendDirectMessage => ", u), n && n(u), console.log("Erreur de recuperation d'id du doc et des tags", l);
1449
- }
1450
- });
1451
- }
1452
- function Ee(e, t, s = void 0, n = void 0) {
1453
- const { objId: i, pred: c, tag: r } = t, a = {
1454
- uri: "/resources/6w/tags",
1455
- otpCTX: "SecurityContext=preferred",
1456
- optTenant: `tenant=${e.tenant}`
1457
- }, o = `${e.space}${a.uri}?${a.otpCTX}&${a.optTenant}`, d = {
1458
- tag: [
1459
- {
1460
- subject: [
1461
- {
1462
- uri: `pid://${i}`
1463
- }
1464
- ],
1465
- predicate: q[c],
1466
- object: {
1467
- literal: r
1468
- }
1469
- }
1470
- ]
1471
- };
1472
- f(o, {
1473
- method: "DELETE",
1474
- data: JSON.stringify(d),
1475
- headers: {
1476
- "Content-Type": "application/json",
1477
- Accept: "application/json,text/javascript,*/*"
1478
- },
1479
- onComplete(l) {
1480
- s && s(l);
1481
- },
1482
- onFailure(l, p) {
1483
- const u = l;
1484
- u.msg = p.errormsg, u.errCode = p.errorcode, console.log("❌ sendDirectMessage => ", u), n && n(u);
1485
- }
1486
- });
1487
- }
1488
- function Je(e, t = "", s = void 0, n = void 0) {
1489
- const { space: i } = e;
1490
- if (t === "")
1491
- return;
1492
- const c = {
1493
- uri: "/enovia/resources/v1/modeler/documents"
1494
- }, r = {
1495
- "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
1496
- Accept: "application/json,text/javascript,*/*"
1497
- }, a = `${i}${c.uri}`, o = `$include=none,lockerInfo,ownerInfo,originatorInfo,files,ownerInfo,originatorInfo&$fields=none,title,name,typeNLS,collabSpaceTitle,revision,isLatestRevision,files,lockStatus,lockerInfo.name,lockerInfo.firstname,lockerInfo.lastname,owner,ownerInfo.name,ownerInfo.firstname,ownerInfo.lastname,stateNLS,modified,policy,state,organizationTitle,originator,originatorInfo.name,originatorInfo.firstname,originatorInfo.lastname,hasModifyAccess,fileExtension,files.name,files.title,files.revision,files.locker,ownerInfo,ownerInfo.name,ownerInfo.firstname,ownerInfo.lastname,originatorInfo,originatorInfo.name,originatorInfo.firstname,originatorInfo.lastname&$ids=${t}`;
1498
- f(a, {
1499
- method: "POST",
1500
- headers: r,
1501
- data: o,
1502
- onComplete(d) {
1503
- s && s(JSON.parse(d));
1504
- },
1505
- onFailure(d, l) {
1506
- const p = d;
1507
- p.msg = l.error, n && n(p);
1508
- }
1509
- });
1510
- }
1511
- function Ge(e, t = void 0, s = void 0) {
1512
- const n = {
1513
- base: e.space,
1514
- uri: "/api/community/listmycommunities",
1515
- limit: `/limit/${e.limit ? e.limit : 128}`,
1516
- page: `/page/${e.page ? e.page : "1"}`
1517
- }, i = `${n.base}${n.uri}${n.limit}${n.page}`, c = [];
1518
- w(e, (r) => {
1519
- f(i, {
1520
- method: "GET",
1521
- headers: {
1522
- "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
1523
- },
1524
- onComplete(a, o, d) {
1525
- const p = JSON.parse(a).result;
1526
- let u = 0;
1527
- p.forEach((m) => {
1528
- const g = {
1529
- description: m.description,
1530
- id: m.id,
1531
- title: m.title,
1532
- owner: m.owner,
1533
- role: m.role,
1534
- access: m.access
1535
- };
1536
- Q(
1537
- e,
1538
- m.id,
1539
- (h) => {
1540
- u++, g.members = h, c.push(g), u === p.length && t && t(c);
1541
- },
1542
- (h) => s(h)
1543
- );
1544
- });
1545
- },
1546
- onFailure(a, o) {
1547
- const d = a;
1548
- d.status = o.status, d.response = o.errormsg, s && s(d);
1549
- }
1550
- });
1551
- });
1552
- }
1553
- function Q(e, t, s, n) {
1554
- const i = `${e.space}/api/community/listmembers`, c = {
1555
- params: {
1556
- page: e.page ? e.page : 1,
1557
- limit: e.limit ? e.limit : 50,
1558
- community_id: t
1559
- }
1560
- };
1561
- w(e, (r) => {
1562
- f(i, {
1563
- method: "POST",
1564
- headers: {
1565
- "Content-type": "application/json;charset=UTF-8",
1566
- Accept: "application/json",
1567
- "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
1568
- },
1569
- data: JSON.stringify(c),
1570
- type: "json",
1571
- onComplete(a, o, d) {
1572
- s && s(a);
1573
- },
1574
- onFailure(a, o) {
1575
- const d = a;
1576
- d.status = o.status, d.response = o.errormsg, n && n(d);
1577
- }
1578
- });
1579
- });
1580
- }
1581
- function Ke(e, t = void 0, s = void 0) {
1582
- const n = "YXdA5x4DSUKtlAi2wmnyTA";
1583
- e.commu_id || (e.commu_id = n);
1584
- const i = `${e.space}/api/v2/communities/${e.commu_id}/ideas/statuses`;
1585
- w(e, (c) => {
1586
- f(i, {
1587
- method: "GET",
1588
- headers: {
1589
- "Content-type": "application/json;charset=UTF-8",
1590
- Accept: "application/json",
1591
- "X-DS-SWYM-CSRFTOKEN": c.result.ServerToken
1592
- },
1593
- onComplete(r) {
1594
- const a = JSON.parse(r);
1595
- t && t(a);
1596
- },
1597
- onFailure(r, a) {
1598
- const o = r;
1599
- o.status = a.status, o.response = a.errormsg, s && s(o);
1600
- }
1601
- });
1602
- });
1603
- }
1604
- function Ve(e, t, s = void 0, n = void 0) {
1605
- const { listAllContacts: i, currentUser: c } = e;
1606
- console.log("__listAllContacts", i.hits);
1607
- const r = `${e.space}/api/directmessages`, a = {
1608
- users: [c.login].concat(t.receipt)
1609
- }, o = {
1610
- id_msg: "",
1611
- senderId: e.currentUser.login,
1612
- senderName: `${e.currentUser.first_name} ${e.currentUser.last_name}`,
1613
- msg: We(t.msg)
1614
- };
1615
- let d = !1;
1616
- Z(
1617
- a.users,
1618
156
  (l) => {
1619
- l !== void 0 && (o.id_msg = l.id, d = !0, A(e, o));
1620
- },
1621
- (l) => {
1622
- d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", l), n && n(l), o.id_msg = "";
1623
- }
1624
- ), d === !1 && setTimeout(() => {
1625
- d === !1 && w(e, (l) => {
1626
- f(r, {
1627
- method: "POST",
1628
- headers: {
1629
- "Content-Type": "application/json",
1630
- Accept: "application/json",
1631
- "X-DS-SWYM-CSRFTOKEN": l.result.ServerToken
1632
- },
1633
- data: JSON.stringify(a),
1634
- type: "json",
1635
- onComplete(p, u, m) {
1636
- const g = p;
1637
- g.reponse = JSON.parse(m.response), g.status = m.status, s && s(g), o.id_msg = g.result.id, A(e, o);
1638
- },
1639
- onFailure(p, u, m) {
1640
- const g = p;
1641
- g.msg = u.errormsg, g.status = u.status, n && n(g);
1642
- }
1643
- });
1644
- });
1645
- }, 500);
1646
- }
1647
- function Z(e, t, s, n) {
1648
- const i = `${e.space}/api/directmessages/lite?with_favorites=false`;
1649
- w(e, (c) => {
1650
- f(i, {
1651
- method: "GET",
1652
- headers: {
1653
- Accept: "application/json,text/javascript,*/*",
1654
- "X-DS-SWYM-CSRFTOKEN": c.result.ServerToken
1655
- },
1656
- onComplete(r) {
1657
- const a = JSON.parse(r), o = [];
1658
- a.result.forEach((p) => {
1659
- p.users = p.users.sort((u, m) => u.login.localeCompare(m.login)), p.users.length === t.length && o.push(p);
1660
- });
1661
- const d = t.sort(), l = o.find((p) => {
1662
- const u = [];
1663
- return p.users.forEach((m) => {
1664
- u.push(m.login);
1665
- }), JSON.stringify(u) === JSON.stringify(d);
1666
- });
1667
- s && l !== void 0 ? s(l) : (n || l === void 0) && n(l);
1668
- },
1669
- onFailure(r) {
1670
- const a = r;
1671
- a.msg = headers.errormsg, a.errCode = headers.errorcode, console.log("❌ sendDirectMessageLite => ", a), n && n(a);
1672
- }
1673
- });
1674
- });
1675
- }
1676
- function A(e, t, s = void 0, n = void 0) {
1677
- const i = {
1678
- base: e.space,
1679
- uri: "/api/community",
1680
- id_msg: `${t.id_msg}`,
1681
- endUri: "/instantmessages"
1682
- }, c = `${i.base}${i.uri}/${i.id_msg}${i.endUri}`, r = {
1683
- author: { login: t.senderId, displayName: t.senderName },
1684
- accessState: null,
1685
- commentUri: null,
1686
- comments: null,
1687
- endorsements: null,
1688
- moderationState: null,
1689
- parentCommentUri: null,
1690
- richMessage: t.msg
1691
- };
1692
- console.log("_3dSwym_sendDirectMessageData url ", c), w(e, (a) => {
1693
- f(c, {
1694
- method: "POST",
1695
- headers: {
1696
- "Content-Type": "application/json",
1697
- Accept: "application/json",
1698
- "X-DS-SWYM-CSRFTOKEN": a.result.ServerToken
1699
- },
1700
- data: JSON.stringify(r),
1701
- type: "json",
1702
- onComplete(o, d, l) {
1703
- const p = o;
1704
- p.status = l.status, p.response = JSON.parse(l.response), console.log("✅ _3dSwym_sendDirectMessageData => ", p), s && s(p);
1705
- },
1706
- onFailure(o, d) {
1707
- const l = o;
1708
- l.msg = d.errormsg, l.errCode = d.errorcode, console.log("❌ sendDirectMessage => ", l), n && n(l);
1709
- }
1710
- });
1711
- });
1712
- }
1713
- function We(e) {
1714
- const t = (/* @__PURE__ */ new Date()).toLocaleDateString(), s = (/* @__PURE__ */ new Date()).toLocaleTimeString();
1715
- return `<p>${e} </p>
1716
- <br/>
1717
- <hr/>
1718
- <p><u>envoyer :</u>Le <b>${t} à ${s}</b></p>`;
1719
- }
1720
- const Xe = {
1721
- title: "TEST DEV COMMUNITY IDEA",
1722
- // titre du post
1723
- community_id: "YXdA5x4DSUKtlAi2wmnyTA",
1724
- // STATUT PROJETS - Phase commerciale, tenant PIVETEAU TEST
1725
- community_title: "TEST DEV COMMUNITY",
1726
- // Possibilité de recherche par titre de la communauté (option)
1727
- idee_id: "THhRI8rlQNWKRxpv3Xqqug"
1728
- // id de l'idee qui est créer au post (_3dSwym_postIdea)
1729
- };
1730
- function Ye(e, t, s = void 0, n = void 0) {
1731
- const i = `${e.space}/api/idea/add`, c = e.swymCommunities.find(
1732
- (o) => o.id === t.community_id
1733
- ), r = e.swymCommunities.find(
1734
- (o) => o.title.toLowerCase() === t.community_title.toLowerCase()
1735
- ), a = {
1736
- params: {
1737
- title: t.title,
1738
- // String, le nom de l'affaire
1739
- community_id: (c == null ? void 0 : c.id) !== void 0 ? c.id : r.id,
1740
- // String, l'id de la communauté
1741
- message: qe(t.text_html),
1742
- // STRING => le contenue du message doit être au format HTML
1743
- published: 1
1744
- // 1 publier, 0 non publier
157
+ console.log("** _getPlatformServices Erreur **", l);
1745
158
  }
1746
- };
1747
- w(e, (o) => {
1748
- const d = {
1749
- "Content-type": "application/json;charset=UTF-8",
1750
- Accept: "application/json",
1751
- "X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
1752
- };
1753
- f(i, {
1754
- method: "POST",
1755
- headers: d,
1756
- data: JSON.stringify(a),
1757
- type: "json",
1758
- onComplete(l, p, u) {
1759
- const m = JSON.parse(l);
1760
- m.status = u.status, m.response = u.response, s && s(m);
1761
- },
1762
- onFailure(l, p, u) {
1763
- const m = l;
1764
- m.status = p.status, m.response = p.errormsg, n && n(m);
1765
- }
1766
- });
1767
- });
1768
- }
1769
- function Be(e, t, s = void 0, n = void 0) {
1770
- const i = `${e.space}/api/idea/delete`, c = {
1771
- params: {
1772
- community_id: t.community_id,
1773
- ideationIds: [t.idee_id]
1774
- }
1775
- };
1776
- w(e, (r) => {
1777
- f(i, {
1778
- method: "POST",
1779
- headers: {
1780
- "Content-type": "application/json;charset=UTF-8",
1781
- Accept: "application/json",
1782
- "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
1783
- },
1784
- data: JSON.stringify(c),
1785
- type: "json",
1786
- onComplete(a, o, d) {
1787
- s && s(a);
1788
- },
1789
- onFailure(a, o, d) {
1790
- const l = a;
1791
- l.status = o.status, l.response = o.errormsg, n && n(l);
1792
- }
1793
- });
1794
- });
1795
- }
1796
- function ze(e, t = "", s = void 0, n = void 0) {
1797
- const i = e.tenant.toLowerCase() === "r1132101716373" ? "tFtz0G4MR6qNtKgJjNfTog" : e.tenant.toLowerCase() === "r1132101286859" ? "Qpv3HN-tTDOsU-7_c5DnDg" : "Template_d'idée_à_créer";
1798
- t === "" && (t = i);
1799
- const c = `${e.space}/api/idea/get`, r = {
1800
- params: {
1801
- id: t
1802
- }
1803
- };
1804
- w(e, (a) => {
1805
- f(c, {
1806
- method: "POST",
1807
- headers: {
1808
- "Content-type": "application/json;charset=UTF-8",
1809
- Accept: "application/json",
1810
- "X-DS-SWYM-CSRFTOKEN": a.result.ServerToken
1811
- },
1812
- data: JSON.stringify(r),
1813
- type: "json",
1814
- onComplete(o) {
1815
- const d = o;
1816
- d.msg = d.result.message, s && s(d);
1817
- },
1818
- onFailure(o) {
1819
- const d = o;
1820
- d.status = headers.status, d.response = headers.errormsg, n && n(d);
1821
- }
1822
- });
1823
- });
1824
- }
1825
- function He(e, t = Xe, s = void 0, n = void 0) {
1826
- const i = {
1827
- uri: "/api/idea/list",
1828
- comId: `/community_id/${e.tenant.toLowerCase() === "r1132101716373" ? t.community_id : "bgnIsG74SUWswyGzS6NC6g"}`,
1829
- limit: `/limit/${t.limit ? t.limit : 10}`
1830
- }, c = `${e.space}${i.uri}${i.comId}${i.limit}`;
1831
- w(e, (r) => {
1832
- f(c, {
1833
- method: "GET",
1834
- headers: {
1835
- "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
1836
- },
1837
- onComplete(a) {
1838
- const o = JSON.parse(a);
1839
- s && s(o);
1840
- },
1841
- onFailure(a, o) {
1842
- const d = a;
1843
- d.status = o.status, d.response = o.errormsg, n && n(d);
1844
- }
1845
- });
1846
- });
1847
- }
1848
- function qe(e) {
1849
- return !e || e === "" ? `<h2><u>INFORMATIONS AFFAIRE :</u></h2>
1850
- <p><u>|⚠️<em> Merci de respecter l&#39;écriture des tags, en MAJUSCULES, nom complet, pas de caractères</em></u></p>
1851
- <p><u><em>|spéciaux, séparation par &#34;_&#34; si besoin !</em></u></p>
1852
- <p><strong>Référence client </strong>: <em>
1853
- <a data-predicate="ds6w:who" data-type="internal" class="s6m-tag-link s6m-link">CLIENT</a>
1854
- </em></p>
1855
- <p><strong>Référence projet </strong>: <em>
1856
- <a data-predicate="ds6w:what" data-type="internal" class="s6m-tag-link s6m-link">NOM AFFAIRE</a>
1857
- <a data-predicate="ds6w:where" data-type="internal" class="s6m-tag-link s6m-link">VILLE</a>
1858
- <a data-predicate="ds6w:where" data-type="internal" class="s6m-tag-link s6m-link">DPT</a>
1859
- </em></p>
1860
- <p>&#x1f4dd; <strong>Base documentaire</strong> : LIEN projet</p>
1861
- <p>&#x1f4dd; <strong>Fiche COCLICO</strong> : LIEN projet<em><strong></strong>
1862
- </em></p>
1863
- <p><br /></p>
1864
- <table border="1">
1865
- <tbody>
1866
- <tr><td><strong>Description projet </strong>:
1867
- <br /><br /></td></tr>
1868
- </tbody>
1869
- </table>
1870
- <p><br /></p>
1871
- <p><br /></p>
1872
- <p><strong>Produit :<em> </em></strong><em>
1873
- <a data-predicate="ds6w:what" data-type="internal" class="s6m-tag-link s6m-link">Hexapli Usiné</a>
1874
- <a data-predicate="ds6w:what" data-type="internal" class="s6m-tag-link s6m-link">Hexapli MP</a>
1875
- <a data-predicate="ds6w:what" data-type="internal" class="s6m-tag-link s6m-link">Lamwood</a>
1876
- </em></p>
1877
- <p><strong>Type de Bâtiment :</strong><em>
1878
- <a data-predicate="ds6w:what" data-type="internal" class="s6m-tag-link s6m-link">Logements</a>
1879
- <a data-predicate="ds6w:what" data-type="internal" class="s6m-tag-link s6m-link">BUP</a>
1880
- <a data-predicate="ds6w:what" data-type="internal" class="s6m-tag-link s6m-link">ERP</a>
1881
- <a data-predicate="ds6w:what" data-type="internal" class="s6m-tag-link s6m-link">Plateforme Logistique</a>
1882
- </em></p>
1883
- <p><strong>Essence :</strong> <em>
1884
- <a data-predicate="ds6w:how" data-type="internal" class="s6m-tag-link s6m-link">DOUGLAS</a>
1885
- <a data-predicate="ds6w:how" data-type="internal" class="s6m-tag-link s6m-link">PIN</a>
1886
- <a data-predicate="ds6w:how" data-type="internal" class="s6m-tag-link s6m-link">MIXTE</a>
1887
- <a data-predicate="ds6w:how" data-type="internal" class="s6m-tag-link s6m-link">EPICEA</a>
1888
- </em></p>
1889
- <p><strong>Qualité : </strong><em>
1890
- <a data-predicate="ds6w:how" data-type="internal" class="s6m-tag-link s6m-link">NVI</a>
1891
- <a data-predicate="ds6w:how" data-type="internal" class="s6m-tag-link s6m-link">VI1F</a>
1892
- <a data-predicate="ds6w:how" data-type="internal" class="s6m-tag-link s6m-link">VI2F</a>
1893
- </em><strong></strong></p>
1894
- <p><strong>Traitement : </strong><em>
1895
- <a data-predicate="ds6w:how" data-type="internal" class="s6m-tag-link s6m-link">PARKA</a>
1896
- <a data-predicate="ds6w:how" data-type="internal" class="s6m-tag-link s6m-link">CT2</a>
1897
- </em></p>
1898
- <p><strong>Type de Paroi : </strong><em>
1899
- <a data-predicate="ds6w:what" data-type="internal" class="s6m-tag-link s6m-link">Murs Intérieurs</a>
1900
- <a data-predicate="ds6w:what" data-type="internal" class="s6m-tag-link s6m-link">Murs Extérieurs</a>
1901
- <a data-predicate="ds6w:what" data-type="internal" class="s6m-tag-link s6m-link">Planchers</a>
1902
- <a data-predicate="ds6w:what" data-type="internal" class="s6m-tag-link s6m-link">Couverture</a>
1903
- </em></p>
1904
- <p><em>
1905
- <a data-predicate="ds6w:what" data-type="internal" class="s6m-tag-link s6m-link">Etanchéité Accessible</a>
1906
- <a data-predicate="ds6w:what" data-type="internal" class="s6m-tag-link s6m-link">Etanchéité Non-Accessible</a>
1907
- </em></p>
1908
- <p><strong>Hauteur Dernier Plancher :</strong><em><strong> </strong>
1909
- <a data-predicate="ds6w:how" data-type="internal" class="s6m-tag-link s6m-link">Hauteur &lt;8m</a>
1910
- <a data-predicate="ds6w:how" data-type="internal" class="s6m-tag-link s6m-link">8m&lt; Hauteur &lt;28m</a>
1911
- <a data-predicate="ds6w:how" data-type="internal" class="s6m-tag-link s6m-link">28m&lt; Hauteur &lt;50m</a>
1912
- </em></p>
1913
- <h2><br /></h2>
1914
- <h2><u>EQUIPE PIVETEAU :</u></h2>
1915
- <table border="1">
1916
- <tbody>
1917
- <tr><td><strong>Chargé d&#39;Affaires</strong></td><td><br /></td></tr>
1918
- <tr><td><strong>Service études de prix</strong></td><td><br /></td></tr>
1919
- </tbody></table>
1920
- <p>
1921
- </p>` : e;
159
+ );
1922
160
  }
1923
- function Qe(e) {
161
+ module.exports = { getActiveServices: F };
162
+ function b(e) {
1924
163
  const t = "Hello " + e;
1925
164
  return console.log(t), t;
1926
165
  }
1927
- const nt = {
1928
- sayHello: Qe,
1929
- _3DSwym_get_version: w,
1930
- _3DSwym_getAllNews: be,
1931
- _3DSwym_getFamiliarPeople: Fe,
1932
- _3DSpace_Create_Doc: ye,
1933
- _3DSpace_csrf: T,
1934
- _3DSpace_download_doc: x,
1935
- _3DSpace_download_multidoc: K,
1936
- _3DSpace_file_update_csr: G,
1937
- _3DSpace_file_update: J,
1938
- _3DSpace_file_url_csr: _e,
1939
- _3DSpace_file_url: U,
1940
- _3DSpace_get_csrf: b,
1941
- _3DSpace_get_docInfo: E,
1942
- _3DSpace_get_downloadTicket_multidoc: V,
1943
- _3DSpace_get_securityContexts: O,
1944
- _3DSpace_lifecycle_changeRevision: Ne,
1945
- _3DSpace_lifecycle_changeState: Te,
1946
- _3DSpace_lifecycle_getGraph: Ce,
1947
- _3DSpace_lifecycle_getNextRevision: Oe,
1948
- _3DSpace_lifecycle_getNextStates: we,
1949
- _3DSwim_getAllCommunities: Ge,
1950
- _3DSwim_getMembersCommunity: Q,
1951
- _3DSwym_buildDirectMessage: Ve,
1952
- _3DSwym_deleteIdea: Be,
1953
- _3DSwym_findCommunityToInstantMSG: Z,
1954
- _3DSwym_get_AllSWYMIdeas: He,
1955
- _3DSwym_get_currentUser: W,
1956
- _3DSwym_get_findUser: Ue,
1957
- _3DSwym_getIdeaStatusMaturity: Ke,
1958
- _3DSwym_getSWYMIdea: ze,
1959
- _3DSwym_postIdea: Ye,
1960
- _3DSwym_sendMessageData: A,
1961
- _AppMngt_get_info_user: le,
1962
- _AppMngt_get_users: de,
1963
- _getPlateformInfos: $,
1964
- _getPlatformServices: v,
1965
- _httpCallAuthenticated: f,
1966
- _setDraggable: ie,
1967
- _setDroppable: re,
1968
- _setupTagger: oe,
1969
- addTagToDoc: Me,
1970
- compass_getListAdditionalApps: ce,
1971
- couleurs: M,
1972
- createUserGroups: pe,
1973
- dataMixing: H,
1974
- deleteUserGroups: me,
1975
- findAdresse: ne,
1976
- get_3DSpace_csrf: ve,
1977
- getActiveServices: X,
1978
- getAllContextSecurity: $e,
1979
- getCommunes: te,
1980
- getComplementUG: ue,
1981
- getCSRFToken: ke,
1982
- getDataFrom3DSpace: Ae,
1983
- getDataFromGouvFr: se,
1984
- getDatasByTenant: je,
1985
- getDatasFrom3DSpace: z,
1986
- getDownloadDocument: Re,
1987
- getInfoDocTags: Je,
1988
- getUserGroupsList: fe,
1989
- getUsersGroupRules: L,
1990
- patchUserGroups: ge,
1991
- patchUserGroupsControl: he,
1992
- pushDataIn3DSpace: De,
1993
- readUserGroupControl: Se,
1994
- removeTagToDoc: Ee,
1995
- updateEvent: ae,
1996
- UUID: D
166
+ const E = {
167
+ sayHello: b
168
+ // _3DSwym_get_version,
169
+ // _3DSwym_getAllNews,
170
+ // _3DSwym_getFamiliarPeople,
171
+ // _3DSpace_Create_Doc,
172
+ // _3DSpace_csrf,
173
+ // _3DSpace_download_doc,
174
+ // _3DSpace_download_multidoc,
175
+ // _3DSpace_file_update_csr,
176
+ // _3DSpace_file_update,
177
+ // _3DSpace_file_url_csr,
178
+ // _3DSpace_file_url,
179
+ // _3DSpace_get_csrf,
180
+ // _3DSpace_get_docInfo,
181
+ // _3DSpace_get_downloadTicket_multidoc,
182
+ // _3DSpace_get_securityContexts,
183
+ // _3DSpace_lifecycle_changeRevision,
184
+ // _3DSpace_lifecycle_changeState,
185
+ // _3DSpace_lifecycle_getGraph,
186
+ // _3DSpace_lifecycle_getNextRevision,
187
+ // _3DSpace_lifecycle_getNextStates,
188
+ // _3DSwim_getAllCommunities,
189
+ // _3DSwim_getMembersCommunity,
190
+ // _3DSwym_buildDirectMessage,
191
+ // _3DSwym_deleteIdea,
192
+ // _3DSwym_findCommunityToInstantMSG,
193
+ // _3DSwym_get_AllSWYMIdeas,
194
+ // _3DSwym_get_currentUser,
195
+ // _3DSwym_get_findUser,
196
+ // _3DSwym_getIdeaStatusMaturity,
197
+ // _3DSwym_getSWYMIdea,
198
+ // _3DSwym_postIdea,
199
+ // _3DSwym_sendMessageData,
200
+ // _AppMngt_get_info_user,
201
+ // _AppMngt_get_users,
202
+ // _getPlateformInfos,
203
+ // _getPlatformServices,
204
+ // _httpCallAuthenticated,
205
+ // _setDraggable,
206
+ // _setDroppable,
207
+ // _setupTagger,
208
+ // addTagToDoc,
209
+ // compass_getListAdditionalApps,
210
+ // couleurs,
211
+ // createUserGroups,
212
+ // dataMixing,
213
+ // deleteUserGroups,
214
+ // findAdresse,
215
+ // get_3DSpace_csrf,
216
+ // getActiveServices,
217
+ // getAllContextSecurity,
218
+ // getCommunes,
219
+ // getComplementUG,
220
+ // getCSRFToken,
221
+ // getDataFrom3DSpace,
222
+ // getDataFromGouvFr,
223
+ // getDatasByTenant,
224
+ // getDatasFrom3DSpace,
225
+ // getDownloadDocument,
226
+ // getInfoDocTags,
227
+ // getUserGroupsList,
228
+ // getUsersGroupRules,
229
+ // patchUserGroups,
230
+ // patchUserGroupsControl,
231
+ // pushDataIn3DSpace,
232
+ // readUserGroupControl,
233
+ // removeTagToDoc,
234
+ // updateEvent,
235
+ // UUID,
1997
236
  };
1998
237
  export {
1999
- nt as default
238
+ E as default
2000
239
  };