@beam3_dev/api_module 0.0.86 → 0.0.88
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 +290 -282
- package/dist/wb3Api.js.map +1 -1
- package/dist/wb3Api.umd.cjs +5 -5
- package/dist/wb3Api.umd.cjs.map +1 -1
- package/package.json +1 -1
package/dist/wb3Api.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { v4 as M } from "uuid";
|
|
2
|
-
import { DateTime as
|
|
2
|
+
import { DateTime as N } from "luxon";
|
|
3
3
|
import { requirejs as O, widget as j } from "@widget-lab/3ddashboard-utils";
|
|
4
4
|
function R() {
|
|
5
5
|
return M();
|
|
@@ -66,8 +66,8 @@ async function re(e, t = void 0, s = void 0) {
|
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
async function ce(e, t = L) {
|
|
69
|
-
let s =
|
|
70
|
-
const n = e, i = [],
|
|
69
|
+
let s = N.now().year;
|
|
70
|
+
const n = e, i = [], c = (a) => {
|
|
71
71
|
for (let o in a)
|
|
72
72
|
i.push({ date: o, comment: a[o] });
|
|
73
73
|
};
|
|
@@ -81,7 +81,7 @@ async function ce(e, t = L) {
|
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
).then((o) => o.json()).then((o) => {
|
|
84
|
-
|
|
84
|
+
c(o);
|
|
85
85
|
}).catch((o) => console.error("Erreur : " + o));
|
|
86
86
|
return (() => {
|
|
87
87
|
const a = n.length === 0 ? {
|
|
@@ -89,11 +89,11 @@ async function ce(e, t = L) {
|
|
|
89
89
|
} : n;
|
|
90
90
|
for (let o of i)
|
|
91
91
|
a.events.findIndex(
|
|
92
|
-
(l) => l.start ===
|
|
92
|
+
(l) => l.start === N.fromISO(o.date).toISODate() && l.name === "Férié : " + o.comment
|
|
93
93
|
) === -1 && a.events.push({
|
|
94
94
|
name: "Férié : " + o.comment,
|
|
95
|
-
start:
|
|
96
|
-
end:
|
|
95
|
+
start: N.fromISO(o.date).toISODate(),
|
|
96
|
+
end: N.fromISO(o.date).toISODate(),
|
|
97
97
|
color: t.b3BusinnessDays,
|
|
98
98
|
timed: !1
|
|
99
99
|
});
|
|
@@ -102,7 +102,7 @@ async function ce(e, t = L) {
|
|
|
102
102
|
}
|
|
103
103
|
async function de(e, t, s = !0) {
|
|
104
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,
|
|
105
|
+
return n === -1 ? e.events.push(t) : s ? e.events[n] = t : e.events.splice(n, 1), e.length > 0 && e.sort((i, c) => i.start - c.start), e;
|
|
106
106
|
}
|
|
107
107
|
function m(e, t) {
|
|
108
108
|
O(["DS/WAFData/WAFData"], (s) => {
|
|
@@ -145,14 +145,14 @@ async function fe(e, t = void 0, s = void 0) {
|
|
|
145
145
|
function me() {
|
|
146
146
|
let e = {};
|
|
147
147
|
return O(["DS/PlatformAPI/PlatformAPI"], (t) => {
|
|
148
|
-
const s = t.getTenant(), n = t.getUser(), i = t.getAllApplicationConfigurations(),
|
|
148
|
+
const s = t.getTenant(), n = t.getUser(), i = t.getAllApplicationConfigurations(), c = t.getApplicationConfiguration(
|
|
149
149
|
"com.3ds.wp.passport.cors"
|
|
150
150
|
);
|
|
151
151
|
e = {
|
|
152
152
|
tenant: s,
|
|
153
153
|
user: n,
|
|
154
154
|
appsConfiguration: i,
|
|
155
|
-
appConf:
|
|
155
|
+
appConf: c
|
|
156
156
|
};
|
|
157
157
|
}), console.log("%cRETOUR API :", "color:blue", e), e;
|
|
158
158
|
}
|
|
@@ -169,42 +169,42 @@ function ge(e, t, s) {
|
|
|
169
169
|
"Content-Type": "application/json",
|
|
170
170
|
Accept: "application/json"
|
|
171
171
|
},
|
|
172
|
-
onComplete(
|
|
173
|
-
const o = JSON.parse(
|
|
172
|
+
onComplete(c, r, a) {
|
|
173
|
+
const o = JSON.parse(c), d = o.data.map((l) => {
|
|
174
174
|
const p = l.attributes.name, u = l.id;
|
|
175
175
|
return { name: p, id: u };
|
|
176
176
|
});
|
|
177
177
|
t && t(d, o);
|
|
178
178
|
},
|
|
179
|
-
onFailure(
|
|
180
|
-
const a =
|
|
181
|
-
a.msg =
|
|
179
|
+
onFailure(c, r) {
|
|
180
|
+
const a = c;
|
|
181
|
+
a.msg = r.errormsg, a.errCode = r.errorcode, s && s(a);
|
|
182
182
|
}
|
|
183
183
|
});
|
|
184
184
|
}
|
|
185
185
|
function he(e, t = void 0, s = void 0) {
|
|
186
186
|
let n = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&limit=-1`;
|
|
187
187
|
m(n, {
|
|
188
|
-
onComplete(i,
|
|
188
|
+
onComplete(i, c, r) {
|
|
189
189
|
const a = JSON.parse(i);
|
|
190
190
|
console.log("_AppMngt_get_users => ", a), t && t(a);
|
|
191
191
|
},
|
|
192
|
-
onFailure(i,
|
|
193
|
-
const
|
|
194
|
-
|
|
192
|
+
onFailure(i, c) {
|
|
193
|
+
const r = i;
|
|
194
|
+
r.msg = c.errormsg, r.errCode = c.errorcode, s && s(r);
|
|
195
195
|
}
|
|
196
196
|
});
|
|
197
197
|
}
|
|
198
198
|
function Se(e, t, s = void 0, n = void 0) {
|
|
199
199
|
let i = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&id=${t}`;
|
|
200
200
|
m(i, {
|
|
201
|
-
onComplete(
|
|
202
|
-
const o = JSON.parse(
|
|
201
|
+
onComplete(c, r, a) {
|
|
202
|
+
const o = JSON.parse(c);
|
|
203
203
|
s && s(o);
|
|
204
204
|
},
|
|
205
|
-
onFailure(
|
|
206
|
-
const a =
|
|
207
|
-
a.msg =
|
|
205
|
+
onFailure(c, r) {
|
|
206
|
+
const a = c;
|
|
207
|
+
a.msg = r.errormsg, a.errCode = r.errorcode, n && n(a);
|
|
208
208
|
}
|
|
209
209
|
});
|
|
210
210
|
}
|
|
@@ -213,14 +213,14 @@ const D = {
|
|
|
213
213
|
Accept: "application/json,text/javascript,*/*"
|
|
214
214
|
};
|
|
215
215
|
function _e(e, t, s = void 0, n = void 0) {
|
|
216
|
-
const { space: i, currentUser:
|
|
216
|
+
const { space: i, currentUser: c } = e, a = `${i}${{
|
|
217
217
|
URIUGr: "/3drdfpersist/resources/v1/usersgroup"
|
|
218
218
|
}.URIUGr}`, o = {
|
|
219
219
|
groups: [
|
|
220
220
|
{
|
|
221
221
|
title: t.title,
|
|
222
222
|
description: t.description,
|
|
223
|
-
members: t.members || [
|
|
223
|
+
members: t.members || [c.email, "samuel.mureau@beam3.fr"],
|
|
224
224
|
pending_members: [],
|
|
225
225
|
sharing: t.sharing,
|
|
226
226
|
visibility: t.visibility
|
|
@@ -242,7 +242,7 @@ function _e(e, t, s = void 0, n = void 0) {
|
|
|
242
242
|
});
|
|
243
243
|
}
|
|
244
244
|
function ye(e, t, s = void 0, n = void 0) {
|
|
245
|
-
const { space: i, tenant:
|
|
245
|
+
const { space: i, tenant: c } = e, r = i, a = `/3drdfpersist/v1/resources/${t}`, o = `?$mask=dsaccess:Mask.GroupUI.Properties&tenant=dstenant:${c}`, d = `${r}${a}${o}`;
|
|
246
246
|
m(d, {
|
|
247
247
|
opts: {
|
|
248
248
|
method: "GET",
|
|
@@ -261,10 +261,10 @@ function ye(e, t, s = void 0, n = void 0) {
|
|
|
261
261
|
});
|
|
262
262
|
}
|
|
263
263
|
function J(e, t = void 0, s = void 0) {
|
|
264
|
-
const { space: n, tenant: i } = e,
|
|
264
|
+
const { space: n, tenant: i } = e, c = n, r = "/3drdfpersist/resources/v1/option-sets/dsusergroup:ListOfGroupResponsibilities/options", a = `?tenant=dstenant:${i}`, o = {
|
|
265
265
|
method: "GET",
|
|
266
266
|
Accept: "application/json,*/*,test/javascript"
|
|
267
|
-
}, d = `${
|
|
267
|
+
}, d = `${c}${r}${a}`;
|
|
268
268
|
m(d, {
|
|
269
269
|
OPTsH: o,
|
|
270
270
|
onComplete(l) {
|
|
@@ -307,22 +307,22 @@ function we(e, t = void 0, s = void 0) {
|
|
|
307
307
|
console.log(l);
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
|
-
function
|
|
310
|
+
function Ce(e, t) {
|
|
311
311
|
const { space: s } = e, i = `${s}/3drdfpersist/resources/v1/usersgroup/${t}`;
|
|
312
312
|
m(i, {
|
|
313
313
|
method: "DELETE"
|
|
314
314
|
});
|
|
315
315
|
}
|
|
316
|
-
function
|
|
317
|
-
const { space:
|
|
316
|
+
function Te(e, t, s, n = void 0, i = void 0) {
|
|
317
|
+
const { space: c, tenant: r } = e, a = {
|
|
318
318
|
URITI: "/3drdfpersist/resources/v1/template-instances",
|
|
319
319
|
URIUGr: "/3drdfpersist/resources/v1/usersgroup",
|
|
320
320
|
nextURICh: "/characteristics",
|
|
321
321
|
nextURIGr: "/group",
|
|
322
322
|
nexURImem: "/members",
|
|
323
323
|
OPTsTI: "?$mask=dsaccess:Mask.GroupUI.Properties",
|
|
324
|
-
OPTsTenant: `tenant=dstenant:${
|
|
325
|
-
}, o = s, d = `${
|
|
324
|
+
OPTsTenant: `tenant=dstenant:${r}`
|
|
325
|
+
}, o = s, d = `${c}${a.URIUGr}/${t}`, l = JSON.stringify(o);
|
|
326
326
|
m(d, {
|
|
327
327
|
headers: D,
|
|
328
328
|
method: "PATCH",
|
|
@@ -337,7 +337,7 @@ function Ce(e, t, s, n = void 0, i = void 0) {
|
|
|
337
337
|
});
|
|
338
338
|
}
|
|
339
339
|
function Oe(e, t, s, n = void 0, i = void 0) {
|
|
340
|
-
const { space:
|
|
340
|
+
const { space: c } = e, a = `${c}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
|
|
341
341
|
m(a, {
|
|
342
342
|
method: "PATCH",
|
|
343
343
|
headers: D,
|
|
@@ -351,9 +351,9 @@ function Oe(e, t, s, n = void 0, i = void 0) {
|
|
|
351
351
|
}
|
|
352
352
|
});
|
|
353
353
|
}
|
|
354
|
-
function
|
|
355
|
-
const { space: i } = e,
|
|
356
|
-
m(
|
|
354
|
+
function Ne(e, t, s = void 0, n = void 0) {
|
|
355
|
+
const { space: i } = e, r = `${i}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
|
|
356
|
+
m(r, {
|
|
357
357
|
opts: {
|
|
358
358
|
method: "GET",
|
|
359
359
|
headers: {
|
|
@@ -376,8 +376,8 @@ async function E(e, t, s) {
|
|
|
376
376
|
onComplete(i) {
|
|
377
377
|
i = JSON.parse(i), t && t(i.csrf);
|
|
378
378
|
},
|
|
379
|
-
onFailure(i,
|
|
380
|
-
s && s({ error: i, headers:
|
|
379
|
+
onFailure(i, c, r) {
|
|
380
|
+
s && s({ error: i, headers: c, xhr: r });
|
|
381
381
|
}
|
|
382
382
|
});
|
|
383
383
|
}
|
|
@@ -388,14 +388,14 @@ async function G(e, t = void 0, s = void 0, n = void 0) {
|
|
|
388
388
|
console.log("Le paramètre docid est obligatoire");
|
|
389
389
|
return;
|
|
390
390
|
}
|
|
391
|
-
const
|
|
392
|
-
m(
|
|
393
|
-
onComplete(
|
|
394
|
-
const d = JSON.parse(
|
|
391
|
+
const c = i + `/resources/v1/modeler/documents/${t}`;
|
|
392
|
+
m(c, {
|
|
393
|
+
onComplete(r, a, o) {
|
|
394
|
+
const d = JSON.parse(r);
|
|
395
395
|
s && s(d);
|
|
396
396
|
},
|
|
397
|
-
onFailure(
|
|
398
|
-
n && n(
|
|
397
|
+
onFailure(r) {
|
|
398
|
+
n && n(r);
|
|
399
399
|
}
|
|
400
400
|
});
|
|
401
401
|
}
|
|
@@ -403,7 +403,7 @@ function k(e, t = void 0, s = void 0) {
|
|
|
403
403
|
if (e.objID && e.objID !== "") {
|
|
404
404
|
let n = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
|
|
405
405
|
m(n, {
|
|
406
|
-
onComplete(i,
|
|
406
|
+
onComplete(i, c, r) {
|
|
407
407
|
const a = JSON.parse(i);
|
|
408
408
|
e.token = a?.csrf?.value, e.datas = a?.data[0], t && t(e);
|
|
409
409
|
},
|
|
@@ -412,7 +412,7 @@ function k(e, t = void 0, s = void 0) {
|
|
|
412
412
|
}
|
|
413
413
|
});
|
|
414
414
|
} else
|
|
415
|
-
|
|
415
|
+
T(
|
|
416
416
|
e,
|
|
417
417
|
(n) => {
|
|
418
418
|
console.log("_3DSpace_get_csrf / _3DSpace_csrf", n), t && t(n);
|
|
@@ -422,19 +422,19 @@ function k(e, t = void 0, s = void 0) {
|
|
|
422
422
|
}
|
|
423
423
|
);
|
|
424
424
|
}
|
|
425
|
-
function
|
|
425
|
+
function T(e, t = void 0, s = void 0) {
|
|
426
426
|
if (e.space) {
|
|
427
427
|
const n = e.space + "/resources/v1/application/CSRF";
|
|
428
428
|
m(n, {
|
|
429
|
-
onComplete(i,
|
|
429
|
+
onComplete(i, c, r) {
|
|
430
430
|
const a = JSON.parse(i);
|
|
431
431
|
t && t(a.csrf.value);
|
|
432
432
|
},
|
|
433
|
-
onFailure(i,
|
|
433
|
+
onFailure(i, c, r) {
|
|
434
434
|
s && s({
|
|
435
435
|
response: i,
|
|
436
|
-
headers:
|
|
437
|
-
xhr:
|
|
436
|
+
headers: c,
|
|
437
|
+
xhr: r
|
|
438
438
|
});
|
|
439
439
|
}
|
|
440
440
|
});
|
|
@@ -451,12 +451,12 @@ function A(e, t = void 0, s = void 0) {
|
|
|
451
451
|
headers: {
|
|
452
452
|
ENO_CSRF_TOKEN: e.token
|
|
453
453
|
},
|
|
454
|
-
onComplete(
|
|
455
|
-
const a = JSON.parse(
|
|
454
|
+
onComplete(c) {
|
|
455
|
+
const a = JSON.parse(c).data[0].dataelements.ticketURL;
|
|
456
456
|
t && t(a);
|
|
457
457
|
},
|
|
458
|
-
onFailure(
|
|
459
|
-
console.warn("☠️ error => ",
|
|
458
|
+
onFailure(c, r) {
|
|
459
|
+
console.warn("☠️ error => ", c, r), s && s(c, r);
|
|
460
460
|
}
|
|
461
461
|
});
|
|
462
462
|
},
|
|
@@ -465,15 +465,15 @@ function A(e, t = void 0, s = void 0) {
|
|
|
465
465
|
}
|
|
466
466
|
);
|
|
467
467
|
}
|
|
468
|
-
function
|
|
469
|
-
const
|
|
470
|
-
s || (s = e.token), m(
|
|
468
|
+
function be(e, t, s, n = void 0, i = void 0) {
|
|
469
|
+
const c = `${e.space}/resources/v1/modeler/documents/${t}/files/DownloadTicket`;
|
|
470
|
+
s || (s = e.token), m(c, {
|
|
471
471
|
method: "PUT",
|
|
472
472
|
headers: {
|
|
473
473
|
ENO_CSRF_TOKEN: s
|
|
474
474
|
},
|
|
475
|
-
onComplete(
|
|
476
|
-
let a = JSON.parse(
|
|
475
|
+
onComplete(r) {
|
|
476
|
+
let a = JSON.parse(r);
|
|
477
477
|
if (console.log("☠️ info => ", a), a.success === !0)
|
|
478
478
|
try {
|
|
479
479
|
const o = a.data[0].dataelements.ticketURL;
|
|
@@ -482,12 +482,12 @@ function Ne(e, t, s, n = void 0, i = void 0) {
|
|
|
482
482
|
i && i(o);
|
|
483
483
|
}
|
|
484
484
|
},
|
|
485
|
-
onFailure(
|
|
486
|
-
i && i(
|
|
485
|
+
onFailure(r) {
|
|
486
|
+
i && i(r);
|
|
487
487
|
}
|
|
488
488
|
});
|
|
489
489
|
}
|
|
490
|
-
function K(e, t, s, n, i,
|
|
490
|
+
function K(e, t, s, n, i, c = void 0, r = void 0) {
|
|
491
491
|
k(
|
|
492
492
|
e,
|
|
493
493
|
t,
|
|
@@ -499,18 +499,18 @@ function K(e, t, s, n, i, r = void 0, c = void 0) {
|
|
|
499
499
|
n,
|
|
500
500
|
i,
|
|
501
501
|
a.csrf.value,
|
|
502
|
-
|
|
503
|
-
|
|
502
|
+
c,
|
|
503
|
+
r
|
|
504
504
|
);
|
|
505
505
|
}
|
|
506
506
|
);
|
|
507
507
|
}
|
|
508
|
-
function X(e, t, s, n, i,
|
|
508
|
+
function X(e, t, s, n, i, c, r = void 0, a = void 0) {
|
|
509
509
|
const o = e.space + `/resources/v1/modeler/documents/${t}/files/CheckinTicket`;
|
|
510
510
|
m(o, {
|
|
511
511
|
method: "PUT",
|
|
512
512
|
headers: {
|
|
513
|
-
ENO_CSRF_TOKEN:
|
|
513
|
+
ENO_CSRF_TOKEN: c
|
|
514
514
|
},
|
|
515
515
|
onComplete(d, l, p) {
|
|
516
516
|
const u = JSON.parse(d).data[0].dataelements, f = new FormData();
|
|
@@ -520,7 +520,7 @@ function X(e, t, s, n, i, r, c = void 0, a = void 0) {
|
|
|
520
520
|
let S = "temp_" + Date.now(), _ = {
|
|
521
521
|
method: "PUT",
|
|
522
522
|
headers: {
|
|
523
|
-
ENO_CSRF_TOKEN:
|
|
523
|
+
ENO_CSRF_TOKEN: c
|
|
524
524
|
},
|
|
525
525
|
data: JSON.stringify({
|
|
526
526
|
data: [{
|
|
@@ -540,7 +540,7 @@ function X(e, t, s, n, i, r, c = void 0, a = void 0) {
|
|
|
540
540
|
}),
|
|
541
541
|
type: "json",
|
|
542
542
|
onComplete(y) {
|
|
543
|
-
|
|
543
|
+
r && r(y);
|
|
544
544
|
},
|
|
545
545
|
onFailure(y) {
|
|
546
546
|
a && a(y);
|
|
@@ -556,14 +556,14 @@ function X(e, t, s, n, i, r, c = void 0, a = void 0) {
|
|
|
556
556
|
}
|
|
557
557
|
});
|
|
558
558
|
}
|
|
559
|
-
async function ke(e, t, s, n, i = void 0,
|
|
560
|
-
const
|
|
559
|
+
async function ke(e, t, s, n, i = void 0, c = void 0) {
|
|
560
|
+
const r = e.space, a = e.token, o = e.ctx, d = new FormData(), l = new Blob([JSON.stringify(t)], {
|
|
561
561
|
type: "text/plain"
|
|
562
562
|
}), p = {
|
|
563
|
-
url_Ticket: `${
|
|
564
|
-
url_Post: `${
|
|
563
|
+
url_Ticket: `${r}/resources/v1/modeler/documents/files/CheckinTicket`,
|
|
564
|
+
url_Post: `${r}/resources/v1/modeler/documents/?SecurityContext=ctx::${o}`
|
|
565
565
|
};
|
|
566
|
-
if (!
|
|
566
|
+
if (!r && r !== "") {
|
|
567
567
|
console.log("le store._3DSpace est vide");
|
|
568
568
|
return;
|
|
569
569
|
}
|
|
@@ -578,7 +578,7 @@ async function ke(e, t, s, n, i = void 0, r = void 0) {
|
|
|
578
578
|
const S = {
|
|
579
579
|
method: "POST",
|
|
580
580
|
data: d,
|
|
581
|
-
onComplete(
|
|
581
|
+
onComplete(C) {
|
|
582
582
|
if (o !== "" && a !== "") {
|
|
583
583
|
const F = {
|
|
584
584
|
method: "POST",
|
|
@@ -599,7 +599,7 @@ async function ke(e, t, s, n, i = void 0, r = void 0) {
|
|
|
599
599
|
files: [{
|
|
600
600
|
dataelements: {
|
|
601
601
|
title: `${s}.json`,
|
|
602
|
-
receipt:
|
|
602
|
+
receipt: C
|
|
603
603
|
}
|
|
604
604
|
}]
|
|
605
605
|
},
|
|
@@ -617,18 +617,18 @@ async function ke(e, t, s, n, i = void 0, r = void 0) {
|
|
|
617
617
|
},
|
|
618
618
|
onFailure: y
|
|
619
619
|
};
|
|
620
|
-
function _(
|
|
621
|
-
console.log("Success -- response ",
|
|
620
|
+
function _(C) {
|
|
621
|
+
console.log("Success -- response ", C.data[0]), i && i(C);
|
|
622
622
|
}
|
|
623
|
-
function y(
|
|
624
|
-
console.log("Erreur -- response ",
|
|
625
|
-
headers `, F),
|
|
623
|
+
function y(C, F) {
|
|
624
|
+
console.log("Erreur -- response ", C, `
|
|
625
|
+
headers `, F), c && c(C);
|
|
626
626
|
}
|
|
627
627
|
m(h.ticketURL, S);
|
|
628
628
|
}
|
|
629
629
|
});
|
|
630
630
|
}
|
|
631
|
-
function
|
|
631
|
+
function b(e, t = void 0, s = void 0, n = void 0, i = void 0, c = void 0, r = !1) {
|
|
632
632
|
const a = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
|
|
633
633
|
m(a, {
|
|
634
634
|
method: "GET",
|
|
@@ -642,7 +642,7 @@ function N(e, t = void 0, s = void 0, n = void 0, i = void 0, r = void 0, c = !1
|
|
|
642
642
|
let h = g.couples;
|
|
643
643
|
h = h.filter(
|
|
644
644
|
(S, _, y) => _ === y.findIndex(
|
|
645
|
-
(
|
|
645
|
+
(C) => C.organization.pid === S.organization.pid && C.role.pid === S.role.pid
|
|
646
646
|
)
|
|
647
647
|
), s && (Array.isArray(s) ? s.forEach((S) => {
|
|
648
648
|
f || h.forEach((_) => {
|
|
@@ -650,9 +650,9 @@ function N(e, t = void 0, s = void 0, n = void 0, i = void 0, r = void 0, c = !1
|
|
|
650
650
|
f = S, u = n;
|
|
651
651
|
else if (S === _.role.name) {
|
|
652
652
|
let y = h.filter(
|
|
653
|
-
(
|
|
653
|
+
(C) => C.role.name === S
|
|
654
654
|
);
|
|
655
|
-
y.length === 1 ? (f = y[0].role.name, u = y[0].organization.title) :
|
|
655
|
+
y.length === 1 ? (f = y[0].role.name, u = y[0].organization.title) : c(y);
|
|
656
656
|
}
|
|
657
657
|
});
|
|
658
658
|
}) : h.forEach((S) => {
|
|
@@ -662,12 +662,12 @@ function N(e, t = void 0, s = void 0, n = void 0, i = void 0, r = void 0, c = !1
|
|
|
662
662
|
let _ = h.filter(
|
|
663
663
|
(y) => y.role.name === s
|
|
664
664
|
);
|
|
665
|
-
_.length === 1 ? (f = _[0].role.name, u = _[0].organization.title) :
|
|
665
|
+
_.length === 1 ? (f = _[0].role.name, u = _[0].organization.title) : c(_);
|
|
666
666
|
}
|
|
667
667
|
}));
|
|
668
668
|
}
|
|
669
669
|
}
|
|
670
|
-
p && u && f ? (l = f + "." + u + "." + p, i(l)) : d.preferredcredentials &&
|
|
670
|
+
p && u && f ? (l = f + "." + u + "." + p, i(l)) : d.preferredcredentials && r ? (l = d.preferredcredentials.role.name + "." + d.preferredcredentials.organization.title + "." + d.preferredcredentials.collabspace.title, i(l)) : c && (l = f + "." + u + "." + p, c(l));
|
|
671
671
|
},
|
|
672
672
|
onFailure(o, d) {
|
|
673
673
|
console.log("Erreur de récupération du contexte de sécurité. => ", {
|
|
@@ -695,8 +695,8 @@ async function I(e, t = void 0, s = void 0) {
|
|
|
695
695
|
)), new Promise((n, i) => {
|
|
696
696
|
A(
|
|
697
697
|
e,
|
|
698
|
-
(
|
|
699
|
-
m(
|
|
698
|
+
(c) => {
|
|
699
|
+
m(c, {
|
|
700
700
|
headers: {
|
|
701
701
|
"Content-Type": "application/json",
|
|
702
702
|
Accept: "application/json"
|
|
@@ -723,8 +723,8 @@ async function I(e, t = void 0, s = void 0) {
|
|
|
723
723
|
}
|
|
724
724
|
});
|
|
725
725
|
},
|
|
726
|
-
(
|
|
727
|
-
s && s(
|
|
726
|
+
(c) => {
|
|
727
|
+
s && s(c), console.log("*_3dspace_download_doc / error file URL *", c), i(c);
|
|
728
728
|
}
|
|
729
729
|
);
|
|
730
730
|
});
|
|
@@ -736,40 +736,40 @@ async function W(e, t, s = void 0, n = void 0) {
|
|
|
736
736
|
const o = t.slice(a, a + 80);
|
|
737
737
|
i.push(o);
|
|
738
738
|
}
|
|
739
|
-
const
|
|
739
|
+
const r = (a) => {
|
|
740
740
|
V(
|
|
741
741
|
e,
|
|
742
742
|
i[a],
|
|
743
743
|
() => {
|
|
744
|
-
a++, a < i.length &&
|
|
744
|
+
a++, a < i.length && r(a);
|
|
745
745
|
},
|
|
746
746
|
(o) => {
|
|
747
747
|
s && s(o);
|
|
748
748
|
}
|
|
749
749
|
);
|
|
750
750
|
};
|
|
751
|
-
|
|
751
|
+
r(0);
|
|
752
752
|
} else
|
|
753
753
|
console.warn("La liste d'objects dans la fonction _3DSpace_download_multidoc est vide ou non défini."), n && n("La liste d'objects dans la fonction _3DSpace_download_multidoc est vide ou non défini.");
|
|
754
754
|
}
|
|
755
755
|
function V(e, t, s = void 0, n = void 0, i = void 0) {
|
|
756
|
-
const
|
|
756
|
+
const c = [];
|
|
757
757
|
t.forEach((o) => {
|
|
758
|
-
|
|
758
|
+
c.push({
|
|
759
759
|
id: o
|
|
760
760
|
});
|
|
761
761
|
});
|
|
762
|
-
let
|
|
762
|
+
let r = JSON.stringify({
|
|
763
763
|
csrf: {
|
|
764
764
|
name: "ENO_CSRF_TOKEN",
|
|
765
765
|
value: e.token
|
|
766
766
|
},
|
|
767
|
-
data:
|
|
767
|
+
data: c
|
|
768
768
|
});
|
|
769
769
|
const a = `${e.space}/resources/v1/modeler/documents/DownloadTicket?tenant=${e.tenant}&e6w-lang=fr&e6w-timezone=-120`;
|
|
770
770
|
m(a, {
|
|
771
771
|
method: "PUT",
|
|
772
|
-
data:
|
|
772
|
+
data: r,
|
|
773
773
|
type: "json",
|
|
774
774
|
onComplete(o) {
|
|
775
775
|
const d = o.data;
|
|
@@ -800,9 +800,9 @@ function V(e, t, s = void 0, n = void 0, i = void 0) {
|
|
|
800
800
|
}
|
|
801
801
|
function Fe(e, t, s = void 0, n = void 0) {
|
|
802
802
|
return new Promise((i) => {
|
|
803
|
-
if (e.token === "" &&
|
|
804
|
-
const
|
|
805
|
-
|
|
803
|
+
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
804
|
+
const c = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
|
|
805
|
+
b(
|
|
806
806
|
e.space,
|
|
807
807
|
"ESPACE COMMUN",
|
|
808
808
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -812,7 +812,7 @@ function Fe(e, t, s = void 0, n = void 0) {
|
|
|
812
812
|
console.log("onError =>", a);
|
|
813
813
|
}
|
|
814
814
|
);
|
|
815
|
-
let
|
|
815
|
+
let r = {
|
|
816
816
|
method: "POST",
|
|
817
817
|
headers: {
|
|
818
818
|
SecurityContext: "ctx::" + e.ctx,
|
|
@@ -833,15 +833,15 @@ function Fe(e, t, s = void 0, n = void 0) {
|
|
|
833
833
|
n && n(a);
|
|
834
834
|
}
|
|
835
835
|
};
|
|
836
|
-
m(
|
|
836
|
+
m(c, r);
|
|
837
837
|
}
|
|
838
838
|
});
|
|
839
839
|
}
|
|
840
840
|
function De(e, t, s, n = void 0, i = void 0) {
|
|
841
|
-
return new Promise((
|
|
842
|
-
if (e.token === "" &&
|
|
843
|
-
const
|
|
844
|
-
|
|
841
|
+
return new Promise((c) => {
|
|
842
|
+
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
843
|
+
const r = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
|
|
844
|
+
b(
|
|
845
845
|
e.space,
|
|
846
846
|
"ESPACE COMMUN",
|
|
847
847
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -873,15 +873,15 @@ function De(e, t, s, n = void 0, i = void 0) {
|
|
|
873
873
|
i && i(o);
|
|
874
874
|
}
|
|
875
875
|
};
|
|
876
|
-
m(
|
|
876
|
+
m(r, a);
|
|
877
877
|
}
|
|
878
878
|
});
|
|
879
879
|
}
|
|
880
880
|
function Ae(e, t, s = void 0, n = void 0) {
|
|
881
881
|
return new Promise((i) => {
|
|
882
|
-
if (e.token === "" &&
|
|
883
|
-
const
|
|
884
|
-
|
|
882
|
+
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
883
|
+
const c = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
|
|
884
|
+
b(
|
|
885
885
|
e.space,
|
|
886
886
|
"ESPACE COMMUN",
|
|
887
887
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -891,7 +891,7 @@ function Ae(e, t, s = void 0, n = void 0) {
|
|
|
891
891
|
console.log("onError =>", a);
|
|
892
892
|
}
|
|
893
893
|
);
|
|
894
|
-
let
|
|
894
|
+
let r = {
|
|
895
895
|
method: "POST",
|
|
896
896
|
headers: {
|
|
897
897
|
securitycontext: "ctx::" + e.ctx,
|
|
@@ -912,15 +912,15 @@ function Ae(e, t, s = void 0, n = void 0) {
|
|
|
912
912
|
n && n(a);
|
|
913
913
|
}
|
|
914
914
|
};
|
|
915
|
-
m(
|
|
915
|
+
m(c, r);
|
|
916
916
|
}
|
|
917
917
|
});
|
|
918
918
|
}
|
|
919
919
|
function $e(e, t, s = void 0, n = void 0) {
|
|
920
920
|
return new Promise((i) => {
|
|
921
|
-
if (e.token === "" &&
|
|
922
|
-
const
|
|
923
|
-
|
|
921
|
+
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
922
|
+
const c = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
|
|
923
|
+
b(
|
|
924
924
|
e.space,
|
|
925
925
|
"ESPACE COMMUN",
|
|
926
926
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -930,7 +930,7 @@ function $e(e, t, s = void 0, n = void 0) {
|
|
|
930
930
|
console.log("onError =>", a);
|
|
931
931
|
}
|
|
932
932
|
);
|
|
933
|
-
let
|
|
933
|
+
let r = {
|
|
934
934
|
method: "POST",
|
|
935
935
|
headers: {
|
|
936
936
|
SecurityContext: "ctx::" + e.ctx,
|
|
@@ -957,15 +957,15 @@ function $e(e, t, s = void 0, n = void 0) {
|
|
|
957
957
|
n && n(a);
|
|
958
958
|
}
|
|
959
959
|
};
|
|
960
|
-
m(
|
|
960
|
+
m(c, r);
|
|
961
961
|
}
|
|
962
962
|
});
|
|
963
963
|
}
|
|
964
964
|
function Ue(e, t, s, n = void 0, i = void 0) {
|
|
965
|
-
return new Promise((
|
|
966
|
-
if (e.token === "" &&
|
|
967
|
-
const
|
|
968
|
-
|
|
965
|
+
return new Promise((c) => {
|
|
966
|
+
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
967
|
+
const r = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
|
|
968
|
+
b(
|
|
969
969
|
e.space,
|
|
970
970
|
"ESPACE COMMUN",
|
|
971
971
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -1002,59 +1002,67 @@ function Ue(e, t, s, n = void 0, i = void 0) {
|
|
|
1002
1002
|
i && i(o);
|
|
1003
1003
|
}
|
|
1004
1004
|
};
|
|
1005
|
-
m(
|
|
1005
|
+
m(r, a);
|
|
1006
1006
|
}
|
|
1007
1007
|
});
|
|
1008
1008
|
}
|
|
1009
1009
|
function je(e, t, s = void 0, n = void 0) {
|
|
1010
1010
|
return new Promise((i) => {
|
|
1011
|
-
if (e.token === "" &&
|
|
1012
|
-
const
|
|
1013
|
-
`${e.space}
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1011
|
+
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
1012
|
+
const c = N.now().ts;
|
|
1013
|
+
`${e.space}`, m(`https://eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dsearch&platformId=${e._platformId}`, {
|
|
1014
|
+
onComplete(r) {
|
|
1015
|
+
if (Array.isArray(JSON.parse(r))) {
|
|
1016
|
+
oResponse = JSON.parse(r)[0];
|
|
1017
|
+
const a = `${oResponse.service[0].url}/search?xrequestedwith=xmlhttprequest&tenant=${e._platformId}×tamp=${c}`;
|
|
1018
|
+
m(a, {
|
|
1019
|
+
method: "POST",
|
|
1020
|
+
headers: {
|
|
1021
|
+
Accept: "application/json",
|
|
1022
|
+
"Content-Type": "application/json"
|
|
1023
|
+
},
|
|
1024
|
+
data: JSON.stringify({
|
|
1025
|
+
with_indexing_date: !0,
|
|
1026
|
+
with_nls: !1,
|
|
1027
|
+
label: `yus-${c}`,
|
|
1028
|
+
locale: "en",
|
|
1029
|
+
select_predicate: [
|
|
1030
|
+
"ds6w:label",
|
|
1031
|
+
"ds6w:type",
|
|
1032
|
+
"ds6w:description",
|
|
1033
|
+
"ds6w:identifier",
|
|
1034
|
+
"ds6w:responsible",
|
|
1035
|
+
"ds6wg:fullname"
|
|
1036
|
+
],
|
|
1037
|
+
select_file: [
|
|
1038
|
+
"icon",
|
|
1039
|
+
"thumbnail_2d"
|
|
1040
|
+
],
|
|
1041
|
+
query: '([ds6w:type]:(Group) AND [ds6w:status]:(Public)) OR (flattenedtaxonomies:"types/Person" AND current:"active")',
|
|
1042
|
+
order_by: "desc",
|
|
1043
|
+
order_field: "relevance",
|
|
1044
|
+
nresults: 1e3,
|
|
1045
|
+
start: "0",
|
|
1046
|
+
source: [
|
|
1047
|
+
"3dspace",
|
|
1048
|
+
"usersgroup"
|
|
1049
|
+
],
|
|
1050
|
+
tenant: e._platformId
|
|
1051
|
+
}),
|
|
1052
|
+
type: "json",
|
|
1053
|
+
onComplete(o) {
|
|
1054
|
+
s && s(o);
|
|
1055
|
+
},
|
|
1056
|
+
onFailure(o) {
|
|
1057
|
+
n && n(o);
|
|
1058
|
+
}
|
|
1059
|
+
});
|
|
1060
|
+
}
|
|
1052
1061
|
},
|
|
1053
|
-
onFailure(
|
|
1054
|
-
n && n(
|
|
1062
|
+
onFailure(r) {
|
|
1063
|
+
n && n(r);
|
|
1055
1064
|
}
|
|
1056
|
-
}
|
|
1057
|
-
JSON.stringify({
|
|
1065
|
+
}), JSON.stringify({
|
|
1058
1066
|
csrf: {
|
|
1059
1067
|
name: "ENO_CSRF_TOKEN",
|
|
1060
1068
|
value: e.token
|
|
@@ -1070,7 +1078,7 @@ function je(e, t, s = void 0, n = void 0) {
|
|
|
1070
1078
|
},
|
|
1071
1079
|
tenant: e.tenant
|
|
1072
1080
|
}]
|
|
1073
|
-
})
|
|
1081
|
+
});
|
|
1074
1082
|
}
|
|
1075
1083
|
});
|
|
1076
1084
|
}
|
|
@@ -1087,12 +1095,12 @@ function Re(e, t = void 0, s = void 0) {
|
|
|
1087
1095
|
Accept: "application/json,text/javascript,*/*",
|
|
1088
1096
|
"Content-Type": "application/ds-json"
|
|
1089
1097
|
},
|
|
1090
|
-
onComplete(
|
|
1091
|
-
const a = JSON.parse(
|
|
1092
|
-
t && t(a,
|
|
1098
|
+
onComplete(c, r) {
|
|
1099
|
+
const a = JSON.parse(c);
|
|
1100
|
+
t && t(a, r);
|
|
1093
1101
|
},
|
|
1094
|
-
onFailure(
|
|
1095
|
-
s && s({ response:
|
|
1102
|
+
onFailure(c, r, a) {
|
|
1103
|
+
s && s({ response: c, headers: r, xhr: a });
|
|
1096
1104
|
}
|
|
1097
1105
|
});
|
|
1098
1106
|
}
|
|
@@ -1103,11 +1111,11 @@ function Ie(e, t, s, n) {
|
|
|
1103
1111
|
(i) => {
|
|
1104
1112
|
m(i, {
|
|
1105
1113
|
header: { ENO_CSRF_TOKEN: e.token },
|
|
1106
|
-
onComplete: (
|
|
1107
|
-
s && s(
|
|
1114
|
+
onComplete: (c) => {
|
|
1115
|
+
s && s(c);
|
|
1108
1116
|
},
|
|
1109
|
-
onFailure: (
|
|
1110
|
-
console.log("error http",
|
|
1117
|
+
onFailure: (c) => {
|
|
1118
|
+
console.log("error http", c), n && n(c);
|
|
1111
1119
|
}
|
|
1112
1120
|
});
|
|
1113
1121
|
}
|
|
@@ -1115,28 +1123,28 @@ function Ie(e, t, s, n) {
|
|
|
1115
1123
|
}
|
|
1116
1124
|
async function ve(e, t, s = void 0, n = void 0) {
|
|
1117
1125
|
return new Promise((i) => {
|
|
1118
|
-
A(e, t, (
|
|
1119
|
-
m(
|
|
1120
|
-
onComplete: (
|
|
1121
|
-
onFailure: (
|
|
1122
|
-
n && n(
|
|
1126
|
+
A(e, t, (c) => {
|
|
1127
|
+
m(c, {
|
|
1128
|
+
onComplete: (r, a, o) => (i(JSON.parse(r)), s && s(JSON.parse(r), a, o), i),
|
|
1129
|
+
onFailure: (r, a, o) => {
|
|
1130
|
+
n && n(r, a, o), console.log(r, a?.errormsg);
|
|
1123
1131
|
}
|
|
1124
1132
|
});
|
|
1125
1133
|
});
|
|
1126
1134
|
});
|
|
1127
1135
|
}
|
|
1128
1136
|
function Pe(e, t, s, n = void 0, i = void 0) {
|
|
1129
|
-
const
|
|
1137
|
+
const c = new Blob([JSON.stringify(t)], { type: "text/plain" });
|
|
1130
1138
|
k(
|
|
1131
1139
|
e,
|
|
1132
1140
|
s,
|
|
1133
|
-
(
|
|
1134
|
-
const a =
|
|
1141
|
+
(r) => {
|
|
1142
|
+
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;
|
|
1135
1143
|
K(
|
|
1136
1144
|
e,
|
|
1137
1145
|
s,
|
|
1138
1146
|
a,
|
|
1139
|
-
|
|
1147
|
+
c,
|
|
1140
1148
|
o,
|
|
1141
1149
|
(d) => {
|
|
1142
1150
|
n && n(d);
|
|
@@ -1159,7 +1167,7 @@ async function xe(e, t = void 0, s = void 0) {
|
|
|
1159
1167
|
(n) => {
|
|
1160
1168
|
s && s(n);
|
|
1161
1169
|
}
|
|
1162
|
-
) : (e.objID === null || e.objID === "") &&
|
|
1170
|
+
) : (e.objID === null || e.objID === "") && T(
|
|
1163
1171
|
e,
|
|
1164
1172
|
(n) => {
|
|
1165
1173
|
t && t({ rep: n, msg: "Pas d'objID, ou invalide" });
|
|
@@ -1187,12 +1195,12 @@ function Le(e, t = void 0, s = void 0) {
|
|
|
1187
1195
|
console.warn("la liste est vide ou n'est pas un tableau");
|
|
1188
1196
|
return;
|
|
1189
1197
|
}
|
|
1190
|
-
e.objIds.forEach((i,
|
|
1198
|
+
e.objIds.forEach((i, c) => {
|
|
1191
1199
|
I(
|
|
1192
1200
|
e,
|
|
1193
1201
|
i.objID,
|
|
1194
|
-
(
|
|
1195
|
-
n.push({ [i.name]:
|
|
1202
|
+
(r) => {
|
|
1203
|
+
n.push({ [i.name]: r }), i.name === "dbProjets" && (v = r.affaires.map((a) => a.objectID), B(e, P)), c === e.objIds.length - 1 && (t && t(n), delete e.objIds, delete e.datas);
|
|
1196
1204
|
}
|
|
1197
1205
|
);
|
|
1198
1206
|
});
|
|
@@ -1202,8 +1210,8 @@ function B(e, t, s = void 0, n = void 0) {
|
|
|
1202
1210
|
e,
|
|
1203
1211
|
v,
|
|
1204
1212
|
(i) => {
|
|
1205
|
-
const
|
|
1206
|
-
|
|
1213
|
+
const c = [...t];
|
|
1214
|
+
c.find((r) => r.objectID === i.objectId).data = i.data, P = c, $.push(i.data), s && s($);
|
|
1207
1215
|
},
|
|
1208
1216
|
(i) => {
|
|
1209
1217
|
n && (n(i), console.log(i));
|
|
@@ -1231,16 +1239,16 @@ const Y = "FA35FB9B177A280065800EA0000F599C", q = [
|
|
|
1231
1239
|
tag: "testTag"
|
|
1232
1240
|
};
|
|
1233
1241
|
function Je(e, t, s = void 0, n = void 0) {
|
|
1234
|
-
const { space: i, tenant:
|
|
1242
|
+
const { space: i, tenant: c } = e, { objId: r, pred: a, tag: o } = t, d = {
|
|
1235
1243
|
uri: "/resources/6w/tags",
|
|
1236
1244
|
otpCTX: "SecurityContext=preferred",
|
|
1237
|
-
optTenant: `tenant=${
|
|
1245
|
+
optTenant: `tenant=${c}`
|
|
1238
1246
|
}, l = `${i}${d.uri}?${d.otpCTX}&${d.optTenant}`, p = {
|
|
1239
1247
|
tag: [
|
|
1240
1248
|
{
|
|
1241
1249
|
subject: [
|
|
1242
1250
|
{
|
|
1243
|
-
uri: `pid://${
|
|
1251
|
+
uri: `pid://${r}`
|
|
1244
1252
|
}
|
|
1245
1253
|
],
|
|
1246
1254
|
predicate: x[a],
|
|
@@ -1263,7 +1271,7 @@ function Je(e, t, s = void 0, n = void 0) {
|
|
|
1263
1271
|
setTimeout(() => {
|
|
1264
1272
|
G(
|
|
1265
1273
|
e,
|
|
1266
|
-
|
|
1274
|
+
r,
|
|
1267
1275
|
(g) => {
|
|
1268
1276
|
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;
|
|
1269
1277
|
f.name = h, f.ext = S, f.createBy = _, t.info = { ...f }, z(
|
|
@@ -1292,10 +1300,10 @@ function Je(e, t, s = void 0, n = void 0) {
|
|
|
1292
1300
|
}
|
|
1293
1301
|
function z(e, t, s = void 0, n = void 0) {
|
|
1294
1302
|
console.log("obj ", t);
|
|
1295
|
-
const i = t.info.name,
|
|
1303
|
+
const i = t.info.name, c = {
|
|
1296
1304
|
baseUrl: `https://${e.tenant.toLowerCase()}-eu1-fedsearch.3dexperience.3ds.com`,
|
|
1297
1305
|
uri: "/federated/search"
|
|
1298
|
-
},
|
|
1306
|
+
}, r = `${c.baseUrl}${c.uri}`, a = {
|
|
1299
1307
|
"Content-Type": "application/json",
|
|
1300
1308
|
Accept: "application/json,text/javascript,*/*"
|
|
1301
1309
|
}, o = R(), d = {
|
|
@@ -1359,7 +1367,7 @@ function z(e, t, s = void 0, n = void 0) {
|
|
|
1359
1367
|
}
|
|
1360
1368
|
}
|
|
1361
1369
|
};
|
|
1362
|
-
console.log("dataPattern => ", d), m(
|
|
1370
|
+
console.log("dataPattern => ", d), m(r, {
|
|
1363
1371
|
method: "POST",
|
|
1364
1372
|
headers: a,
|
|
1365
1373
|
data: JSON.stringify(d),
|
|
@@ -1374,7 +1382,7 @@ function z(e, t, s = void 0, n = void 0) {
|
|
|
1374
1382
|
});
|
|
1375
1383
|
}
|
|
1376
1384
|
function Ee(e, t, s = void 0, n = void 0) {
|
|
1377
|
-
const { objId: i, pred:
|
|
1385
|
+
const { objId: i, pred: c, tag: r } = t, a = {
|
|
1378
1386
|
uri: "/resources/6w/tags",
|
|
1379
1387
|
otpCTX: "SecurityContext=preferred",
|
|
1380
1388
|
optTenant: `tenant=${e.tenant}`
|
|
@@ -1386,9 +1394,9 @@ function Ee(e, t, s = void 0, n = void 0) {
|
|
|
1386
1394
|
uri: `pid://${i}`
|
|
1387
1395
|
}
|
|
1388
1396
|
],
|
|
1389
|
-
predicate: x[
|
|
1397
|
+
predicate: x[c],
|
|
1390
1398
|
object: {
|
|
1391
|
-
literal:
|
|
1399
|
+
literal: r
|
|
1392
1400
|
}
|
|
1393
1401
|
}
|
|
1394
1402
|
]
|
|
@@ -1413,15 +1421,15 @@ function Ge(e, t = "", s = void 0, n = void 0) {
|
|
|
1413
1421
|
const { space: i } = e;
|
|
1414
1422
|
if (t === "")
|
|
1415
1423
|
return;
|
|
1416
|
-
const
|
|
1424
|
+
const c = {
|
|
1417
1425
|
uri: "/resources/v1/modeler/documents"
|
|
1418
|
-
},
|
|
1426
|
+
}, r = {
|
|
1419
1427
|
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
|
|
1420
1428
|
Accept: "application/json,text/javascript,*/*"
|
|
1421
|
-
}, a = `${i}${
|
|
1429
|
+
}, 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}`;
|
|
1422
1430
|
m(a, {
|
|
1423
1431
|
method: "POST",
|
|
1424
|
-
headers:
|
|
1432
|
+
headers: r,
|
|
1425
1433
|
data: o,
|
|
1426
1434
|
onComplete(d) {
|
|
1427
1435
|
s && s(JSON.parse(d));
|
|
@@ -1435,7 +1443,7 @@ function Ge(e, t = "", s = void 0, n = void 0) {
|
|
|
1435
1443
|
async function w(e, t = void 0, s = void 0) {
|
|
1436
1444
|
const n = e.space + "/api/index/tk";
|
|
1437
1445
|
return m(n, {
|
|
1438
|
-
onComplete(i,
|
|
1446
|
+
onComplete(i, c, r) {
|
|
1439
1447
|
const a = JSON.parse(i);
|
|
1440
1448
|
if (t)
|
|
1441
1449
|
return t(a), e.token = a?.result?.ServerToken;
|
|
@@ -1456,21 +1464,21 @@ function Ke(e, t = void 0, s = void 0) {
|
|
|
1456
1464
|
start: 0
|
|
1457
1465
|
}
|
|
1458
1466
|
};
|
|
1459
|
-
w(e, (
|
|
1467
|
+
w(e, (c) => {
|
|
1460
1468
|
m(n, {
|
|
1461
1469
|
method: "POST",
|
|
1462
1470
|
headers: {
|
|
1463
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1471
|
+
"X-DS-SWYM-CSRFTOKEN": c.result.ServerToken,
|
|
1464
1472
|
"Content-type": "application/json;charset=UTF-8",
|
|
1465
1473
|
Accept: "application/json"
|
|
1466
1474
|
},
|
|
1467
1475
|
data: JSON.stringify(i),
|
|
1468
1476
|
type: "json",
|
|
1469
|
-
onComplete(
|
|
1470
|
-
t && t(
|
|
1477
|
+
onComplete(r, a) {
|
|
1478
|
+
t && t(r, a);
|
|
1471
1479
|
},
|
|
1472
|
-
onFailure(
|
|
1473
|
-
s && s(
|
|
1480
|
+
onFailure(r, a) {
|
|
1481
|
+
s && s(r, a);
|
|
1474
1482
|
}
|
|
1475
1483
|
});
|
|
1476
1484
|
});
|
|
@@ -1485,22 +1493,22 @@ function Xe(e, t = void 0, s = void 0) {
|
|
|
1485
1493
|
maxNbOfCommonElements: "5"
|
|
1486
1494
|
}
|
|
1487
1495
|
};
|
|
1488
|
-
w(e, (
|
|
1496
|
+
w(e, (c) => {
|
|
1489
1497
|
m(n, {
|
|
1490
1498
|
method: "POST",
|
|
1491
1499
|
headers: {
|
|
1492
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1500
|
+
"X-DS-SWYM-CSRFTOKEN": c.result.ServerToken,
|
|
1493
1501
|
"Content-type": "application/json;charset=UTF-8",
|
|
1494
1502
|
Accept: "application/json"
|
|
1495
1503
|
},
|
|
1496
1504
|
data: JSON.stringify(i),
|
|
1497
1505
|
type: "json",
|
|
1498
|
-
onComplete(
|
|
1499
|
-
const o =
|
|
1500
|
-
t && t(o,
|
|
1506
|
+
onComplete(r, a) {
|
|
1507
|
+
const o = r.result.hits.map((d) => ({ login: d.login, fullName: d.name }));
|
|
1508
|
+
t && t(o, r);
|
|
1501
1509
|
},
|
|
1502
|
-
onFailure(
|
|
1503
|
-
s && s(
|
|
1510
|
+
onFailure(r, a) {
|
|
1511
|
+
s && s(r, a);
|
|
1504
1512
|
}
|
|
1505
1513
|
});
|
|
1506
1514
|
});
|
|
@@ -1511,12 +1519,12 @@ function We(e, t = void 0, s = void 0) {
|
|
|
1511
1519
|
uri: "/api/community/listmycommunities",
|
|
1512
1520
|
limit: `/limit/${e.limit ? e.limit : 128}`,
|
|
1513
1521
|
page: `/page/${e.page ? e.page : "1"}`
|
|
1514
|
-
}, i = `${n.base}${n.uri}${n.limit}${n.page}`,
|
|
1515
|
-
w(e, (
|
|
1522
|
+
}, i = `${n.base}${n.uri}${n.limit}${n.page}`, c = [];
|
|
1523
|
+
w(e, (r) => {
|
|
1516
1524
|
m(i, {
|
|
1517
1525
|
method: "GET",
|
|
1518
1526
|
headers: {
|
|
1519
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1527
|
+
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
|
|
1520
1528
|
},
|
|
1521
1529
|
onComplete(a, o, d) {
|
|
1522
1530
|
const p = JSON.parse(a).result;
|
|
@@ -1534,7 +1542,7 @@ function We(e, t = void 0, s = void 0) {
|
|
|
1534
1542
|
e,
|
|
1535
1543
|
f.id,
|
|
1536
1544
|
(h) => {
|
|
1537
|
-
u++, g.members = h,
|
|
1545
|
+
u++, g.members = h, c.push(g), u === p.length && t && t(c);
|
|
1538
1546
|
},
|
|
1539
1547
|
(h) => s(h)
|
|
1540
1548
|
);
|
|
@@ -1548,22 +1556,22 @@ function We(e, t = void 0, s = void 0) {
|
|
|
1548
1556
|
});
|
|
1549
1557
|
}
|
|
1550
1558
|
function Q(e, t, s, n) {
|
|
1551
|
-
const i = `${e.space}/api/community/listmembers`,
|
|
1559
|
+
const i = `${e.space}/api/community/listmembers`, c = {
|
|
1552
1560
|
params: {
|
|
1553
1561
|
page: e.page ? e.page : 1,
|
|
1554
1562
|
limit: e.limit ? e.limit : 50,
|
|
1555
1563
|
community_id: t
|
|
1556
1564
|
}
|
|
1557
1565
|
};
|
|
1558
|
-
w(e, (
|
|
1566
|
+
w(e, (r) => {
|
|
1559
1567
|
m(i, {
|
|
1560
1568
|
method: "POST",
|
|
1561
1569
|
headers: {
|
|
1562
1570
|
"Content-type": "application/json;charset=UTF-8",
|
|
1563
1571
|
Accept: "application/json",
|
|
1564
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1572
|
+
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
|
|
1565
1573
|
},
|
|
1566
|
-
data: JSON.stringify(
|
|
1574
|
+
data: JSON.stringify(c),
|
|
1567
1575
|
type: "json",
|
|
1568
1576
|
onComplete(a, o, d) {
|
|
1569
1577
|
s && s(a);
|
|
@@ -1579,30 +1587,30 @@ function Ve(e, t = void 0, s = void 0) {
|
|
|
1579
1587
|
const n = "YXdA5x4DSUKtlAi2wmnyTA";
|
|
1580
1588
|
e.commu_id || (e.commu_id = n);
|
|
1581
1589
|
const i = `${e.space}/api/v2/communities/${e.commu_id}/ideas/statuses`;
|
|
1582
|
-
w(e, (
|
|
1590
|
+
w(e, (c) => {
|
|
1583
1591
|
m(i, {
|
|
1584
1592
|
method: "GET",
|
|
1585
1593
|
headers: {
|
|
1586
1594
|
"Content-type": "application/json;charset=UTF-8",
|
|
1587
1595
|
Accept: "application/json",
|
|
1588
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1596
|
+
"X-DS-SWYM-CSRFTOKEN": c.result.ServerToken
|
|
1589
1597
|
},
|
|
1590
|
-
onComplete(
|
|
1591
|
-
const a = JSON.parse(
|
|
1598
|
+
onComplete(r) {
|
|
1599
|
+
const a = JSON.parse(r);
|
|
1592
1600
|
t && t(a);
|
|
1593
1601
|
},
|
|
1594
|
-
onFailure(
|
|
1595
|
-
const o =
|
|
1602
|
+
onFailure(r, a) {
|
|
1603
|
+
const o = r;
|
|
1596
1604
|
o.status = a.status, o.response = a.errormsg, s && s(o);
|
|
1597
1605
|
}
|
|
1598
1606
|
});
|
|
1599
1607
|
});
|
|
1600
1608
|
}
|
|
1601
1609
|
function Be(e, t, s = void 0, n = void 0) {
|
|
1602
|
-
const { listAllContacts: i, currentUser:
|
|
1610
|
+
const { listAllContacts: i, currentUser: c } = e;
|
|
1603
1611
|
console.log("__listAllContacts", i.hits);
|
|
1604
|
-
const
|
|
1605
|
-
users: [
|
|
1612
|
+
const r = `${e.space}/api/directmessages`, a = {
|
|
1613
|
+
users: [c.login].concat(t.receipt)
|
|
1606
1614
|
}, o = {
|
|
1607
1615
|
id_msg: "",
|
|
1608
1616
|
senderId: e.currentUser.login,
|
|
@@ -1620,7 +1628,7 @@ function Be(e, t, s = void 0, n = void 0) {
|
|
|
1620
1628
|
}
|
|
1621
1629
|
), d === !1 && setTimeout(() => {
|
|
1622
1630
|
d === !1 && w(e, (l) => {
|
|
1623
|
-
m(
|
|
1631
|
+
m(r, {
|
|
1624
1632
|
method: "POST",
|
|
1625
1633
|
headers: {
|
|
1626
1634
|
"Content-Type": "application/json",
|
|
@@ -1643,15 +1651,15 @@ function Be(e, t, s = void 0, n = void 0) {
|
|
|
1643
1651
|
}
|
|
1644
1652
|
function Z(e, t, s, n) {
|
|
1645
1653
|
const i = `${e.space}/api/directmessages/lite?with_favorites=false`;
|
|
1646
|
-
w(e, (
|
|
1654
|
+
w(e, (c) => {
|
|
1647
1655
|
m(i, {
|
|
1648
1656
|
method: "GET",
|
|
1649
1657
|
headers: {
|
|
1650
1658
|
Accept: "application/json,text/javascript,*/*",
|
|
1651
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1659
|
+
"X-DS-SWYM-CSRFTOKEN": c.result.ServerToken
|
|
1652
1660
|
},
|
|
1653
|
-
onComplete(
|
|
1654
|
-
const a = JSON.parse(
|
|
1661
|
+
onComplete(r) {
|
|
1662
|
+
const a = JSON.parse(r), o = [];
|
|
1655
1663
|
a.result.forEach((p) => {
|
|
1656
1664
|
p.users = p.users.sort((u, f) => u.login.localeCompare(f.login)), p.users.length === t.length && o.push(p);
|
|
1657
1665
|
});
|
|
@@ -1663,8 +1671,8 @@ function Z(e, t, s, n) {
|
|
|
1663
1671
|
});
|
|
1664
1672
|
s && l !== void 0 ? s(l) : (n || l === void 0) && n(l);
|
|
1665
1673
|
},
|
|
1666
|
-
onFailure(
|
|
1667
|
-
const a =
|
|
1674
|
+
onFailure(r) {
|
|
1675
|
+
const a = r;
|
|
1668
1676
|
a.msg = headers.errormsg, a.errCode = headers.errorcode, console.log("❌ sendDirectMessageLite => ", a), n && n(a);
|
|
1669
1677
|
}
|
|
1670
1678
|
});
|
|
@@ -1676,7 +1684,7 @@ function U(e, t, s = void 0, n = void 0) {
|
|
|
1676
1684
|
uri: "/api/community",
|
|
1677
1685
|
id_msg: `${t.id_msg}`,
|
|
1678
1686
|
endUri: "/instantmessages"
|
|
1679
|
-
},
|
|
1687
|
+
}, c = `${i.base}${i.uri}/${i.id_msg}${i.endUri}`, r = {
|
|
1680
1688
|
author: { login: t.senderId, displayName: t.senderName },
|
|
1681
1689
|
accessState: null,
|
|
1682
1690
|
commentUri: null,
|
|
@@ -1686,15 +1694,15 @@ function U(e, t, s = void 0, n = void 0) {
|
|
|
1686
1694
|
parentCommentUri: null,
|
|
1687
1695
|
richMessage: t.msg
|
|
1688
1696
|
};
|
|
1689
|
-
console.log("_3dSwym_sendDirectMessageData url ",
|
|
1690
|
-
m(
|
|
1697
|
+
console.log("_3dSwym_sendDirectMessageData url ", c), w(e, (a) => {
|
|
1698
|
+
m(c, {
|
|
1691
1699
|
method: "POST",
|
|
1692
1700
|
headers: {
|
|
1693
1701
|
"Content-Type": "application/json",
|
|
1694
1702
|
Accept: "application/json",
|
|
1695
1703
|
"X-DS-SWYM-CSRFTOKEN": a.result.ServerToken
|
|
1696
1704
|
},
|
|
1697
|
-
data: JSON.stringify(
|
|
1705
|
+
data: JSON.stringify(r),
|
|
1698
1706
|
type: "json",
|
|
1699
1707
|
onComplete(o, d, l) {
|
|
1700
1708
|
const p = o;
|
|
@@ -1725,15 +1733,15 @@ const te = {
|
|
|
1725
1733
|
// id de l'idee qui est créer au post (_3dSwym_postIdea)
|
|
1726
1734
|
};
|
|
1727
1735
|
function Ye(e, t, s = void 0, n = void 0) {
|
|
1728
|
-
const i = `${e.space}/api/idea/add`,
|
|
1736
|
+
const i = `${e.space}/api/idea/add`, c = e.swymCommunities.find(
|
|
1729
1737
|
(o) => o.id === t.community_id
|
|
1730
|
-
),
|
|
1738
|
+
), r = e.swymCommunities.find(
|
|
1731
1739
|
(o) => o.title.toLowerCase() === t.community_title.toLowerCase()
|
|
1732
1740
|
), a = {
|
|
1733
1741
|
params: {
|
|
1734
1742
|
title: t.title,
|
|
1735
1743
|
// String, le nom de l'affaire
|
|
1736
|
-
community_id:
|
|
1744
|
+
community_id: c?.id !== void 0 ? c.id : r.id,
|
|
1737
1745
|
// String, l'id de la communauté
|
|
1738
1746
|
message: ne(t.text_html),
|
|
1739
1747
|
// STRING => le contenue du message doit être au format HTML
|
|
@@ -1764,21 +1772,21 @@ function Ye(e, t, s = void 0, n = void 0) {
|
|
|
1764
1772
|
});
|
|
1765
1773
|
}
|
|
1766
1774
|
function qe(e, t, s = void 0, n = void 0) {
|
|
1767
|
-
const i = `${e.space}/api/idea/delete`,
|
|
1775
|
+
const i = `${e.space}/api/idea/delete`, c = {
|
|
1768
1776
|
params: {
|
|
1769
1777
|
community_id: t.community_id,
|
|
1770
1778
|
ideationIds: [t.idee_id]
|
|
1771
1779
|
}
|
|
1772
1780
|
};
|
|
1773
|
-
w(e, (
|
|
1781
|
+
w(e, (r) => {
|
|
1774
1782
|
m(i, {
|
|
1775
1783
|
method: "POST",
|
|
1776
1784
|
headers: {
|
|
1777
1785
|
"Content-type": "application/json;charset=UTF-8",
|
|
1778
1786
|
Accept: "application/json",
|
|
1779
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1787
|
+
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
|
|
1780
1788
|
},
|
|
1781
|
-
data: JSON.stringify(
|
|
1789
|
+
data: JSON.stringify(c),
|
|
1782
1790
|
type: "json",
|
|
1783
1791
|
onComplete(a, o, d) {
|
|
1784
1792
|
s && s(a);
|
|
@@ -1793,20 +1801,20 @@ function qe(e, t, s = void 0, n = void 0) {
|
|
|
1793
1801
|
function He(e, t = "", s = void 0, n = void 0) {
|
|
1794
1802
|
const i = e.tenant.toLowerCase() === "r1132101716373" ? "tFtz0G4MR6qNtKgJjNfTog" : e.tenant.toLowerCase() === "r1132101286859" ? "Qpv3HN-tTDOsU-7_c5DnDg" : "Template_d'idée_à_créer";
|
|
1795
1803
|
t === "" && (t = i);
|
|
1796
|
-
const
|
|
1804
|
+
const c = `${e.space}/api/idea/get`, r = {
|
|
1797
1805
|
params: {
|
|
1798
1806
|
id: t
|
|
1799
1807
|
}
|
|
1800
1808
|
};
|
|
1801
1809
|
w(e, (a) => {
|
|
1802
|
-
m(
|
|
1810
|
+
m(c, {
|
|
1803
1811
|
method: "POST",
|
|
1804
1812
|
headers: {
|
|
1805
1813
|
"Content-type": "application/json;charset=UTF-8",
|
|
1806
1814
|
Accept: "application/json",
|
|
1807
1815
|
"X-DS-SWYM-CSRFTOKEN": a.result.ServerToken
|
|
1808
1816
|
},
|
|
1809
|
-
data: JSON.stringify(
|
|
1817
|
+
data: JSON.stringify(r),
|
|
1810
1818
|
type: "json",
|
|
1811
1819
|
onComplete(o) {
|
|
1812
1820
|
const d = o;
|
|
@@ -1824,12 +1832,12 @@ function ze(e, t = te, s = void 0, n = void 0) {
|
|
|
1824
1832
|
uri: "/api/idea/list",
|
|
1825
1833
|
comId: `/community_id/${e.tenant.toLowerCase() === "r1132101716373" ? t.community_id : "bgnIsG74SUWswyGzS6NC6g"}`,
|
|
1826
1834
|
limit: `/limit/${t.limit ? t.limit : 10}`
|
|
1827
|
-
},
|
|
1828
|
-
w(e, (
|
|
1829
|
-
m(
|
|
1835
|
+
}, c = `${e.space}${i.uri}${i.comId}${i.limit}`;
|
|
1836
|
+
w(e, (r) => {
|
|
1837
|
+
m(c, {
|
|
1830
1838
|
method: "GET",
|
|
1831
1839
|
headers: {
|
|
1832
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1840
|
+
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
|
|
1833
1841
|
},
|
|
1834
1842
|
onComplete(a) {
|
|
1835
1843
|
const o = JSON.parse(a);
|
|
@@ -1925,12 +1933,12 @@ function Qe(e, t = void 0, s = void 0) {
|
|
|
1925
1933
|
headers: {
|
|
1926
1934
|
"X-DS-SWYM-CSRFTOKEN": i.result.ServerToken
|
|
1927
1935
|
},
|
|
1928
|
-
onComplete(
|
|
1929
|
-
const o = JSON.parse(
|
|
1936
|
+
onComplete(c, r, a) {
|
|
1937
|
+
const o = JSON.parse(c);
|
|
1930
1938
|
t && t(o.result);
|
|
1931
1939
|
},
|
|
1932
|
-
onFailure(
|
|
1933
|
-
const o = { erreur: JSON.parse(
|
|
1940
|
+
onFailure(c, r, a) {
|
|
1941
|
+
const o = { erreur: JSON.parse(c), headers: r, xhr: a };
|
|
1934
1942
|
s && s(o);
|
|
1935
1943
|
}
|
|
1936
1944
|
});
|
|
@@ -1940,16 +1948,16 @@ function Ze(e, t, s = void 0, n = void 0) {
|
|
|
1940
1948
|
const i = e.space + "/api/user/find/login/" + t;
|
|
1941
1949
|
w(
|
|
1942
1950
|
e,
|
|
1943
|
-
(
|
|
1951
|
+
(c) => {
|
|
1944
1952
|
m(i, {
|
|
1945
1953
|
method: "GET",
|
|
1946
|
-
headers: { "X-DS-SWYM-CSRFTOKEN":
|
|
1947
|
-
onComplete(
|
|
1948
|
-
const d = JSON.parse(
|
|
1954
|
+
headers: { "X-DS-SWYM-CSRFTOKEN": c.result.ServerToken },
|
|
1955
|
+
onComplete(r, a, o) {
|
|
1956
|
+
const d = JSON.parse(r);
|
|
1949
1957
|
s && s(d);
|
|
1950
1958
|
},
|
|
1951
|
-
onFailure(
|
|
1952
|
-
n && n(
|
|
1959
|
+
onFailure(r) {
|
|
1960
|
+
n && n(r);
|
|
1953
1961
|
}
|
|
1954
1962
|
});
|
|
1955
1963
|
},
|
|
@@ -1964,16 +1972,16 @@ export {
|
|
|
1964
1972
|
R as UUID,
|
|
1965
1973
|
ke as _3DSpace_Create_Doc,
|
|
1966
1974
|
je as _3DSpace_bookmark_addSubsciptions,
|
|
1967
|
-
|
|
1975
|
+
T as _3DSpace_csrf,
|
|
1968
1976
|
I as _3DSpace_download_doc,
|
|
1969
1977
|
W as _3DSpace_download_multidoc,
|
|
1970
1978
|
K as _3DSpace_file_update,
|
|
1971
1979
|
X as _3DSpace_file_update_csr,
|
|
1972
|
-
|
|
1980
|
+
be as _3DSpace_file_url_csr,
|
|
1973
1981
|
k as _3DSpace_get_csrf,
|
|
1974
1982
|
G as _3DSpace_get_docInfo,
|
|
1975
1983
|
V as _3DSpace_get_downloadTicket_multidoc,
|
|
1976
|
-
|
|
1984
|
+
b as _3DSpace_get_securityContexts,
|
|
1977
1985
|
A as _3DSpace_get_ticket,
|
|
1978
1986
|
Ue as _3DSpace_lifecycle_changeRevision,
|
|
1979
1987
|
De as _3DSpace_lifecycle_changeState,
|
|
@@ -2008,7 +2016,7 @@ export {
|
|
|
2008
2016
|
L as couleurs,
|
|
2009
2017
|
_e as createUserGroups,
|
|
2010
2018
|
B as dataMixing,
|
|
2011
|
-
|
|
2019
|
+
Ce as deleteUserGroups,
|
|
2012
2020
|
re as findAdresse,
|
|
2013
2021
|
Re as getAllContextSecurity,
|
|
2014
2022
|
E as getCSRFToken,
|
|
@@ -2023,10 +2031,10 @@ export {
|
|
|
2023
2031
|
we as getUserGroupsList,
|
|
2024
2032
|
J as getUsersGroupRules,
|
|
2025
2033
|
xe as get_3DSpace_csrf,
|
|
2026
|
-
|
|
2034
|
+
Te as patchUserGroups,
|
|
2027
2035
|
Oe as patchUserGroupsControl,
|
|
2028
2036
|
Pe as pushDataIn3DSpace,
|
|
2029
|
-
|
|
2037
|
+
Ne as readUserGroupControl,
|
|
2030
2038
|
Ee as removeTagToDoc,
|
|
2031
2039
|
et as sayHello,
|
|
2032
2040
|
de as updateEvent
|