@beam3_dev/api_module 0.0.48 → 0.0.49
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 +254 -258
- 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 -2
package/dist/wb3Api.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { v4 as M } from "uuid";
|
|
2
2
|
import { DateTime as b } from "luxon";
|
|
3
|
-
import { requirejs as O, widget as
|
|
4
|
-
function
|
|
3
|
+
import { requirejs as O, widget as A } from "@widget-lab/3ddashboard-utils";
|
|
4
|
+
function R() {
|
|
5
5
|
return M();
|
|
6
6
|
}
|
|
7
7
|
const L = {
|
|
@@ -67,9 +67,9 @@ async function re(e, t = void 0, n = void 0) {
|
|
|
67
67
|
}
|
|
68
68
|
async function ce(e, t = L) {
|
|
69
69
|
let n = b.now().year;
|
|
70
|
-
const s = e, i = [],
|
|
71
|
-
for (let
|
|
72
|
-
i.push({ date:
|
|
70
|
+
const s = e, i = [], r = (a) => {
|
|
71
|
+
for (let c in a)
|
|
72
|
+
i.push({ date: c, comment: a[c] });
|
|
73
73
|
};
|
|
74
74
|
for (let a = n; a <= n + 1; a++)
|
|
75
75
|
await fetch(
|
|
@@ -80,20 +80,20 @@ async function ce(e, t = L) {
|
|
|
80
80
|
Accept: "application/json"
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
).then((
|
|
84
|
-
c
|
|
85
|
-
}).catch((
|
|
83
|
+
).then((c) => c.json()).then((c) => {
|
|
84
|
+
r(c);
|
|
85
|
+
}).catch((c) => console.error("Erreur : " + c));
|
|
86
86
|
return (() => {
|
|
87
87
|
const a = s.length === 0 ? {
|
|
88
88
|
events: []
|
|
89
89
|
} : s;
|
|
90
|
-
for (let
|
|
90
|
+
for (let c of i)
|
|
91
91
|
a.events.findIndex(
|
|
92
|
-
(l) => l.start === b.fromISO(
|
|
92
|
+
(l) => l.start === b.fromISO(c.date).toISODate() && l.name === "Férié : " + c.comment
|
|
93
93
|
) === -1 && a.events.push({
|
|
94
|
-
name: "Férié : " +
|
|
95
|
-
start: b.fromISO(
|
|
96
|
-
end: b.fromISO(
|
|
94
|
+
name: "Férié : " + c.comment,
|
|
95
|
+
start: b.fromISO(c.date).toISODate(),
|
|
96
|
+
end: b.fromISO(c.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, n = !0) {
|
|
104
104
|
const s = e.events.findIndex((i) => i.uuid === t.uuid);
|
|
105
|
-
return s === -1 ? e.events.push(t) : n ? e.events[s] = t : e.events.splice(s, 1), e.length > 0 && e.sort((i,
|
|
105
|
+
return s === -1 ? e.events.push(t) : n ? e.events[s] = t : e.events.splice(s, 1), e.length > 0 && e.sort((i, r) => i.start - r.start), e;
|
|
106
106
|
}
|
|
107
107
|
function f(e, t) {
|
|
108
108
|
O(["DS/WAFData/WAFData"], (n) => {
|
|
@@ -118,7 +118,7 @@ function pe(e, t = void 0) {
|
|
|
118
118
|
O(["DS/TagNavigatorProxy/TagNavigatorProxy"], (n) => {
|
|
119
119
|
let s;
|
|
120
120
|
s === void 0 && (s = n.createProxy({
|
|
121
|
-
widgetId:
|
|
121
|
+
widgetId: A.id,
|
|
122
122
|
filteringMode: "WithFilteringServices"
|
|
123
123
|
}), t !== void 0 && s.addEvent("onFilterSubjectsChange", t)), s.setSubjectsTags(e);
|
|
124
124
|
});
|
|
@@ -132,7 +132,7 @@ async function fe(e, t = void 0, n = void 0) {
|
|
|
132
132
|
O(
|
|
133
133
|
["DS/i3DXCompassServices/i3DXCompassServices"],
|
|
134
134
|
(s) => {
|
|
135
|
-
(!e || e === "") && (e =
|
|
135
|
+
(!e || e === "") && (e = A.getValue("PlatFormInstanceId")), (!e || e === "") && (e = void 0), t && t(
|
|
136
136
|
s.getPlatformServices({
|
|
137
137
|
platformId: e,
|
|
138
138
|
onComplete: t,
|
|
@@ -145,14 +145,14 @@ async function fe(e, t = void 0, n = void 0) {
|
|
|
145
145
|
function me() {
|
|
146
146
|
let e = {};
|
|
147
147
|
return O(["DS/PlatformAPI/PlatformAPI"], (t) => {
|
|
148
|
-
const n = t.getTenant(), s = t.getUser(), i = t.getAllApplicationConfigurations(),
|
|
148
|
+
const n = t.getTenant(), s = t.getUser(), i = t.getAllApplicationConfigurations(), r = t.getApplicationConfiguration(
|
|
149
149
|
"com.3ds.wp.passport.cors"
|
|
150
150
|
);
|
|
151
151
|
e = {
|
|
152
152
|
tenant: n,
|
|
153
153
|
user: s,
|
|
154
154
|
appsConfiguration: i,
|
|
155
|
-
appConf:
|
|
155
|
+
appConf: r
|
|
156
156
|
};
|
|
157
157
|
}), console.log("%cRETOUR API :", "color:blue", e), e;
|
|
158
158
|
}
|
|
@@ -169,15 +169,15 @@ function ge(e, t, n) {
|
|
|
169
169
|
"Content-Type": "application/json",
|
|
170
170
|
Accept: "application/json"
|
|
171
171
|
},
|
|
172
|
-
onComplete(
|
|
173
|
-
const
|
|
172
|
+
onComplete(r, o, a) {
|
|
173
|
+
const c = JSON.parse(r), d = c.data.map((l) => {
|
|
174
174
|
const p = l.attributes.name, u = l.id;
|
|
175
175
|
return { name: p, id: u };
|
|
176
176
|
});
|
|
177
|
-
t && t(d,
|
|
177
|
+
t && t(d, c);
|
|
178
178
|
},
|
|
179
|
-
onFailure(
|
|
180
|
-
const a =
|
|
179
|
+
onFailure(r, o) {
|
|
180
|
+
const a = r;
|
|
181
181
|
a.msg = o.errormsg, a.errCode = o.errorcode, n && n(a);
|
|
182
182
|
}
|
|
183
183
|
});
|
|
@@ -185,25 +185,25 @@ function ge(e, t, n) {
|
|
|
185
185
|
function he(e, t = void 0, n = void 0) {
|
|
186
186
|
let s = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&limit=-1`;
|
|
187
187
|
f(s, {
|
|
188
|
-
onComplete(i,
|
|
188
|
+
onComplete(i, r, o) {
|
|
189
189
|
const a = JSON.parse(i);
|
|
190
190
|
console.log("_AppMngt_get_users => ", a), t && t(a);
|
|
191
191
|
},
|
|
192
|
-
onFailure(i,
|
|
192
|
+
onFailure(i, r) {
|
|
193
193
|
const o = i;
|
|
194
|
-
o.msg =
|
|
194
|
+
o.msg = r.errormsg, o.errCode = r.errorcode, n && n(o);
|
|
195
195
|
}
|
|
196
196
|
});
|
|
197
197
|
}
|
|
198
198
|
function Se(e, t, n = void 0, s = void 0) {
|
|
199
199
|
let i = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&id=${t}`;
|
|
200
200
|
f(i, {
|
|
201
|
-
onComplete(
|
|
202
|
-
const
|
|
203
|
-
n && n(
|
|
201
|
+
onComplete(r, o, a) {
|
|
202
|
+
const c = JSON.parse(r);
|
|
203
|
+
n && n(c);
|
|
204
204
|
},
|
|
205
|
-
onFailure(
|
|
206
|
-
const a =
|
|
205
|
+
onFailure(r, o) {
|
|
206
|
+
const a = r;
|
|
207
207
|
a.msg = o.errormsg, a.errCode = o.errorcode, s && s(a);
|
|
208
208
|
}
|
|
209
209
|
});
|
|
@@ -213,14 +213,14 @@ const U = {
|
|
|
213
213
|
Accept: "application/json,text/javascript,*/*"
|
|
214
214
|
};
|
|
215
215
|
function _e(e, t, n = void 0, s = void 0) {
|
|
216
|
-
const { space: i, currentUser:
|
|
216
|
+
const { space: i, currentUser: r } = e, a = `${i}${{
|
|
217
217
|
URIUGr: "/3drdfpersist/resources/v1/usersgroup"
|
|
218
|
-
}.URIUGr}`,
|
|
218
|
+
}.URIUGr}`, c = {
|
|
219
219
|
groups: [
|
|
220
220
|
{
|
|
221
221
|
title: t.title,
|
|
222
222
|
description: t.description,
|
|
223
|
-
members: t.members || [
|
|
223
|
+
members: t.members || [r.email, "samuel.mureau@beam3.fr"],
|
|
224
224
|
pending_members: [],
|
|
225
225
|
sharing: t.sharing,
|
|
226
226
|
visibility: t.visibility
|
|
@@ -230,7 +230,7 @@ function _e(e, t, n = void 0, s = void 0) {
|
|
|
230
230
|
f(a, {
|
|
231
231
|
method: "POST",
|
|
232
232
|
headers: U,
|
|
233
|
-
data: JSON.stringify(
|
|
233
|
+
data: JSON.stringify(c),
|
|
234
234
|
onComplete(d) {
|
|
235
235
|
n && n(JSON.parse(d));
|
|
236
236
|
},
|
|
@@ -242,7 +242,7 @@ function _e(e, t, n = void 0, s = void 0) {
|
|
|
242
242
|
});
|
|
243
243
|
}
|
|
244
244
|
function ye(e, t, n = void 0, s = void 0) {
|
|
245
|
-
const { space: i, tenant:
|
|
245
|
+
const { space: i, tenant: r } = e, o = i, a = `/3drdfpersist/v1/resources/${t}`, c = `?$mask=dsaccess:Mask.GroupUI.Properties&tenant=dstenant:${r}`, d = `${o}${a}${c}`;
|
|
246
246
|
f(d, {
|
|
247
247
|
opts: {
|
|
248
248
|
method: "GET",
|
|
@@ -261,12 +261,12 @@ function ye(e, t, n = void 0, s = void 0) {
|
|
|
261
261
|
});
|
|
262
262
|
}
|
|
263
263
|
function E(e, t = void 0, n = void 0) {
|
|
264
|
-
const { space: s, tenant: i } = e,
|
|
264
|
+
const { space: s, tenant: i } = e, r = s, o = "/3drdfpersist/resources/v1/option-sets/dsusergroup:ListOfGroupResponsibilities/options", a = `?tenant=dstenant:${i}`, c = {
|
|
265
265
|
method: "GET",
|
|
266
266
|
Accept: "application/json,*/*,test/javascript"
|
|
267
|
-
}, d = `${
|
|
267
|
+
}, d = `${r}${o}${a}`;
|
|
268
268
|
f(d, {
|
|
269
|
-
OPTsH:
|
|
269
|
+
OPTsH: c,
|
|
270
270
|
onComplete(l) {
|
|
271
271
|
t && t(JSON.parse(l));
|
|
272
272
|
},
|
|
@@ -314,7 +314,7 @@ function Te(e, t) {
|
|
|
314
314
|
});
|
|
315
315
|
}
|
|
316
316
|
function Ce(e, t, n, s = void 0, i = void 0) {
|
|
317
|
-
const { space:
|
|
317
|
+
const { space: r, tenant: o } = e, a = {
|
|
318
318
|
URITI: "/3drdfpersist/resources/v1/template-instances",
|
|
319
319
|
URIUGr: "/3drdfpersist/resources/v1/usersgroup",
|
|
320
320
|
nextURICh: "/characteristics",
|
|
@@ -322,7 +322,7 @@ function Ce(e, t, n, s = void 0, i = void 0) {
|
|
|
322
322
|
nexURImem: "/members",
|
|
323
323
|
OPTsTI: "?$mask=dsaccess:Mask.GroupUI.Properties",
|
|
324
324
|
OPTsTenant: `tenant=dstenant:${o}`
|
|
325
|
-
},
|
|
325
|
+
}, c = n, d = `${r}${a.URIUGr}/${t}`, l = JSON.stringify(c);
|
|
326
326
|
f(d, {
|
|
327
327
|
headers: U,
|
|
328
328
|
method: "PATCH",
|
|
@@ -337,7 +337,7 @@ function Ce(e, t, n, s = void 0, i = void 0) {
|
|
|
337
337
|
});
|
|
338
338
|
}
|
|
339
339
|
function Oe(e, t, n, s = void 0, i = void 0) {
|
|
340
|
-
const { space:
|
|
340
|
+
const { space: r } = e, a = `${r}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
|
|
341
341
|
f(a, {
|
|
342
342
|
method: "PATCH",
|
|
343
343
|
headers: U,
|
|
@@ -375,9 +375,9 @@ async function J(e, t = void 0, n = void 0, s = void 0) {
|
|
|
375
375
|
console.log("Le paramètre docid est obligatoire");
|
|
376
376
|
return;
|
|
377
377
|
}
|
|
378
|
-
const
|
|
379
|
-
f(
|
|
380
|
-
onComplete(o, a,
|
|
378
|
+
const r = i + `/resources/v1/modeler/documents/${t}`;
|
|
379
|
+
f(r, {
|
|
380
|
+
onComplete(o, a, c) {
|
|
381
381
|
const d = JSON.parse(o);
|
|
382
382
|
n && n(d);
|
|
383
383
|
},
|
|
@@ -390,7 +390,7 @@ function k(e, t = void 0, n = void 0) {
|
|
|
390
390
|
if (e.objID && e.objID !== "") {
|
|
391
391
|
let s = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
|
|
392
392
|
f(s, {
|
|
393
|
-
onComplete(i,
|
|
393
|
+
onComplete(i, r, o) {
|
|
394
394
|
const a = JSON.parse(i);
|
|
395
395
|
e.token = a?.csrf?.value, e.datas = a?.data[0], t && t(e);
|
|
396
396
|
},
|
|
@@ -405,44 +405,44 @@ function C(e, t = void 0, n = void 0) {
|
|
|
405
405
|
if (e.space) {
|
|
406
406
|
const s = e.space + "/resources/v1/application/CSRF";
|
|
407
407
|
f(s, {
|
|
408
|
-
onComplete(i,
|
|
408
|
+
onComplete(i, r, o) {
|
|
409
409
|
const a = JSON.parse(i);
|
|
410
|
-
t && t(a.csrf.value);
|
|
410
|
+
console.log("_3DSpace_csrf() / info => ", a), t && t(a.csrf.value);
|
|
411
411
|
},
|
|
412
|
-
onFailure(i,
|
|
413
|
-
n && n({ response: i, headers:
|
|
412
|
+
onFailure(i, r, o) {
|
|
413
|
+
n && n({ response: i, headers: r, xhr: o });
|
|
414
414
|
}
|
|
415
415
|
});
|
|
416
416
|
} else
|
|
417
417
|
n && n("ERROR : url du 3DSpace non défini.");
|
|
418
418
|
}
|
|
419
|
-
function D(e, t
|
|
420
|
-
let
|
|
419
|
+
function D(e, t = void 0, n = void 0) {
|
|
420
|
+
let s = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
|
|
421
421
|
k(
|
|
422
422
|
e,
|
|
423
|
-
(
|
|
424
|
-
console.log("onComplete / ☠️ info => ",
|
|
423
|
+
(i) => {
|
|
424
|
+
console.log("onComplete / ☠️ info => ", i), i.csrf.value === e.token && f(s, {
|
|
425
425
|
method: "PUT",
|
|
426
426
|
headers: {
|
|
427
|
-
ENO_CSRF_TOKEN: e.token
|
|
427
|
+
ENO_CSRF_TOKEN: i.csrf.value === e.token ? i.csrf.value : e.token
|
|
428
428
|
},
|
|
429
|
-
onComplete(
|
|
430
|
-
let
|
|
431
|
-
console.log("_3DSpace_file_url() / ☠️ info => ",
|
|
432
|
-
const
|
|
433
|
-
|
|
429
|
+
onComplete(r) {
|
|
430
|
+
let o = JSON.parse(r);
|
|
431
|
+
console.log("_3DSpace_file_url() / ☠️ info => ", o);
|
|
432
|
+
const a = o.data[0].dataelements.ticketURL;
|
|
433
|
+
e.ticket = a, t && t(a);
|
|
434
434
|
},
|
|
435
|
-
onFailure(
|
|
436
|
-
console.log("☠️ error => ",
|
|
435
|
+
onFailure(r, o) {
|
|
436
|
+
console.log("☠️ error => ", r, o), n && n(r, o);
|
|
437
437
|
}
|
|
438
438
|
});
|
|
439
439
|
},
|
|
440
|
-
|
|
440
|
+
n
|
|
441
441
|
);
|
|
442
442
|
}
|
|
443
443
|
function be(e, t, n, s = void 0, i = void 0) {
|
|
444
|
-
const
|
|
445
|
-
n || (n = e.token), f(
|
|
444
|
+
const r = `${e.space}/resources/v1/modeler/documents/${t}/files/DownloadTicket`;
|
|
445
|
+
n || (n = e.token), f(r, {
|
|
446
446
|
method: "PUT",
|
|
447
447
|
headers: {
|
|
448
448
|
ENO_CSRF_TOKEN: n
|
|
@@ -451,10 +451,10 @@ function be(e, t, n, s = void 0, i = void 0) {
|
|
|
451
451
|
let a = JSON.parse(o);
|
|
452
452
|
if (console.log("☠️ info => ", a), a.success === !0)
|
|
453
453
|
try {
|
|
454
|
-
const
|
|
455
|
-
s && s(
|
|
456
|
-
} catch (
|
|
457
|
-
i && i(
|
|
454
|
+
const c = a.data[0].dataelements.ticketURL;
|
|
455
|
+
s && s(c);
|
|
456
|
+
} catch (c) {
|
|
457
|
+
i && i(c);
|
|
458
458
|
}
|
|
459
459
|
},
|
|
460
460
|
onFailure(o) {
|
|
@@ -462,7 +462,7 @@ function be(e, t, n, s = void 0, i = void 0) {
|
|
|
462
462
|
}
|
|
463
463
|
});
|
|
464
464
|
}
|
|
465
|
-
function G(e, t, n, s, i,
|
|
465
|
+
function G(e, t, n, s, i, r = void 0, o = void 0) {
|
|
466
466
|
k(
|
|
467
467
|
e,
|
|
468
468
|
t,
|
|
@@ -474,18 +474,18 @@ function G(e, t, n, s, i, c = void 0, o = void 0) {
|
|
|
474
474
|
s,
|
|
475
475
|
i,
|
|
476
476
|
a.csrf.value,
|
|
477
|
-
|
|
477
|
+
r,
|
|
478
478
|
o
|
|
479
479
|
);
|
|
480
480
|
}
|
|
481
481
|
);
|
|
482
482
|
}
|
|
483
|
-
function K(e, t, n, s, i,
|
|
484
|
-
const
|
|
485
|
-
f(
|
|
483
|
+
function K(e, t, n, s, i, r, o = void 0, a = void 0) {
|
|
484
|
+
const c = e.space + `/resources/v1/modeler/documents/${t}/files/CheckinTicket`;
|
|
485
|
+
f(c, {
|
|
486
486
|
method: "PUT",
|
|
487
487
|
headers: {
|
|
488
|
-
ENO_CSRF_TOKEN:
|
|
488
|
+
ENO_CSRF_TOKEN: r
|
|
489
489
|
},
|
|
490
490
|
onComplete(d, l, p) {
|
|
491
491
|
const u = JSON.parse(d).data[0].dataelements, m = new FormData();
|
|
@@ -495,7 +495,7 @@ function K(e, t, n, s, i, c, o = void 0, a = void 0) {
|
|
|
495
495
|
let S = "temp_" + Date.now(), _ = {
|
|
496
496
|
method: "PUT",
|
|
497
497
|
headers: {
|
|
498
|
-
ENO_CSRF_TOKEN:
|
|
498
|
+
ENO_CSRF_TOKEN: r
|
|
499
499
|
},
|
|
500
500
|
data: JSON.stringify({
|
|
501
501
|
data: [
|
|
@@ -535,12 +535,12 @@ function K(e, t, n, s, i, c, o = void 0, a = void 0) {
|
|
|
535
535
|
}
|
|
536
536
|
});
|
|
537
537
|
}
|
|
538
|
-
async function ke(e, t, n, s, i = void 0,
|
|
539
|
-
const o = e.space, a = e.token,
|
|
538
|
+
async function ke(e, t, n, s, i = void 0, r = void 0) {
|
|
539
|
+
const o = e.space, a = e.token, c = e.ctx, d = new FormData(), l = new Blob([JSON.stringify(t)], {
|
|
540
540
|
type: "text/plain"
|
|
541
541
|
}), p = {
|
|
542
542
|
url_Ticket: `${o}/resources/v1/modeler/documents/files/CheckinTicket`,
|
|
543
|
-
url_Post: `${o}/resources/v1/modeler/documents/?SecurityContext=ctx::${
|
|
543
|
+
url_Post: `${o}/resources/v1/modeler/documents/?SecurityContext=ctx::${c}`
|
|
544
544
|
};
|
|
545
545
|
if (!o && o !== "") {
|
|
546
546
|
console.log("le store._3DSpace est vide");
|
|
@@ -558,7 +558,7 @@ async function ke(e, t, n, s, i = void 0, c = void 0) {
|
|
|
558
558
|
method: "POST",
|
|
559
559
|
data: d,
|
|
560
560
|
onComplete(T) {
|
|
561
|
-
if (
|
|
561
|
+
if (c !== "" && a !== "") {
|
|
562
562
|
const F = {
|
|
563
563
|
method: "POST",
|
|
564
564
|
headers: {
|
|
@@ -585,7 +585,7 @@ async function ke(e, t, n, s, i = void 0, c = void 0) {
|
|
|
585
585
|
}
|
|
586
586
|
]
|
|
587
587
|
},
|
|
588
|
-
tempId:
|
|
588
|
+
tempId: R()
|
|
589
589
|
}
|
|
590
590
|
]
|
|
591
591
|
}),
|
|
@@ -594,7 +594,7 @@ async function ke(e, t, n, s, i = void 0, c = void 0) {
|
|
|
594
594
|
onComplete: _,
|
|
595
595
|
onFailure: y
|
|
596
596
|
};
|
|
597
|
-
|
|
597
|
+
c !== "" && f(p.url_Post, F);
|
|
598
598
|
} else
|
|
599
599
|
console.warn("le store est vide");
|
|
600
600
|
},
|
|
@@ -605,21 +605,21 @@ async function ke(e, t, n, s, i = void 0, c = void 0) {
|
|
|
605
605
|
}
|
|
606
606
|
function y(T, F) {
|
|
607
607
|
console.log("Erreur -- response ", T, `
|
|
608
|
-
headers `, F),
|
|
608
|
+
headers `, F), r && r(T);
|
|
609
609
|
}
|
|
610
610
|
f(h.ticketURL, S);
|
|
611
611
|
}
|
|
612
612
|
});
|
|
613
613
|
}
|
|
614
|
-
function N(e, t = void 0, n = void 0, s = void 0, i = void 0,
|
|
614
|
+
function N(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0) {
|
|
615
615
|
const o = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
|
|
616
616
|
f(o, {
|
|
617
617
|
method: "GET",
|
|
618
618
|
onComplete(a) {
|
|
619
|
-
const
|
|
619
|
+
const c = JSON.parse(a);
|
|
620
620
|
let d = "", l, p, u;
|
|
621
621
|
if (t) {
|
|
622
|
-
let m =
|
|
622
|
+
let m = c.collabspaces.find((g) => g.title === t);
|
|
623
623
|
if (m) {
|
|
624
624
|
l = t;
|
|
625
625
|
let g = m.couples;
|
|
@@ -635,7 +635,7 @@ function N(e, t = void 0, n = void 0, s = void 0, i = void 0, c = void 0) {
|
|
|
635
635
|
let _ = g.filter(
|
|
636
636
|
(y) => y.role.name === h
|
|
637
637
|
);
|
|
638
|
-
_.length === 1 ? (u = _[0].role.name, p = _[0].organization.title) :
|
|
638
|
+
_.length === 1 ? (u = _[0].role.name, p = _[0].organization.title) : r(_);
|
|
639
639
|
}
|
|
640
640
|
});
|
|
641
641
|
}) : g.forEach((h) => {
|
|
@@ -645,12 +645,12 @@ function N(e, t = void 0, n = void 0, s = void 0, i = void 0, c = void 0) {
|
|
|
645
645
|
let S = g.filter(
|
|
646
646
|
(_) => _.role.name === n
|
|
647
647
|
);
|
|
648
|
-
S.length === 1 ? (u = S[0].role.name, p = S[0].organization.title) :
|
|
648
|
+
S.length === 1 ? (u = S[0].role.name, p = S[0].organization.title) : r(S);
|
|
649
649
|
}
|
|
650
650
|
}));
|
|
651
651
|
}
|
|
652
652
|
}
|
|
653
|
-
l && p && u ? (d = u + "." + p + "." + l, i(d)) :
|
|
653
|
+
l && p && u ? (d = u + "." + p + "." + l, i(d)) : c.preferredcredentials ? (d = c.preferredcredentials.role.name + "." + c.preferredcredentials.organization.title + "." + c.preferredcredentials.collabspace.title, i(d)) : r && (d = u + "." + p + "." + l, r(d));
|
|
654
654
|
},
|
|
655
655
|
onFailure(a) {
|
|
656
656
|
console.log("Erreur de récupération du contexte de sécurité. => ", a);
|
|
@@ -667,9 +667,8 @@ async function I(e, t = void 0, n = void 0, s = void 0) {
|
|
|
667
667
|
try {
|
|
668
668
|
console.log("_3DSpace_download_doc / credentials", e), D(
|
|
669
669
|
e,
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
f(c, {
|
|
670
|
+
(r) => {
|
|
671
|
+
f(r, {
|
|
673
672
|
headers: {
|
|
674
673
|
ENO_CSRF_TOKEN: e.token
|
|
675
674
|
},
|
|
@@ -677,24 +676,24 @@ async function I(e, t = void 0, n = void 0, s = void 0) {
|
|
|
677
676
|
const a = JSON.parse(o);
|
|
678
677
|
t && t(a);
|
|
679
678
|
},
|
|
680
|
-
onFailure(o, a,
|
|
681
|
-
n && (console.log("error http", o), n({ error: o, headers: a, xhr:
|
|
679
|
+
onFailure(o, a, c) {
|
|
680
|
+
n && (console.log("error http", o), n({ error: o, headers: a, xhr: c }));
|
|
682
681
|
}
|
|
683
682
|
});
|
|
684
683
|
},
|
|
685
|
-
(
|
|
686
|
-
n && n(
|
|
684
|
+
(r) => {
|
|
685
|
+
n && n(r), console.log("*_3dspace_download_doc / error file URL *", r);
|
|
687
686
|
}
|
|
688
687
|
);
|
|
689
|
-
} catch (
|
|
690
|
-
console.log("*_3dspace_download_doc / error file URL *",
|
|
688
|
+
} catch (r) {
|
|
689
|
+
console.log("*_3dspace_download_doc / error file URL *", r);
|
|
691
690
|
}
|
|
692
691
|
}
|
|
693
692
|
async function W(e, t, n = void 0, s = void 0) {
|
|
694
693
|
let i = [];
|
|
695
694
|
for (let a = 0; a < t.length; a += 80) {
|
|
696
|
-
const
|
|
697
|
-
i.push(
|
|
695
|
+
const c = t.slice(a, a + 80);
|
|
696
|
+
i.push(c);
|
|
698
697
|
}
|
|
699
698
|
const o = (a) => {
|
|
700
699
|
X(
|
|
@@ -703,18 +702,18 @@ async function W(e, t, n = void 0, s = void 0) {
|
|
|
703
702
|
() => {
|
|
704
703
|
a++, a < i.length && o(a);
|
|
705
704
|
},
|
|
706
|
-
(
|
|
707
|
-
n && n(
|
|
705
|
+
(c) => {
|
|
706
|
+
n && n(c);
|
|
708
707
|
}
|
|
709
708
|
);
|
|
710
709
|
};
|
|
711
710
|
o(0);
|
|
712
711
|
}
|
|
713
712
|
function X(e, t, n = void 0, s = void 0, i = void 0) {
|
|
714
|
-
const
|
|
715
|
-
t.forEach((
|
|
716
|
-
|
|
717
|
-
id:
|
|
713
|
+
const r = [];
|
|
714
|
+
t.forEach((c) => {
|
|
715
|
+
r.push({
|
|
716
|
+
id: c
|
|
718
717
|
});
|
|
719
718
|
});
|
|
720
719
|
let o = JSON.stringify({
|
|
@@ -722,16 +721,16 @@ function X(e, t, n = void 0, s = void 0, i = void 0) {
|
|
|
722
721
|
name: "ENO_CSRF_TOKEN",
|
|
723
722
|
value: e.token
|
|
724
723
|
},
|
|
725
|
-
data:
|
|
724
|
+
data: r
|
|
726
725
|
});
|
|
727
726
|
const a = `${e.space}/resources/v1/modeler/documents/DownloadTicket?tenant=${e.tenant}&e6w-lang=fr&e6w-timezone=-120`;
|
|
728
727
|
f(a, {
|
|
729
728
|
method: "PUT",
|
|
730
729
|
data: o,
|
|
731
730
|
type: "json",
|
|
732
|
-
onComplete(
|
|
733
|
-
const d =
|
|
734
|
-
|
|
731
|
+
onComplete(c) {
|
|
732
|
+
const d = c.data;
|
|
733
|
+
c.success === !0 && (n && n(), d.forEach((l) => {
|
|
735
734
|
try {
|
|
736
735
|
const p = l.dataelements.fileName, u = l.dataelements.ticketURL;
|
|
737
736
|
f(u, {
|
|
@@ -751,15 +750,15 @@ function X(e, t, n = void 0, s = void 0, i = void 0) {
|
|
|
751
750
|
}
|
|
752
751
|
}));
|
|
753
752
|
},
|
|
754
|
-
onFailure(
|
|
755
|
-
console.log(
|
|
753
|
+
onFailure(c) {
|
|
754
|
+
console.log(c), i && i(c);
|
|
756
755
|
}
|
|
757
756
|
});
|
|
758
757
|
}
|
|
759
758
|
function Fe(e, t, n = void 0, s = void 0) {
|
|
760
759
|
return new Promise((i) => {
|
|
761
760
|
if (e.token === "" && C(e), t !== void 0 && t !== "" && t !== null) {
|
|
762
|
-
const
|
|
761
|
+
const r = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
|
|
763
762
|
N(
|
|
764
763
|
e.space,
|
|
765
764
|
"ESPACE COMMUN",
|
|
@@ -793,12 +792,12 @@ function Fe(e, t, n = void 0, s = void 0) {
|
|
|
793
792
|
s && s(a);
|
|
794
793
|
}
|
|
795
794
|
};
|
|
796
|
-
f(
|
|
795
|
+
f(r, o);
|
|
797
796
|
}
|
|
798
797
|
});
|
|
799
798
|
}
|
|
800
799
|
function Ue(e, t, n, s = void 0, i = void 0) {
|
|
801
|
-
return new Promise((
|
|
800
|
+
return new Promise((r) => {
|
|
802
801
|
if (e.token === "" && C(e), t !== void 0 && t !== "" && t !== null) {
|
|
803
802
|
const o = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
|
|
804
803
|
N(
|
|
@@ -806,9 +805,9 @@ function Ue(e, t, n, s = void 0, i = void 0) {
|
|
|
806
805
|
"ESPACE COMMUN",
|
|
807
806
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
808
807
|
void 0,
|
|
809
|
-
(
|
|
810
|
-
(
|
|
811
|
-
console.log("onError =>",
|
|
808
|
+
(c) => e.ctx = c,
|
|
809
|
+
(c) => {
|
|
810
|
+
console.log("onError =>", c);
|
|
812
811
|
}
|
|
813
812
|
);
|
|
814
813
|
let a = {
|
|
@@ -828,11 +827,11 @@ function Ue(e, t, n, s = void 0, i = void 0) {
|
|
|
828
827
|
]
|
|
829
828
|
}),
|
|
830
829
|
type: "json",
|
|
831
|
-
onComplete(
|
|
832
|
-
s && s(
|
|
830
|
+
onComplete(c) {
|
|
831
|
+
s && s(c);
|
|
833
832
|
},
|
|
834
|
-
onFailure(
|
|
835
|
-
i && i(
|
|
833
|
+
onFailure(c) {
|
|
834
|
+
i && i(c);
|
|
836
835
|
}
|
|
837
836
|
};
|
|
838
837
|
f(o, a);
|
|
@@ -842,7 +841,7 @@ function Ue(e, t, n, s = void 0, i = void 0) {
|
|
|
842
841
|
function De(e, t, n = void 0, s = void 0) {
|
|
843
842
|
return new Promise((i) => {
|
|
844
843
|
if (e.token === "" && C(e), t !== void 0 && t !== "" && t !== null) {
|
|
845
|
-
const
|
|
844
|
+
const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
|
|
846
845
|
N(
|
|
847
846
|
e.space,
|
|
848
847
|
"ESPACE COMMUN",
|
|
@@ -876,14 +875,14 @@ function De(e, t, n = void 0, s = void 0) {
|
|
|
876
875
|
s && s(a);
|
|
877
876
|
}
|
|
878
877
|
};
|
|
879
|
-
f(
|
|
878
|
+
f(r, o);
|
|
880
879
|
}
|
|
881
880
|
});
|
|
882
881
|
}
|
|
883
882
|
function $e(e, t, n = void 0, s = void 0) {
|
|
884
883
|
return new Promise((i) => {
|
|
885
884
|
if (e.token === "" && C(e), t !== void 0 && t !== "" && t !== null) {
|
|
886
|
-
const
|
|
885
|
+
const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
|
|
887
886
|
N(
|
|
888
887
|
e.space,
|
|
889
888
|
"ESPACE COMMUN",
|
|
@@ -923,12 +922,12 @@ function $e(e, t, n = void 0, s = void 0) {
|
|
|
923
922
|
s && s(a);
|
|
924
923
|
}
|
|
925
924
|
};
|
|
926
|
-
f(
|
|
925
|
+
f(r, o);
|
|
927
926
|
}
|
|
928
927
|
});
|
|
929
928
|
}
|
|
930
|
-
function
|
|
931
|
-
return new Promise((
|
|
929
|
+
function je(e, t, n, s = void 0, i = void 0) {
|
|
930
|
+
return new Promise((r) => {
|
|
932
931
|
if (e.token === "" && C(e), t !== void 0 && t !== "" && t !== null) {
|
|
933
932
|
const o = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
|
|
934
933
|
N(
|
|
@@ -936,9 +935,9 @@ function Re(e, t, n, s = void 0, i = void 0) {
|
|
|
936
935
|
"ESPACE COMMUN",
|
|
937
936
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
938
937
|
void 0,
|
|
939
|
-
(
|
|
940
|
-
(
|
|
941
|
-
console.log("onError =>",
|
|
938
|
+
(c) => e.ctx = c,
|
|
939
|
+
(c) => {
|
|
940
|
+
console.log("onError =>", c);
|
|
942
941
|
}
|
|
943
942
|
);
|
|
944
943
|
let a = {
|
|
@@ -963,11 +962,11 @@ function Re(e, t, n, s = void 0, i = void 0) {
|
|
|
963
962
|
notificationTimeout: 600
|
|
964
963
|
}),
|
|
965
964
|
type: "json",
|
|
966
|
-
onComplete(
|
|
967
|
-
s && s(
|
|
965
|
+
onComplete(c) {
|
|
966
|
+
s && s(c);
|
|
968
967
|
},
|
|
969
|
-
onFailure(
|
|
970
|
-
i && i(
|
|
968
|
+
onFailure(c) {
|
|
969
|
+
i && i(c);
|
|
971
970
|
}
|
|
972
971
|
};
|
|
973
972
|
f(o, a);
|
|
@@ -975,18 +974,18 @@ function Re(e, t, n, s = void 0, i = void 0) {
|
|
|
975
974
|
});
|
|
976
975
|
}
|
|
977
976
|
//!SECTION
|
|
978
|
-
async function
|
|
977
|
+
async function Ae(e, t, n) {
|
|
979
978
|
const s = `${e.space}/resources/v1/application/CSRF`;
|
|
980
979
|
f(s, {
|
|
981
980
|
onComplete(i) {
|
|
982
981
|
i = JSON.parse(i), t && t(i.csrf);
|
|
983
982
|
},
|
|
984
|
-
onFailure(i,
|
|
985
|
-
n && n({ error: i, headers:
|
|
983
|
+
onFailure(i, r, o) {
|
|
984
|
+
n && n({ error: i, headers: r, xhr: o });
|
|
986
985
|
}
|
|
987
986
|
});
|
|
988
987
|
}
|
|
989
|
-
function
|
|
988
|
+
function Re(e, t = void 0, n = void 0) {
|
|
990
989
|
const s = {
|
|
991
990
|
base: `${e.space}`,
|
|
992
991
|
uri: "/resources/bps/cspaces",
|
|
@@ -998,12 +997,12 @@ function Ae(e, t = void 0, n = void 0) {
|
|
|
998
997
|
Accept: "application/json,text/javascript,*/*",
|
|
999
998
|
"Content-Type": "application/ds-json"
|
|
1000
999
|
},
|
|
1001
|
-
onComplete(
|
|
1002
|
-
const a = JSON.parse(
|
|
1000
|
+
onComplete(r, o) {
|
|
1001
|
+
const a = JSON.parse(r);
|
|
1003
1002
|
t && t(a, o);
|
|
1004
1003
|
},
|
|
1005
|
-
onFailure(
|
|
1006
|
-
n && n({ response:
|
|
1004
|
+
onFailure(r, o, a) {
|
|
1005
|
+
n && n({ response: r, headers: o, xhr: a });
|
|
1007
1006
|
}
|
|
1008
1007
|
});
|
|
1009
1008
|
}
|
|
@@ -1014,44 +1013,41 @@ function Ie(e, t, n, s) {
|
|
|
1014
1013
|
(i) => {
|
|
1015
1014
|
f(i, {
|
|
1016
1015
|
header: { ENO_CSRF_TOKEN: e.token },
|
|
1017
|
-
onComplete: (
|
|
1018
|
-
n && n(
|
|
1016
|
+
onComplete: (r) => {
|
|
1017
|
+
n && n(r);
|
|
1019
1018
|
},
|
|
1020
|
-
onFailure: (
|
|
1021
|
-
console.log("error http",
|
|
1019
|
+
onFailure: (r) => {
|
|
1020
|
+
console.log("error http", r), s && s(r);
|
|
1022
1021
|
}
|
|
1023
1022
|
});
|
|
1024
|
-
},
|
|
1025
|
-
(i) => {
|
|
1026
|
-
console.log("error file URL", i), s && s(i);
|
|
1027
1023
|
}
|
|
1028
1024
|
);
|
|
1029
1025
|
}
|
|
1030
1026
|
async function ve(e, t, n = void 0, s = void 0) {
|
|
1031
1027
|
return new Promise((i) => {
|
|
1032
|
-
D(e.space, t, (
|
|
1033
|
-
f(
|
|
1034
|
-
onComplete: (o, a,
|
|
1035
|
-
onFailure: (o, a,
|
|
1036
|
-
s && s(o, a,
|
|
1028
|
+
D(e.space, t, (r) => {
|
|
1029
|
+
f(r, {
|
|
1030
|
+
onComplete: (o, a, c) => (i(JSON.parse(o)), n && n(JSON.parse(o), a, c), i),
|
|
1031
|
+
onFailure: (o, a, c) => {
|
|
1032
|
+
s && s(o, a, c), console.log(o, a?.errormsg);
|
|
1037
1033
|
}
|
|
1038
1034
|
});
|
|
1039
1035
|
});
|
|
1040
1036
|
});
|
|
1041
1037
|
}
|
|
1042
1038
|
function xe(e, t, n, s = void 0, i = void 0) {
|
|
1043
|
-
const
|
|
1039
|
+
const r = new Blob([JSON.stringify(t)], { type: "text/plain" });
|
|
1044
1040
|
k(
|
|
1045
1041
|
e,
|
|
1046
1042
|
n,
|
|
1047
1043
|
(o) => {
|
|
1048
|
-
const a = o.data[0].relateddata.files[0].id,
|
|
1044
|
+
const a = o.data[0].relateddata.files[0].id, c = o.data[0].dataelements.secondaryTitle !== "" ? o.data[0].dataelements.secondaryTitle : o.data[0].dataelements.title;
|
|
1049
1045
|
G(
|
|
1050
1046
|
e,
|
|
1051
1047
|
n,
|
|
1052
1048
|
a,
|
|
1053
|
-
c,
|
|
1054
1049
|
r,
|
|
1050
|
+
c,
|
|
1055
1051
|
(d) => {
|
|
1056
1052
|
s && s(d);
|
|
1057
1053
|
},
|
|
@@ -1065,7 +1061,7 @@ function xe(e, t, n, s = void 0, i = void 0) {
|
|
|
1065
1061
|
let v, x;
|
|
1066
1062
|
const $ = [];
|
|
1067
1063
|
async function Pe(e, t = void 0, n = void 0) {
|
|
1068
|
-
e.objID && e.objID !== "" ? k(
|
|
1064
|
+
e.objID && e.objID !== "" ? (console.log("obj est présent"), k(
|
|
1069
1065
|
e,
|
|
1070
1066
|
(s) => {
|
|
1071
1067
|
t && t(s);
|
|
@@ -1073,7 +1069,7 @@ async function Pe(e, t = void 0, n = void 0) {
|
|
|
1073
1069
|
(s) => {
|
|
1074
1070
|
n && n(s);
|
|
1075
1071
|
}
|
|
1076
|
-
) : e.objID === null && C(
|
|
1072
|
+
)) : (e.objID === null || e.objID === "") && C(
|
|
1077
1073
|
e,
|
|
1078
1074
|
(s) => {
|
|
1079
1075
|
t && t({ rep: s, msg: "Pas d'objID, ou invalide" });
|
|
@@ -1090,11 +1086,11 @@ async function Me(e, t = void 0, n = void 0) {
|
|
|
1090
1086
|
const i = {};
|
|
1091
1087
|
i.obj = s, V(
|
|
1092
1088
|
e,
|
|
1093
|
-
(
|
|
1094
|
-
i.datas =
|
|
1089
|
+
(r) => {
|
|
1090
|
+
i.datas = r, t && t(i);
|
|
1095
1091
|
},
|
|
1096
|
-
(
|
|
1097
|
-
n && n(
|
|
1092
|
+
(r) => {
|
|
1093
|
+
n && n(r);
|
|
1098
1094
|
}
|
|
1099
1095
|
);
|
|
1100
1096
|
},
|
|
@@ -1105,12 +1101,12 @@ async function Me(e, t = void 0, n = void 0) {
|
|
|
1105
1101
|
}
|
|
1106
1102
|
function V(e, t = void 0, n = void 0) {
|
|
1107
1103
|
const s = [];
|
|
1108
|
-
e.objIds.forEach((i,
|
|
1104
|
+
e.objIds.forEach((i, r) => {
|
|
1109
1105
|
I(
|
|
1110
1106
|
e,
|
|
1111
1107
|
i.objId,
|
|
1112
1108
|
(o) => {
|
|
1113
|
-
s.push({ [i.name]: o }), i.name === "dbProjets" && (v = o.affaires.map((a) => a.objectID), B(e, x)),
|
|
1109
|
+
s.push({ [i.name]: o }), i.name === "dbProjets" && (v = o.affaires.map((a) => a.objectID), B(e, x)), r === e.objIds.length - 1 && t && t(s);
|
|
1114
1110
|
},
|
|
1115
1111
|
(o) => {
|
|
1116
1112
|
n && n(o);
|
|
@@ -1123,8 +1119,8 @@ function B(e, t, n = void 0, s = void 0) {
|
|
|
1123
1119
|
e,
|
|
1124
1120
|
v,
|
|
1125
1121
|
(i) => {
|
|
1126
|
-
const
|
|
1127
|
-
|
|
1122
|
+
const r = [...t];
|
|
1123
|
+
r.find((o) => o.objectID === i.objectId).data = i.data, x = r, $.push(i.data), n && n($);
|
|
1128
1124
|
},
|
|
1129
1125
|
(i) => {
|
|
1130
1126
|
s && (s(i), console.log(i));
|
|
@@ -1152,10 +1148,10 @@ const Y = "FA35FB9B177A280065800EA0000F599C", H = [
|
|
|
1152
1148
|
tag: "testTag"
|
|
1153
1149
|
};
|
|
1154
1150
|
function Le(e, t, n = void 0, s = void 0) {
|
|
1155
|
-
const { space: i, tenant:
|
|
1151
|
+
const { space: i, tenant: r } = e, { objId: o, pred: a, tag: c } = t, d = {
|
|
1156
1152
|
uri: "/resources/6w/tags",
|
|
1157
1153
|
otpCTX: "SecurityContext=preferred",
|
|
1158
|
-
optTenant: `tenant=${
|
|
1154
|
+
optTenant: `tenant=${r}`
|
|
1159
1155
|
}, l = `${i}${d.uri}?${d.otpCTX}&${d.optTenant}`, p = {
|
|
1160
1156
|
tag: [
|
|
1161
1157
|
{
|
|
@@ -1166,7 +1162,7 @@ function Le(e, t, n = void 0, s = void 0) {
|
|
|
1166
1162
|
],
|
|
1167
1163
|
predicate: P[a],
|
|
1168
1164
|
object: {
|
|
1169
|
-
literal:
|
|
1165
|
+
literal: c
|
|
1170
1166
|
}
|
|
1171
1167
|
}
|
|
1172
1168
|
]
|
|
@@ -1213,17 +1209,17 @@ function Le(e, t, n = void 0, s = void 0) {
|
|
|
1213
1209
|
}
|
|
1214
1210
|
function q(e, t, n = void 0, s = void 0) {
|
|
1215
1211
|
console.log("obj ", t);
|
|
1216
|
-
const i = t.info.name,
|
|
1212
|
+
const i = t.info.name, r = {
|
|
1217
1213
|
baseUrl: `https://${e.tenant.toLowerCase()}-eu1-fedsearch.3dexperience.3ds.com`,
|
|
1218
1214
|
uri: "/federated/search"
|
|
1219
|
-
}, o = `${
|
|
1215
|
+
}, o = `${r.baseUrl}${r.uri}`, a = {
|
|
1220
1216
|
"Content-Type": "application/json",
|
|
1221
1217
|
Accept: "application/json,text/javascript,*/*"
|
|
1222
|
-
},
|
|
1218
|
+
}, c = R(), d = {
|
|
1223
1219
|
with_indexing_date: !0,
|
|
1224
1220
|
with_synthesis: !0,
|
|
1225
1221
|
with_nls: !1,
|
|
1226
|
-
label: `3DSearch-${e.currentUser.username}-AjoutDeTagBeam-${
|
|
1222
|
+
label: `3DSearch-${e.currentUser.username}-AjoutDeTagBeam-${c}`,
|
|
1227
1223
|
locale: "fr",
|
|
1228
1224
|
select_predicate: [
|
|
1229
1225
|
"ds6w:label",
|
|
@@ -1295,11 +1291,11 @@ function q(e, t, n = void 0, s = void 0) {
|
|
|
1295
1291
|
});
|
|
1296
1292
|
}
|
|
1297
1293
|
function Ee(e, t, n = void 0, s = void 0) {
|
|
1298
|
-
const { objId: i, pred:
|
|
1294
|
+
const { objId: i, pred: r, tag: o } = t, a = {
|
|
1299
1295
|
uri: "/resources/6w/tags",
|
|
1300
1296
|
otpCTX: "SecurityContext=preferred",
|
|
1301
1297
|
optTenant: `tenant=${e.tenant}`
|
|
1302
|
-
},
|
|
1298
|
+
}, c = `${e.space}${a.uri}?${a.otpCTX}&${a.optTenant}`, d = {
|
|
1303
1299
|
tag: [
|
|
1304
1300
|
{
|
|
1305
1301
|
subject: [
|
|
@@ -1307,14 +1303,14 @@ function Ee(e, t, n = void 0, s = void 0) {
|
|
|
1307
1303
|
uri: `pid://${i}`
|
|
1308
1304
|
}
|
|
1309
1305
|
],
|
|
1310
|
-
predicate: P[
|
|
1306
|
+
predicate: P[r],
|
|
1311
1307
|
object: {
|
|
1312
1308
|
literal: o
|
|
1313
1309
|
}
|
|
1314
1310
|
}
|
|
1315
1311
|
]
|
|
1316
1312
|
};
|
|
1317
|
-
f(
|
|
1313
|
+
f(c, {
|
|
1318
1314
|
method: "DELETE",
|
|
1319
1315
|
data: JSON.stringify(d),
|
|
1320
1316
|
headers: {
|
|
@@ -1334,16 +1330,16 @@ function Je(e, t = "", n = void 0, s = void 0) {
|
|
|
1334
1330
|
const { space: i } = e;
|
|
1335
1331
|
if (t === "")
|
|
1336
1332
|
return;
|
|
1337
|
-
const
|
|
1333
|
+
const r = {
|
|
1338
1334
|
uri: "/enovia/resources/v1/modeler/documents"
|
|
1339
1335
|
}, o = {
|
|
1340
1336
|
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
|
|
1341
1337
|
Accept: "application/json,text/javascript,*/*"
|
|
1342
|
-
}, a = `${i}${
|
|
1338
|
+
}, a = `${i}${r.uri}`, c = `$include=none,lockerInfo,ownerInfo,originatorInfo,files,ownerInfo,originatorInfo&$fields=none,title,name,typeNLS,collabSpaceTitle,revision,isLatestRevision,files,lockStatus,lockerInfo.name,lockerInfo.firstname,lockerInfo.lastname,owner,ownerInfo.name,ownerInfo.firstname,ownerInfo.lastname,stateNLS,modified,policy,state,organizationTitle,originator,originatorInfo.name,originatorInfo.firstname,originatorInfo.lastname,hasModifyAccess,fileExtension,files.name,files.title,files.revision,files.locker,ownerInfo,ownerInfo.name,ownerInfo.firstname,ownerInfo.lastname,originatorInfo,originatorInfo.name,originatorInfo.firstname,originatorInfo.lastname&$ids=${t}`;
|
|
1343
1339
|
f(a, {
|
|
1344
1340
|
method: "POST",
|
|
1345
1341
|
headers: o,
|
|
1346
|
-
data:
|
|
1342
|
+
data: c,
|
|
1347
1343
|
onComplete(d) {
|
|
1348
1344
|
n && n(JSON.parse(d));
|
|
1349
1345
|
},
|
|
@@ -1356,7 +1352,7 @@ function Je(e, t = "", n = void 0, s = void 0) {
|
|
|
1356
1352
|
async function w(e, t = void 0, n = void 0) {
|
|
1357
1353
|
const s = e.space + "/api/index/tk";
|
|
1358
1354
|
return f(s, {
|
|
1359
|
-
onComplete(i,
|
|
1355
|
+
onComplete(i, r, o) {
|
|
1360
1356
|
const a = JSON.parse(i);
|
|
1361
1357
|
if (t)
|
|
1362
1358
|
return t(a), e.token = a?.result?.ServerToken;
|
|
@@ -1377,11 +1373,11 @@ function Ge(e, t = void 0, n = void 0) {
|
|
|
1377
1373
|
start: 0
|
|
1378
1374
|
}
|
|
1379
1375
|
};
|
|
1380
|
-
w(e, (
|
|
1376
|
+
w(e, (r) => {
|
|
1381
1377
|
f(s, {
|
|
1382
1378
|
method: "POST",
|
|
1383
1379
|
headers: {
|
|
1384
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1380
|
+
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken,
|
|
1385
1381
|
"Content-type": "application/json;charset=UTF-8",
|
|
1386
1382
|
Accept: "application/json"
|
|
1387
1383
|
},
|
|
@@ -1406,19 +1402,19 @@ function Ke(e, t = void 0, n = void 0) {
|
|
|
1406
1402
|
maxNbOfCommonElements: "5"
|
|
1407
1403
|
}
|
|
1408
1404
|
};
|
|
1409
|
-
w(e, (
|
|
1405
|
+
w(e, (r) => {
|
|
1410
1406
|
f(s, {
|
|
1411
1407
|
method: "POST",
|
|
1412
1408
|
headers: {
|
|
1413
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1409
|
+
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken,
|
|
1414
1410
|
"Content-type": "application/json;charset=UTF-8",
|
|
1415
1411
|
Accept: "application/json"
|
|
1416
1412
|
},
|
|
1417
1413
|
data: JSON.stringify(i),
|
|
1418
1414
|
type: "json",
|
|
1419
1415
|
onComplete(o, a) {
|
|
1420
|
-
const
|
|
1421
|
-
t && t(
|
|
1416
|
+
const c = o.result.hits.map((d) => ({ login: d.login, fullName: d.name }));
|
|
1417
|
+
t && t(c, o);
|
|
1422
1418
|
},
|
|
1423
1419
|
onFailure(o, a) {
|
|
1424
1420
|
n && n(o, a);
|
|
@@ -1432,14 +1428,14 @@ function We(e, t = void 0, n = void 0) {
|
|
|
1432
1428
|
uri: "/api/community/listmycommunities",
|
|
1433
1429
|
limit: `/limit/${e.limit ? e.limit : 128}`,
|
|
1434
1430
|
page: `/page/${e.page ? e.page : "1"}`
|
|
1435
|
-
}, i = `${s.base}${s.uri}${s.limit}${s.page}`,
|
|
1431
|
+
}, i = `${s.base}${s.uri}${s.limit}${s.page}`, r = [];
|
|
1436
1432
|
w(e, (o) => {
|
|
1437
1433
|
f(i, {
|
|
1438
1434
|
method: "GET",
|
|
1439
1435
|
headers: {
|
|
1440
1436
|
"X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
|
|
1441
1437
|
},
|
|
1442
|
-
onComplete(a,
|
|
1438
|
+
onComplete(a, c, d) {
|
|
1443
1439
|
const p = JSON.parse(a).result;
|
|
1444
1440
|
let u = 0;
|
|
1445
1441
|
p.forEach((m) => {
|
|
@@ -1455,21 +1451,21 @@ function We(e, t = void 0, n = void 0) {
|
|
|
1455
1451
|
e,
|
|
1456
1452
|
m.id,
|
|
1457
1453
|
(h) => {
|
|
1458
|
-
u++, g.members = h,
|
|
1454
|
+
u++, g.members = h, r.push(g), u === p.length && t && t(r);
|
|
1459
1455
|
},
|
|
1460
1456
|
(h) => n(h)
|
|
1461
1457
|
);
|
|
1462
1458
|
});
|
|
1463
1459
|
},
|
|
1464
|
-
onFailure(a,
|
|
1460
|
+
onFailure(a, c) {
|
|
1465
1461
|
const d = a;
|
|
1466
|
-
d.status =
|
|
1462
|
+
d.status = c.status, d.response = c.errormsg, n && n(d);
|
|
1467
1463
|
}
|
|
1468
1464
|
});
|
|
1469
1465
|
});
|
|
1470
1466
|
}
|
|
1471
1467
|
function Q(e, t, n, s) {
|
|
1472
|
-
const i = `${e.space}/api/community/listmembers`,
|
|
1468
|
+
const i = `${e.space}/api/community/listmembers`, r = {
|
|
1473
1469
|
params: {
|
|
1474
1470
|
page: e.page ? e.page : 1,
|
|
1475
1471
|
limit: e.limit ? e.limit : 50,
|
|
@@ -1484,14 +1480,14 @@ function Q(e, t, n, s) {
|
|
|
1484
1480
|
Accept: "application/json",
|
|
1485
1481
|
"X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
|
|
1486
1482
|
},
|
|
1487
|
-
data: JSON.stringify(
|
|
1483
|
+
data: JSON.stringify(r),
|
|
1488
1484
|
type: "json",
|
|
1489
|
-
onComplete(a,
|
|
1485
|
+
onComplete(a, c, d) {
|
|
1490
1486
|
n && n(a);
|
|
1491
1487
|
},
|
|
1492
|
-
onFailure(a,
|
|
1488
|
+
onFailure(a, c) {
|
|
1493
1489
|
const d = a;
|
|
1494
|
-
d.status =
|
|
1490
|
+
d.status = c.status, d.response = c.errormsg, s && s(d);
|
|
1495
1491
|
}
|
|
1496
1492
|
});
|
|
1497
1493
|
});
|
|
@@ -1500,31 +1496,31 @@ function Xe(e, t = void 0, n = void 0) {
|
|
|
1500
1496
|
const s = "YXdA5x4DSUKtlAi2wmnyTA";
|
|
1501
1497
|
e.commu_id || (e.commu_id = s);
|
|
1502
1498
|
const i = `${e.space}/api/v2/communities/${e.commu_id}/ideas/statuses`;
|
|
1503
|
-
w(e, (
|
|
1499
|
+
w(e, (r) => {
|
|
1504
1500
|
f(i, {
|
|
1505
1501
|
method: "GET",
|
|
1506
1502
|
headers: {
|
|
1507
1503
|
"Content-type": "application/json;charset=UTF-8",
|
|
1508
1504
|
Accept: "application/json",
|
|
1509
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1505
|
+
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
|
|
1510
1506
|
},
|
|
1511
1507
|
onComplete(o) {
|
|
1512
1508
|
const a = JSON.parse(o);
|
|
1513
1509
|
t && t(a);
|
|
1514
1510
|
},
|
|
1515
1511
|
onFailure(o, a) {
|
|
1516
|
-
const
|
|
1517
|
-
|
|
1512
|
+
const c = o;
|
|
1513
|
+
c.status = a.status, c.response = a.errormsg, n && n(c);
|
|
1518
1514
|
}
|
|
1519
1515
|
});
|
|
1520
1516
|
});
|
|
1521
1517
|
}
|
|
1522
1518
|
function Ve(e, t, n = void 0, s = void 0) {
|
|
1523
|
-
const { listAllContacts: i, currentUser:
|
|
1519
|
+
const { listAllContacts: i, currentUser: r } = e;
|
|
1524
1520
|
console.log("__listAllContacts", i.hits);
|
|
1525
1521
|
const o = `${e.space}/api/directmessages`, a = {
|
|
1526
|
-
users: [
|
|
1527
|
-
},
|
|
1522
|
+
users: [r.login].concat(t.receipt)
|
|
1523
|
+
}, c = {
|
|
1528
1524
|
id_msg: "",
|
|
1529
1525
|
senderId: e.currentUser.login,
|
|
1530
1526
|
senderName: `${e.currentUser.first_name} ${e.currentUser.last_name}`,
|
|
@@ -1534,10 +1530,10 @@ function Ve(e, t, n = void 0, s = void 0) {
|
|
|
1534
1530
|
Z(
|
|
1535
1531
|
a.users,
|
|
1536
1532
|
(l) => {
|
|
1537
|
-
l !== void 0 && (
|
|
1533
|
+
l !== void 0 && (c.id_msg = l.id, d = !0, j(e, c));
|
|
1538
1534
|
},
|
|
1539
1535
|
(l) => {
|
|
1540
|
-
d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", l), s && s(l),
|
|
1536
|
+
d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", l), s && s(l), c.id_msg = "";
|
|
1541
1537
|
}
|
|
1542
1538
|
), d === !1 && setTimeout(() => {
|
|
1543
1539
|
d === !1 && w(e, (l) => {
|
|
@@ -1552,7 +1548,7 @@ function Ve(e, t, n = void 0, s = void 0) {
|
|
|
1552
1548
|
type: "json",
|
|
1553
1549
|
onComplete(p, u, m) {
|
|
1554
1550
|
const g = p;
|
|
1555
|
-
g.reponse = JSON.parse(m.response), g.status = m.status, n && n(g),
|
|
1551
|
+
g.reponse = JSON.parse(m.response), g.status = m.status, n && n(g), c.id_msg = g.result.id, j(e, c);
|
|
1556
1552
|
},
|
|
1557
1553
|
onFailure(p, u, m) {
|
|
1558
1554
|
const g = p;
|
|
@@ -1564,19 +1560,19 @@ function Ve(e, t, n = void 0, s = void 0) {
|
|
|
1564
1560
|
}
|
|
1565
1561
|
function Z(e, t, n, s) {
|
|
1566
1562
|
const i = `${e.space}/api/directmessages/lite?with_favorites=false`;
|
|
1567
|
-
w(e, (
|
|
1563
|
+
w(e, (r) => {
|
|
1568
1564
|
f(i, {
|
|
1569
1565
|
method: "GET",
|
|
1570
1566
|
headers: {
|
|
1571
1567
|
Accept: "application/json,text/javascript,*/*",
|
|
1572
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1568
|
+
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
|
|
1573
1569
|
},
|
|
1574
1570
|
onComplete(o) {
|
|
1575
|
-
const a = JSON.parse(o),
|
|
1571
|
+
const a = JSON.parse(o), c = [];
|
|
1576
1572
|
a.result.forEach((p) => {
|
|
1577
|
-
p.users = p.users.sort((u, m) => u.login.localeCompare(m.login)), p.users.length === t.length &&
|
|
1573
|
+
p.users = p.users.sort((u, m) => u.login.localeCompare(m.login)), p.users.length === t.length && c.push(p);
|
|
1578
1574
|
});
|
|
1579
|
-
const d = t.sort(), l =
|
|
1575
|
+
const d = t.sort(), l = c.find((p) => {
|
|
1580
1576
|
const u = [];
|
|
1581
1577
|
return p.users.forEach((m) => {
|
|
1582
1578
|
u.push(m.login);
|
|
@@ -1591,13 +1587,13 @@ function Z(e, t, n, s) {
|
|
|
1591
1587
|
});
|
|
1592
1588
|
});
|
|
1593
1589
|
}
|
|
1594
|
-
function
|
|
1590
|
+
function j(e, t, n = void 0, s = void 0) {
|
|
1595
1591
|
const i = {
|
|
1596
1592
|
base: e.space,
|
|
1597
1593
|
uri: "/api/community",
|
|
1598
1594
|
id_msg: `${t.id_msg}`,
|
|
1599
1595
|
endUri: "/instantmessages"
|
|
1600
|
-
},
|
|
1596
|
+
}, r = `${i.base}${i.uri}/${i.id_msg}${i.endUri}`, o = {
|
|
1601
1597
|
author: { login: t.senderId, displayName: t.senderName },
|
|
1602
1598
|
accessState: null,
|
|
1603
1599
|
commentUri: null,
|
|
@@ -1607,8 +1603,8 @@ function R(e, t, n = void 0, s = void 0) {
|
|
|
1607
1603
|
parentCommentUri: null,
|
|
1608
1604
|
richMessage: t.msg
|
|
1609
1605
|
};
|
|
1610
|
-
console.log("_3dSwym_sendDirectMessageData url ",
|
|
1611
|
-
f(
|
|
1606
|
+
console.log("_3dSwym_sendDirectMessageData url ", r), w(e, (a) => {
|
|
1607
|
+
f(r, {
|
|
1612
1608
|
method: "POST",
|
|
1613
1609
|
headers: {
|
|
1614
1610
|
"Content-Type": "application/json",
|
|
@@ -1617,12 +1613,12 @@ function R(e, t, n = void 0, s = void 0) {
|
|
|
1617
1613
|
},
|
|
1618
1614
|
data: JSON.stringify(o),
|
|
1619
1615
|
type: "json",
|
|
1620
|
-
onComplete(
|
|
1621
|
-
const p =
|
|
1616
|
+
onComplete(c, d, l) {
|
|
1617
|
+
const p = c;
|
|
1622
1618
|
p.status = l.status, p.response = JSON.parse(l.response), console.log("✅ _3dSwym_sendDirectMessageData => ", p), n && n(p);
|
|
1623
1619
|
},
|
|
1624
|
-
onFailure(
|
|
1625
|
-
const l =
|
|
1620
|
+
onFailure(c, d) {
|
|
1621
|
+
const l = c;
|
|
1626
1622
|
l.msg = d.errormsg, l.errCode = d.errorcode, console.log("❌ sendDirectMessage => ", l), s && s(l);
|
|
1627
1623
|
}
|
|
1628
1624
|
});
|
|
@@ -1646,15 +1642,15 @@ const te = {
|
|
|
1646
1642
|
// id de l'idee qui est créer au post (_3dSwym_postIdea)
|
|
1647
1643
|
};
|
|
1648
1644
|
function Be(e, t, n = void 0, s = void 0) {
|
|
1649
|
-
const i = `${e.space}/api/idea/add`,
|
|
1650
|
-
(
|
|
1645
|
+
const i = `${e.space}/api/idea/add`, r = e.swymCommunities.find(
|
|
1646
|
+
(c) => c.id === t.community_id
|
|
1651
1647
|
), o = e.swymCommunities.find(
|
|
1652
|
-
(
|
|
1648
|
+
(c) => c.title.toLowerCase() === t.community_title.toLowerCase()
|
|
1653
1649
|
), a = {
|
|
1654
1650
|
params: {
|
|
1655
1651
|
title: t.title,
|
|
1656
1652
|
// String, le nom de l'affaire
|
|
1657
|
-
community_id:
|
|
1653
|
+
community_id: r?.id !== void 0 ? r.id : o.id,
|
|
1658
1654
|
// String, l'id de la communauté
|
|
1659
1655
|
message: ne(t.text_html),
|
|
1660
1656
|
// STRING => le contenue du message doit être au format HTML
|
|
@@ -1662,11 +1658,11 @@ function Be(e, t, n = void 0, s = void 0) {
|
|
|
1662
1658
|
// 1 publier, 0 non publier
|
|
1663
1659
|
}
|
|
1664
1660
|
};
|
|
1665
|
-
w(e, (
|
|
1661
|
+
w(e, (c) => {
|
|
1666
1662
|
const d = {
|
|
1667
1663
|
"Content-type": "application/json;charset=UTF-8",
|
|
1668
1664
|
Accept: "application/json",
|
|
1669
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1665
|
+
"X-DS-SWYM-CSRFTOKEN": c.result.ServerToken
|
|
1670
1666
|
};
|
|
1671
1667
|
f(i, {
|
|
1672
1668
|
method: "POST",
|
|
@@ -1685,7 +1681,7 @@ function Be(e, t, n = void 0, s = void 0) {
|
|
|
1685
1681
|
});
|
|
1686
1682
|
}
|
|
1687
1683
|
function Ye(e, t, n = void 0, s = void 0) {
|
|
1688
|
-
const i = `${e.space}/api/idea/delete`,
|
|
1684
|
+
const i = `${e.space}/api/idea/delete`, r = {
|
|
1689
1685
|
params: {
|
|
1690
1686
|
community_id: t.community_id,
|
|
1691
1687
|
ideationIds: [t.idee_id]
|
|
@@ -1699,14 +1695,14 @@ function Ye(e, t, n = void 0, s = void 0) {
|
|
|
1699
1695
|
Accept: "application/json",
|
|
1700
1696
|
"X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
|
|
1701
1697
|
},
|
|
1702
|
-
data: JSON.stringify(
|
|
1698
|
+
data: JSON.stringify(r),
|
|
1703
1699
|
type: "json",
|
|
1704
|
-
onComplete(a,
|
|
1700
|
+
onComplete(a, c, d) {
|
|
1705
1701
|
n && n(a);
|
|
1706
1702
|
},
|
|
1707
|
-
onFailure(a,
|
|
1703
|
+
onFailure(a, c, d) {
|
|
1708
1704
|
const l = a;
|
|
1709
|
-
l.status =
|
|
1705
|
+
l.status = c.status, l.response = c.errormsg, s && s(l);
|
|
1710
1706
|
}
|
|
1711
1707
|
});
|
|
1712
1708
|
});
|
|
@@ -1714,13 +1710,13 @@ function Ye(e, t, n = void 0, s = void 0) {
|
|
|
1714
1710
|
function He(e, t = "", n = void 0, s = void 0) {
|
|
1715
1711
|
const i = e.tenant.toLowerCase() === "r1132101716373" ? "tFtz0G4MR6qNtKgJjNfTog" : e.tenant.toLowerCase() === "r1132101286859" ? "Qpv3HN-tTDOsU-7_c5DnDg" : "Template_d'idée_à_créer";
|
|
1716
1712
|
t === "" && (t = i);
|
|
1717
|
-
const
|
|
1713
|
+
const r = `${e.space}/api/idea/get`, o = {
|
|
1718
1714
|
params: {
|
|
1719
1715
|
id: t
|
|
1720
1716
|
}
|
|
1721
1717
|
};
|
|
1722
1718
|
w(e, (a) => {
|
|
1723
|
-
f(
|
|
1719
|
+
f(r, {
|
|
1724
1720
|
method: "POST",
|
|
1725
1721
|
headers: {
|
|
1726
1722
|
"Content-type": "application/json;charset=UTF-8",
|
|
@@ -1729,12 +1725,12 @@ function He(e, t = "", n = void 0, s = void 0) {
|
|
|
1729
1725
|
},
|
|
1730
1726
|
data: JSON.stringify(o),
|
|
1731
1727
|
type: "json",
|
|
1732
|
-
onComplete(
|
|
1733
|
-
const d =
|
|
1728
|
+
onComplete(c) {
|
|
1729
|
+
const d = c;
|
|
1734
1730
|
d.msg = d.result.message, n && n(d);
|
|
1735
1731
|
},
|
|
1736
|
-
onFailure(
|
|
1737
|
-
const d =
|
|
1732
|
+
onFailure(c) {
|
|
1733
|
+
const d = c;
|
|
1738
1734
|
d.status = headers.status, d.response = headers.errormsg, s && s(d);
|
|
1739
1735
|
}
|
|
1740
1736
|
});
|
|
@@ -1745,20 +1741,20 @@ function ze(e, t = te, n = void 0, s = void 0) {
|
|
|
1745
1741
|
uri: "/api/idea/list",
|
|
1746
1742
|
comId: `/community_id/${e.tenant.toLowerCase() === "r1132101716373" ? t.community_id : "bgnIsG74SUWswyGzS6NC6g"}`,
|
|
1747
1743
|
limit: `/limit/${t.limit ? t.limit : 10}`
|
|
1748
|
-
},
|
|
1744
|
+
}, r = `${e.space}${i.uri}${i.comId}${i.limit}`;
|
|
1749
1745
|
w(e, (o) => {
|
|
1750
|
-
f(
|
|
1746
|
+
f(r, {
|
|
1751
1747
|
method: "GET",
|
|
1752
1748
|
headers: {
|
|
1753
1749
|
"X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
|
|
1754
1750
|
},
|
|
1755
1751
|
onComplete(a) {
|
|
1756
|
-
const
|
|
1757
|
-
n && n(
|
|
1752
|
+
const c = JSON.parse(a);
|
|
1753
|
+
n && n(c);
|
|
1758
1754
|
},
|
|
1759
|
-
onFailure(a,
|
|
1755
|
+
onFailure(a, c) {
|
|
1760
1756
|
const d = a;
|
|
1761
|
-
d.status =
|
|
1757
|
+
d.status = c.status, d.response = c.errormsg, s && s(d);
|
|
1762
1758
|
}
|
|
1763
1759
|
});
|
|
1764
1760
|
});
|
|
@@ -1846,12 +1842,12 @@ function qe(e, t = void 0, n = void 0) {
|
|
|
1846
1842
|
f(s, {
|
|
1847
1843
|
method: "GET",
|
|
1848
1844
|
headers: { "X-DS-SWYM-CSRFTOKEN": i.result.ServerToken },
|
|
1849
|
-
onComplete(
|
|
1850
|
-
const
|
|
1851
|
-
t && t(
|
|
1845
|
+
onComplete(r, o, a) {
|
|
1846
|
+
const c = JSON.parse(r);
|
|
1847
|
+
t && t(c.result);
|
|
1852
1848
|
},
|
|
1853
|
-
onFailure(
|
|
1854
|
-
n && n({ response:
|
|
1849
|
+
onFailure(r, o, a) {
|
|
1850
|
+
n && n({ response: r, headers: o, xhr: a });
|
|
1855
1851
|
}
|
|
1856
1852
|
});
|
|
1857
1853
|
},
|
|
@@ -1862,11 +1858,11 @@ function Qe(e, t, n = void 0, s = void 0) {
|
|
|
1862
1858
|
const i = e.space + "/api/user/find/login/" + t;
|
|
1863
1859
|
w(
|
|
1864
1860
|
e,
|
|
1865
|
-
(
|
|
1861
|
+
(r) => {
|
|
1866
1862
|
f(i, {
|
|
1867
1863
|
method: "GET",
|
|
1868
|
-
headers: { "X-DS-SWYM-CSRFTOKEN":
|
|
1869
|
-
onComplete(o, a,
|
|
1864
|
+
headers: { "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken },
|
|
1865
|
+
onComplete(o, a, c) {
|
|
1870
1866
|
const d = JSON.parse(o);
|
|
1871
1867
|
n && n(d);
|
|
1872
1868
|
},
|
|
@@ -1883,7 +1879,7 @@ function Ze(e) {
|
|
|
1883
1879
|
return console.log(t), t;
|
|
1884
1880
|
}
|
|
1885
1881
|
export {
|
|
1886
|
-
|
|
1882
|
+
R as UUID,
|
|
1887
1883
|
ke as _3DSpace_Create_Doc,
|
|
1888
1884
|
C as _3DSpace_csrf,
|
|
1889
1885
|
I as _3DSpace_download_doc,
|
|
@@ -1896,7 +1892,7 @@ export {
|
|
|
1896
1892
|
J as _3DSpace_get_docInfo,
|
|
1897
1893
|
X as _3DSpace_get_downloadTicket_multidoc,
|
|
1898
1894
|
N as _3DSpace_get_securityContexts,
|
|
1899
|
-
|
|
1895
|
+
je as _3DSpace_lifecycle_changeRevision,
|
|
1900
1896
|
Ue as _3DSpace_lifecycle_changeState,
|
|
1901
1897
|
De as _3DSpace_lifecycle_getGraph,
|
|
1902
1898
|
$e as _3DSpace_lifecycle_getNextRevision,
|
|
@@ -1915,7 +1911,7 @@ export {
|
|
|
1915
1911
|
Qe as _3DSwym_get_findUser,
|
|
1916
1912
|
w as _3DSwym_get_version,
|
|
1917
1913
|
Be as _3DSwym_postIdea,
|
|
1918
|
-
|
|
1914
|
+
j as _3DSwym_sendMessageData,
|
|
1919
1915
|
Se as _AppMngt_get_info_user,
|
|
1920
1916
|
he as _AppMngt_get_users,
|
|
1921
1917
|
me as _getPlateformInfos,
|
|
@@ -1931,8 +1927,8 @@ export {
|
|
|
1931
1927
|
B as dataMixing,
|
|
1932
1928
|
Te as deleteUserGroups,
|
|
1933
1929
|
re as findAdresse,
|
|
1934
|
-
|
|
1935
|
-
|
|
1930
|
+
Re as getAllContextSecurity,
|
|
1931
|
+
Ae as getCSRFToken,
|
|
1936
1932
|
oe as getCommunes,
|
|
1937
1933
|
ye as getComplementUG,
|
|
1938
1934
|
Ie as getDataFrom3DSpace,
|