@beam3_dev/api_module 0.0.341 → 0.0.342
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 +517 -534
- package/dist/wb3Api.js.map +1 -1
- package/dist/wb3Api.umd.cjs +7 -7
- package/dist/wb3Api.umd.cjs.map +1 -1
- package/package.json +1 -1
package/dist/wb3Api.js
CHANGED
|
@@ -34,7 +34,7 @@ const z = {
|
|
|
34
34
|
b3Edit8: "#616161",
|
|
35
35
|
b3Edit9: "#795548"
|
|
36
36
|
};
|
|
37
|
-
async function
|
|
37
|
+
async function Ue(e, n = void 0, t = void 0) {
|
|
38
38
|
const i = parseInt(e);
|
|
39
39
|
await fetch(
|
|
40
40
|
"https://apicarto.ign.fr/api/codes-postaux/communes/" + i,
|
|
@@ -50,7 +50,7 @@ async function xe(e, n = void 0, t = void 0) {
|
|
|
50
50
|
t && t(s), console.error("Erreur : " + s);
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
|
-
async function
|
|
53
|
+
async function xe(e, n = void 0, t = void 0) {
|
|
54
54
|
e = encodeURIComponent(e), await fetch(
|
|
55
55
|
"https://api-adresse.data.gouv.fr/search/?q=" + e + "&limit=15",
|
|
56
56
|
{
|
|
@@ -67,13 +67,13 @@ async function Ie(e, n = void 0, t = void 0) {
|
|
|
67
67
|
}
|
|
68
68
|
async function Ne(e, n = z) {
|
|
69
69
|
let t = T.now().year;
|
|
70
|
-
const i = e, s = [], r = (
|
|
71
|
-
for (let c in
|
|
72
|
-
s.push({ date: c, comment:
|
|
70
|
+
const i = e, s = [], r = (a) => {
|
|
71
|
+
for (let c in a)
|
|
72
|
+
s.push({ date: c, comment: a[c] });
|
|
73
73
|
};
|
|
74
|
-
for (let
|
|
74
|
+
for (let a = t; a <= t + 1; a++)
|
|
75
75
|
await fetch(
|
|
76
|
-
"https://calendrier.api.gouv.fr/jours-feries/metropole/" +
|
|
76
|
+
"https://calendrier.api.gouv.fr/jours-feries/metropole/" + a + ".json",
|
|
77
77
|
{
|
|
78
78
|
method: "GET",
|
|
79
79
|
headers: {
|
|
@@ -84,30 +84,30 @@ async function Ne(e, n = z) {
|
|
|
84
84
|
r(c);
|
|
85
85
|
}).catch((c) => console.error("Erreur : " + c));
|
|
86
86
|
return (() => {
|
|
87
|
-
const
|
|
87
|
+
const a = i.length === 0 ? {
|
|
88
88
|
events: []
|
|
89
89
|
} : i;
|
|
90
90
|
for (let c of s)
|
|
91
|
-
|
|
91
|
+
a.events.findIndex(
|
|
92
92
|
(u) => u.start === T.fromISO(c.date).toISODate() && u.name === "Férié : " + c.comment
|
|
93
|
-
) === -1 &&
|
|
93
|
+
) === -1 && a.events.push({
|
|
94
94
|
name: "Férié : " + c.comment,
|
|
95
95
|
start: T.fromISO(c.date).toISODate(),
|
|
96
96
|
end: T.fromISO(c.date).toISODate(),
|
|
97
97
|
color: n.b3BusinnessDays,
|
|
98
98
|
timed: !1
|
|
99
99
|
});
|
|
100
|
-
return
|
|
100
|
+
return a;
|
|
101
101
|
})();
|
|
102
102
|
}
|
|
103
103
|
function H(e, n, t) {
|
|
104
|
-
const { credentials: i, myArray: s, chunk: r, fn_to_call:
|
|
104
|
+
const { credentials: i, myArray: s, chunk: r, fn_to_call: o } = e, a = [];
|
|
105
105
|
for (let c = 0; c < s.length; c += r) {
|
|
106
106
|
const d = s.slice(c, c + r);
|
|
107
|
-
|
|
107
|
+
a.push(d);
|
|
108
108
|
}
|
|
109
109
|
Q(
|
|
110
|
-
{ credentials: i, chunks:
|
|
110
|
+
{ credentials: i, chunks: a, initLoop: 0, fn: o },
|
|
111
111
|
(c) => {
|
|
112
112
|
n && n(c);
|
|
113
113
|
},
|
|
@@ -117,12 +117,12 @@ function H(e, n, t) {
|
|
|
117
117
|
);
|
|
118
118
|
}
|
|
119
119
|
function Q(e, n, t) {
|
|
120
|
-
const { credentials: i, chunks: s, initLoop: r, fn:
|
|
121
|
-
|
|
120
|
+
const { credentials: i, chunks: s, initLoop: r, fn: o } = e, a = (c) => {
|
|
121
|
+
o(
|
|
122
122
|
i,
|
|
123
123
|
s[c],
|
|
124
124
|
() => {
|
|
125
|
-
c++, c < s.length &&
|
|
125
|
+
c++, c < s.length && a(c);
|
|
126
126
|
},
|
|
127
127
|
(d) => {
|
|
128
128
|
n && n(d);
|
|
@@ -132,9 +132,9 @@ function Q(e, n, t) {
|
|
|
132
132
|
}
|
|
133
133
|
);
|
|
134
134
|
};
|
|
135
|
-
|
|
135
|
+
a(r);
|
|
136
136
|
}
|
|
137
|
-
async function
|
|
137
|
+
async function Ie(e, n, t = !0) {
|
|
138
138
|
const i = e.events.findIndex((s) => s.uuid === n.uuid);
|
|
139
139
|
return i === -1 ? e.events.push(n) : t ? e.events[i] = n : e.events.splice(i, 1), e.length > 0 && e.sort((s, r) => s.start - r.start), e;
|
|
140
140
|
}
|
|
@@ -151,7 +151,7 @@ function Fe(e, n, t) {
|
|
|
151
151
|
});
|
|
152
152
|
});
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function Re(e, n = void 0) {
|
|
155
155
|
$(["DS/TagNavigatorProxy/TagNavigatorProxy"], (t) => {
|
|
156
156
|
let i;
|
|
157
157
|
i === void 0 && (i = t.createProxy({
|
|
@@ -160,14 +160,14 @@ function ke(e, n = void 0) {
|
|
|
160
160
|
}), n !== void 0 && i.addEvent("onFilterSubjectsChange", n)), i.setSubjectsTags(e);
|
|
161
161
|
});
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function ke(e, n) {
|
|
164
164
|
$(["DS/DataDragAndDrop/DataDragAndDrop"], (t) => {
|
|
165
165
|
t.droppable(e, {
|
|
166
166
|
drop: n
|
|
167
167
|
});
|
|
168
168
|
});
|
|
169
169
|
}
|
|
170
|
-
async function
|
|
170
|
+
async function je(e, n = void 0, t = void 0) {
|
|
171
171
|
await $(
|
|
172
172
|
["DS/i3DXCompassServices/i3DXCompassServices"],
|
|
173
173
|
(i) => {
|
|
@@ -195,7 +195,7 @@ function Z() {
|
|
|
195
195
|
};
|
|
196
196
|
}), e;
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function ve(e, n = void 0, t = void 0) {
|
|
199
199
|
if (e.tenant) {
|
|
200
200
|
const i = `https://${e.tenant}-eu1.iam.3dexperience.3ds.com/api/authenticated/user/me?xrequestedwith=xmlhttprequest`;
|
|
201
201
|
m(i, {
|
|
@@ -216,8 +216,8 @@ function J(e, n = void 0, t = void 0) {
|
|
|
216
216
|
onComplete(s) {
|
|
217
217
|
const r = typeof s == "string" ? JSON.parse(s) : s;
|
|
218
218
|
if (r && "platforms" in r) {
|
|
219
|
-
const
|
|
220
|
-
n &&
|
|
219
|
+
const o = r.platforms.find((a) => a.id === e.tenant.toUpperCase());
|
|
220
|
+
n && o ? n(o) : t && t("_getServiceUrl return listServiceUrl = undefined");
|
|
221
221
|
} else
|
|
222
222
|
t && t("_getServiceUrl return oResponse = undefined");
|
|
223
223
|
},
|
|
@@ -227,15 +227,15 @@ function J(e, n = void 0, t = void 0) {
|
|
|
227
227
|
});
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
|
-
function
|
|
230
|
+
function De(e, n = void 0, t = void 0) {
|
|
231
231
|
if (e.tenant) {
|
|
232
232
|
const i = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dpassport&platformId=${e.tenant}`;
|
|
233
233
|
m(i, {
|
|
234
234
|
onComplete(s) {
|
|
235
235
|
const r = JSON.parse(s);
|
|
236
236
|
if (Array.isArray(r) && r.length > 0) {
|
|
237
|
-
const
|
|
238
|
-
n && n(
|
|
237
|
+
const o = `${r[0].services[0].url}`;
|
|
238
|
+
n && n(o);
|
|
239
239
|
}
|
|
240
240
|
},
|
|
241
241
|
onFailure(s) {
|
|
@@ -244,7 +244,7 @@ function Ae(e, n = void 0, t = void 0) {
|
|
|
244
244
|
});
|
|
245
245
|
}
|
|
246
246
|
}
|
|
247
|
-
function
|
|
247
|
+
function Ae(e, n = void 0, t = void 0) {
|
|
248
248
|
if (e.tenant) {
|
|
249
249
|
const i = `https://eu1-registry.3dexperience.3ds.com/api/v1/platform/instance?id=${e.tenant.toLowerCase()}`;
|
|
250
250
|
m(i, {
|
|
@@ -258,7 +258,7 @@ function Pe(e, n = void 0, t = void 0) {
|
|
|
258
258
|
});
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
|
-
function
|
|
261
|
+
function Pe(e, n, t) {
|
|
262
262
|
const i = {
|
|
263
263
|
base: `${e.space}`,
|
|
264
264
|
uri: "/resources/AppsMngt/api/custom/applications",
|
|
@@ -271,51 +271,51 @@ function Le(e, n, t) {
|
|
|
271
271
|
"Content-Type": "application/json",
|
|
272
272
|
Accept: "application/json"
|
|
273
273
|
},
|
|
274
|
-
onComplete(r,
|
|
274
|
+
onComplete(r, o, a) {
|
|
275
275
|
const c = JSON.parse(r), d = c.data.map((u) => {
|
|
276
276
|
const p = u.attributes.name, f = u.id;
|
|
277
277
|
return { name: p, id: f };
|
|
278
278
|
});
|
|
279
279
|
n && n(d, c);
|
|
280
280
|
},
|
|
281
|
-
onFailure(r,
|
|
282
|
-
const
|
|
283
|
-
|
|
281
|
+
onFailure(r, o) {
|
|
282
|
+
const a = r;
|
|
283
|
+
a.msg = o.errormsg, a.errCode = o.errorcode, t && t(a);
|
|
284
284
|
}
|
|
285
285
|
});
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function Le(e, n = void 0, t = void 0) {
|
|
288
288
|
let i = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&limit=-1`;
|
|
289
289
|
m(i, {
|
|
290
|
-
onComplete(s, r,
|
|
291
|
-
const
|
|
292
|
-
console.log("_AppMngt_get_users => ",
|
|
290
|
+
onComplete(s, r, o) {
|
|
291
|
+
const a = JSON.parse(s);
|
|
292
|
+
console.log("_AppMngt_get_users => ", a), n && n(a);
|
|
293
293
|
},
|
|
294
294
|
onFailure(s, r) {
|
|
295
|
-
const
|
|
296
|
-
|
|
295
|
+
const o = s;
|
|
296
|
+
o.msg = r.errormsg, o.errCode = r.errorcode, t && t(o);
|
|
297
297
|
}
|
|
298
298
|
});
|
|
299
299
|
}
|
|
300
|
-
function
|
|
300
|
+
function Je(e, n, t = void 0, i = void 0) {
|
|
301
301
|
let s = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&id=${n}`;
|
|
302
302
|
m(s, {
|
|
303
|
-
onComplete(r,
|
|
303
|
+
onComplete(r, o, a) {
|
|
304
304
|
const c = JSON.parse(r);
|
|
305
305
|
t && t(c);
|
|
306
306
|
},
|
|
307
|
-
onFailure(r,
|
|
308
|
-
const
|
|
309
|
-
|
|
307
|
+
onFailure(r, o) {
|
|
308
|
+
const a = r;
|
|
309
|
+
a.msg = o.errormsg, a.errCode = o.errorcode, i && i(a);
|
|
310
310
|
}
|
|
311
311
|
});
|
|
312
312
|
}
|
|
313
|
-
const
|
|
313
|
+
const N = {
|
|
314
314
|
"Content-Type": "application/json",
|
|
315
315
|
Accept: "application/json,text/javascript,*/*"
|
|
316
316
|
};
|
|
317
|
-
function
|
|
318
|
-
const { space: s, currentUser: r } = e,
|
|
317
|
+
function Me(e, n, t = void 0, i = void 0) {
|
|
318
|
+
const { space: s, currentUser: r } = e, a = `${s}${{
|
|
319
319
|
URIUGr: "/3drdfpersist/resources/v1/usersgroup"
|
|
320
320
|
}.URIUGr}`, c = {
|
|
321
321
|
groups: [
|
|
@@ -329,9 +329,9 @@ function Ge(e, n, t = void 0, i = void 0) {
|
|
|
329
329
|
}
|
|
330
330
|
]
|
|
331
331
|
};
|
|
332
|
-
m(
|
|
332
|
+
m(a, {
|
|
333
333
|
method: "POST",
|
|
334
|
-
headers:
|
|
334
|
+
headers: N,
|
|
335
335
|
data: JSON.stringify(c),
|
|
336
336
|
onComplete(d) {
|
|
337
337
|
t && t(JSON.parse(d));
|
|
@@ -343,8 +343,8 @@ function Ge(e, n, t = void 0, i = void 0) {
|
|
|
343
343
|
}
|
|
344
344
|
});
|
|
345
345
|
}
|
|
346
|
-
function
|
|
347
|
-
const { space: s, tenant: r } = e,
|
|
346
|
+
function Ge(e, n, t = void 0, i = void 0) {
|
|
347
|
+
const { space: s, tenant: r } = e, o = s, a = `/3drdfpersist/v1/resources/${n}`, c = `?$mask=dsaccess:Mask.GroupUI.Properties&tenant=dstenant:${r}`, d = `${o}${a}${c}`;
|
|
348
348
|
m(d, {
|
|
349
349
|
opts: {
|
|
350
350
|
method: "GET",
|
|
@@ -363,10 +363,10 @@ function Be(e, n, t = void 0, i = void 0) {
|
|
|
363
363
|
});
|
|
364
364
|
}
|
|
365
365
|
function ee(e, n = void 0, t = void 0) {
|
|
366
|
-
const { _usersgroup: i, tenant: s } = e, r = i,
|
|
366
|
+
const { _usersgroup: i, tenant: s } = e, r = i, o = "/3drdfpersist/resources/v1/option-sets/dsusergroup:ListOfGroupResponsibilities/options", a = `?tenant=dstenant:${s}`, c = {
|
|
367
367
|
method: "GET",
|
|
368
368
|
Accept: "application/json,*/*,test/javascript"
|
|
369
|
-
}, d = `${r}${
|
|
369
|
+
}, d = `${r}${o}${a}`;
|
|
370
370
|
m(d, {
|
|
371
371
|
OPTsH: c,
|
|
372
372
|
onComplete(u) {
|
|
@@ -378,10 +378,10 @@ function ee(e, n = void 0, t = void 0) {
|
|
|
378
378
|
}
|
|
379
379
|
});
|
|
380
380
|
}
|
|
381
|
-
function
|
|
381
|
+
function Be(e, n = void 0, t = void 0) {
|
|
382
382
|
const { _usersgroup: i, currentUser: s, numMax: r } = e;
|
|
383
383
|
r || (r = 50);
|
|
384
|
-
const
|
|
384
|
+
const o = "/3drdfpersist/resources/v1/usersgroup", a = "?select=uri,title,owner,members", c = `&top=${r}`, d = `${i}${o}${a}${c}`, p = { method: "GET", headers: {
|
|
385
385
|
"Content-Type": "application/json",
|
|
386
386
|
Accept: "application/json,text/javascript,*/*"
|
|
387
387
|
} };
|
|
@@ -420,7 +420,7 @@ function Ee(e, n = void 0, t = void 0) {
|
|
|
420
420
|
t(l);
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
|
-
function
|
|
423
|
+
function Ee(e, n, t) {
|
|
424
424
|
const { _usersgroup: i, list_uris: s } = e;
|
|
425
425
|
if (!s || s.length === 0) {
|
|
426
426
|
t({ msg: "getUserGroupsByURIList: lists_uri is empty or undefined" });
|
|
@@ -430,20 +430,20 @@ function Ke(e, n, t) {
|
|
|
430
430
|
baseUrl: i,
|
|
431
431
|
uri: "/3drdfpersist/resources/v1/usersgroup/groups",
|
|
432
432
|
opt: "?select=uri,title,owner,members"
|
|
433
|
-
},
|
|
433
|
+
}, o = `${r.baseUrl}${r.uri}${r.opt}`, a = {
|
|
434
434
|
method: "POST",
|
|
435
|
-
headers:
|
|
435
|
+
headers: N,
|
|
436
436
|
data: JSON.stringify({ groups: s })
|
|
437
437
|
};
|
|
438
438
|
try {
|
|
439
|
-
m(
|
|
440
|
-
...
|
|
439
|
+
m(o, {
|
|
440
|
+
...a,
|
|
441
441
|
onComplete(c) {
|
|
442
442
|
n && n(JSON.parse(c));
|
|
443
443
|
},
|
|
444
444
|
onFailure(c, d) {
|
|
445
445
|
const u = {
|
|
446
|
-
sendOptions:
|
|
446
|
+
sendOptions: a,
|
|
447
447
|
error: new Error("Erreur sur la fonction getUserGroupsByURIList()", {
|
|
448
448
|
cause: c
|
|
449
449
|
}),
|
|
@@ -455,7 +455,7 @@ function Ke(e, n, t) {
|
|
|
455
455
|
});
|
|
456
456
|
} catch (c) {
|
|
457
457
|
const d = {
|
|
458
|
-
sendOptions:
|
|
458
|
+
sendOptions: a,
|
|
459
459
|
infoError: c,
|
|
460
460
|
fonction: "getUserGroupsByURIList()",
|
|
461
461
|
error: new Error("Erreur sur la fonction getUserGroupsByURIList()", {
|
|
@@ -465,7 +465,7 @@ function Ke(e, n, t) {
|
|
|
465
465
|
t && t(d);
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
|
-
function
|
|
468
|
+
function Ke(e, n, t) {
|
|
469
469
|
const { _usersgroup: i, list_emails: s } = e;
|
|
470
470
|
if (!s || s.length === 0) {
|
|
471
471
|
t({
|
|
@@ -477,14 +477,14 @@ function qe(e, n, t) {
|
|
|
477
477
|
baseUrl: i,
|
|
478
478
|
uri: "/3drdfpersist/resources/v1/usersgroup/users/locate",
|
|
479
479
|
opt: "?person_ident=email"
|
|
480
|
-
},
|
|
480
|
+
}, o = `${r.baseUrl}${r.uri}${r.opt}`, a = {
|
|
481
481
|
method: "POST",
|
|
482
|
-
headers:
|
|
482
|
+
headers: N,
|
|
483
483
|
data: JSON.stringify({ users: s })
|
|
484
484
|
};
|
|
485
485
|
try {
|
|
486
|
-
m(
|
|
487
|
-
...
|
|
486
|
+
m(o, {
|
|
487
|
+
...a,
|
|
488
488
|
onComplete(c) {
|
|
489
489
|
if (n) {
|
|
490
490
|
const d = JSON.parse(c);
|
|
@@ -493,7 +493,7 @@ function qe(e, n, t) {
|
|
|
493
493
|
},
|
|
494
494
|
onFailure(c, d) {
|
|
495
495
|
const u = {
|
|
496
|
-
sendOptions:
|
|
496
|
+
sendOptions: a,
|
|
497
497
|
error: new Error(
|
|
498
498
|
"Erreur sur la fonction getUserGroupsByEmailList()",
|
|
499
499
|
{
|
|
@@ -508,7 +508,7 @@ function qe(e, n, t) {
|
|
|
508
508
|
});
|
|
509
509
|
} catch (c) {
|
|
510
510
|
const d = {
|
|
511
|
-
sendOptions:
|
|
511
|
+
sendOptions: a,
|
|
512
512
|
infoError: c,
|
|
513
513
|
fonction: "getUserGroupsByEmailList()",
|
|
514
514
|
error: new Error("Erreur sur la fonction getUserGroupsByEmailList()", {
|
|
@@ -518,24 +518,24 @@ function qe(e, n, t) {
|
|
|
518
518
|
t && t(d);
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
|
-
function
|
|
521
|
+
function qe(e, n) {
|
|
522
522
|
const { space: t } = e, s = `${t}/3drdfpersist/resources/v1/usersgroup/${n}`;
|
|
523
523
|
m(s, {
|
|
524
524
|
method: "DELETE"
|
|
525
525
|
});
|
|
526
526
|
}
|
|
527
|
-
function
|
|
528
|
-
const { space: r, tenant:
|
|
527
|
+
function Xe(e, n, t, i = void 0, s = void 0) {
|
|
528
|
+
const { space: r, tenant: o } = e, a = {
|
|
529
529
|
URITI: "/3drdfpersist/resources/v1/template-instances",
|
|
530
530
|
URIUGr: "/3drdfpersist/resources/v1/usersgroup",
|
|
531
531
|
nextURICh: "/characteristics",
|
|
532
532
|
nextURIGr: "/group",
|
|
533
533
|
nexURImem: "/members",
|
|
534
534
|
OPTsTI: "?$mask=dsaccess:Mask.GroupUI.Properties",
|
|
535
|
-
OPTsTenant: `tenant=dstenant:${
|
|
536
|
-
}, c = t, d = `${r}${
|
|
535
|
+
OPTsTenant: `tenant=dstenant:${o}`
|
|
536
|
+
}, c = t, d = `${r}${a.URIUGr}/${n}`, u = JSON.stringify(c);
|
|
537
537
|
m(d, {
|
|
538
|
-
headers:
|
|
538
|
+
headers: N,
|
|
539
539
|
method: "PATCH",
|
|
540
540
|
data: u,
|
|
541
541
|
type: "json",
|
|
@@ -547,11 +547,11 @@ function We(e, n, t, i = void 0, s = void 0) {
|
|
|
547
547
|
}
|
|
548
548
|
});
|
|
549
549
|
}
|
|
550
|
-
function
|
|
551
|
-
const { space: r } = e,
|
|
552
|
-
m(
|
|
550
|
+
function We(e, n, t, i = void 0, s = void 0) {
|
|
551
|
+
const { space: r } = e, a = `${r}/3drdfpersist/resources/v1/usersgroup/${n}/sharing`;
|
|
552
|
+
m(a, {
|
|
553
553
|
method: "PATCH",
|
|
554
|
-
headers:
|
|
554
|
+
headers: N,
|
|
555
555
|
data: JSON.stringify(t),
|
|
556
556
|
type: "json",
|
|
557
557
|
onComplete(d) {
|
|
@@ -562,9 +562,9 @@ function Ve(e, n, t, i = void 0, s = void 0) {
|
|
|
562
562
|
}
|
|
563
563
|
});
|
|
564
564
|
}
|
|
565
|
-
function
|
|
566
|
-
const { space: s } = e,
|
|
567
|
-
m(
|
|
565
|
+
function Ve(e, n, t = void 0, i = void 0) {
|
|
566
|
+
const { space: s } = e, o = `${s}/3drdfpersist/resources/v1/usersgroup/${n}/sharing`;
|
|
567
|
+
m(o, {
|
|
568
568
|
opts: {
|
|
569
569
|
method: "GET",
|
|
570
570
|
headers: {
|
|
@@ -587,8 +587,8 @@ async function te(e, n, t) {
|
|
|
587
587
|
onComplete(s) {
|
|
588
588
|
s = JSON.parse(s), n && n(s.csrf);
|
|
589
589
|
},
|
|
590
|
-
onFailure(s, r,
|
|
591
|
-
t && t({ error: s, headers: r, xhr:
|
|
590
|
+
onFailure(s, r, o) {
|
|
591
|
+
t && t({ error: s, headers: r, xhr: o });
|
|
592
592
|
}
|
|
593
593
|
});
|
|
594
594
|
}
|
|
@@ -604,11 +604,11 @@ var se = function(e, n, t, i) {
|
|
|
604
604
|
return s;
|
|
605
605
|
var r = /\+/g;
|
|
606
606
|
e = e.split(n);
|
|
607
|
-
var
|
|
608
|
-
i && typeof i.maxKeys == "number" && (
|
|
609
|
-
var
|
|
610
|
-
|
|
611
|
-
for (var c = 0; c <
|
|
607
|
+
var o = 1e3;
|
|
608
|
+
i && typeof i.maxKeys == "number" && (o = i.maxKeys);
|
|
609
|
+
var a = e.length;
|
|
610
|
+
o > 0 && a > o && (a = o);
|
|
611
|
+
for (var c = 0; c < a; ++c) {
|
|
612
612
|
var d = e[c].replace(r, "%20"), u = d.indexOf(t), p, f, l, g;
|
|
613
613
|
u >= 0 ? (p = d.substr(0, u), f = d.substr(u + 1)) : (p = d, f = ""), l = decodeURIComponent(p), g = decodeURIComponent(f), ne(s, l) ? Array.isArray(s[l]) ? s[l].push(g) : s[l] = [s[l], g] : s[l] = g;
|
|
614
614
|
}
|
|
@@ -627,8 +627,8 @@ var se = function(e, n, t, i) {
|
|
|
627
627
|
}, ie = function(e, n, t, i) {
|
|
628
628
|
return n = n || "&", t = t || "=", e === null && (e = void 0), typeof e == "object" ? Object.keys(e).map(function(s) {
|
|
629
629
|
var r = encodeURIComponent(U(s)) + t;
|
|
630
|
-
return Array.isArray(e[s]) ? e[s].map(function(
|
|
631
|
-
return r + encodeURIComponent(U(
|
|
630
|
+
return Array.isArray(e[s]) ? e[s].map(function(o) {
|
|
631
|
+
return r + encodeURIComponent(U(o));
|
|
632
632
|
}).join(n) : r + encodeURIComponent(U(e[s]));
|
|
633
633
|
}).filter(Boolean).join(n) : i ? encodeURIComponent(U(i)) + t + encodeURIComponent(U(e)) : "";
|
|
634
634
|
};
|
|
@@ -642,22 +642,22 @@ async function M(e, n = void 0, t = void 0, i = void 0) {
|
|
|
642
642
|
}
|
|
643
643
|
const r = s + `/resources/v1/modeler/documents/${n}`;
|
|
644
644
|
m(r, {
|
|
645
|
-
onComplete(
|
|
646
|
-
const d = JSON.parse(
|
|
645
|
+
onComplete(o, a, c) {
|
|
646
|
+
const d = JSON.parse(o);
|
|
647
647
|
t && t(d);
|
|
648
648
|
},
|
|
649
|
-
onFailure(
|
|
650
|
-
i && i(
|
|
649
|
+
onFailure(o) {
|
|
650
|
+
i && i(o);
|
|
651
651
|
}
|
|
652
652
|
});
|
|
653
653
|
}
|
|
654
|
-
async function
|
|
654
|
+
async function Ye(e, n = void 0, t = void 0, i = void 0) {
|
|
655
655
|
const s = e.space;
|
|
656
656
|
if (n === void 0) {
|
|
657
657
|
console.log("Le paramètre docids est obligatoire");
|
|
658
658
|
return;
|
|
659
659
|
}
|
|
660
|
-
let r = `${s}/resources/v1/modeler/documents/ids?$include=!files,!ownerInfo,!originatorInfo,!relOwnerInfo'`,
|
|
660
|
+
let r = `${s}/resources/v1/modeler/documents/ids?$include=!files,!ownerInfo,!originatorInfo,!relOwnerInfo'`, o = x.stringify({
|
|
661
661
|
$ids: n.toString().replace('"', "").replace("[", "").replace("]", "")
|
|
662
662
|
});
|
|
663
663
|
m(r, {
|
|
@@ -665,23 +665,23 @@ async function oe(e, n = void 0, t = void 0, i = void 0) {
|
|
|
665
665
|
headers: {
|
|
666
666
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
667
667
|
},
|
|
668
|
-
data:
|
|
669
|
-
onComplete(
|
|
670
|
-
const u = JSON.parse(
|
|
668
|
+
data: o,
|
|
669
|
+
onComplete(a, c, d) {
|
|
670
|
+
const u = JSON.parse(a);
|
|
671
671
|
t && t(u);
|
|
672
672
|
},
|
|
673
|
-
onFailure(
|
|
674
|
-
i && i(
|
|
673
|
+
onFailure(a) {
|
|
674
|
+
i && i(a);
|
|
675
675
|
}
|
|
676
676
|
});
|
|
677
677
|
}
|
|
678
|
-
function
|
|
678
|
+
function F(e, n = void 0, t = void 0) {
|
|
679
679
|
if (e.objID && e.objID !== "") {
|
|
680
680
|
let i = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
|
|
681
681
|
m(i, {
|
|
682
|
-
onComplete(s, r,
|
|
683
|
-
const
|
|
684
|
-
e.success = !0, e.token =
|
|
682
|
+
onComplete(s, r, o) {
|
|
683
|
+
const a = JSON.parse(s);
|
|
684
|
+
e.success = !0, e.token = a?.csrf?.value, e.datas = a?.data[0], n && n(e);
|
|
685
685
|
},
|
|
686
686
|
onFailure(s) {
|
|
687
687
|
t && t(s);
|
|
@@ -702,15 +702,15 @@ function b(e, n = void 0, t = void 0) {
|
|
|
702
702
|
if (e.space) {
|
|
703
703
|
const i = e.space + "/resources/v1/application/CSRF";
|
|
704
704
|
m(i, {
|
|
705
|
-
onComplete(s, r,
|
|
706
|
-
const
|
|
707
|
-
n && n(
|
|
705
|
+
onComplete(s, r, o) {
|
|
706
|
+
const a = JSON.parse(s);
|
|
707
|
+
n && n(a.csrf.value);
|
|
708
708
|
},
|
|
709
|
-
onFailure(s, r,
|
|
709
|
+
onFailure(s, r, o) {
|
|
710
710
|
t && t({
|
|
711
711
|
response: s,
|
|
712
712
|
headers: r,
|
|
713
|
-
xhr:
|
|
713
|
+
xhr: o
|
|
714
714
|
});
|
|
715
715
|
}
|
|
716
716
|
});
|
|
@@ -719,7 +719,7 @@ function b(e, n = void 0, t = void 0) {
|
|
|
719
719
|
}
|
|
720
720
|
function j(e, n = void 0, t = void 0) {
|
|
721
721
|
let i = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
|
|
722
|
-
|
|
722
|
+
F(
|
|
723
723
|
e,
|
|
724
724
|
(s) => {
|
|
725
725
|
m(i, {
|
|
@@ -727,12 +727,12 @@ function j(e, n = void 0, t = void 0) {
|
|
|
727
727
|
headers: {
|
|
728
728
|
ENO_CSRF_TOKEN: e.token
|
|
729
729
|
},
|
|
730
|
-
onComplete(r,
|
|
730
|
+
onComplete(r, o) {
|
|
731
731
|
const c = JSON.parse(r).data[0].dataelements.ticketURL;
|
|
732
|
-
n && n(c,
|
|
732
|
+
n && n(c, o);
|
|
733
733
|
},
|
|
734
|
-
onFailure(r,
|
|
735
|
-
console.warn("☠️ error => ", r,
|
|
734
|
+
onFailure(r, o) {
|
|
735
|
+
console.warn("☠️ error => ", r, o), t && t(r, o);
|
|
736
736
|
}
|
|
737
737
|
});
|
|
738
738
|
},
|
|
@@ -748,23 +748,23 @@ function ze(e, n, t = void 0, i = void 0, s = void 0) {
|
|
|
748
748
|
headers: {
|
|
749
749
|
ENO_CSRF_TOKEN: t
|
|
750
750
|
},
|
|
751
|
-
onComplete(
|
|
752
|
-
let
|
|
753
|
-
if (console.log("☠️ info => ",
|
|
751
|
+
onComplete(o) {
|
|
752
|
+
let a = JSON.parse(o);
|
|
753
|
+
if (console.log("☠️ info => ", a), a.success === !0)
|
|
754
754
|
try {
|
|
755
|
-
const c =
|
|
755
|
+
const c = a.data[0].dataelements.ticketURL;
|
|
756
756
|
i && i(c);
|
|
757
757
|
} catch (c) {
|
|
758
758
|
s && s(c);
|
|
759
759
|
}
|
|
760
760
|
},
|
|
761
|
-
onFailure(
|
|
762
|
-
s && s(
|
|
761
|
+
onFailure(o) {
|
|
762
|
+
s && s(o);
|
|
763
763
|
}
|
|
764
764
|
});
|
|
765
765
|
}
|
|
766
|
-
function G(e, n, t, i, s, r = void 0,
|
|
767
|
-
const
|
|
766
|
+
function G(e, n, t, i, s, r = void 0, o = void 0) {
|
|
767
|
+
const a = () => oe(
|
|
768
768
|
e,
|
|
769
769
|
n,
|
|
770
770
|
t,
|
|
@@ -772,20 +772,20 @@ function G(e, n, t, i, s, r = void 0, a = void 0) {
|
|
|
772
772
|
s,
|
|
773
773
|
e.token,
|
|
774
774
|
r,
|
|
775
|
-
|
|
775
|
+
o
|
|
776
776
|
);
|
|
777
|
-
e.token ?
|
|
777
|
+
e.token ? a() : F(
|
|
778
778
|
e,
|
|
779
779
|
n,
|
|
780
780
|
(c) => {
|
|
781
781
|
console.log(
|
|
782
782
|
"_3DSpace_file_update | _3DSpace_get_csrf| onDone | result",
|
|
783
783
|
c
|
|
784
|
-
), e.token = c,
|
|
784
|
+
), e.token = c, a();
|
|
785
785
|
}
|
|
786
786
|
);
|
|
787
787
|
}
|
|
788
|
-
function
|
|
788
|
+
function oe(e, n, t, i, s, r, o = void 0, a = void 0) {
|
|
789
789
|
const c = e.space + `/resources/v1/modeler/documents/files/CheckinTicket?tenant=${e.tenant.toUpperCase()}&e6w-lang=fr&e6w-timezone=-60&xrequestedwith=xmlhttprequest`;
|
|
790
790
|
m(c, {
|
|
791
791
|
method: "PUT",
|
|
@@ -835,10 +835,10 @@ function ae(e, n, t, i, s, r, a = void 0, o = void 0) {
|
|
|
835
835
|
}),
|
|
836
836
|
type: "json",
|
|
837
837
|
onComplete(_) {
|
|
838
|
-
|
|
838
|
+
o && o(_);
|
|
839
839
|
},
|
|
840
840
|
onFailure(_) {
|
|
841
|
-
|
|
841
|
+
a && a(_);
|
|
842
842
|
}
|
|
843
843
|
};
|
|
844
844
|
e.tenant.toUpperCase(), m(
|
|
@@ -846,7 +846,7 @@ function ae(e, n, t, i, s, r, a = void 0, o = void 0) {
|
|
|
846
846
|
w
|
|
847
847
|
);
|
|
848
848
|
}, y.onFailure = function(S) {
|
|
849
|
-
|
|
849
|
+
a && a(S);
|
|
850
850
|
}, y.timeout = 0, m(l.ticketURL, y);
|
|
851
851
|
}
|
|
852
852
|
});
|
|
@@ -858,8 +858,8 @@ async function He(e, n, t = void 0, i = void 0) {
|
|
|
858
858
|
console.warn("Error: docId undefined"), i && i("Error: docId undefined");
|
|
859
859
|
return;
|
|
860
860
|
}
|
|
861
|
-
let
|
|
862
|
-
const
|
|
861
|
+
let o = `${e.space}/resources/v1/modeler/documents/${n}`;
|
|
862
|
+
const a = JSON.stringify({
|
|
863
863
|
data: [
|
|
864
864
|
{
|
|
865
865
|
dataelements: {
|
|
@@ -869,12 +869,12 @@ async function He(e, n, t = void 0, i = void 0) {
|
|
|
869
869
|
}
|
|
870
870
|
]
|
|
871
871
|
});
|
|
872
|
-
m(
|
|
872
|
+
m(o, {
|
|
873
873
|
method: "PUT",
|
|
874
874
|
headers: {
|
|
875
875
|
ENO_CSRF_TOKEN: e.token
|
|
876
876
|
},
|
|
877
|
-
data:
|
|
877
|
+
data: a,
|
|
878
878
|
type: "json",
|
|
879
879
|
onComplete(c) {
|
|
880
880
|
t && t(c);
|
|
@@ -885,8 +885,8 @@ async function He(e, n, t = void 0, i = void 0) {
|
|
|
885
885
|
});
|
|
886
886
|
}
|
|
887
887
|
async function Qe(e, n = void 0, t = void 0, i = void 0, s = void 0, r = void 0) {
|
|
888
|
-
let { tenant:
|
|
889
|
-
if (!
|
|
888
|
+
let { tenant: o, cs_name: a } = e;
|
|
889
|
+
if (!o && !a) {
|
|
890
890
|
s && s("Credentials undefined");
|
|
891
891
|
return;
|
|
892
892
|
}
|
|
@@ -895,11 +895,11 @@ async function Qe(e, n = void 0, t = void 0, i = void 0, s = void 0, r = void 0)
|
|
|
895
895
|
return;
|
|
896
896
|
}
|
|
897
897
|
const c = T.now().ts;
|
|
898
|
-
let d = `https://${
|
|
899
|
-
|
|
900
|
-
)}/ticket?id=${c}&tenant=${
|
|
898
|
+
let d = `https://${o.toLowerCase()}-eu1-space.3dexperience.3ds.com/enovia/resources/enocsmrest/collabspaces/${encodeURIComponent(
|
|
899
|
+
a
|
|
900
|
+
)}/ticket?id=${c}&tenant=${o.toUpperCase()}&xrequestedwith=xmlhttprequest`;
|
|
901
901
|
m(
|
|
902
|
-
`https://${
|
|
902
|
+
`https://${o.toLowerCase()}-eu1-space.3dexperience.3ds.com/enovia/resources/enocsmrest/session?tenant=${o.toUpperCase()}&xrequestedwith=xmlhttprequest`,
|
|
903
903
|
{
|
|
904
904
|
method: "GET",
|
|
905
905
|
onComplete(u) {
|
|
@@ -924,7 +924,9 @@ async function Qe(e, n = void 0, t = void 0, i = void 0, s = void 0, r = void 0)
|
|
|
924
924
|
const k = new DOMParser().parseFromString(
|
|
925
925
|
_,
|
|
926
926
|
"text/html"
|
|
927
|
-
).body.firstChild.querySelector("input").getAttributeNode("value").value, v = `https://${
|
|
927
|
+
).body.firstChild.querySelector("input").getAttributeNode("value").value, v = `https://${o.toLowerCase()}-eu1-space.3dexperience.3ds.com/enovia/resources/enocsmrest/collabspaces/${encodeURIComponent(
|
|
928
|
+
a
|
|
929
|
+
)}/contents?receipt=${encodeURIComponent(k)}`;
|
|
928
930
|
let W = /(?:\.([^.]+))?$/.exec(n)[1];
|
|
929
931
|
const D = JSON.stringify({
|
|
930
932
|
actions: [],
|
|
@@ -940,7 +942,7 @@ async function Qe(e, n = void 0, t = void 0, i = void 0, s = void 0, r = void 0)
|
|
|
940
942
|
title: W ? n.split(".").slice(0, -1).join(".") : n,
|
|
941
943
|
type: {}
|
|
942
944
|
},
|
|
943
|
-
collabspace:
|
|
945
|
+
collabspace: a
|
|
944
946
|
});
|
|
945
947
|
m(v, {
|
|
946
948
|
method: "POST",
|
|
@@ -951,14 +953,14 @@ async function Qe(e, n = void 0, t = void 0, i = void 0, s = void 0, r = void 0)
|
|
|
951
953
|
},
|
|
952
954
|
data: D,
|
|
953
955
|
type: "json",
|
|
954
|
-
onComplete(
|
|
955
|
-
i && i(
|
|
956
|
+
onComplete(I, Ce, be) {
|
|
957
|
+
i && i(I);
|
|
956
958
|
},
|
|
957
|
-
onFailure(
|
|
959
|
+
onFailure(I) {
|
|
958
960
|
console.warn(
|
|
959
961
|
"_3DSpace_Upload_Doc | pushFileInFcs | onFailure",
|
|
960
|
-
{ url: v, bodyRequest: D, err:
|
|
961
|
-
), s && s(
|
|
962
|
+
{ url: v, bodyRequest: D, err: I }
|
|
963
|
+
), s && s(I);
|
|
962
964
|
}
|
|
963
965
|
});
|
|
964
966
|
},
|
|
@@ -993,13 +995,13 @@ async function Ze(e, n, t, i = void 0, s = void 0) {
|
|
|
993
995
|
e,
|
|
994
996
|
n,
|
|
995
997
|
(r) => {
|
|
996
|
-
const
|
|
998
|
+
const o = r.data[0].relateddata.files[0].id, a = r.data[0].relateddata.files[0].dataelements.title;
|
|
997
999
|
G(
|
|
998
1000
|
e,
|
|
999
1001
|
n,
|
|
1000
|
-
a,
|
|
1001
|
-
t,
|
|
1002
1002
|
o,
|
|
1003
|
+
t,
|
|
1004
|
+
a,
|
|
1003
1005
|
(c) => {
|
|
1004
1006
|
i && i(c);
|
|
1005
1007
|
},
|
|
@@ -1014,16 +1016,16 @@ async function Ze(e, n, t, i = void 0, s = void 0) {
|
|
|
1014
1016
|
);
|
|
1015
1017
|
}
|
|
1016
1018
|
async function et(e, n, t, i, s = void 0, r = void 0) {
|
|
1017
|
-
|
|
1019
|
+
ae(
|
|
1018
1020
|
e,
|
|
1019
|
-
(
|
|
1020
|
-
|
|
1021
|
+
(o) => {
|
|
1022
|
+
o?.items >= 1 && o.data.forEach((a) => {
|
|
1021
1023
|
B(
|
|
1022
|
-
|
|
1024
|
+
a,
|
|
1023
1025
|
n,
|
|
1024
1026
|
t,
|
|
1025
1027
|
(c) => {
|
|
1026
|
-
|
|
1028
|
+
re(
|
|
1027
1029
|
e,
|
|
1028
1030
|
c,
|
|
1029
1031
|
t,
|
|
@@ -1041,10 +1043,10 @@ async function et(e, n, t, i, s = void 0, r = void 0) {
|
|
|
1041
1043
|
);
|
|
1042
1044
|
});
|
|
1043
1045
|
},
|
|
1044
|
-
(
|
|
1046
|
+
(o) => console.warn(o)
|
|
1045
1047
|
);
|
|
1046
1048
|
}
|
|
1047
|
-
function
|
|
1049
|
+
function ae(e, n = void 0, t = void 0) {
|
|
1048
1050
|
if (e?.space && e.token && e.ctx) {
|
|
1049
1051
|
let i = `${e.space}/resources/v1/modeler/documents/files/CheckinTicket`;
|
|
1050
1052
|
m(i, {
|
|
@@ -1055,7 +1057,7 @@ function re(e, n = void 0, t = void 0) {
|
|
|
1055
1057
|
"Content-Type": "application/json",
|
|
1056
1058
|
SecurityContext: e.ctx
|
|
1057
1059
|
},
|
|
1058
|
-
onComplete(s, r,
|
|
1060
|
+
onComplete(s, r, o) {
|
|
1059
1061
|
try {
|
|
1060
1062
|
s = JSON.parse(s);
|
|
1061
1063
|
} catch {
|
|
@@ -1071,13 +1073,13 @@ function re(e, n = void 0, t = void 0) {
|
|
|
1071
1073
|
}
|
|
1072
1074
|
function B(e, n, t, i = void 0, s = void 0, r = void 0) {
|
|
1073
1075
|
console.log("pushFileInFcs", { fcs__jobTicket: e, fileData: n, fileName: t });
|
|
1074
|
-
let
|
|
1076
|
+
let o = new FormData();
|
|
1075
1077
|
n instanceof Blob || (n = new Blob([n], {
|
|
1076
1078
|
type: "text/plain"
|
|
1077
|
-
})),
|
|
1078
|
-
let
|
|
1079
|
+
})), o.append("__fcs__jobTicket", e.dataelements.ticket), o.append("file-name", t), o.append("file_0", n, t), o.append("file-title", t), o.append("file-description", t);
|
|
1080
|
+
let a = e.dataelements.ticketURL;
|
|
1079
1081
|
const c = new XMLHttpRequest();
|
|
1080
|
-
c.open("POST",
|
|
1082
|
+
c.open("POST", a, !0), c.upload.onprogress = function(d) {
|
|
1081
1083
|
if (d.lengthComputable) {
|
|
1082
1084
|
const u = d.loaded / d.total * 100;
|
|
1083
1085
|
r && r(u);
|
|
@@ -1086,12 +1088,12 @@ function B(e, n, t, i = void 0, s = void 0, r = void 0) {
|
|
|
1086
1088
|
c.status === 200 ? i && i(c.responseText.replace(/[\n\r]/g, "")) : s && s(c.statusText);
|
|
1087
1089
|
}, c.onerror = function() {
|
|
1088
1090
|
s && s(c.statusText);
|
|
1089
|
-
}, c.send(
|
|
1091
|
+
}, c.send(o);
|
|
1090
1092
|
}
|
|
1091
|
-
function
|
|
1093
|
+
function re(e, n, t, i = void 0, s = void 0, r = void 0) {
|
|
1092
1094
|
console.log("relatedDocAndFile", { credentials: e, receipt: n, filename: t });
|
|
1093
|
-
const
|
|
1094
|
-
let
|
|
1095
|
+
const o = (d) => d.indexOf(".") === -1 ? d : d.split(".").slice(0, -1).join(".");
|
|
1096
|
+
let a = "temp_" + T.now().ts, c = e.space + "/resources/v1/modeler/documents/?e6w-lang=fr&e6w-timezone=-120&xrequestedwith=xmlhttprequest";
|
|
1095
1097
|
m(c, {
|
|
1096
1098
|
method: "POST",
|
|
1097
1099
|
headers: {
|
|
@@ -1105,7 +1107,7 @@ function ce(e, n, t, i = void 0, s = void 0, r = void 0) {
|
|
|
1105
1107
|
{
|
|
1106
1108
|
type: "Document",
|
|
1107
1109
|
dataelements: {
|
|
1108
|
-
title:
|
|
1110
|
+
title: o(t),
|
|
1109
1111
|
description: i
|
|
1110
1112
|
},
|
|
1111
1113
|
relateddata: {
|
|
@@ -1119,7 +1121,7 @@ function ce(e, n, t, i = void 0, s = void 0, r = void 0) {
|
|
|
1119
1121
|
}
|
|
1120
1122
|
]
|
|
1121
1123
|
},
|
|
1122
|
-
tempId:
|
|
1124
|
+
tempId: a
|
|
1123
1125
|
}
|
|
1124
1126
|
]
|
|
1125
1127
|
}),
|
|
@@ -1135,9 +1137,9 @@ function ce(e, n, t, i = void 0, s = void 0, r = void 0) {
|
|
|
1135
1137
|
}
|
|
1136
1138
|
});
|
|
1137
1139
|
}
|
|
1138
|
-
function
|
|
1139
|
-
const
|
|
1140
|
-
m(
|
|
1140
|
+
function R(e, n = void 0, t = void 0, i = void 0, s = void 0, r = void 0, o = !1) {
|
|
1141
|
+
const a = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
|
|
1142
|
+
m(a, {
|
|
1141
1143
|
method: "GET",
|
|
1142
1144
|
onComplete(c) {
|
|
1143
1145
|
const d = JSON.parse(c);
|
|
@@ -1174,7 +1176,7 @@ function F(e, n = void 0, t = void 0, i = void 0, s = void 0, r = void 0, a = !1
|
|
|
1174
1176
|
}));
|
|
1175
1177
|
}
|
|
1176
1178
|
}
|
|
1177
|
-
p && f && l ? (u = l + "." + f + "." + p, s(u)) : d.preferredcredentials &&
|
|
1179
|
+
p && f && l ? (u = l + "." + f + "." + p, s(u)) : d.preferredcredentials && o ? (u = d.preferredcredentials.role.name + "." + d.preferredcredentials.organization.title + "." + d.preferredcredentials.collabspace.title, s(u)) : r && (u = l + "." + f + "." + p, r(u));
|
|
1178
1180
|
},
|
|
1179
1181
|
onFailure(c, d) {
|
|
1180
1182
|
console.warn("Erreur de récupération du contexte de sécurité. => ", {
|
|
@@ -1203,28 +1205,28 @@ async function E(e, n = void 0, t = void 0) {
|
|
|
1203
1205
|
j(
|
|
1204
1206
|
e,
|
|
1205
1207
|
(r) => {
|
|
1206
|
-
e?.returnType === "blob" ? (console.log("ticketURL blob", r), fetch(r).then((
|
|
1207
|
-
n && n(
|
|
1208
|
-
}).catch((
|
|
1209
|
-
t && t(
|
|
1208
|
+
e?.returnType === "blob" ? (console.log("ticketURL blob", r), fetch(r).then((o) => o.blob()).then((o) => {
|
|
1209
|
+
n && n(o);
|
|
1210
|
+
}).catch((o) => {
|
|
1211
|
+
t && t(o);
|
|
1210
1212
|
})) : m(r, {
|
|
1211
|
-
onComplete(
|
|
1212
|
-
let
|
|
1213
|
+
onComplete(o) {
|
|
1214
|
+
let a;
|
|
1213
1215
|
try {
|
|
1214
|
-
|
|
1216
|
+
a = JSON.parse(o);
|
|
1215
1217
|
} catch {
|
|
1216
|
-
|
|
1218
|
+
a = o;
|
|
1217
1219
|
}
|
|
1218
|
-
n && typeof n == "function" && n(
|
|
1220
|
+
n && typeof n == "function" && n(a), i(a);
|
|
1219
1221
|
},
|
|
1220
|
-
onFailure(
|
|
1221
|
-
t && (console.log("error http",
|
|
1222
|
-
msg: JSON.parse(
|
|
1223
|
-
headers:
|
|
1222
|
+
onFailure(o, a, c) {
|
|
1223
|
+
t && (console.log("error http", o), t({
|
|
1224
|
+
msg: JSON.parse(o),
|
|
1225
|
+
headers: a,
|
|
1224
1226
|
xhr: c
|
|
1225
1227
|
}), s({
|
|
1226
|
-
msg: JSON.parse(
|
|
1227
|
-
headers:
|
|
1228
|
+
msg: JSON.parse(o),
|
|
1229
|
+
headers: a,
|
|
1228
1230
|
xhr: c
|
|
1229
1231
|
}));
|
|
1230
1232
|
}
|
|
@@ -1236,12 +1238,12 @@ async function E(e, n = void 0, t = void 0) {
|
|
|
1236
1238
|
);
|
|
1237
1239
|
});
|
|
1238
1240
|
}
|
|
1239
|
-
async function
|
|
1241
|
+
async function ce(e, n, t = void 0, i = void 0) {
|
|
1240
1242
|
typeof n < "u" && Array.isArray(n) && n?.length > 0 ? H({
|
|
1241
1243
|
credentials: e,
|
|
1242
1244
|
myArray: n,
|
|
1243
1245
|
chunk: 80,
|
|
1244
|
-
fn_to_call:
|
|
1246
|
+
fn_to_call: de
|
|
1245
1247
|
}, (r) => {
|
|
1246
1248
|
t && t(r);
|
|
1247
1249
|
}) : (console.warn(
|
|
@@ -1250,24 +1252,24 @@ async function de(e, n, t = void 0, i = void 0) {
|
|
|
1250
1252
|
"La liste d'objects dans la fonction _3DSpace_download_multidoc est vide ou non défini."
|
|
1251
1253
|
));
|
|
1252
1254
|
}
|
|
1253
|
-
function
|
|
1255
|
+
function de(e, n, t = void 0, i = void 0, s = void 0) {
|
|
1254
1256
|
const r = [];
|
|
1255
1257
|
n.forEach((c) => {
|
|
1256
1258
|
r.push({
|
|
1257
1259
|
id: c
|
|
1258
1260
|
});
|
|
1259
1261
|
});
|
|
1260
|
-
let
|
|
1262
|
+
let o = JSON.stringify({
|
|
1261
1263
|
csrf: {
|
|
1262
1264
|
name: "ENO_CSRF_TOKEN",
|
|
1263
1265
|
value: e.token
|
|
1264
1266
|
},
|
|
1265
1267
|
data: r
|
|
1266
1268
|
});
|
|
1267
|
-
const
|
|
1268
|
-
m(
|
|
1269
|
+
const a = `${e.space}/resources/v1/modeler/documents/DownloadTicket?tenant=${e.tenant}&e6w-lang=fr&e6w-timezone=-120`;
|
|
1270
|
+
m(a, {
|
|
1269
1271
|
method: "PUT",
|
|
1270
|
-
data:
|
|
1272
|
+
data: o,
|
|
1271
1273
|
type: "json",
|
|
1272
1274
|
onComplete(c) {
|
|
1273
1275
|
const d = c.data;
|
|
@@ -1307,7 +1309,7 @@ function tt(e, n, t = void 0, i = void 0) {
|
|
|
1307
1309
|
return new Promise((s) => {
|
|
1308
1310
|
if (e.token === "" && b(e), n !== void 0 && n !== "" && n !== null) {
|
|
1309
1311
|
const r = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
|
|
1310
|
-
let
|
|
1312
|
+
let o = {
|
|
1311
1313
|
method: "POST",
|
|
1312
1314
|
headers: {
|
|
1313
1315
|
SecurityContext: "ctx::" + e.ctx,
|
|
@@ -1323,22 +1325,22 @@ function tt(e, n, t = void 0, i = void 0) {
|
|
|
1323
1325
|
]
|
|
1324
1326
|
}),
|
|
1325
1327
|
type: "json",
|
|
1326
|
-
onComplete(
|
|
1327
|
-
t && t(
|
|
1328
|
+
onComplete(a) {
|
|
1329
|
+
t && t(a);
|
|
1328
1330
|
},
|
|
1329
|
-
onFailure(
|
|
1330
|
-
i && i(
|
|
1331
|
+
onFailure(a) {
|
|
1332
|
+
i && i(a);
|
|
1331
1333
|
}
|
|
1332
1334
|
};
|
|
1333
|
-
m(r,
|
|
1335
|
+
m(r, o);
|
|
1334
1336
|
}
|
|
1335
1337
|
});
|
|
1336
1338
|
}
|
|
1337
1339
|
function nt(e, n, t, i = void 0, s = void 0) {
|
|
1338
1340
|
return new Promise((r) => {
|
|
1339
1341
|
if (e.token === "" && b(e), n !== void 0 && n !== "" && n !== null) {
|
|
1340
|
-
const
|
|
1341
|
-
let
|
|
1342
|
+
const o = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
|
|
1343
|
+
let a = {
|
|
1342
1344
|
method: "POST",
|
|
1343
1345
|
headers: {
|
|
1344
1346
|
SecurityContext: "ctx::" + e.ctx,
|
|
@@ -1362,7 +1364,7 @@ function nt(e, n, t, i = void 0, s = void 0) {
|
|
|
1362
1364
|
s && s(c);
|
|
1363
1365
|
}
|
|
1364
1366
|
};
|
|
1365
|
-
m(
|
|
1367
|
+
m(o, a);
|
|
1366
1368
|
}
|
|
1367
1369
|
});
|
|
1368
1370
|
}
|
|
@@ -1370,17 +1372,17 @@ function st(e, n, t = void 0, i = void 0) {
|
|
|
1370
1372
|
return new Promise((s) => {
|
|
1371
1373
|
if (e.token === "" && b(e), n !== void 0 && n !== "" && n !== null) {
|
|
1372
1374
|
const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
|
|
1373
|
-
|
|
1375
|
+
R(
|
|
1374
1376
|
e.space,
|
|
1375
1377
|
"ESPACE COMMUN",
|
|
1376
1378
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
1377
1379
|
void 0,
|
|
1378
|
-
(
|
|
1379
|
-
(
|
|
1380
|
-
console.log("onError =>",
|
|
1380
|
+
(a) => e.ctx = a,
|
|
1381
|
+
(a) => {
|
|
1382
|
+
console.log("onError =>", a);
|
|
1381
1383
|
}
|
|
1382
1384
|
);
|
|
1383
|
-
let
|
|
1385
|
+
let o = {
|
|
1384
1386
|
method: "POST",
|
|
1385
1387
|
headers: {
|
|
1386
1388
|
securitycontext: "ctx::" + e.ctx,
|
|
@@ -1396,14 +1398,14 @@ function st(e, n, t = void 0, i = void 0) {
|
|
|
1396
1398
|
]
|
|
1397
1399
|
}),
|
|
1398
1400
|
type: "json",
|
|
1399
|
-
onComplete(
|
|
1400
|
-
t && t(
|
|
1401
|
+
onComplete(a) {
|
|
1402
|
+
t && t(a);
|
|
1401
1403
|
},
|
|
1402
|
-
onFailure(
|
|
1403
|
-
i && i(
|
|
1404
|
+
onFailure(a) {
|
|
1405
|
+
i && i(a);
|
|
1404
1406
|
}
|
|
1405
1407
|
};
|
|
1406
|
-
m(r,
|
|
1408
|
+
m(r, o);
|
|
1407
1409
|
}
|
|
1408
1410
|
});
|
|
1409
1411
|
}
|
|
@@ -1411,17 +1413,17 @@ function it(e, n, t = void 0, i = void 0) {
|
|
|
1411
1413
|
return new Promise((s) => {
|
|
1412
1414
|
if (e.token === "" && b(e), n !== void 0 && n !== "" && n !== null) {
|
|
1413
1415
|
const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
|
|
1414
|
-
|
|
1416
|
+
R(
|
|
1415
1417
|
e.space,
|
|
1416
1418
|
"ESPACE COMMUN",
|
|
1417
1419
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
1418
1420
|
void 0,
|
|
1419
|
-
(
|
|
1420
|
-
(
|
|
1421
|
-
console.log("onError =>",
|
|
1421
|
+
(a) => e.ctx = a,
|
|
1422
|
+
(a) => {
|
|
1423
|
+
console.log("onError =>", a);
|
|
1422
1424
|
}
|
|
1423
1425
|
);
|
|
1424
|
-
let
|
|
1426
|
+
let o = {
|
|
1425
1427
|
method: "POST",
|
|
1426
1428
|
headers: {
|
|
1427
1429
|
SecurityContext: "ctx::" + e.ctx,
|
|
@@ -1443,22 +1445,22 @@ function it(e, n, t = void 0, i = void 0) {
|
|
|
1443
1445
|
]
|
|
1444
1446
|
}),
|
|
1445
1447
|
type: "json",
|
|
1446
|
-
onComplete(
|
|
1447
|
-
t && t(
|
|
1448
|
+
onComplete(a) {
|
|
1449
|
+
t && t(a);
|
|
1448
1450
|
},
|
|
1449
|
-
onFailure(
|
|
1450
|
-
i && i(
|
|
1451
|
+
onFailure(a) {
|
|
1452
|
+
i && i(a);
|
|
1451
1453
|
}
|
|
1452
1454
|
};
|
|
1453
|
-
m(r,
|
|
1455
|
+
m(r, o);
|
|
1454
1456
|
}
|
|
1455
1457
|
});
|
|
1456
1458
|
}
|
|
1457
1459
|
function ot(e, n, t, i = void 0, s = void 0) {
|
|
1458
1460
|
return new Promise((r) => {
|
|
1459
1461
|
if (e.token === "" && b(e), n !== void 0 && n !== "" && n !== null) {
|
|
1460
|
-
const
|
|
1461
|
-
|
|
1462
|
+
const o = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
|
|
1463
|
+
R(
|
|
1462
1464
|
e.space,
|
|
1463
1465
|
"ESPACE COMMUN",
|
|
1464
1466
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -1468,7 +1470,7 @@ function ot(e, n, t, i = void 0, s = void 0) {
|
|
|
1468
1470
|
console.log("onError =>", c);
|
|
1469
1471
|
}
|
|
1470
1472
|
);
|
|
1471
|
-
let
|
|
1473
|
+
let a = {
|
|
1472
1474
|
method: "POST",
|
|
1473
1475
|
headers: {
|
|
1474
1476
|
securitycontext: "ctx::" + e.ctx,
|
|
@@ -1497,11 +1499,11 @@ function ot(e, n, t, i = void 0, s = void 0) {
|
|
|
1497
1499
|
s && s(c);
|
|
1498
1500
|
}
|
|
1499
1501
|
};
|
|
1500
|
-
m(
|
|
1502
|
+
m(o, a);
|
|
1501
1503
|
}
|
|
1502
1504
|
});
|
|
1503
1505
|
}
|
|
1504
|
-
function
|
|
1506
|
+
function ue(e) {
|
|
1505
1507
|
return new Promise((n, t) => {
|
|
1506
1508
|
const i = `${e.space}/resources/pno/person/getsecuritycontext&tenant=${e.tenant.toUpperCase()}&xrequestedwith=xmlhttprequest`;
|
|
1507
1509
|
m(i, {
|
|
@@ -1517,11 +1519,11 @@ function pe(e) {
|
|
|
1517
1519
|
}
|
|
1518
1520
|
function at(e, n, t = void 0, i = void 0) {
|
|
1519
1521
|
return new Promise(async (s, r) => {
|
|
1520
|
-
const { tenant:
|
|
1521
|
-
(!
|
|
1522
|
+
const { tenant: o, ctx: a, space: c } = e;
|
|
1523
|
+
(!o || !a || !c) && r({ error: "Erreur de credentials", tenant: o, ctx: a, space: c });
|
|
1522
1524
|
const d = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=1&withAttributes=1&withCopyFrom=1&tenant=${e.tenant.toUpperCase()}&xrequestedwith=xmlhttprequest`;
|
|
1523
1525
|
let u;
|
|
1524
|
-
await
|
|
1526
|
+
await ue(e).then(
|
|
1525
1527
|
(f) => u = f?.SecurityContext
|
|
1526
1528
|
);
|
|
1527
1529
|
let p = {
|
|
@@ -1550,50 +1552,31 @@ function at(e, n, t = void 0, i = void 0) {
|
|
|
1550
1552
|
m(d, p);
|
|
1551
1553
|
});
|
|
1552
1554
|
}
|
|
1553
|
-
function rt(e, n
|
|
1554
|
-
return new Promise((
|
|
1555
|
-
const
|
|
1556
|
-
m(
|
|
1555
|
+
function rt(e, n) {
|
|
1556
|
+
return new Promise((t, i) => {
|
|
1557
|
+
const s = `${e.space}/resources/v1/modeler/dsbks/dsbks:Bookmark/${n}?$mask=dsbks:BksMask.Items`;
|
|
1558
|
+
m(s, {
|
|
1557
1559
|
headers: {
|
|
1558
1560
|
SecurityContext: `ctx::${e.ctx}`
|
|
1559
1561
|
},
|
|
1560
|
-
onComplete: (
|
|
1561
|
-
let
|
|
1562
|
+
onComplete: (r) => {
|
|
1563
|
+
let o;
|
|
1562
1564
|
try {
|
|
1563
|
-
|
|
1565
|
+
o = JSON.parse(r);
|
|
1564
1566
|
} catch {
|
|
1565
|
-
|
|
1567
|
+
o = r;
|
|
1566
1568
|
}
|
|
1567
|
-
|
|
1568
|
-
let d = c?.member[0]?.items?.member;
|
|
1569
|
-
if (d) {
|
|
1570
|
-
const u = d.map((p) => {
|
|
1571
|
-
if (p?.referencedObject?.identifier)
|
|
1572
|
-
return p.referencedObject.identifier;
|
|
1573
|
-
});
|
|
1574
|
-
u.length && oe(host, u, (p) => {
|
|
1575
|
-
console.log("_3dspace_get_multiDocInfo Response : ", {
|
|
1576
|
-
...p
|
|
1577
|
-
}), p?.data.length && p.data.forEach((l) => {
|
|
1578
|
-
let g = d.find(
|
|
1579
|
-
(h) => h.referencedObject.identifier === l.identifier
|
|
1580
|
-
);
|
|
1581
|
-
g && (g.referencedObject.dataelements = l.dataelements);
|
|
1582
|
-
});
|
|
1583
|
-
});
|
|
1584
|
-
}
|
|
1585
|
-
}
|
|
1586
|
-
return t && t(c), s = c, s;
|
|
1569
|
+
t(o);
|
|
1587
1570
|
},
|
|
1588
|
-
onFailure(
|
|
1589
|
-
|
|
1571
|
+
onFailure(r) {
|
|
1572
|
+
i(r);
|
|
1590
1573
|
}
|
|
1591
1574
|
});
|
|
1592
1575
|
});
|
|
1593
1576
|
}
|
|
1594
1577
|
function ct(e, n, t, i, s = void 0, r = void 0) {
|
|
1595
|
-
return new Promise((
|
|
1596
|
-
const
|
|
1578
|
+
return new Promise((o) => {
|
|
1579
|
+
const a = `${e.space}/resources/v1/modeler/dsbks/dsbks:Bookmark`;
|
|
1597
1580
|
let c = {
|
|
1598
1581
|
attributes: {
|
|
1599
1582
|
title: t,
|
|
@@ -1621,11 +1604,11 @@ function ct(e, n, t, i, s = void 0, r = void 0) {
|
|
|
1621
1604
|
r && r(p);
|
|
1622
1605
|
}
|
|
1623
1606
|
};
|
|
1624
|
-
m(
|
|
1607
|
+
m(a, u);
|
|
1625
1608
|
});
|
|
1626
1609
|
}
|
|
1627
1610
|
function dt(e, n, t, i, s = void 0, r = void 0) {
|
|
1628
|
-
return console.log("credentials", e), new Promise((
|
|
1611
|
+
return console.log("credentials", e), new Promise((o) => {
|
|
1629
1612
|
`${e.space}`, JSON.stringify({
|
|
1630
1613
|
csrf: {
|
|
1631
1614
|
name: "ENO_CSRF_TOKEN",
|
|
@@ -1660,12 +1643,12 @@ function ut(e, n = void 0, t = void 0) {
|
|
|
1660
1643
|
Accept: "application/json,text/javascript,*/*",
|
|
1661
1644
|
"Content-Type": "application/ds-json"
|
|
1662
1645
|
},
|
|
1663
|
-
onComplete(r,
|
|
1664
|
-
const
|
|
1665
|
-
n && n(
|
|
1646
|
+
onComplete(r, o) {
|
|
1647
|
+
const a = JSON.parse(r);
|
|
1648
|
+
n && n(a, o);
|
|
1666
1649
|
},
|
|
1667
|
-
onFailure(r,
|
|
1668
|
-
t && t({ response: r, headers:
|
|
1650
|
+
onFailure(r, o, a) {
|
|
1651
|
+
t && t({ response: r, headers: o, xhr: a });
|
|
1669
1652
|
}
|
|
1670
1653
|
});
|
|
1671
1654
|
}
|
|
@@ -1690,9 +1673,9 @@ async function lt(e, n, t = void 0, i = void 0) {
|
|
|
1690
1673
|
return new Promise((s) => {
|
|
1691
1674
|
j(e, n, (r) => {
|
|
1692
1675
|
m(r, {
|
|
1693
|
-
onComplete: (
|
|
1694
|
-
onFailure: (
|
|
1695
|
-
i && i(
|
|
1676
|
+
onComplete: (o, a, c) => (s(JSON.parse(o)), t && t(JSON.parse(o), a, c), s),
|
|
1677
|
+
onFailure: (o, a, c) => {
|
|
1678
|
+
i && i(o, a, c), console.log(o, a?.errormsg);
|
|
1696
1679
|
}
|
|
1697
1680
|
});
|
|
1698
1681
|
});
|
|
@@ -1700,15 +1683,15 @@ async function lt(e, n, t = void 0, i = void 0) {
|
|
|
1700
1683
|
}
|
|
1701
1684
|
function ft(e, n, t, i = void 0, s = void 0) {
|
|
1702
1685
|
const r = new Blob([JSON.stringify(n)], { type: "text/plain" });
|
|
1703
|
-
e = { ...e, objID: t },
|
|
1686
|
+
e = { ...e, objID: t }, F(
|
|
1704
1687
|
e,
|
|
1705
|
-
(
|
|
1706
|
-
console.log("_3DSpace_get_csrf | onDone | data",
|
|
1707
|
-
const
|
|
1688
|
+
(o) => {
|
|
1689
|
+
console.log("_3DSpace_get_csrf | onDone | data", o);
|
|
1690
|
+
const a = o.datas.relateddata.files[0].id, c = o.datas.relateddata.files[0].dataelements.title;
|
|
1708
1691
|
G(
|
|
1709
1692
|
e,
|
|
1710
1693
|
t,
|
|
1711
|
-
|
|
1694
|
+
a,
|
|
1712
1695
|
r,
|
|
1713
1696
|
c,
|
|
1714
1697
|
(d) => {
|
|
@@ -1719,15 +1702,15 @@ function ft(e, n, t, i = void 0, s = void 0) {
|
|
|
1719
1702
|
}
|
|
1720
1703
|
);
|
|
1721
1704
|
},
|
|
1722
|
-
(
|
|
1723
|
-
console.log("En cas d'erreur nous avons :",
|
|
1705
|
+
(o) => {
|
|
1706
|
+
console.log("En cas d'erreur nous avons :", o), alert("Erreur lors de la sauvegarde, Veuillez réessayez"), s && s(o);
|
|
1724
1707
|
}
|
|
1725
1708
|
);
|
|
1726
1709
|
}
|
|
1727
1710
|
let K, q;
|
|
1728
1711
|
const A = [];
|
|
1729
1712
|
async function mt(e, n = void 0, t = void 0) {
|
|
1730
|
-
e.objID && e.objID !== "" ?
|
|
1713
|
+
e.objID && e.objID !== "" ? F(
|
|
1731
1714
|
e,
|
|
1732
1715
|
(i) => {
|
|
1733
1716
|
n && n(i);
|
|
@@ -1767,26 +1750,26 @@ function ht(e, n = void 0, t = void 0) {
|
|
|
1767
1750
|
E(
|
|
1768
1751
|
e,
|
|
1769
1752
|
s.objID,
|
|
1770
|
-
(
|
|
1771
|
-
i.push({ [s.name]:
|
|
1753
|
+
(o) => {
|
|
1754
|
+
i.push({ [s.name]: o }), s.name === "dbProjets" && (K = o.affaires.map((a) => a.objectID), pe(e, q)), r === e.objIds.length - 1 && (n && n(i), delete e.objIds, delete e.datas);
|
|
1772
1755
|
}
|
|
1773
1756
|
);
|
|
1774
1757
|
});
|
|
1775
1758
|
}
|
|
1776
|
-
function
|
|
1777
|
-
|
|
1759
|
+
function pe(e, n, t = void 0, i = void 0) {
|
|
1760
|
+
ce(
|
|
1778
1761
|
e,
|
|
1779
1762
|
K,
|
|
1780
1763
|
(s) => {
|
|
1781
1764
|
const r = [...n];
|
|
1782
|
-
r.find((
|
|
1765
|
+
r.find((o) => o.objectID === s.objectId).data = s.data, q = r, A.push(s.data), t && t(A);
|
|
1783
1766
|
},
|
|
1784
1767
|
(s) => {
|
|
1785
1768
|
i && (i(s), console.log(s));
|
|
1786
1769
|
}
|
|
1787
1770
|
);
|
|
1788
1771
|
}
|
|
1789
|
-
const
|
|
1772
|
+
const le = "FA35FB9B177A280065800EA0000F599C", fe = [
|
|
1790
1773
|
"swym",
|
|
1791
1774
|
"3dspace",
|
|
1792
1775
|
"drive",
|
|
@@ -1800,14 +1783,14 @@ const fe = "FA35FB9B177A280065800EA0000F599C", me = [
|
|
|
1800
1783
|
where: "ds6w:where",
|
|
1801
1784
|
who: "ds6w:who",
|
|
1802
1785
|
why: "ds6w:why"
|
|
1803
|
-
},
|
|
1804
|
-
objId:
|
|
1786
|
+
}, me = {
|
|
1787
|
+
objId: le,
|
|
1805
1788
|
pred: "who",
|
|
1806
1789
|
order_by: "desc",
|
|
1807
1790
|
tag: "testTag"
|
|
1808
1791
|
};
|
|
1809
1792
|
function yt(e, n, t = void 0, i = void 0) {
|
|
1810
|
-
const { space: s, tenant: r } = e, { objId:
|
|
1793
|
+
const { space: s, tenant: r } = e, { objId: o, pred: a, tag: c } = n, d = {
|
|
1811
1794
|
uri: "/resources/6w/tags",
|
|
1812
1795
|
otpCTX: "SecurityContext=preferred",
|
|
1813
1796
|
optTenant: `tenant=${r}`
|
|
@@ -1816,10 +1799,10 @@ function yt(e, n, t = void 0, i = void 0) {
|
|
|
1816
1799
|
{
|
|
1817
1800
|
subject: [
|
|
1818
1801
|
{
|
|
1819
|
-
uri: `pid://${
|
|
1802
|
+
uri: `pid://${o}`
|
|
1820
1803
|
}
|
|
1821
1804
|
],
|
|
1822
|
-
predicate: X[
|
|
1805
|
+
predicate: X[a],
|
|
1823
1806
|
object: {
|
|
1824
1807
|
literal: c
|
|
1825
1808
|
}
|
|
@@ -1839,10 +1822,10 @@ function yt(e, n, t = void 0, i = void 0) {
|
|
|
1839
1822
|
setTimeout(() => {
|
|
1840
1823
|
M(
|
|
1841
1824
|
e,
|
|
1842
|
-
|
|
1825
|
+
o,
|
|
1843
1826
|
(g) => {
|
|
1844
1827
|
const h = g.data[0].dataelements.title, y = g.data[0].dataelements.fileExtension !== void 0 ? g.data[0].dataelements.fileExtension : "", S = g.data[0].relateddata.ownerInfo[0].dataelements.name;
|
|
1845
|
-
l.name = h, l.ext = y, l.createBy = S, n.info = { ...l },
|
|
1828
|
+
l.name = h, l.ext = y, l.createBy = S, n.info = { ...l }, ge(
|
|
1846
1829
|
e,
|
|
1847
1830
|
n,
|
|
1848
1831
|
(w) => {
|
|
@@ -1866,12 +1849,12 @@ function yt(e, n, t = void 0, i = void 0) {
|
|
|
1866
1849
|
}
|
|
1867
1850
|
});
|
|
1868
1851
|
}
|
|
1869
|
-
function
|
|
1852
|
+
function ge(e, n, t = void 0, i = void 0) {
|
|
1870
1853
|
console.log("obj ", n);
|
|
1871
1854
|
const s = n.info.name, r = {
|
|
1872
1855
|
baseUrl: `https://${e.tenant.toLowerCase()}-eu1-fedsearch.3dexperience.3ds.com`,
|
|
1873
1856
|
uri: "/federated/search"
|
|
1874
|
-
},
|
|
1857
|
+
}, o = `${r.baseUrl}${r.uri}`, a = {
|
|
1875
1858
|
"Content-Type": "application/json",
|
|
1876
1859
|
Accept: "application/json,text/javascript,*/*"
|
|
1877
1860
|
}, c = Y(), d = {
|
|
@@ -1916,7 +1899,7 @@ function he(e, n, t = void 0, i = void 0) {
|
|
|
1916
1899
|
}
|
|
1917
1900
|
},
|
|
1918
1901
|
select_exclude_synthesis: ["ds6w:what/ds6w:topic"],
|
|
1919
|
-
order_by:
|
|
1902
|
+
order_by: me.order_by,
|
|
1920
1903
|
order_field: "relevance",
|
|
1921
1904
|
select_snippets: [
|
|
1922
1905
|
"ds6w:snippet",
|
|
@@ -1927,7 +1910,7 @@ function he(e, n, t = void 0, i = void 0) {
|
|
|
1927
1910
|
],
|
|
1928
1911
|
nresults: 40,
|
|
1929
1912
|
start: "0",
|
|
1930
|
-
source:
|
|
1913
|
+
source: fe,
|
|
1931
1914
|
tenant: e.tenant,
|
|
1932
1915
|
login: {
|
|
1933
1916
|
"3dspace": {
|
|
@@ -1935,9 +1918,9 @@ function he(e, n, t = void 0, i = void 0) {
|
|
|
1935
1918
|
}
|
|
1936
1919
|
}
|
|
1937
1920
|
};
|
|
1938
|
-
console.log("dataPattern => ", d), m(
|
|
1921
|
+
console.log("dataPattern => ", d), m(o, {
|
|
1939
1922
|
method: "POST",
|
|
1940
|
-
headers:
|
|
1923
|
+
headers: a,
|
|
1941
1924
|
data: JSON.stringify(d),
|
|
1942
1925
|
onComplete(u) {
|
|
1943
1926
|
const p = JSON.parse(u);
|
|
@@ -1950,11 +1933,11 @@ function he(e, n, t = void 0, i = void 0) {
|
|
|
1950
1933
|
});
|
|
1951
1934
|
}
|
|
1952
1935
|
function _t(e, n, t = void 0, i = void 0) {
|
|
1953
|
-
const { objId: s, pred: r, tag:
|
|
1936
|
+
const { objId: s, pred: r, tag: o } = n, a = {
|
|
1954
1937
|
uri: "/resources/6w/tags",
|
|
1955
1938
|
otpCTX: "SecurityContext=preferred",
|
|
1956
1939
|
optTenant: `tenant=${e.tenant}`
|
|
1957
|
-
}, c = `${e.space}${
|
|
1940
|
+
}, c = `${e.space}${a.uri}?${a.otpCTX}&${a.optTenant}`, d = {
|
|
1958
1941
|
tag: [
|
|
1959
1942
|
{
|
|
1960
1943
|
subject: [
|
|
@@ -1964,7 +1947,7 @@ function _t(e, n, t = void 0, i = void 0) {
|
|
|
1964
1947
|
],
|
|
1965
1948
|
predicate: X[r],
|
|
1966
1949
|
object: {
|
|
1967
|
-
literal:
|
|
1950
|
+
literal: o
|
|
1968
1951
|
}
|
|
1969
1952
|
}
|
|
1970
1953
|
]
|
|
@@ -1991,13 +1974,13 @@ function St(e, n = "", t = void 0, i = void 0) {
|
|
|
1991
1974
|
return;
|
|
1992
1975
|
const r = {
|
|
1993
1976
|
uri: "/resources/v1/modeler/documents"
|
|
1994
|
-
},
|
|
1977
|
+
}, o = {
|
|
1995
1978
|
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
|
|
1996
1979
|
Accept: "application/json,text/javascript,*/*"
|
|
1997
|
-
},
|
|
1998
|
-
m(
|
|
1980
|
+
}, a = `${s}${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=${n}`;
|
|
1981
|
+
m(a, {
|
|
1999
1982
|
method: "POST",
|
|
2000
|
-
headers:
|
|
1983
|
+
headers: o,
|
|
2001
1984
|
data: c,
|
|
2002
1985
|
onComplete(d) {
|
|
2003
1986
|
t && t(JSON.parse(d));
|
|
@@ -2011,10 +1994,10 @@ function St(e, n = "", t = void 0, i = void 0) {
|
|
|
2011
1994
|
async function C(e, n = void 0, t = void 0) {
|
|
2012
1995
|
const i = e._3DSwym + "/api/index/tk";
|
|
2013
1996
|
return m(i, {
|
|
2014
|
-
onComplete(s, r,
|
|
2015
|
-
const
|
|
1997
|
+
onComplete(s, r, o) {
|
|
1998
|
+
const a = JSON.parse(s);
|
|
2016
1999
|
if (n)
|
|
2017
|
-
return n(
|
|
2000
|
+
return n(a), e.token = a?.result?.ServerToken;
|
|
2018
2001
|
},
|
|
2019
2002
|
onFailure(s) {
|
|
2020
2003
|
t && t(s);
|
|
@@ -2042,11 +2025,11 @@ function wt(e, n = void 0, t = void 0) {
|
|
|
2042
2025
|
},
|
|
2043
2026
|
data: JSON.stringify(s),
|
|
2044
2027
|
type: "json",
|
|
2045
|
-
onComplete(
|
|
2046
|
-
n && n(
|
|
2028
|
+
onComplete(o, a) {
|
|
2029
|
+
n && n(o, a);
|
|
2047
2030
|
},
|
|
2048
|
-
onFailure(
|
|
2049
|
-
t && t(
|
|
2031
|
+
onFailure(o, a) {
|
|
2032
|
+
t && t(o, a);
|
|
2050
2033
|
}
|
|
2051
2034
|
});
|
|
2052
2035
|
});
|
|
@@ -2071,12 +2054,12 @@ function Ct(e, n = void 0, t = void 0) {
|
|
|
2071
2054
|
},
|
|
2072
2055
|
data: JSON.stringify(s),
|
|
2073
2056
|
type: "json",
|
|
2074
|
-
onComplete(
|
|
2075
|
-
const c =
|
|
2076
|
-
n && n(c,
|
|
2057
|
+
onComplete(o, a) {
|
|
2058
|
+
const c = o.result.hits.map((d) => ({ login: d.login, fullName: d.name }));
|
|
2059
|
+
n && n(c, o);
|
|
2077
2060
|
},
|
|
2078
|
-
onFailure(
|
|
2079
|
-
t && t(
|
|
2061
|
+
onFailure(o, a) {
|
|
2062
|
+
t && t(o, a);
|
|
2080
2063
|
}
|
|
2081
2064
|
});
|
|
2082
2065
|
});
|
|
@@ -2088,14 +2071,14 @@ function bt(e, n = void 0, t = void 0) {
|
|
|
2088
2071
|
limit: `/limit/${e.limit ? e.limit : 500}`,
|
|
2089
2072
|
page: `/page/${e.page ? e.page : "1"}`
|
|
2090
2073
|
}, s = `${i.base}${i.uri}${i.limit}${i.page}`, r = [];
|
|
2091
|
-
C(e, (
|
|
2074
|
+
C(e, (o) => {
|
|
2092
2075
|
m(s, {
|
|
2093
2076
|
method: "GET",
|
|
2094
2077
|
headers: {
|
|
2095
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
2078
|
+
"X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
|
|
2096
2079
|
},
|
|
2097
|
-
onComplete(
|
|
2098
|
-
const p = JSON.parse(
|
|
2080
|
+
onComplete(a, c, d) {
|
|
2081
|
+
const p = JSON.parse(a).result;
|
|
2099
2082
|
let f = 0;
|
|
2100
2083
|
p.forEach((l) => {
|
|
2101
2084
|
const g = {
|
|
@@ -2106,7 +2089,7 @@ function bt(e, n = void 0, t = void 0) {
|
|
|
2106
2089
|
role: l.role,
|
|
2107
2090
|
access: l.access
|
|
2108
2091
|
};
|
|
2109
|
-
|
|
2092
|
+
he(
|
|
2110
2093
|
e,
|
|
2111
2094
|
l.id,
|
|
2112
2095
|
(h) => {
|
|
@@ -2116,14 +2099,14 @@ function bt(e, n = void 0, t = void 0) {
|
|
|
2116
2099
|
);
|
|
2117
2100
|
});
|
|
2118
2101
|
},
|
|
2119
|
-
onFailure(
|
|
2120
|
-
const d =
|
|
2102
|
+
onFailure(a, c) {
|
|
2103
|
+
const d = a;
|
|
2121
2104
|
d.status = c.status, d.response = c.errormsg, t && t(d);
|
|
2122
2105
|
}
|
|
2123
2106
|
});
|
|
2124
2107
|
});
|
|
2125
2108
|
}
|
|
2126
|
-
function
|
|
2109
|
+
function he(e, n, t, i) {
|
|
2127
2110
|
const s = `${e._3DSwym}/api/community/listmembers`, r = {
|
|
2128
2111
|
params: {
|
|
2129
2112
|
page: e.page ? e.page : 1,
|
|
@@ -2131,21 +2114,21 @@ function ye(e, n, t, i) {
|
|
|
2131
2114
|
community_id: n
|
|
2132
2115
|
}
|
|
2133
2116
|
};
|
|
2134
|
-
C(e, (
|
|
2117
|
+
C(e, (o) => {
|
|
2135
2118
|
m(s, {
|
|
2136
2119
|
method: "POST",
|
|
2137
2120
|
headers: {
|
|
2138
2121
|
"Content-type": "application/json;charset=UTF-8",
|
|
2139
2122
|
Accept: "application/json",
|
|
2140
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
2123
|
+
"X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
|
|
2141
2124
|
},
|
|
2142
2125
|
data: JSON.stringify(r),
|
|
2143
2126
|
type: "json",
|
|
2144
|
-
onComplete(
|
|
2145
|
-
t && t(
|
|
2127
|
+
onComplete(a, c, d) {
|
|
2128
|
+
t && t(a);
|
|
2146
2129
|
},
|
|
2147
|
-
onFailure(
|
|
2148
|
-
const d =
|
|
2130
|
+
onFailure(a, c) {
|
|
2131
|
+
const d = a;
|
|
2149
2132
|
d.status = c.status, d.response = c.errormsg, i && i(d);
|
|
2150
2133
|
}
|
|
2151
2134
|
});
|
|
@@ -2163,30 +2146,30 @@ function Ot(e, n = void 0, t = void 0) {
|
|
|
2163
2146
|
Accept: "application/json",
|
|
2164
2147
|
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
|
|
2165
2148
|
},
|
|
2166
|
-
onComplete(
|
|
2167
|
-
const
|
|
2168
|
-
n && n(
|
|
2149
|
+
onComplete(o) {
|
|
2150
|
+
const a = JSON.parse(o);
|
|
2151
|
+
n && n(a);
|
|
2169
2152
|
},
|
|
2170
|
-
onFailure(
|
|
2171
|
-
const c =
|
|
2172
|
-
c.status =
|
|
2153
|
+
onFailure(o, a) {
|
|
2154
|
+
const c = o;
|
|
2155
|
+
c.status = a.status, c.response = a.errormsg, t && t(c);
|
|
2173
2156
|
}
|
|
2174
2157
|
});
|
|
2175
2158
|
});
|
|
2176
2159
|
}
|
|
2177
2160
|
function Tt(e, n, t = void 0, i = void 0) {
|
|
2178
|
-
const { listAllContacts: s, currentUser: r, _3DSwym:
|
|
2161
|
+
const { listAllContacts: s, currentUser: r, _3DSwym: o } = e;
|
|
2179
2162
|
console.log("__listAllContacts", s.hits);
|
|
2180
|
-
const
|
|
2163
|
+
const a = `${o}/api/directmessages`, c = {
|
|
2181
2164
|
users: [r.login].concat(n.receipt)
|
|
2182
2165
|
}, d = {
|
|
2183
2166
|
id_msg: "",
|
|
2184
2167
|
senderId: e.currentUser.login,
|
|
2185
2168
|
senderName: `${e.currentUser.first_name} ${e.currentUser.last_name}`,
|
|
2186
|
-
msg:
|
|
2169
|
+
msg: _e(n.msg)
|
|
2187
2170
|
};
|
|
2188
2171
|
let u = !1;
|
|
2189
|
-
|
|
2172
|
+
ye(
|
|
2190
2173
|
c.users,
|
|
2191
2174
|
(p) => {
|
|
2192
2175
|
p !== void 0 && (d.id_msg = p.id, u = !0, P(e, d));
|
|
@@ -2196,7 +2179,7 @@ function Tt(e, n, t = void 0, i = void 0) {
|
|
|
2196
2179
|
}
|
|
2197
2180
|
), u === !1 && setTimeout(() => {
|
|
2198
2181
|
u === !1 && C(e, (p) => {
|
|
2199
|
-
m(
|
|
2182
|
+
m(a, {
|
|
2200
2183
|
method: "POST",
|
|
2201
2184
|
headers: {
|
|
2202
2185
|
"Content-Type": "application/json",
|
|
@@ -2217,7 +2200,7 @@ function Tt(e, n, t = void 0, i = void 0) {
|
|
|
2217
2200
|
});
|
|
2218
2201
|
}, 500);
|
|
2219
2202
|
}
|
|
2220
|
-
function
|
|
2203
|
+
function ye(e, n, t, i) {
|
|
2221
2204
|
const s = `${e._3DSwym}/api/directmessages/lite?with_favorites=false`;
|
|
2222
2205
|
C(e, (r) => {
|
|
2223
2206
|
m(s, {
|
|
@@ -2226,9 +2209,9 @@ function _e(e, n, t, i) {
|
|
|
2226
2209
|
Accept: "application/json,text/javascript,*/*",
|
|
2227
2210
|
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
|
|
2228
2211
|
},
|
|
2229
|
-
onComplete(
|
|
2230
|
-
const
|
|
2231
|
-
|
|
2212
|
+
onComplete(o) {
|
|
2213
|
+
const a = JSON.parse(o), c = [];
|
|
2214
|
+
a.result.forEach((p) => {
|
|
2232
2215
|
p.users = p.users.sort((f, l) => f.login.localeCompare(l.login)), p.users.length === n.length && c.push(p);
|
|
2233
2216
|
});
|
|
2234
2217
|
const d = n.sort(), u = c.find((p) => {
|
|
@@ -2239,9 +2222,9 @@ function _e(e, n, t, i) {
|
|
|
2239
2222
|
});
|
|
2240
2223
|
t && u !== void 0 ? t(u) : (i || u === void 0) && i(u);
|
|
2241
2224
|
},
|
|
2242
|
-
onFailure(
|
|
2243
|
-
const
|
|
2244
|
-
|
|
2225
|
+
onFailure(o) {
|
|
2226
|
+
const a = o;
|
|
2227
|
+
a.msg = headers.errormsg, a.errCode = headers.errorcode, console.log("❌ sendDirectMessageLite => ", a), i && i(a);
|
|
2245
2228
|
}
|
|
2246
2229
|
});
|
|
2247
2230
|
});
|
|
@@ -2252,7 +2235,7 @@ function P(e, n, t = void 0, i = void 0) {
|
|
|
2252
2235
|
uri: "/api/community",
|
|
2253
2236
|
id_msg: `${n.id_msg}`,
|
|
2254
2237
|
endUri: "/instantmessages"
|
|
2255
|
-
}, r = `${s.base}${s.uri}/${s.id_msg}${s.endUri}`,
|
|
2238
|
+
}, r = `${s.base}${s.uri}/${s.id_msg}${s.endUri}`, o = {
|
|
2256
2239
|
author: { login: n.senderId, displayName: n.senderName },
|
|
2257
2240
|
accessState: null,
|
|
2258
2241
|
commentUri: null,
|
|
@@ -2262,15 +2245,15 @@ function P(e, n, t = void 0, i = void 0) {
|
|
|
2262
2245
|
parentCommentUri: null,
|
|
2263
2246
|
richMessage: n.msg
|
|
2264
2247
|
};
|
|
2265
|
-
console.log("_3dSwym_sendDirectMessageData url ", r), C(e, (
|
|
2248
|
+
console.log("_3dSwym_sendDirectMessageData url ", r), C(e, (a) => {
|
|
2266
2249
|
m(r, {
|
|
2267
2250
|
method: "POST",
|
|
2268
2251
|
headers: {
|
|
2269
2252
|
"Content-Type": "application/json",
|
|
2270
2253
|
Accept: "application/json",
|
|
2271
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
2254
|
+
"X-DS-SWYM-CSRFTOKEN": a.result.ServerToken
|
|
2272
2255
|
},
|
|
2273
|
-
data: JSON.stringify(
|
|
2256
|
+
data: JSON.stringify(o),
|
|
2274
2257
|
type: "json",
|
|
2275
2258
|
onComplete(c, d, u) {
|
|
2276
2259
|
const p = c;
|
|
@@ -2283,7 +2266,7 @@ function P(e, n, t = void 0, i = void 0) {
|
|
|
2283
2266
|
});
|
|
2284
2267
|
});
|
|
2285
2268
|
}
|
|
2286
|
-
function
|
|
2269
|
+
function _e(e) {
|
|
2287
2270
|
const n = (/* @__PURE__ */ new Date()).toLocaleDateString(), t = (/* @__PURE__ */ new Date()).toLocaleTimeString();
|
|
2288
2271
|
return `<p>${e} </p>
|
|
2289
2272
|
<br/>
|
|
@@ -2293,15 +2276,15 @@ function Se(e) {
|
|
|
2293
2276
|
function $t(e, n, t = void 0, i = void 0) {
|
|
2294
2277
|
const s = `${e.space}/api/idea/add`, r = e.swymCommunities.find(
|
|
2295
2278
|
(c) => c.id === n.community_id
|
|
2296
|
-
),
|
|
2279
|
+
), o = e.swymCommunities.find(
|
|
2297
2280
|
(c) => c.title.toLowerCase() === n.community_title.toLowerCase()
|
|
2298
|
-
),
|
|
2281
|
+
), a = {
|
|
2299
2282
|
params: {
|
|
2300
2283
|
title: n.title,
|
|
2301
2284
|
// String, le nom de l'affaire
|
|
2302
|
-
community_id: r?.id !== void 0 ? r.id :
|
|
2285
|
+
community_id: r?.id !== void 0 ? r.id : o.id,
|
|
2303
2286
|
// String, l'id de la communauté
|
|
2304
|
-
message:
|
|
2287
|
+
message: Se(n.text_html),
|
|
2305
2288
|
// STRING => le contenue du message doit être au format HTML
|
|
2306
2289
|
published: 1
|
|
2307
2290
|
// 1 publier, 0 non publier
|
|
@@ -2316,7 +2299,7 @@ function $t(e, n, t = void 0, i = void 0) {
|
|
|
2316
2299
|
m(s, {
|
|
2317
2300
|
method: "POST",
|
|
2318
2301
|
headers: d,
|
|
2319
|
-
data: JSON.stringify(
|
|
2302
|
+
data: JSON.stringify(a),
|
|
2320
2303
|
type: "json",
|
|
2321
2304
|
onComplete(u, p, f) {
|
|
2322
2305
|
const l = JSON.parse(u);
|
|
@@ -2332,29 +2315,29 @@ function $t(e, n, t = void 0, i = void 0) {
|
|
|
2332
2315
|
function Ut(e, n = void 0, t = void 0) {
|
|
2333
2316
|
const i = { base: e.space, uri: "/api/idea/add" };
|
|
2334
2317
|
if (!Array.isArray(e.swymCommunities)) {
|
|
2335
|
-
const
|
|
2318
|
+
const o = "☠️ swymCommunities doit être un tableau d'objets de communautés";
|
|
2336
2319
|
throw new Error(`Erreur sur cette requête : ${i.base + i.uri}`, {
|
|
2337
|
-
cause:
|
|
2320
|
+
cause: o
|
|
2338
2321
|
});
|
|
2339
2322
|
}
|
|
2340
2323
|
if (e.swymCommunities.findIndex(
|
|
2341
|
-
(
|
|
2324
|
+
(o) => o.id === e.community_id
|
|
2342
2325
|
) === -1) {
|
|
2343
|
-
const
|
|
2326
|
+
const o = "la communauté n'existe pas dans la liste des communautés du Swym";
|
|
2344
2327
|
throw new Error(`Erreur sur cette requête : ${i.base + i.uri}`, {
|
|
2345
|
-
cause:
|
|
2328
|
+
cause: o
|
|
2346
2329
|
});
|
|
2347
2330
|
}
|
|
2348
2331
|
if (e.community_id && e.community_id === "") {
|
|
2349
|
-
const
|
|
2332
|
+
const o = "☠️ community_id doit être un String qui contient l'id de la communauté dans laquelle on souhaite publier l'idée.";
|
|
2350
2333
|
throw new Error(`Erreur sur cette requête : ${i.base + i.uri}`, {
|
|
2351
|
-
cause:
|
|
2334
|
+
cause: o
|
|
2352
2335
|
});
|
|
2353
2336
|
}
|
|
2354
2337
|
if (e.title && e.title === "") {
|
|
2355
|
-
const
|
|
2338
|
+
const o = "☠️ title doit être un String.";
|
|
2356
2339
|
throw new Error(`Erreur sur cette requête : ${i.base + i.uri}`, {
|
|
2357
|
-
cause:
|
|
2340
|
+
cause: o
|
|
2358
2341
|
});
|
|
2359
2342
|
}
|
|
2360
2343
|
const r = {
|
|
@@ -2369,19 +2352,19 @@ function Ut(e, n = void 0, t = void 0) {
|
|
|
2369
2352
|
// 1 publier, 0 brouillon
|
|
2370
2353
|
}
|
|
2371
2354
|
};
|
|
2372
|
-
C(e, (
|
|
2373
|
-
if (!
|
|
2355
|
+
C(e, (o) => {
|
|
2356
|
+
if (!o)
|
|
2374
2357
|
throw new Error(
|
|
2375
2358
|
`☠️ token n'est pas disponible pour cette requête : ${i.base + i.uri}`,
|
|
2376
2359
|
{
|
|
2377
|
-
cause:
|
|
2360
|
+
cause: o
|
|
2378
2361
|
}
|
|
2379
2362
|
);
|
|
2380
|
-
const
|
|
2363
|
+
const a = {
|
|
2381
2364
|
headers: {
|
|
2382
2365
|
"Content-type": "application/json;charset=UTF-8",
|
|
2383
2366
|
Accept: "application/json",
|
|
2384
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
2367
|
+
"X-DS-SWYM-CSRFTOKEN": o?.result?.ServerToken
|
|
2385
2368
|
},
|
|
2386
2369
|
method: "POST",
|
|
2387
2370
|
data: JSON.stringify(r),
|
|
@@ -2399,7 +2382,7 @@ function Ut(e, n = void 0, t = void 0) {
|
|
|
2399
2382
|
t && t(l);
|
|
2400
2383
|
}
|
|
2401
2384
|
};
|
|
2402
|
-
m(i.base + i.uri,
|
|
2385
|
+
m(i.base + i.uri, a);
|
|
2403
2386
|
});
|
|
2404
2387
|
}
|
|
2405
2388
|
function xt(e, n, t = void 0, i = void 0) {
|
|
@@ -2409,33 +2392,33 @@ function xt(e, n, t = void 0, i = void 0) {
|
|
|
2409
2392
|
ideationIds: [n.idee_id]
|
|
2410
2393
|
}
|
|
2411
2394
|
};
|
|
2412
|
-
C(e, (
|
|
2395
|
+
C(e, (o) => {
|
|
2413
2396
|
m(s, {
|
|
2414
2397
|
method: "POST",
|
|
2415
2398
|
headers: {
|
|
2416
2399
|
"Content-type": "application/json;charset=UTF-8",
|
|
2417
2400
|
Accept: "application/json",
|
|
2418
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
2401
|
+
"X-DS-SWYM-CSRFTOKEN": o?.result?.ServerToken
|
|
2419
2402
|
},
|
|
2420
2403
|
data: JSON.stringify(r),
|
|
2421
2404
|
type: "json",
|
|
2422
|
-
onComplete(
|
|
2423
|
-
t && t(
|
|
2405
|
+
onComplete(a, c, d) {
|
|
2406
|
+
t && t(a);
|
|
2424
2407
|
},
|
|
2425
|
-
onFailure(
|
|
2426
|
-
const u =
|
|
2408
|
+
onFailure(a, c, d) {
|
|
2409
|
+
const u = a;
|
|
2427
2410
|
u.status = c.status, u.response = c.errormsg, i && i(u);
|
|
2428
2411
|
}
|
|
2429
2412
|
});
|
|
2430
2413
|
});
|
|
2431
2414
|
}
|
|
2432
|
-
function
|
|
2415
|
+
function Nt(e, n = void 0, t = void 0) {
|
|
2433
2416
|
const { _3DSwym: i, _3DSwym_token: s } = e, r = `${i}/api/idea/get`;
|
|
2434
2417
|
if (e.idPost === "") {
|
|
2435
|
-
const
|
|
2436
|
-
throw new Error(`Erreur sur cette requête : ${r}`, { cause:
|
|
2418
|
+
const a = "☠️ idPost est vide, vous devez renseigner un identifiant de post";
|
|
2419
|
+
throw new Error(`Erreur sur cette requête : ${r}`, { cause: a });
|
|
2437
2420
|
}
|
|
2438
|
-
const
|
|
2421
|
+
const o = {
|
|
2439
2422
|
params: {
|
|
2440
2423
|
id: e.idPost
|
|
2441
2424
|
}
|
|
@@ -2447,23 +2430,23 @@ function It(e, n = void 0, t = void 0) {
|
|
|
2447
2430
|
Accept: "application/json",
|
|
2448
2431
|
"X-DS-SWYM-CSRFTOKEN": s
|
|
2449
2432
|
},
|
|
2450
|
-
data: JSON.stringify(
|
|
2451
|
-
onComplete(
|
|
2452
|
-
|
|
2433
|
+
data: JSON.stringify(o),
|
|
2434
|
+
onComplete(a) {
|
|
2435
|
+
a = typeof a == "string" ? JSON.parse(a) : a, n && n({ response: a });
|
|
2453
2436
|
},
|
|
2454
|
-
onFailure(
|
|
2455
|
-
const c =
|
|
2437
|
+
onFailure(a) {
|
|
2438
|
+
const c = a;
|
|
2456
2439
|
c.status = headers.status, c.response = headers.errormsg, t && t(c);
|
|
2457
2440
|
}
|
|
2458
2441
|
});
|
|
2459
2442
|
}
|
|
2460
|
-
function
|
|
2443
|
+
function It(e, n, t) {
|
|
2461
2444
|
const {
|
|
2462
2445
|
_3DSwym: i,
|
|
2463
2446
|
_3DSwym_token: s,
|
|
2464
2447
|
idPost: r,
|
|
2465
|
-
title:
|
|
2466
|
-
community_id:
|
|
2448
|
+
title: o,
|
|
2449
|
+
community_id: a,
|
|
2467
2450
|
status_comment: c,
|
|
2468
2451
|
status_id: d,
|
|
2469
2452
|
message: u
|
|
@@ -2481,8 +2464,8 @@ function Nt(e, n, t) {
|
|
|
2481
2464
|
params: {
|
|
2482
2465
|
out: "false",
|
|
2483
2466
|
id: r,
|
|
2484
|
-
title:
|
|
2485
|
-
community_id:
|
|
2467
|
+
title: o,
|
|
2468
|
+
community_id: a,
|
|
2486
2469
|
status_comment: c,
|
|
2487
2470
|
status_id: d,
|
|
2488
2471
|
message: u,
|
|
@@ -2502,17 +2485,17 @@ function Nt(e, n, t) {
|
|
|
2502
2485
|
};
|
|
2503
2486
|
m(p.base + p.uri, l);
|
|
2504
2487
|
}
|
|
2505
|
-
function
|
|
2488
|
+
function Ft(e, n, t = void 0, i = void 0) {
|
|
2506
2489
|
const { _3DSwym: s } = e;
|
|
2507
|
-
let { community_id: r, limit:
|
|
2490
|
+
let { community_id: r, limit: o, page: a, search: c } = n;
|
|
2508
2491
|
const d = [], u = 1;
|
|
2509
2492
|
let p = !1, f = 2;
|
|
2510
|
-
|
|
2493
|
+
a || (a = u), o || (o = 100);
|
|
2511
2494
|
const l = {
|
|
2512
2495
|
uri: "/api/idea/list",
|
|
2513
2496
|
comId: `/community_id/${r}`,
|
|
2514
|
-
limit: `/limit/${
|
|
2515
|
-
page: `/page/${
|
|
2497
|
+
limit: `/limit/${o}`,
|
|
2498
|
+
page: `/page/${a}`
|
|
2516
2499
|
};
|
|
2517
2500
|
let g = `${s}${l.uri}${l.comId}${l.limit}${l.page}`;
|
|
2518
2501
|
C(e, (h) => {
|
|
@@ -2524,8 +2507,8 @@ function Rt(e, n, t = void 0, i = void 0) {
|
|
|
2524
2507
|
},
|
|
2525
2508
|
onComplete(w) {
|
|
2526
2509
|
const _ = { response: JSON.parse(w) };
|
|
2527
|
-
if (f = Math.ceil(Number(_.response.nb_result) / 100), w && f >=
|
|
2528
|
-
if (
|
|
2510
|
+
if (f = Math.ceil(Number(_.response.nb_result) / 100), w && f >= a) {
|
|
2511
|
+
if (a++, l.page = `/page/${a}`, S = `${s}${l.uri}${l.comId}${l.limit}${l.page}`, !c)
|
|
2529
2512
|
d.push(_.response.result);
|
|
2530
2513
|
else {
|
|
2531
2514
|
const O = _.response.result.find(
|
|
@@ -2536,7 +2519,7 @@ function Rt(e, n, t = void 0, i = void 0) {
|
|
|
2536
2519
|
return;
|
|
2537
2520
|
}
|
|
2538
2521
|
}
|
|
2539
|
-
if (t && f <
|
|
2522
|
+
if (t && f < a && !c) {
|
|
2540
2523
|
p = !0, t(d);
|
|
2541
2524
|
return;
|
|
2542
2525
|
}
|
|
@@ -2552,7 +2535,7 @@ function Rt(e, n, t = void 0, i = void 0) {
|
|
|
2552
2535
|
p || y(g);
|
|
2553
2536
|
});
|
|
2554
2537
|
}
|
|
2555
|
-
function
|
|
2538
|
+
function Se(e) {
|
|
2556
2539
|
return !e || e === "" ? `<h2><u>INFORMATIONS AFFAIRE :</u></h2>
|
|
2557
2540
|
<p><u>|⚠️<em> Merci de respecter l'écriture des tags, en MAJUSCULES, nom complet, pas de caractères</em></u></p>
|
|
2558
2541
|
<p><u><em>|spéciaux, séparation par "_" si besoin !</em></u></p>
|
|
@@ -2627,9 +2610,9 @@ function we(e) {
|
|
|
2627
2610
|
<p>
|
|
2628
2611
|
</p>` : e;
|
|
2629
2612
|
}
|
|
2630
|
-
function
|
|
2631
|
-
const { tenant: i, _3DSwym: s, _3DSwym_token: r, community_id:
|
|
2632
|
-
if (i && s && r &&
|
|
2613
|
+
function Rt(e, n = void 0, t = void 0) {
|
|
2614
|
+
const { tenant: i, _3DSwym: s, _3DSwym_token: r, community_id: o, idea_id: a } = e;
|
|
2615
|
+
if (i && s && r && o && a) {
|
|
2633
2616
|
const c = `${s}/api/idea/forward`;
|
|
2634
2617
|
m(c, {
|
|
2635
2618
|
method: "POST",
|
|
@@ -2639,8 +2622,8 @@ function Ft(e, n = void 0, t = void 0) {
|
|
|
2639
2622
|
"X-DS-SWYM-CSRFTOKEN": r
|
|
2640
2623
|
},
|
|
2641
2624
|
data: JSON.stringify({
|
|
2642
|
-
community_uri: `swym:prd:${i.toUpperCase()}:community:${
|
|
2643
|
-
content_uri: `swym:prd:${i.toUpperCase()}:idea:${
|
|
2625
|
+
community_uri: `swym:prd:${i.toUpperCase()}:community:${o}`,
|
|
2626
|
+
content_uri: `swym:prd:${i.toUpperCase()}:idea:${a}`,
|
|
2644
2627
|
timeout: 3e4
|
|
2645
2628
|
}),
|
|
2646
2629
|
type: "json",
|
|
@@ -2665,11 +2648,11 @@ function kt(e, n = void 0, t = void 0) {
|
|
|
2665
2648
|
try {
|
|
2666
2649
|
let r;
|
|
2667
2650
|
if (e._3DDashboard) {
|
|
2668
|
-
const
|
|
2669
|
-
m(
|
|
2651
|
+
const o = e._3DDashboard + "/api/users/current";
|
|
2652
|
+
m(o, {
|
|
2670
2653
|
method: "GET",
|
|
2671
|
-
onComplete(
|
|
2672
|
-
let u =
|
|
2654
|
+
onComplete(a, c, d) {
|
|
2655
|
+
let u = a.replace(/\"\[/g, "[").replace(/\]\"/g, "]").replace(/\"{/g, "{").replace(/}\"/g, "}").replace(/\\/g, "");
|
|
2673
2656
|
u = u.replace(/\"\[/g, "[").replace(/\]\"/g, "]").replace(/\"{/g, "{").replace(/}\"/g, "}").replace(/\\/g, "");
|
|
2674
2657
|
let p = {};
|
|
2675
2658
|
try {
|
|
@@ -2679,8 +2662,8 @@ function kt(e, n = void 0, t = void 0) {
|
|
|
2679
2662
|
}
|
|
2680
2663
|
p.first_name = p?.firstName ? p.firstName : "", p.last_name = p?.lastName ? p.lastName : "", r = p, i(p);
|
|
2681
2664
|
},
|
|
2682
|
-
onFailure(
|
|
2683
|
-
s("ERROR | _3DSwym_get_currentUser => _3DDashboard + /api/users/current",
|
|
2665
|
+
onFailure(a) {
|
|
2666
|
+
s("ERROR | _3DSwym_get_currentUser => _3DDashboard + /api/users/current", a);
|
|
2684
2667
|
}
|
|
2685
2668
|
});
|
|
2686
2669
|
}
|
|
@@ -2698,12 +2681,12 @@ function jt(e, n, t = void 0, i = void 0) {
|
|
|
2698
2681
|
m(s, {
|
|
2699
2682
|
method: "GET",
|
|
2700
2683
|
headers: { "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken },
|
|
2701
|
-
onComplete(
|
|
2702
|
-
const d = JSON.parse(
|
|
2684
|
+
onComplete(o, a, c) {
|
|
2685
|
+
const d = JSON.parse(o);
|
|
2703
2686
|
t && t(d);
|
|
2704
2687
|
},
|
|
2705
|
-
onFailure(
|
|
2706
|
-
i && i(
|
|
2688
|
+
onFailure(o) {
|
|
2689
|
+
i && i(o);
|
|
2707
2690
|
}
|
|
2708
2691
|
});
|
|
2709
2692
|
},
|
|
@@ -2715,15 +2698,15 @@ function vt(e, n = void 0, t = void 0) {
|
|
|
2715
2698
|
_3DSwym: i,
|
|
2716
2699
|
_3DSwym_token: s,
|
|
2717
2700
|
subjectUri: r,
|
|
2718
|
-
richMessage:
|
|
2719
|
-
} = e,
|
|
2701
|
+
richMessage: o
|
|
2702
|
+
} = e, a = `${i}/commentproxy/subjects/${r}/comments`, d = {
|
|
2720
2703
|
method: "POST",
|
|
2721
2704
|
headers: {
|
|
2722
2705
|
"Content-type": "application/json;charset=UTF-8",
|
|
2723
2706
|
Accept: "application/json",
|
|
2724
2707
|
"X-DS-SWYM-CSRFTOKEN": s
|
|
2725
2708
|
},
|
|
2726
|
-
data: JSON.stringify({ richMessage:
|
|
2709
|
+
data: JSON.stringify({ richMessage: o }),
|
|
2727
2710
|
type: "json",
|
|
2728
2711
|
onComplete(u, p, f) {
|
|
2729
2712
|
const l = {
|
|
@@ -2735,7 +2718,7 @@ function vt(e, n = void 0, t = void 0) {
|
|
|
2735
2718
|
t && t(u);
|
|
2736
2719
|
}
|
|
2737
2720
|
};
|
|
2738
|
-
m(
|
|
2721
|
+
m(a, d);
|
|
2739
2722
|
}
|
|
2740
2723
|
function Dt(e, n = void 0, t = void 0) {
|
|
2741
2724
|
e.tenant && J(e, (i) => {
|
|
@@ -2746,19 +2729,19 @@ function Dt(e, n = void 0, t = void 0) {
|
|
|
2746
2729
|
function At(e, n = void 0, t = void 0) {
|
|
2747
2730
|
e.tenant ? J(e, (i) => {
|
|
2748
2731
|
const s = i.services.find(
|
|
2749
|
-
(
|
|
2750
|
-
)?.url, r = i.services.find((
|
|
2751
|
-
m(
|
|
2752
|
-
async onComplete(
|
|
2753
|
-
const c = typeof
|
|
2732
|
+
(a) => a.id === "3dpassport"
|
|
2733
|
+
)?.url, r = i.services.find((a) => a.id === "businessprocess")?.url + "/api/v2", o = `${s}/login/?cors=false&service=${r}/auth/cas`;
|
|
2734
|
+
m(o, {
|
|
2735
|
+
async onComplete(a) {
|
|
2736
|
+
const c = typeof a == "string" ? JSON.parse(a)?.x3ds_service_redirect_url : a?.x3ds_service_redirect_url;
|
|
2754
2737
|
await fetch(c, {
|
|
2755
2738
|
method: "POST"
|
|
2756
2739
|
}).then((d) => d.json()).then(async (d) => {
|
|
2757
2740
|
n && n(d?.token);
|
|
2758
2741
|
});
|
|
2759
2742
|
},
|
|
2760
|
-
onFailure(
|
|
2761
|
-
t && t(
|
|
2743
|
+
onFailure(a) {
|
|
2744
|
+
t && t(a);
|
|
2762
2745
|
}
|
|
2763
2746
|
});
|
|
2764
2747
|
}) : t && t("No tenant");
|
|
@@ -2798,10 +2781,10 @@ function Jt(e, n, t, i = void 0, s = void 0) {
|
|
|
2798
2781
|
{
|
|
2799
2782
|
method: "POST"
|
|
2800
2783
|
}
|
|
2801
|
-
).then((
|
|
2802
|
-
i && i(
|
|
2803
|
-
}).catch((
|
|
2804
|
-
s && s(
|
|
2784
|
+
).then((o) => o.json()).then((o) => {
|
|
2785
|
+
i && i(o);
|
|
2786
|
+
}).catch((o) => {
|
|
2787
|
+
s && s(o);
|
|
2805
2788
|
});
|
|
2806
2789
|
}
|
|
2807
2790
|
}
|
|
@@ -2816,39 +2799,39 @@ async function Mt(e, n, t, i = void 0, s = void 0) {
|
|
|
2816
2799
|
"Access-Control-Allow-Origin": "*"
|
|
2817
2800
|
}
|
|
2818
2801
|
}
|
|
2819
|
-
).then((
|
|
2820
|
-
i && i(
|
|
2821
|
-
}).catch((
|
|
2822
|
-
s && s(
|
|
2802
|
+
).then((o) => o.json()).then((o) => {
|
|
2803
|
+
i && i(o);
|
|
2804
|
+
}).catch((o) => {
|
|
2805
|
+
s && s(o);
|
|
2823
2806
|
});
|
|
2824
2807
|
}
|
|
2825
2808
|
}
|
|
2826
2809
|
async function Gt(e, n, t, i, s = void 0, r = void 0) {
|
|
2827
2810
|
if (e.tenant) {
|
|
2828
|
-
const
|
|
2811
|
+
const o = e.tenant.toLowerCase();
|
|
2829
2812
|
fetch(
|
|
2830
|
-
`https://api.uixhome.fr/${
|
|
2813
|
+
`https://api.uixhome.fr/${o}/iterop/businesstable/patch/rows/${t}/?t=${n}&b=${i}`,
|
|
2831
2814
|
{
|
|
2832
2815
|
method: "POST"
|
|
2833
2816
|
}
|
|
2834
|
-
).then((
|
|
2835
|
-
s && s(
|
|
2836
|
-
}).catch((
|
|
2837
|
-
r && r(
|
|
2817
|
+
).then((a) => a.json()).then((a) => {
|
|
2818
|
+
s && s(a);
|
|
2819
|
+
}).catch((a) => {
|
|
2820
|
+
r && r(a, t, i);
|
|
2838
2821
|
});
|
|
2839
2822
|
}
|
|
2840
2823
|
}
|
|
2841
|
-
async function Bt(e, n, t, i, s, r = void 0,
|
|
2824
|
+
async function Bt(e, n, t, i, s, r = void 0, o = void 0) {
|
|
2842
2825
|
if (e.tenant) {
|
|
2843
|
-
const
|
|
2826
|
+
const a = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/search/rows/${t}?t=${n}&c=${encodeURIComponent(
|
|
2844
2827
|
i
|
|
2845
2828
|
)}&b=${encodeURIComponent(s)}`;
|
|
2846
|
-
fetch(
|
|
2829
|
+
fetch(a, {
|
|
2847
2830
|
method: "POST"
|
|
2848
2831
|
}).then((c) => c.json()).then((c) => {
|
|
2849
|
-
c.url =
|
|
2832
|
+
c.url = a, r && r(c);
|
|
2850
2833
|
}).catch((c) => {
|
|
2851
|
-
|
|
2834
|
+
o && o({
|
|
2852
2835
|
error: c,
|
|
2853
2836
|
tableId: t,
|
|
2854
2837
|
columns: i,
|
|
@@ -2859,17 +2842,17 @@ async function Bt(e, n, t, i, s, r = void 0, a = void 0) {
|
|
|
2859
2842
|
}
|
|
2860
2843
|
async function Et(e, n, t, i, s = void 0, r = void 0) {
|
|
2861
2844
|
if (e.tenant) {
|
|
2862
|
-
const
|
|
2845
|
+
const o = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/update/${t}?t=${n}&b=${encodeURIComponent(
|
|
2863
2846
|
i
|
|
2864
2847
|
)}`;
|
|
2865
|
-
fetch(
|
|
2848
|
+
fetch(o, {
|
|
2866
2849
|
method: "POST"
|
|
2867
|
-
}).then((
|
|
2868
|
-
s && s(
|
|
2869
|
-
}).catch((
|
|
2850
|
+
}).then((a) => a.json()).then((a) => {
|
|
2851
|
+
s && s(a);
|
|
2852
|
+
}).catch((a) => {
|
|
2870
2853
|
r && r({
|
|
2871
|
-
error:
|
|
2872
|
-
url:
|
|
2854
|
+
error: a,
|
|
2855
|
+
url: o
|
|
2873
2856
|
});
|
|
2874
2857
|
});
|
|
2875
2858
|
}
|
|
@@ -2881,11 +2864,11 @@ async function Kt(e, n, t, i = void 0, s = void 0) {
|
|
|
2881
2864
|
)}`;
|
|
2882
2865
|
fetch(r, {
|
|
2883
2866
|
method: "POST"
|
|
2884
|
-
}).then((
|
|
2885
|
-
i && i(
|
|
2886
|
-
}).catch((
|
|
2867
|
+
}).then((o) => o.json()).then((o) => {
|
|
2868
|
+
i && i(o);
|
|
2869
|
+
}).catch((o) => {
|
|
2887
2870
|
s && s({
|
|
2888
|
-
error:
|
|
2871
|
+
error: o,
|
|
2889
2872
|
url: r
|
|
2890
2873
|
});
|
|
2891
2874
|
});
|
|
@@ -2893,16 +2876,16 @@ async function Kt(e, n, t, i = void 0, s = void 0) {
|
|
|
2893
2876
|
}
|
|
2894
2877
|
async function qt(e, n, t, i, s = void 0, r = void 0) {
|
|
2895
2878
|
if (e.tenant) {
|
|
2896
|
-
const
|
|
2879
|
+
const o = e.tenant.toLowerCase();
|
|
2897
2880
|
fetch(
|
|
2898
|
-
`https://api.uixhome.fr/${
|
|
2881
|
+
`https://api.uixhome.fr/${o}/iterop/runtime/processes/${t}?t=${n}&b=${i}`,
|
|
2899
2882
|
{
|
|
2900
2883
|
method: "POST"
|
|
2901
2884
|
}
|
|
2902
|
-
).then((
|
|
2903
|
-
console.log("_Iterop_runProcess : OK"), s && s(
|
|
2904
|
-
}).catch((
|
|
2905
|
-
r && r(
|
|
2885
|
+
).then((a) => a.json()).then((a) => {
|
|
2886
|
+
console.log("_Iterop_runProcess : OK"), s && s(a);
|
|
2887
|
+
}).catch((a) => {
|
|
2888
|
+
r && r(a);
|
|
2906
2889
|
});
|
|
2907
2890
|
}
|
|
2908
2891
|
}
|
|
@@ -2914,40 +2897,40 @@ async function Xt(e, n, t, i = void 0, s = void 0) {
|
|
|
2914
2897
|
{
|
|
2915
2898
|
method: "POST"
|
|
2916
2899
|
}
|
|
2917
|
-
).then((
|
|
2918
|
-
i && i(
|
|
2919
|
-
}).catch((
|
|
2920
|
-
s && s(
|
|
2900
|
+
).then((o) => o.json()).then((o) => {
|
|
2901
|
+
i && i(o);
|
|
2902
|
+
}).catch((o) => {
|
|
2903
|
+
s && s(o);
|
|
2921
2904
|
});
|
|
2922
2905
|
}
|
|
2923
2906
|
}
|
|
2924
|
-
async function Wt(e, n, t, i, s, r = void 0,
|
|
2907
|
+
async function Wt(e, n, t, i, s, r = void 0, o = void 0) {
|
|
2925
2908
|
if (e.tenant) {
|
|
2926
|
-
const
|
|
2909
|
+
const a = e.tenant.toLowerCase();
|
|
2927
2910
|
fetch(
|
|
2928
|
-
`https://api.uixhome.fr/${
|
|
2911
|
+
`https://api.uixhome.fr/${a}/iterop/dependencytable/patch/${t}/?t=${n}&cli=${i}&b=${s}`,
|
|
2929
2912
|
{
|
|
2930
2913
|
method: "POST"
|
|
2931
2914
|
}
|
|
2932
2915
|
).then((c) => c.json()).then((c) => {
|
|
2933
2916
|
r && r(c);
|
|
2934
2917
|
}).catch((c) => {
|
|
2935
|
-
|
|
2918
|
+
o && o(c);
|
|
2936
2919
|
});
|
|
2937
2920
|
}
|
|
2938
2921
|
}
|
|
2939
2922
|
async function Vt(e, n, t, i, s = void 0, r = void 0) {
|
|
2940
2923
|
if (e.tenant) {
|
|
2941
|
-
const
|
|
2924
|
+
const o = e.tenant.toLowerCase();
|
|
2942
2925
|
fetch(
|
|
2943
|
-
`https://api.uixhome.fr/${
|
|
2926
|
+
`https://api.uixhome.fr/${o}/iterop/dependencytable/put/${t}/?t=${n}&b=${i}`,
|
|
2944
2927
|
{
|
|
2945
2928
|
method: "POST"
|
|
2946
2929
|
}
|
|
2947
|
-
).then((
|
|
2948
|
-
s && s(
|
|
2949
|
-
}).catch((
|
|
2950
|
-
r && r(
|
|
2930
|
+
).then((a) => a.json()).then((a) => {
|
|
2931
|
+
s && s(a);
|
|
2932
|
+
}).catch((a) => {
|
|
2933
|
+
r && r(a);
|
|
2951
2934
|
});
|
|
2952
2935
|
}
|
|
2953
2936
|
}
|
|
@@ -2960,10 +2943,10 @@ async function Yt(e, n, t, i = void 0, s = void 0) {
|
|
|
2960
2943
|
{
|
|
2961
2944
|
method: "POST"
|
|
2962
2945
|
}
|
|
2963
|
-
).then((
|
|
2964
|
-
i && i(
|
|
2965
|
-
}).catch((
|
|
2966
|
-
s && s(
|
|
2946
|
+
).then((o) => o.json()).then((o) => {
|
|
2947
|
+
i && i(o);
|
|
2948
|
+
}).catch((o) => {
|
|
2949
|
+
s && s(o);
|
|
2967
2950
|
});
|
|
2968
2951
|
}
|
|
2969
2952
|
}
|
|
@@ -2975,27 +2958,27 @@ function zt(e) {
|
|
|
2975
2958
|
function Ht(e, n = void 0, t = void 0) {
|
|
2976
2959
|
return console.log("credentials", e), new Promise((i) => {
|
|
2977
2960
|
if (e.token === "" && b(e), !e.space || e.space === "") {
|
|
2978
|
-
const
|
|
2979
|
-
console.log("platformeInfo",
|
|
2961
|
+
const o = Z();
|
|
2962
|
+
console.log("platformeInfo", o);
|
|
2980
2963
|
}
|
|
2981
|
-
|
|
2964
|
+
R(
|
|
2982
2965
|
e,
|
|
2983
2966
|
"Common space",
|
|
2984
2967
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
2985
2968
|
void 0,
|
|
2986
|
-
(
|
|
2987
|
-
(
|
|
2988
|
-
console.log("onError =>",
|
|
2969
|
+
(o) => e.ctx = o,
|
|
2970
|
+
(o) => {
|
|
2971
|
+
console.log("onError =>", o);
|
|
2989
2972
|
},
|
|
2990
2973
|
!0
|
|
2991
2974
|
);
|
|
2992
2975
|
const s = T.now().ts, r = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dsearch&platformId=${e.tenant}`;
|
|
2993
2976
|
m(r, {
|
|
2994
|
-
onComplete(
|
|
2995
|
-
if (Array.isArray(JSON.parse(
|
|
2996
|
-
const
|
|
2997
|
-
console.log("serviceId=3dsearch",
|
|
2998
|
-
const c = `${
|
|
2977
|
+
onComplete(o) {
|
|
2978
|
+
if (Array.isArray(JSON.parse(o))) {
|
|
2979
|
+
const a = JSON.parse(o);
|
|
2980
|
+
console.log("serviceId=3dsearch", a);
|
|
2981
|
+
const c = `${a[0].services[0].url}/search?xrequestedwith=xmlhttprequest`;
|
|
2999
2982
|
m(c, {
|
|
3000
2983
|
method: "POST",
|
|
3001
2984
|
headers: {
|
|
@@ -3045,8 +3028,8 @@ function Ht(e, n = void 0, t = void 0) {
|
|
|
3045
3028
|
});
|
|
3046
3029
|
}
|
|
3047
3030
|
},
|
|
3048
|
-
onFailure(
|
|
3049
|
-
t && t(
|
|
3031
|
+
onFailure(o) {
|
|
3032
|
+
t && t(o);
|
|
3050
3033
|
}
|
|
3051
3034
|
});
|
|
3052
3035
|
});
|
|
@@ -3062,15 +3045,15 @@ export {
|
|
|
3062
3045
|
ct as _3DSpace_bookmark_newWorkspace,
|
|
3063
3046
|
b as _3DSpace_csrf,
|
|
3064
3047
|
E as _3DSpace_download_doc,
|
|
3065
|
-
|
|
3048
|
+
ce as _3DSpace_download_multidoc,
|
|
3066
3049
|
G as _3DSpace_file_update,
|
|
3067
|
-
|
|
3050
|
+
oe as _3DSpace_file_update_csr,
|
|
3068
3051
|
ze as _3DSpace_file_url_csr,
|
|
3069
|
-
|
|
3052
|
+
F as _3DSpace_get_csrf,
|
|
3070
3053
|
M as _3DSpace_get_docInfo,
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3054
|
+
de as _3DSpace_get_downloadTicket_multidoc,
|
|
3055
|
+
Ye as _3DSpace_get_multiDocInfo,
|
|
3056
|
+
R as _3DSpace_get_securityContexts,
|
|
3074
3057
|
j as _3DSpace_get_ticket,
|
|
3075
3058
|
ot as _3DSpace_lifecycle_changeRevision,
|
|
3076
3059
|
nt as _3DSpace_lifecycle_changeState,
|
|
@@ -3079,27 +3062,27 @@ export {
|
|
|
3079
3062
|
tt as _3DSpace_lifecycle_getNextStates,
|
|
3080
3063
|
at as _3DSpace_lifecycle_getRevisions,
|
|
3081
3064
|
He as _3DSpace_put_docInfo,
|
|
3082
|
-
|
|
3065
|
+
Rt as _3DSwym_ForwardIdea,
|
|
3083
3066
|
vt as _3DSwym_addComment,
|
|
3084
3067
|
Tt as _3DSwym_buildDirectMessage,
|
|
3085
3068
|
xt as _3DSwym_deleteIdea,
|
|
3086
|
-
|
|
3087
|
-
|
|
3069
|
+
It as _3DSwym_editIdea,
|
|
3070
|
+
ye as _3DSwym_findCommunityToInstantMSG,
|
|
3088
3071
|
bt as _3DSwym_getAllCommunities,
|
|
3089
|
-
|
|
3072
|
+
Ft as _3DSwym_getAllListIdeas,
|
|
3090
3073
|
wt as _3DSwym_getAllNews,
|
|
3091
3074
|
Ct as _3DSwym_getFamiliarPeople,
|
|
3092
3075
|
Ot as _3DSwym_getIdeaStatusMaturity,
|
|
3093
|
-
|
|
3094
|
-
|
|
3076
|
+
he as _3DSwym_getMembersCommunity,
|
|
3077
|
+
Nt as _3DSwym_getOneIdea,
|
|
3095
3078
|
C as _3DSwym_get_Token,
|
|
3096
3079
|
kt as _3DSwym_get_currentUser,
|
|
3097
3080
|
jt as _3DSwym_get_findUser,
|
|
3098
3081
|
Ut as _3DSwym_postIdea,
|
|
3099
3082
|
$t as _3DSwym_postIdeaTemplate,
|
|
3100
3083
|
P as _3DSwym_sendMessageData,
|
|
3101
|
-
|
|
3102
|
-
|
|
3084
|
+
Je as _AppMngt_get_info_user,
|
|
3085
|
+
Le as _AppMngt_get_users,
|
|
3103
3086
|
Gt as _Iterop_AddOrRemoveRows,
|
|
3104
3087
|
At as _Iterop_Auth_CAS,
|
|
3105
3088
|
Xt as _Iterop_GetOneDependencyTable,
|
|
@@ -3114,46 +3097,46 @@ export {
|
|
|
3114
3097
|
Pt as _Iterop_jwtUser,
|
|
3115
3098
|
qt as _Iterop_runProcess,
|
|
3116
3099
|
Et as _Iterop_updateBusinessTable,
|
|
3117
|
-
|
|
3118
|
-
|
|
3100
|
+
Ae as _Registry_getServicesUrl,
|
|
3101
|
+
ve as _getMe,
|
|
3119
3102
|
Z as _getPlateformInfos,
|
|
3120
|
-
|
|
3103
|
+
je as _getPlatformServices,
|
|
3121
3104
|
J as _getServiceUrl,
|
|
3122
|
-
|
|
3105
|
+
De as _getServiceUrl_3DPassport,
|
|
3123
3106
|
Dt as _getServiceUrl_Iterop,
|
|
3124
3107
|
m as _httpCallAuthenticated,
|
|
3125
3108
|
Fe as _setDraggable,
|
|
3126
|
-
|
|
3127
|
-
|
|
3109
|
+
ke as _setDroppable,
|
|
3110
|
+
Re as _setupTagger,
|
|
3128
3111
|
yt as addTagToDoc,
|
|
3129
3112
|
H as chunkArray,
|
|
3130
|
-
|
|
3113
|
+
Pe as compass_getListAdditionalApps,
|
|
3131
3114
|
z as couleurs,
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3115
|
+
Me as createUserGroups,
|
|
3116
|
+
pe as dataMixing,
|
|
3117
|
+
qe as deleteUserGroups,
|
|
3118
|
+
xe as findAdresse,
|
|
3136
3119
|
ut as getAllContextSecurity,
|
|
3137
3120
|
te as getCSRFToken,
|
|
3138
|
-
|
|
3139
|
-
|
|
3121
|
+
Ue as getCommunes,
|
|
3122
|
+
Ge as getComplementUG,
|
|
3140
3123
|
pt as getDataFrom3DSpace,
|
|
3141
3124
|
Ne as getDataFromGouvFr,
|
|
3142
3125
|
gt as getDatasByTenant,
|
|
3143
3126
|
ht as getDatasFrom3DSpace,
|
|
3144
3127
|
lt as getDownloadDocument,
|
|
3145
3128
|
St as getInfoDocTags,
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3129
|
+
Ke as getUserGroupsByEmailList,
|
|
3130
|
+
Ee as getUserGroupsByURIList,
|
|
3131
|
+
Be as getUserGroupsList,
|
|
3149
3132
|
ee as getUsersGroupRules,
|
|
3150
3133
|
mt as get_3DSpace_csrf,
|
|
3151
|
-
|
|
3152
|
-
|
|
3134
|
+
Xe as patchUserGroups,
|
|
3135
|
+
We as patchUserGroupsControl,
|
|
3153
3136
|
ft as pushDataIn3DSpace,
|
|
3154
|
-
|
|
3137
|
+
Ve as readUserGroupControl,
|
|
3155
3138
|
_t as removeTagToDoc,
|
|
3156
3139
|
zt as sayHello,
|
|
3157
|
-
|
|
3140
|
+
Ie as updateEvent
|
|
3158
3141
|
};
|
|
3159
3142
|
//# sourceMappingURL=wb3Api.js.map
|