@beam3_dev/api_module 0.0.225 → 0.0.226
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 +317 -314
- package/dist/wb3Api.js.map +1 -1
- package/dist/wb3Api.umd.cjs +6 -6
- package/dist/wb3Api.umd.cjs.map +1 -1
- package/package.json +1 -1
package/dist/wb3Api.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { v4 as
|
|
2
|
-
import { DateTime as
|
|
3
|
-
import { requirejs as $, widget as
|
|
4
|
-
function
|
|
5
|
-
return
|
|
1
|
+
import { v4 as V } from "uuid";
|
|
2
|
+
import { DateTime as v } from "luxon";
|
|
3
|
+
import { requirejs as $, widget as D } from "@widget-lab/3ddashboard-utils";
|
|
4
|
+
function L() {
|
|
5
|
+
return V();
|
|
6
6
|
}
|
|
7
|
-
const
|
|
7
|
+
const W = {
|
|
8
8
|
b3M3Yellow: "#FFB300",
|
|
9
9
|
b3AboutageBlue: "#42A5F5",
|
|
10
10
|
b3UsinageGreen: "#689F38",
|
|
@@ -34,7 +34,7 @@ const V = {
|
|
|
34
34
|
b3Edit8: "#616161",
|
|
35
35
|
b3Edit9: "#795548"
|
|
36
36
|
};
|
|
37
|
-
async function
|
|
37
|
+
async function he(e, t = void 0, s = void 0) {
|
|
38
38
|
const n = parseInt(e);
|
|
39
39
|
await fetch(
|
|
40
40
|
"https://apicarto.ign.fr/api/codes-postaux/communes/" + n,
|
|
@@ -50,7 +50,7 @@ async function ge(e, t = void 0, s = void 0) {
|
|
|
50
50
|
s && s(i), console.error("Erreur : " + i);
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
|
-
async function
|
|
53
|
+
async function ye(e, t = void 0, s = void 0) {
|
|
54
54
|
e = encodeURIComponent(e), await fetch(
|
|
55
55
|
"https://api-adresse.data.gouv.fr/search/?q=" + e + "&limit=15",
|
|
56
56
|
{
|
|
@@ -65,8 +65,8 @@ async function he(e, t = void 0, s = void 0) {
|
|
|
65
65
|
s && s(n), console.error("Erreur : " + n);
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
-
async function
|
|
69
|
-
let s =
|
|
68
|
+
async function Se(e, t = W) {
|
|
69
|
+
let s = v.now().year;
|
|
70
70
|
const n = e, i = [], r = (a) => {
|
|
71
71
|
for (let c in a)
|
|
72
72
|
i.push({ date: c, comment: a[c] });
|
|
@@ -89,24 +89,24 @@ async function ye(e, t = V) {
|
|
|
89
89
|
} : n;
|
|
90
90
|
for (let c of i)
|
|
91
91
|
a.events.findIndex(
|
|
92
|
-
(p) => p.start ===
|
|
92
|
+
(p) => p.start === v.fromISO(c.date).toISODate() && p.name === "Férié : " + c.comment
|
|
93
93
|
) === -1 && a.events.push({
|
|
94
94
|
name: "Férié : " + c.comment,
|
|
95
|
-
start:
|
|
96
|
-
end:
|
|
95
|
+
start: v.fromISO(c.date).toISODate(),
|
|
96
|
+
end: v.fromISO(c.date).toISODate(),
|
|
97
97
|
color: t.b3BusinnessDays,
|
|
98
98
|
timed: !1
|
|
99
99
|
});
|
|
100
100
|
return a;
|
|
101
101
|
})();
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function X(e, t, s) {
|
|
104
104
|
const { credentials: n, myArray: i, chunk: r, fn_to_call: o } = e, a = [];
|
|
105
105
|
for (let c = 0; c < i.length; c += r) {
|
|
106
106
|
const d = i.slice(c, c + r);
|
|
107
107
|
a.push(d);
|
|
108
108
|
}
|
|
109
|
-
|
|
109
|
+
q(
|
|
110
110
|
{ credentials: n, chunks: a, initLoop: 0, fn: o },
|
|
111
111
|
(c) => {
|
|
112
112
|
t && t(c);
|
|
@@ -116,7 +116,7 @@ function W(e, t, s) {
|
|
|
116
116
|
}
|
|
117
117
|
);
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function q(e, t, s) {
|
|
120
120
|
const { credentials: n, chunks: i, initLoop: r, fn: o } = e, a = (c) => {
|
|
121
121
|
o(
|
|
122
122
|
n,
|
|
@@ -134,7 +134,7 @@ function X(e, t, s) {
|
|
|
134
134
|
};
|
|
135
135
|
a(r);
|
|
136
136
|
}
|
|
137
|
-
async function
|
|
137
|
+
async function _e(e, t, s = !0) {
|
|
138
138
|
const n = e.events.findIndex((i) => i.uuid === t.uuid);
|
|
139
139
|
return n === -1 ? e.events.push(t) : s ? e.events[n] = t : e.events.splice(n, 1), e.length > 0 && e.sort((i, r) => i.start - r.start), e;
|
|
140
140
|
}
|
|
@@ -143,7 +143,7 @@ function m(e, t) {
|
|
|
143
143
|
s.authenticatedRequest(e, t);
|
|
144
144
|
});
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function we(e, t, s) {
|
|
147
147
|
$(["DS/DataDragAndDrop/DataDragAndDrop"], (n) => {
|
|
148
148
|
n.draggable(e, {
|
|
149
149
|
data: t,
|
|
@@ -151,27 +151,27 @@ function _e(e, t, s) {
|
|
|
151
151
|
});
|
|
152
152
|
});
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function Ce(e, t = void 0) {
|
|
155
155
|
$(["DS/TagNavigatorProxy/TagNavigatorProxy"], (s) => {
|
|
156
156
|
let n;
|
|
157
157
|
n === void 0 && (n = s.createProxy({
|
|
158
|
-
widgetId:
|
|
158
|
+
widgetId: D.id,
|
|
159
159
|
filteringMode: "WithFilteringServices"
|
|
160
160
|
}), t !== void 0 && n.addEvent("onFilterSubjectsChange", t)), n.setSubjectsTags(e);
|
|
161
161
|
});
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function Te(e, t) {
|
|
164
164
|
$(["DS/DataDragAndDrop/DataDragAndDrop"], (s) => {
|
|
165
165
|
s.droppable(e, {
|
|
166
166
|
drop: t
|
|
167
167
|
});
|
|
168
168
|
});
|
|
169
169
|
}
|
|
170
|
-
async function
|
|
170
|
+
async function be(e, t = void 0, s = void 0) {
|
|
171
171
|
await $(
|
|
172
172
|
["DS/i3DXCompassServices/i3DXCompassServices"],
|
|
173
173
|
(n) => {
|
|
174
|
-
(!e || e === "") && (e =
|
|
174
|
+
(!e || e === "") && (e = D.getValue("PlatFormInstanceId")), (!e || e === "") && (e = void 0), t && t(
|
|
175
175
|
n.getPlatformServices({
|
|
176
176
|
platformId: e,
|
|
177
177
|
onComplete: t,
|
|
@@ -215,7 +215,7 @@ function b(e, t = void 0, s = void 0) {
|
|
|
215
215
|
});
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function Oe(e, t = void 0, s = void 0) {
|
|
219
219
|
if (e.tenant) {
|
|
220
220
|
const n = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dpassport&platformId=${e.tenant}`;
|
|
221
221
|
m(n, {
|
|
@@ -232,7 +232,7 @@ function be(e, t = void 0, s = void 0) {
|
|
|
232
232
|
});
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
|
-
function
|
|
235
|
+
function $e(e, t, s) {
|
|
236
236
|
const n = {
|
|
237
237
|
base: `${e.space}`,
|
|
238
238
|
uri: "/resources/AppsMngt/api/custom/applications",
|
|
@@ -258,7 +258,7 @@ function Oe(e, t, s) {
|
|
|
258
258
|
}
|
|
259
259
|
});
|
|
260
260
|
}
|
|
261
|
-
function
|
|
261
|
+
function Ie(e, t = void 0, s = void 0) {
|
|
262
262
|
let n = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&limit=-1`;
|
|
263
263
|
m(n, {
|
|
264
264
|
onComplete(i, r, o) {
|
|
@@ -271,7 +271,7 @@ function $e(e, t = void 0, s = void 0) {
|
|
|
271
271
|
}
|
|
272
272
|
});
|
|
273
273
|
}
|
|
274
|
-
function
|
|
274
|
+
function ve(e, t, s = void 0, n = void 0) {
|
|
275
275
|
let i = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&id=${t}`;
|
|
276
276
|
m(i, {
|
|
277
277
|
onComplete(r, o, a) {
|
|
@@ -284,11 +284,11 @@ function Ie(e, t, s = void 0, n = void 0) {
|
|
|
284
284
|
}
|
|
285
285
|
});
|
|
286
286
|
}
|
|
287
|
-
const
|
|
287
|
+
const U = {
|
|
288
288
|
"Content-Type": "application/json",
|
|
289
289
|
Accept: "application/json,text/javascript,*/*"
|
|
290
290
|
};
|
|
291
|
-
function
|
|
291
|
+
function Ne(e, t, s = void 0, n = void 0) {
|
|
292
292
|
const { space: i, currentUser: r } = e, a = `${i}${{
|
|
293
293
|
URIUGr: "/3drdfpersist/resources/v1/usersgroup"
|
|
294
294
|
}.URIUGr}`, c = {
|
|
@@ -305,7 +305,7 @@ function ve(e, t, s = void 0, n = void 0) {
|
|
|
305
305
|
};
|
|
306
306
|
m(a, {
|
|
307
307
|
method: "POST",
|
|
308
|
-
headers:
|
|
308
|
+
headers: U,
|
|
309
309
|
data: JSON.stringify(c),
|
|
310
310
|
onComplete(d) {
|
|
311
311
|
s && s(JSON.parse(d));
|
|
@@ -317,7 +317,7 @@ function ve(e, t, s = void 0, n = void 0) {
|
|
|
317
317
|
}
|
|
318
318
|
});
|
|
319
319
|
}
|
|
320
|
-
function
|
|
320
|
+
function ke(e, t, s = void 0, n = void 0) {
|
|
321
321
|
const { space: i, tenant: r } = e, o = i, a = `/3drdfpersist/v1/resources/${t}`, c = `?$mask=dsaccess:Mask.GroupUI.Properties&tenant=dstenant:${r}`, d = `${o}${a}${c}`;
|
|
322
322
|
m(d, {
|
|
323
323
|
opts: {
|
|
@@ -336,7 +336,7 @@ function Ne(e, t, s = void 0, n = void 0) {
|
|
|
336
336
|
}
|
|
337
337
|
});
|
|
338
338
|
}
|
|
339
|
-
function
|
|
339
|
+
function H(e, t = void 0, s = void 0) {
|
|
340
340
|
const { space: n, tenant: i } = e, r = n, o = "/3drdfpersist/resources/v1/option-sets/dsusergroup:ListOfGroupResponsibilities/options", a = `?tenant=dstenant:${i}`, c = {
|
|
341
341
|
method: "GET",
|
|
342
342
|
Accept: "application/json,*/*,test/javascript"
|
|
@@ -352,7 +352,7 @@ function q(e, t = void 0, s = void 0) {
|
|
|
352
352
|
}
|
|
353
353
|
});
|
|
354
354
|
}
|
|
355
|
-
function
|
|
355
|
+
function Ae(e, t = void 0, s = void 0) {
|
|
356
356
|
const { space: n, currentUser: i } = e, a = `${n}/3drdfpersist/resources/v1/usersgroup?select=uri,title,description,owner,members,pending_members,creation_date,modification_date,visibility`, d = { method: "GET", headers: {
|
|
357
357
|
"Content-Type": "application/json",
|
|
358
358
|
Accept: "application/json,text/javascript,*/*"
|
|
@@ -363,8 +363,8 @@ function ke(e, t = void 0, s = void 0) {
|
|
|
363
363
|
onComplete(p) {
|
|
364
364
|
const u = JSON.parse(p), f = {}, l = u.groups.filter((g) => g.uri.startsWith("uuid:"));
|
|
365
365
|
if (i && Object.keys(i).length > 0) {
|
|
366
|
-
const g = l.filter((S) => S.owner === i.email),
|
|
367
|
-
f.iam =
|
|
366
|
+
const g = l.filter((S) => S.owner === i.email), y = l.filter((S) => S.members.includes(i.email)), h = g.concat(y);
|
|
367
|
+
f.iam = h, f.UG = l, f.iamMember = y, H(
|
|
368
368
|
e,
|
|
369
369
|
(S) => {
|
|
370
370
|
f.rules = S, t && t(f);
|
|
@@ -383,13 +383,13 @@ function ke(e, t = void 0, s = void 0) {
|
|
|
383
383
|
console.log(p);
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
|
-
function
|
|
386
|
+
function je(e, t) {
|
|
387
387
|
const { space: s } = e, i = `${s}/3drdfpersist/resources/v1/usersgroup/${t}`;
|
|
388
388
|
m(i, {
|
|
389
389
|
method: "DELETE"
|
|
390
390
|
});
|
|
391
391
|
}
|
|
392
|
-
function
|
|
392
|
+
function Fe(e, t, s, n = void 0, i = void 0) {
|
|
393
393
|
const { space: r, tenant: o } = e, a = {
|
|
394
394
|
URITI: "/3drdfpersist/resources/v1/template-instances",
|
|
395
395
|
URIUGr: "/3drdfpersist/resources/v1/usersgroup",
|
|
@@ -400,7 +400,7 @@ function je(e, t, s, n = void 0, i = void 0) {
|
|
|
400
400
|
OPTsTenant: `tenant=dstenant:${o}`
|
|
401
401
|
}, c = s, d = `${r}${a.URIUGr}/${t}`, p = JSON.stringify(c);
|
|
402
402
|
m(d, {
|
|
403
|
-
headers:
|
|
403
|
+
headers: U,
|
|
404
404
|
method: "PATCH",
|
|
405
405
|
data: p,
|
|
406
406
|
type: "json",
|
|
@@ -412,11 +412,11 @@ function je(e, t, s, n = void 0, i = void 0) {
|
|
|
412
412
|
}
|
|
413
413
|
});
|
|
414
414
|
}
|
|
415
|
-
function
|
|
415
|
+
function Ue(e, t, s, n = void 0, i = void 0) {
|
|
416
416
|
const { space: r } = e, a = `${r}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
|
|
417
417
|
m(a, {
|
|
418
418
|
method: "PATCH",
|
|
419
|
-
headers:
|
|
419
|
+
headers: U,
|
|
420
420
|
data: JSON.stringify(s),
|
|
421
421
|
type: "json",
|
|
422
422
|
onComplete(d) {
|
|
@@ -427,7 +427,7 @@ function Fe(e, t, s, n = void 0, i = void 0) {
|
|
|
427
427
|
}
|
|
428
428
|
});
|
|
429
429
|
}
|
|
430
|
-
function
|
|
430
|
+
function xe(e, t, s = void 0, n = void 0) {
|
|
431
431
|
const { space: i } = e, o = `${i}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
|
|
432
432
|
m(o, {
|
|
433
433
|
opts: {
|
|
@@ -445,7 +445,7 @@ function Ue(e, t, s = void 0, n = void 0) {
|
|
|
445
445
|
}
|
|
446
446
|
});
|
|
447
447
|
}
|
|
448
|
-
async function
|
|
448
|
+
async function z(e, t, s) {
|
|
449
449
|
if (e.space) {
|
|
450
450
|
const n = `${e.space}/resources/v1/application/CSRF`;
|
|
451
451
|
m(n, {
|
|
@@ -458,11 +458,11 @@ async function H(e, t, s) {
|
|
|
458
458
|
});
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
|
-
var
|
|
462
|
-
function
|
|
461
|
+
var N = {};
|
|
462
|
+
function Q(e, t) {
|
|
463
463
|
return Object.prototype.hasOwnProperty.call(e, t);
|
|
464
464
|
}
|
|
465
|
-
var
|
|
465
|
+
var Z = function(e, t, s, n) {
|
|
466
466
|
t = t || "&", s = s || "=";
|
|
467
467
|
var i = {};
|
|
468
468
|
if (typeof e != "string" || e.length === 0)
|
|
@@ -475,10 +475,10 @@ var Q = function(e, t, s, n) {
|
|
|
475
475
|
o > 0 && a > o && (a = o);
|
|
476
476
|
for (var c = 0; c < a; ++c) {
|
|
477
477
|
var d = e[c].replace(r, "%20"), p = d.indexOf(s), u, f, l, g;
|
|
478
|
-
p >= 0 ? (u = d.substr(0, p), f = d.substr(p + 1)) : (u = d, f = ""), l = decodeURIComponent(u), g = decodeURIComponent(f),
|
|
478
|
+
p >= 0 ? (u = d.substr(0, p), f = d.substr(p + 1)) : (u = d, f = ""), l = decodeURIComponent(u), g = decodeURIComponent(f), Q(i, l) ? Array.isArray(i[l]) ? i[l].push(g) : i[l] = [i[l], g] : i[l] = g;
|
|
479
479
|
}
|
|
480
480
|
return i;
|
|
481
|
-
},
|
|
481
|
+
}, I = function(e) {
|
|
482
482
|
switch (typeof e) {
|
|
483
483
|
case "string":
|
|
484
484
|
return e;
|
|
@@ -489,17 +489,17 @@ var Q = function(e, t, s, n) {
|
|
|
489
489
|
default:
|
|
490
490
|
return "";
|
|
491
491
|
}
|
|
492
|
-
},
|
|
492
|
+
}, ee = function(e, t, s, n) {
|
|
493
493
|
return t = t || "&", s = s || "=", e === null && (e = void 0), typeof e == "object" ? Object.keys(e).map(function(i) {
|
|
494
|
-
var r = encodeURIComponent(
|
|
494
|
+
var r = encodeURIComponent(I(i)) + s;
|
|
495
495
|
return Array.isArray(e[i]) ? e[i].map(function(o) {
|
|
496
|
-
return r + encodeURIComponent(
|
|
497
|
-
}).join(t) : r + encodeURIComponent(
|
|
498
|
-
}).filter(Boolean).join(t) : n ? encodeURIComponent(
|
|
496
|
+
return r + encodeURIComponent(I(o));
|
|
497
|
+
}).join(t) : r + encodeURIComponent(I(e[i]));
|
|
498
|
+
}).filter(Boolean).join(t) : n ? encodeURIComponent(I(n)) + s + encodeURIComponent(I(e)) : "";
|
|
499
499
|
};
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
async function
|
|
500
|
+
N.decode = N.parse = Z;
|
|
501
|
+
N.encode = N.stringify = ee;
|
|
502
|
+
async function M(e, t = void 0, s = void 0, n = void 0) {
|
|
503
503
|
const i = e.space;
|
|
504
504
|
if (t === void 0) {
|
|
505
505
|
console.log("Le paramètre docid est obligatoire");
|
|
@@ -516,13 +516,13 @@ async function L(e, t = void 0, s = void 0, n = void 0) {
|
|
|
516
516
|
}
|
|
517
517
|
});
|
|
518
518
|
}
|
|
519
|
-
async function
|
|
519
|
+
async function Pe(e, t = void 0, s = void 0, n = void 0) {
|
|
520
520
|
const i = e.space;
|
|
521
521
|
if (t === void 0) {
|
|
522
522
|
console.log("Le paramètre docids est obligatoire");
|
|
523
523
|
return;
|
|
524
524
|
}
|
|
525
|
-
let r = `${i}/resources/v1/modeler/documents/ids?$include=!files,!ownerInfo,!originatorInfo,!relOwnerInfo'`, o =
|
|
525
|
+
let r = `${i}/resources/v1/modeler/documents/ids?$include=!files,!ownerInfo,!originatorInfo,!relOwnerInfo'`, o = N.stringify({
|
|
526
526
|
$ids: t.toString().replace('"', "").replace("[", "").replace("]", "")
|
|
527
527
|
});
|
|
528
528
|
m(r, {
|
|
@@ -540,7 +540,7 @@ async function xe(e, t = void 0, s = void 0, n = void 0) {
|
|
|
540
540
|
}
|
|
541
541
|
});
|
|
542
542
|
}
|
|
543
|
-
function
|
|
543
|
+
function k(e, t = void 0, s = void 0) {
|
|
544
544
|
if (e.objID && e.objID !== "") {
|
|
545
545
|
let n = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
|
|
546
546
|
m(n, {
|
|
@@ -582,9 +582,9 @@ function O(e, t = void 0, s = void 0) {
|
|
|
582
582
|
} else
|
|
583
583
|
s && s("ERROR : url du 3DSpace non défini.");
|
|
584
584
|
}
|
|
585
|
-
function
|
|
585
|
+
function x(e, t = void 0, s = void 0) {
|
|
586
586
|
let n = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
|
|
587
|
-
|
|
587
|
+
k(
|
|
588
588
|
e,
|
|
589
589
|
(i) => {
|
|
590
590
|
m(n, {
|
|
@@ -606,7 +606,7 @@ function U(e, t = void 0, s = void 0) {
|
|
|
606
606
|
}
|
|
607
607
|
);
|
|
608
608
|
}
|
|
609
|
-
function
|
|
609
|
+
function Re(e, t, s, n = void 0, i = void 0) {
|
|
610
610
|
const r = `${e.space}/resources/v1/modeler/documents/${t}/files/DownloadTicket`;
|
|
611
611
|
s || (s = e.token), m(r, {
|
|
612
612
|
method: "PUT",
|
|
@@ -628,8 +628,8 @@ function Pe(e, t, s, n = void 0, i = void 0) {
|
|
|
628
628
|
}
|
|
629
629
|
});
|
|
630
630
|
}
|
|
631
|
-
function
|
|
632
|
-
const a = () =>
|
|
631
|
+
function J(e, t, s, n, i, r = void 0, o = void 0) {
|
|
632
|
+
const a = () => te(
|
|
633
633
|
e,
|
|
634
634
|
t,
|
|
635
635
|
s,
|
|
@@ -639,7 +639,7 @@ function M(e, t, s, n, i, r = void 0, o = void 0) {
|
|
|
639
639
|
r,
|
|
640
640
|
o
|
|
641
641
|
);
|
|
642
|
-
e.token ? a() :
|
|
642
|
+
e.token ? a() : k(
|
|
643
643
|
e,
|
|
644
644
|
t,
|
|
645
645
|
(c) => {
|
|
@@ -647,7 +647,7 @@ function M(e, t, s, n, i, r = void 0, o = void 0) {
|
|
|
647
647
|
}
|
|
648
648
|
);
|
|
649
649
|
}
|
|
650
|
-
function
|
|
650
|
+
function te(e, t, s, n, i, r, o = void 0, a = void 0) {
|
|
651
651
|
const c = e.space + `/resources/v1/modeler/documents/${t}/files/CheckinTicket`;
|
|
652
652
|
m(c, {
|
|
653
653
|
method: "PUT",
|
|
@@ -656,12 +656,12 @@ function ee(e, t, s, n, i, r, o = void 0, a = void 0) {
|
|
|
656
656
|
},
|
|
657
657
|
onComplete(d, p, u) {
|
|
658
658
|
const f = JSON.parse(d).csrf, l = JSON.parse(d).data[0].dataelements, g = new FormData();
|
|
659
|
-
let
|
|
660
|
-
n instanceof Blob ?
|
|
659
|
+
let y;
|
|
660
|
+
n instanceof Blob ? y = n : y = new Blob([n], {
|
|
661
661
|
type: "text/plain"
|
|
662
|
-
}), g.append("__fcs__jobTicket", l.ticket), g.append("file_0",
|
|
663
|
-
const
|
|
664
|
-
|
|
662
|
+
}), g.append("__fcs__jobTicket", l.ticket), g.append("file_0", y, i);
|
|
663
|
+
const h = {};
|
|
664
|
+
h.method = "POST", h.data = g, h.onComplete = function(S) {
|
|
665
665
|
let _ = {
|
|
666
666
|
method: "PUT",
|
|
667
667
|
headers: {
|
|
@@ -699,19 +699,19 @@ function ee(e, t, s, n, i, r, o = void 0, a = void 0) {
|
|
|
699
699
|
e.space + `/resources/v1/modeler/documents/?$include=versions&tenant=${w}&e6w-lang=en&e6w-timezone=-120&xrequestedwith=xmlhttprequest`,
|
|
700
700
|
_
|
|
701
701
|
);
|
|
702
|
-
},
|
|
702
|
+
}, h.onFailure = function(S) {
|
|
703
703
|
a && a(S);
|
|
704
|
-
},
|
|
704
|
+
}, h.timeout = 0, m(l.ticketURL, h);
|
|
705
705
|
}
|
|
706
706
|
});
|
|
707
707
|
}
|
|
708
|
-
async function
|
|
709
|
-
e.space, e.token, e.ctx,
|
|
708
|
+
async function De(e, t, s, n = void 0, i = void 0) {
|
|
709
|
+
e.space, e.token, e.ctx, M(
|
|
710
710
|
e,
|
|
711
711
|
t,
|
|
712
712
|
(r) => {
|
|
713
713
|
const o = r.data[0].relateddata.files[0].id, a = r.data[0].dataelements.secondaryTitle && r.data[0].dataelements.secondaryTitle !== "" ? r.data[0].dataelements.secondaryTitle : r.data[0].dataelements.title;
|
|
714
|
-
|
|
714
|
+
J(
|
|
715
715
|
e,
|
|
716
716
|
t,
|
|
717
717
|
o,
|
|
@@ -730,7 +730,7 @@ async function Re(e, t, s, n = void 0, i = void 0) {
|
|
|
730
730
|
}
|
|
731
731
|
);
|
|
732
732
|
}
|
|
733
|
-
async function
|
|
733
|
+
async function Le(e, t, s, n, i = void 0, r = void 0) {
|
|
734
734
|
const o = e.space, a = e.token, c = e.ctx;
|
|
735
735
|
if (o !== "") {
|
|
736
736
|
let d = `${o}/resources/v1/modeler/documents/files/CheckinTicket`;
|
|
@@ -740,69 +740,72 @@ async function De(e, t, s, n, i = void 0, r = void 0) {
|
|
|
740
740
|
ENO_CSRF_TOKEN: a
|
|
741
741
|
},
|
|
742
742
|
onComplete(p, u, f) {
|
|
743
|
-
|
|
743
|
+
const l = JSON.parse(p).csrf;
|
|
744
|
+
let g = JSON.parse(p).data[0].dataelements, y = new FormData(), h;
|
|
744
745
|
t instanceof Blob ? h = t : h = new Blob([t], {
|
|
745
746
|
type: "text/plain"
|
|
746
|
-
}),
|
|
747
|
-
const
|
|
748
|
-
let
|
|
747
|
+
}), y.append("__fcs__jobTicket", g.ticket), y.append("file_0", h, s);
|
|
748
|
+
const S = (w) => w.indexOf(".") === -1 ? w : w.split(".").slice(0, -1).join(".");
|
|
749
|
+
let _ = {
|
|
749
750
|
method: "POST",
|
|
750
|
-
data:
|
|
751
|
-
onComplete(
|
|
752
|
-
let
|
|
751
|
+
data: y,
|
|
752
|
+
onComplete(w) {
|
|
753
|
+
let T = L(), j = {
|
|
753
754
|
method: "POST",
|
|
754
755
|
headers: {
|
|
755
756
|
ENO_CSRF_TOKEN: a,
|
|
756
757
|
Accept: "application/json",
|
|
757
|
-
"Content-Type": "application/json"
|
|
758
|
+
"Content-Type": "application/json",
|
|
759
|
+
SecurityContext: encodeURIComponent("ctx::" + c)
|
|
758
760
|
},
|
|
759
761
|
data: JSON.stringify({
|
|
762
|
+
csrf: l,
|
|
760
763
|
data: [
|
|
761
764
|
{
|
|
762
765
|
type: "Document",
|
|
763
766
|
dataelements: {
|
|
764
|
-
title:
|
|
765
|
-
description: n
|
|
766
|
-
policy: "Document Release"
|
|
767
|
+
title: S(s),
|
|
768
|
+
description: n
|
|
769
|
+
// policy: "Document Release",
|
|
767
770
|
},
|
|
768
771
|
relateddata: {
|
|
769
772
|
files: [
|
|
770
773
|
{
|
|
771
774
|
dataelements: {
|
|
772
775
|
title: s,
|
|
773
|
-
receipt:
|
|
776
|
+
receipt: w
|
|
774
777
|
}
|
|
775
778
|
}
|
|
776
779
|
]
|
|
777
780
|
},
|
|
778
|
-
tempId:
|
|
781
|
+
tempId: T
|
|
779
782
|
}
|
|
780
783
|
]
|
|
781
784
|
}),
|
|
782
785
|
type: "json",
|
|
783
|
-
onComplete(
|
|
784
|
-
i && i(
|
|
786
|
+
onComplete(F) {
|
|
787
|
+
i && i(F);
|
|
785
788
|
},
|
|
786
|
-
onFailure(
|
|
787
|
-
r && r(
|
|
789
|
+
onFailure(F) {
|
|
790
|
+
r && r(F);
|
|
788
791
|
}
|
|
789
792
|
};
|
|
790
793
|
m(
|
|
791
|
-
o + "/resources/v1/modeler/documents/?
|
|
792
|
-
|
|
794
|
+
o + "/resources/v1/modeler/documents/?e6w-lang=fr&e6w-timezone=-120&xrequestedwith=xmlhttprequest",
|
|
795
|
+
j
|
|
793
796
|
);
|
|
794
797
|
},
|
|
795
|
-
onFailure(
|
|
796
|
-
r && r(
|
|
798
|
+
onFailure(w) {
|
|
799
|
+
r && r(w);
|
|
797
800
|
},
|
|
798
801
|
timeout: 0
|
|
799
802
|
};
|
|
800
|
-
m(
|
|
803
|
+
m(g.ticketURL, _);
|
|
801
804
|
}
|
|
802
805
|
});
|
|
803
806
|
}
|
|
804
807
|
}
|
|
805
|
-
function
|
|
808
|
+
function A(e, t = void 0, s = void 0, n = void 0, i = void 0, r = void 0, o = !1) {
|
|
806
809
|
const a = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
|
|
807
810
|
m(a, {
|
|
808
811
|
method: "GET",
|
|
@@ -810,30 +813,30 @@ function j(e, t = void 0, s = void 0, n = void 0, i = void 0, r = void 0, o = !1
|
|
|
810
813
|
const d = JSON.parse(c);
|
|
811
814
|
let p = "", u, f, l;
|
|
812
815
|
if (t) {
|
|
813
|
-
let g = d.collabspaces.find((
|
|
816
|
+
let g = d.collabspaces.find((y) => y.title === t);
|
|
814
817
|
if (g) {
|
|
815
818
|
u = t;
|
|
816
|
-
let
|
|
817
|
-
|
|
818
|
-
(
|
|
819
|
-
(w) => w.organization.pid ===
|
|
819
|
+
let y = g.couples;
|
|
820
|
+
y = y.filter(
|
|
821
|
+
(h, S, _) => S === _.findIndex(
|
|
822
|
+
(w) => w.organization.pid === h.organization.pid && w.role.pid === h.role.pid
|
|
820
823
|
)
|
|
821
|
-
), s && (Array.isArray(s) ? s.forEach((
|
|
822
|
-
l ||
|
|
823
|
-
if (
|
|
824
|
-
l =
|
|
825
|
-
else if (
|
|
826
|
-
let _ =
|
|
827
|
-
(w) => w.role.name ===
|
|
824
|
+
), s && (Array.isArray(s) ? s.forEach((h) => {
|
|
825
|
+
l || y.forEach((S) => {
|
|
826
|
+
if (h === S.role.name && n === S.organization.title)
|
|
827
|
+
l = h, f = n;
|
|
828
|
+
else if (h === S.role.name) {
|
|
829
|
+
let _ = y.filter(
|
|
830
|
+
(w) => w.role.name === h
|
|
828
831
|
);
|
|
829
832
|
_.length === 1 ? (l = _[0].role.name, f = _[0].organization.title) : r(_);
|
|
830
833
|
}
|
|
831
834
|
});
|
|
832
|
-
}) :
|
|
833
|
-
if (s ===
|
|
835
|
+
}) : y.forEach((h) => {
|
|
836
|
+
if (s === h.role.name && n === h.organization.title)
|
|
834
837
|
l = s, f = n;
|
|
835
|
-
else if (s ===
|
|
836
|
-
let S =
|
|
838
|
+
else if (s === h.role.name) {
|
|
839
|
+
let S = y.filter(
|
|
837
840
|
(_) => _.role.name === s
|
|
838
841
|
);
|
|
839
842
|
S.length === 1 ? (l = S[0].role.name, f = S[0].organization.title) : r(S);
|
|
@@ -851,14 +854,14 @@ function j(e, t = void 0, s = void 0, n = void 0, i = void 0, r = void 0, o = !1
|
|
|
851
854
|
}
|
|
852
855
|
});
|
|
853
856
|
}
|
|
854
|
-
async function
|
|
857
|
+
async function G(e, t = void 0, s = void 0) {
|
|
855
858
|
return (!e.objID || e.objID === "") && (console.warn(
|
|
856
859
|
"_3DSpace_download_doc() / Le paramètre objectId est obligatoire"
|
|
857
860
|
), s && s(
|
|
858
861
|
"_3DSpace_download_doc() / Le paramètre objectId est obligatoire"
|
|
859
862
|
)), (e.space === "" || !e.space) && (console.warn(
|
|
860
863
|
"_3DSpace_download_doc() / Le paramètre space est obligatoire"
|
|
861
|
-
), s && s("_3DSpace_download_doc() / Le paramètre space est obligatoire")), (e.token === "" || !e.token) &&
|
|
864
|
+
), s && s("_3DSpace_download_doc() / Le paramètre space est obligatoire")), (e.token === "" || !e.token) && z(
|
|
862
865
|
e,
|
|
863
866
|
(n) => {
|
|
864
867
|
e.token = n;
|
|
@@ -867,7 +870,7 @@ async function J(e, t = void 0, s = void 0) {
|
|
|
867
870
|
console.log("☠️ error => ", n);
|
|
868
871
|
}
|
|
869
872
|
), new Promise((n, i) => {
|
|
870
|
-
|
|
873
|
+
x(
|
|
871
874
|
e,
|
|
872
875
|
(r) => {
|
|
873
876
|
e?.returnType === "blob" ? (console.log("ticketURL blob", r), fetch(r).then((o) => o.blob()).then((o) => {
|
|
@@ -903,12 +906,12 @@ async function J(e, t = void 0, s = void 0) {
|
|
|
903
906
|
);
|
|
904
907
|
});
|
|
905
908
|
}
|
|
906
|
-
async function
|
|
907
|
-
typeof t < "u" && Array.isArray(t) && t?.length > 0 ?
|
|
909
|
+
async function ne(e, t, s = void 0, n = void 0) {
|
|
910
|
+
typeof t < "u" && Array.isArray(t) && t?.length > 0 ? X({
|
|
908
911
|
credentials: e,
|
|
909
912
|
myArray: t,
|
|
910
913
|
chunk: 80,
|
|
911
|
-
fn_to_call:
|
|
914
|
+
fn_to_call: se
|
|
912
915
|
}, (r) => {
|
|
913
916
|
s && s(r);
|
|
914
917
|
}) : (console.warn(
|
|
@@ -917,7 +920,7 @@ async function te(e, t, s = void 0, n = void 0) {
|
|
|
917
920
|
"La liste d'objects dans la fonction _3DSpace_download_multidoc est vide ou non défini."
|
|
918
921
|
));
|
|
919
922
|
}
|
|
920
|
-
function
|
|
923
|
+
function se(e, t, s = void 0, n = void 0, i = void 0) {
|
|
921
924
|
const r = [];
|
|
922
925
|
t.forEach((c) => {
|
|
923
926
|
r.push({
|
|
@@ -943,17 +946,17 @@ function ne(e, t, s = void 0, n = void 0, i = void 0) {
|
|
|
943
946
|
const u = p.dataelements.fileName, f = p.dataelements.ticketURL;
|
|
944
947
|
m(f, {
|
|
945
948
|
onComplete: (l, g) => {
|
|
946
|
-
let
|
|
949
|
+
let y;
|
|
947
950
|
try {
|
|
948
|
-
|
|
951
|
+
y = JSON.parse(l);
|
|
949
952
|
} catch {
|
|
950
|
-
|
|
953
|
+
y = l.blob();
|
|
951
954
|
}
|
|
952
955
|
n && n({
|
|
953
956
|
objectId: p.id,
|
|
954
957
|
headers: g,
|
|
955
958
|
fileName: u,
|
|
956
|
-
data:
|
|
959
|
+
data: y
|
|
957
960
|
});
|
|
958
961
|
},
|
|
959
962
|
onFailure: (l) => {
|
|
@@ -970,7 +973,7 @@ function ne(e, t, s = void 0, n = void 0, i = void 0) {
|
|
|
970
973
|
}
|
|
971
974
|
});
|
|
972
975
|
}
|
|
973
|
-
function
|
|
976
|
+
function Me(e, t, s = void 0, n = void 0) {
|
|
974
977
|
return new Promise((i) => {
|
|
975
978
|
if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
|
|
976
979
|
const r = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
|
|
@@ -1001,7 +1004,7 @@ function Le(e, t, s = void 0, n = void 0) {
|
|
|
1001
1004
|
}
|
|
1002
1005
|
});
|
|
1003
1006
|
}
|
|
1004
|
-
function
|
|
1007
|
+
function Je(e, t, s, n = void 0, i = void 0) {
|
|
1005
1008
|
return new Promise((r) => {
|
|
1006
1009
|
if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
|
|
1007
1010
|
const o = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
|
|
@@ -1033,11 +1036,11 @@ function Me(e, t, s, n = void 0, i = void 0) {
|
|
|
1033
1036
|
}
|
|
1034
1037
|
});
|
|
1035
1038
|
}
|
|
1036
|
-
function
|
|
1039
|
+
function Ge(e, t, s = void 0, n = void 0) {
|
|
1037
1040
|
return new Promise((i) => {
|
|
1038
1041
|
if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
|
|
1039
1042
|
const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
|
|
1040
|
-
|
|
1043
|
+
A(
|
|
1041
1044
|
e.space,
|
|
1042
1045
|
"ESPACE COMMUN",
|
|
1043
1046
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -1074,11 +1077,11 @@ function Je(e, t, s = void 0, n = void 0) {
|
|
|
1074
1077
|
}
|
|
1075
1078
|
});
|
|
1076
1079
|
}
|
|
1077
|
-
function
|
|
1080
|
+
function Ee(e, t, s = void 0, n = void 0) {
|
|
1078
1081
|
return new Promise((i) => {
|
|
1079
1082
|
if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
|
|
1080
1083
|
const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
|
|
1081
|
-
|
|
1084
|
+
A(
|
|
1082
1085
|
e.space,
|
|
1083
1086
|
"ESPACE COMMUN",
|
|
1084
1087
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -1121,11 +1124,11 @@ function Ge(e, t, s = void 0, n = void 0) {
|
|
|
1121
1124
|
}
|
|
1122
1125
|
});
|
|
1123
1126
|
}
|
|
1124
|
-
function
|
|
1127
|
+
function Ke(e, t, s, n = void 0, i = void 0) {
|
|
1125
1128
|
return new Promise((r) => {
|
|
1126
1129
|
if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
|
|
1127
1130
|
const o = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
|
|
1128
|
-
|
|
1131
|
+
A(
|
|
1129
1132
|
e.space,
|
|
1130
1133
|
"ESPACE COMMUN",
|
|
1131
1134
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -1168,7 +1171,7 @@ function Ee(e, t, s, n = void 0, i = void 0) {
|
|
|
1168
1171
|
}
|
|
1169
1172
|
});
|
|
1170
1173
|
}
|
|
1171
|
-
function
|
|
1174
|
+
function Be(e, t, s, n, i = void 0, r = void 0) {
|
|
1172
1175
|
return new Promise((o) => {
|
|
1173
1176
|
const a = `${e.space}/resources/v1/modeler/dsbks/dsbks:Bookmark`;
|
|
1174
1177
|
let c = {
|
|
@@ -1201,7 +1204,7 @@ function Ke(e, t, s, n, i = void 0, r = void 0) {
|
|
|
1201
1204
|
m(a, p);
|
|
1202
1205
|
});
|
|
1203
1206
|
}
|
|
1204
|
-
function
|
|
1207
|
+
function Ve(e, t, s, n, i = void 0, r = void 0) {
|
|
1205
1208
|
return console.log("credentials", e), new Promise((o) => {
|
|
1206
1209
|
`${e.space}`, JSON.stringify({
|
|
1207
1210
|
csrf: {
|
|
@@ -1225,7 +1228,7 @@ function Be(e, t, s, n, i = void 0, r = void 0) {
|
|
|
1225
1228
|
});
|
|
1226
1229
|
}
|
|
1227
1230
|
//!SECTION
|
|
1228
|
-
function
|
|
1231
|
+
function We(e, t = void 0, s = void 0) {
|
|
1229
1232
|
const n = {
|
|
1230
1233
|
base: `${e.space}`,
|
|
1231
1234
|
uri: "/resources/bps/cspaces",
|
|
@@ -1246,8 +1249,8 @@ function Ve(e, t = void 0, s = void 0) {
|
|
|
1246
1249
|
}
|
|
1247
1250
|
});
|
|
1248
1251
|
}
|
|
1249
|
-
function
|
|
1250
|
-
|
|
1252
|
+
function Xe(e, t, s, n) {
|
|
1253
|
+
x(
|
|
1251
1254
|
e.space,
|
|
1252
1255
|
t,
|
|
1253
1256
|
(i) => {
|
|
@@ -1263,9 +1266,9 @@ function We(e, t, s, n) {
|
|
|
1263
1266
|
}
|
|
1264
1267
|
);
|
|
1265
1268
|
}
|
|
1266
|
-
async function
|
|
1269
|
+
async function qe(e, t, s = void 0, n = void 0) {
|
|
1267
1270
|
return new Promise((i) => {
|
|
1268
|
-
|
|
1271
|
+
x(e, t, (r) => {
|
|
1269
1272
|
m(r, {
|
|
1270
1273
|
onComplete: (o, a, c) => (i(JSON.parse(o)), s && s(JSON.parse(o), a, c), i),
|
|
1271
1274
|
onFailure: (o, a, c) => {
|
|
@@ -1277,12 +1280,12 @@ async function Xe(e, t, s = void 0, n = void 0) {
|
|
|
1277
1280
|
}
|
|
1278
1281
|
function Ye(e, t, s, n = void 0, i = void 0) {
|
|
1279
1282
|
const r = new Blob([JSON.stringify(t)], { type: "text/plain" });
|
|
1280
|
-
|
|
1283
|
+
k(
|
|
1281
1284
|
e,
|
|
1282
1285
|
s,
|
|
1283
1286
|
(o) => {
|
|
1284
1287
|
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;
|
|
1285
|
-
|
|
1288
|
+
J(
|
|
1286
1289
|
e,
|
|
1287
1290
|
s,
|
|
1288
1291
|
a,
|
|
@@ -1298,10 +1301,10 @@ function Ye(e, t, s, n = void 0, i = void 0) {
|
|
|
1298
1301
|
}
|
|
1299
1302
|
);
|
|
1300
1303
|
}
|
|
1301
|
-
let
|
|
1302
|
-
const
|
|
1303
|
-
async function
|
|
1304
|
-
e.objID && e.objID !== "" ?
|
|
1304
|
+
let E, K;
|
|
1305
|
+
const P = [];
|
|
1306
|
+
async function He(e, t = void 0, s = void 0) {
|
|
1307
|
+
e.objID && e.objID !== "" ? k(
|
|
1305
1308
|
e,
|
|
1306
1309
|
(n) => {
|
|
1307
1310
|
t && t(n);
|
|
@@ -1319,8 +1322,8 @@ async function qe(e, t = void 0, s = void 0) {
|
|
|
1319
1322
|
}
|
|
1320
1323
|
);
|
|
1321
1324
|
}
|
|
1322
|
-
async function
|
|
1323
|
-
console.log("getDatasByTenant (getDocuments)", e), await
|
|
1325
|
+
async function ze(e, t = void 0, s = void 0) {
|
|
1326
|
+
console.log("getDatasByTenant (getDocuments)", e), await G(
|
|
1324
1327
|
e,
|
|
1325
1328
|
(n) => {
|
|
1326
1329
|
const i = {};
|
|
@@ -1331,56 +1334,56 @@ async function He(e, t = void 0, s = void 0) {
|
|
|
1331
1334
|
}
|
|
1332
1335
|
);
|
|
1333
1336
|
}
|
|
1334
|
-
function
|
|
1337
|
+
function Qe(e, t = void 0, s = void 0) {
|
|
1335
1338
|
const n = [];
|
|
1336
1339
|
if (!e.objIds && !Array.isArray(e.objIds) && e.objIds.length === 0) {
|
|
1337
1340
|
console.warn("la liste est vide ou n'est pas un tableau");
|
|
1338
1341
|
return;
|
|
1339
1342
|
}
|
|
1340
1343
|
e.objIds.forEach((i, r) => {
|
|
1341
|
-
|
|
1344
|
+
G(
|
|
1342
1345
|
e,
|
|
1343
1346
|
i.objID,
|
|
1344
1347
|
(o) => {
|
|
1345
|
-
n.push({ [i.name]: o }), i.name === "dbProjets" && (
|
|
1348
|
+
n.push({ [i.name]: o }), i.name === "dbProjets" && (E = o.affaires.map((a) => a.objectID), ie(e, K)), r === e.objIds.length - 1 && (t && t(n), delete e.objIds, delete e.datas);
|
|
1346
1349
|
}
|
|
1347
1350
|
);
|
|
1348
1351
|
});
|
|
1349
1352
|
}
|
|
1350
|
-
function
|
|
1351
|
-
|
|
1353
|
+
function ie(e, t, s = void 0, n = void 0) {
|
|
1354
|
+
ne(
|
|
1352
1355
|
e,
|
|
1353
|
-
|
|
1356
|
+
E,
|
|
1354
1357
|
(i) => {
|
|
1355
1358
|
const r = [...t];
|
|
1356
|
-
r.find((o) => o.objectID === i.objectId).data = i.data,
|
|
1359
|
+
r.find((o) => o.objectID === i.objectId).data = i.data, K = r, P.push(i.data), s && s(P);
|
|
1357
1360
|
},
|
|
1358
1361
|
(i) => {
|
|
1359
1362
|
n && (n(i), console.log(i));
|
|
1360
1363
|
}
|
|
1361
1364
|
);
|
|
1362
1365
|
}
|
|
1363
|
-
const
|
|
1366
|
+
const ae = "FA35FB9B177A280065800EA0000F599C", oe = [
|
|
1364
1367
|
"swym",
|
|
1365
1368
|
"3dspace",
|
|
1366
1369
|
"drive",
|
|
1367
1370
|
"usersgroup",
|
|
1368
1371
|
"3dplan",
|
|
1369
1372
|
"dashboard"
|
|
1370
|
-
],
|
|
1373
|
+
], B = {
|
|
1371
1374
|
how: "ds6w:how",
|
|
1372
1375
|
what: "ds6w:what",
|
|
1373
1376
|
when: "ds6w:when",
|
|
1374
1377
|
where: "ds6w:where",
|
|
1375
1378
|
who: "ds6w:who",
|
|
1376
1379
|
why: "ds6w:why"
|
|
1377
|
-
},
|
|
1378
|
-
objId:
|
|
1380
|
+
}, re = {
|
|
1381
|
+
objId: ae,
|
|
1379
1382
|
pred: "who",
|
|
1380
1383
|
order_by: "desc",
|
|
1381
1384
|
tag: "testTag"
|
|
1382
1385
|
};
|
|
1383
|
-
function
|
|
1386
|
+
function Ze(e, t, s = void 0, n = void 0) {
|
|
1384
1387
|
const { space: i, tenant: r } = e, { objId: o, pred: a, tag: c } = t, d = {
|
|
1385
1388
|
uri: "/resources/6w/tags",
|
|
1386
1389
|
otpCTX: "SecurityContext=preferred",
|
|
@@ -1393,7 +1396,7 @@ function Qe(e, t, s = void 0, n = void 0) {
|
|
|
1393
1396
|
uri: `pid://${o}`
|
|
1394
1397
|
}
|
|
1395
1398
|
],
|
|
1396
|
-
predicate:
|
|
1399
|
+
predicate: B[a],
|
|
1397
1400
|
object: {
|
|
1398
1401
|
literal: c
|
|
1399
1402
|
}
|
|
@@ -1411,12 +1414,12 @@ function Qe(e, t, s = void 0, n = void 0) {
|
|
|
1411
1414
|
JSON.parse(f);
|
|
1412
1415
|
const l = {};
|
|
1413
1416
|
setTimeout(() => {
|
|
1414
|
-
|
|
1417
|
+
M(
|
|
1415
1418
|
e,
|
|
1416
1419
|
o,
|
|
1417
1420
|
(g) => {
|
|
1418
|
-
const
|
|
1419
|
-
l.name =
|
|
1421
|
+
const y = g.data[0].dataelements.title, h = g.data[0].dataelements.fileExtension !== void 0 ? g.data[0].dataelements.fileExtension : "", S = g.data[0].relateddata.ownerInfo[0].dataelements.name;
|
|
1422
|
+
l.name = y, l.ext = h, l.createBy = S, t.info = { ...l }, ce(
|
|
1420
1423
|
e,
|
|
1421
1424
|
t,
|
|
1422
1425
|
(_) => {
|
|
@@ -1427,9 +1430,9 @@ function Qe(e, t, s = void 0, n = void 0) {
|
|
|
1427
1430
|
}
|
|
1428
1431
|
);
|
|
1429
1432
|
},
|
|
1430
|
-
(g,
|
|
1431
|
-
const
|
|
1432
|
-
|
|
1433
|
+
(g, y) => {
|
|
1434
|
+
const h = g;
|
|
1435
|
+
h.msg = y.errormsg, h.errCode = y.errorcode, console.log("❌ sendDirectMessage => ", h), n && n(h);
|
|
1433
1436
|
}
|
|
1434
1437
|
);
|
|
1435
1438
|
}, 2e3);
|
|
@@ -1440,7 +1443,7 @@ function Qe(e, t, s = void 0, n = void 0) {
|
|
|
1440
1443
|
}
|
|
1441
1444
|
});
|
|
1442
1445
|
}
|
|
1443
|
-
function
|
|
1446
|
+
function ce(e, t, s = void 0, n = void 0) {
|
|
1444
1447
|
console.log("obj ", t);
|
|
1445
1448
|
const i = t.info.name, r = {
|
|
1446
1449
|
baseUrl: `https://${e.tenant.toLowerCase()}-eu1-fedsearch.3dexperience.3ds.com`,
|
|
@@ -1448,7 +1451,7 @@ function re(e, t, s = void 0, n = void 0) {
|
|
|
1448
1451
|
}, o = `${r.baseUrl}${r.uri}`, a = {
|
|
1449
1452
|
"Content-Type": "application/json",
|
|
1450
1453
|
Accept: "application/json,text/javascript,*/*"
|
|
1451
|
-
}, c =
|
|
1454
|
+
}, c = L(), d = {
|
|
1452
1455
|
with_indexing_date: !0,
|
|
1453
1456
|
with_synthesis: !0,
|
|
1454
1457
|
with_nls: !1,
|
|
@@ -1490,7 +1493,7 @@ function re(e, t, s = void 0, n = void 0) {
|
|
|
1490
1493
|
}
|
|
1491
1494
|
},
|
|
1492
1495
|
select_exclude_synthesis: ["ds6w:what/ds6w:topic"],
|
|
1493
|
-
order_by:
|
|
1496
|
+
order_by: re.order_by,
|
|
1494
1497
|
order_field: "relevance",
|
|
1495
1498
|
select_snippets: [
|
|
1496
1499
|
"ds6w:snippet",
|
|
@@ -1501,7 +1504,7 @@ function re(e, t, s = void 0, n = void 0) {
|
|
|
1501
1504
|
],
|
|
1502
1505
|
nresults: 40,
|
|
1503
1506
|
start: "0",
|
|
1504
|
-
source:
|
|
1507
|
+
source: oe,
|
|
1505
1508
|
tenant: e.tenant,
|
|
1506
1509
|
login: {
|
|
1507
1510
|
"3dspace": {
|
|
@@ -1523,7 +1526,7 @@ function re(e, t, s = void 0, n = void 0) {
|
|
|
1523
1526
|
}
|
|
1524
1527
|
});
|
|
1525
1528
|
}
|
|
1526
|
-
function
|
|
1529
|
+
function et(e, t, s = void 0, n = void 0) {
|
|
1527
1530
|
const { objId: i, pred: r, tag: o } = t, a = {
|
|
1528
1531
|
uri: "/resources/6w/tags",
|
|
1529
1532
|
otpCTX: "SecurityContext=preferred",
|
|
@@ -1536,7 +1539,7 @@ function Ze(e, t, s = void 0, n = void 0) {
|
|
|
1536
1539
|
uri: `pid://${i}`
|
|
1537
1540
|
}
|
|
1538
1541
|
],
|
|
1539
|
-
predicate:
|
|
1542
|
+
predicate: B[r],
|
|
1540
1543
|
object: {
|
|
1541
1544
|
literal: o
|
|
1542
1545
|
}
|
|
@@ -1559,7 +1562,7 @@ function Ze(e, t, s = void 0, n = void 0) {
|
|
|
1559
1562
|
}
|
|
1560
1563
|
});
|
|
1561
1564
|
}
|
|
1562
|
-
function
|
|
1565
|
+
function tt(e, t = "", s = void 0, n = void 0) {
|
|
1563
1566
|
const { space: i } = e;
|
|
1564
1567
|
if (t === "")
|
|
1565
1568
|
return;
|
|
@@ -1595,7 +1598,7 @@ async function C(e, t = void 0, s = void 0) {
|
|
|
1595
1598
|
}
|
|
1596
1599
|
});
|
|
1597
1600
|
}
|
|
1598
|
-
function
|
|
1601
|
+
function nt(e, t = void 0, s = void 0) {
|
|
1599
1602
|
const n = `${e.space}/api/exalead/whatsnew`, i = {
|
|
1600
1603
|
params: {
|
|
1601
1604
|
community_id: null,
|
|
@@ -1625,7 +1628,7 @@ function tt(e, t = void 0, s = void 0) {
|
|
|
1625
1628
|
});
|
|
1626
1629
|
});
|
|
1627
1630
|
}
|
|
1628
|
-
function
|
|
1631
|
+
function st(e, t = void 0, s = void 0) {
|
|
1629
1632
|
const n = `${e.space}/api/Recommendation/getpeoplefamiliartocurrentuser`, i = {
|
|
1630
1633
|
params: {
|
|
1631
1634
|
idsToFilterArr: [],
|
|
@@ -1655,7 +1658,7 @@ function nt(e, t = void 0, s = void 0) {
|
|
|
1655
1658
|
});
|
|
1656
1659
|
});
|
|
1657
1660
|
}
|
|
1658
|
-
function
|
|
1661
|
+
function it(e, t = void 0, s = void 0) {
|
|
1659
1662
|
const n = {
|
|
1660
1663
|
base: e.space,
|
|
1661
1664
|
uri: "/api/community/listmycommunities",
|
|
@@ -1680,13 +1683,13 @@ function st(e, t = void 0, s = void 0) {
|
|
|
1680
1683
|
role: l.role,
|
|
1681
1684
|
access: l.access
|
|
1682
1685
|
};
|
|
1683
|
-
|
|
1686
|
+
de(
|
|
1684
1687
|
e,
|
|
1685
1688
|
l.id,
|
|
1686
|
-
(
|
|
1687
|
-
f++, g.members =
|
|
1689
|
+
(y) => {
|
|
1690
|
+
f++, g.members = y, r.push(g), f === u.length && t && t(r);
|
|
1688
1691
|
},
|
|
1689
|
-
(
|
|
1692
|
+
(y) => s(y)
|
|
1690
1693
|
);
|
|
1691
1694
|
});
|
|
1692
1695
|
},
|
|
@@ -1697,7 +1700,7 @@ function st(e, t = void 0, s = void 0) {
|
|
|
1697
1700
|
});
|
|
1698
1701
|
});
|
|
1699
1702
|
}
|
|
1700
|
-
function
|
|
1703
|
+
function de(e, t, s, n) {
|
|
1701
1704
|
const i = `${e.space}/api/community/listmembers`, r = {
|
|
1702
1705
|
params: {
|
|
1703
1706
|
page: e.page ? e.page : 1,
|
|
@@ -1725,7 +1728,7 @@ function ce(e, t, s, n) {
|
|
|
1725
1728
|
});
|
|
1726
1729
|
});
|
|
1727
1730
|
}
|
|
1728
|
-
function
|
|
1731
|
+
function at(e, t = void 0, s = void 0) {
|
|
1729
1732
|
const n = "YXdA5x4DSUKtlAi2wmnyTA";
|
|
1730
1733
|
e.commu_id || (e.commu_id = n);
|
|
1731
1734
|
const i = `${e.space}/api/v2/communities/${e.commu_id}/ideas/statuses`;
|
|
@@ -1748,7 +1751,7 @@ function it(e, t = void 0, s = void 0) {
|
|
|
1748
1751
|
});
|
|
1749
1752
|
});
|
|
1750
1753
|
}
|
|
1751
|
-
function
|
|
1754
|
+
function ot(e, t, s = void 0, n = void 0) {
|
|
1752
1755
|
const { listAllContacts: i, currentUser: r } = e;
|
|
1753
1756
|
console.log("__listAllContacts", i.hits);
|
|
1754
1757
|
const o = `${e.space}/api/directmessages`, a = {
|
|
@@ -1757,13 +1760,13 @@ function at(e, t, s = void 0, n = void 0) {
|
|
|
1757
1760
|
id_msg: "",
|
|
1758
1761
|
senderId: e.currentUser.login,
|
|
1759
1762
|
senderName: `${e.currentUser.first_name} ${e.currentUser.last_name}`,
|
|
1760
|
-
msg:
|
|
1763
|
+
msg: ue(t.msg)
|
|
1761
1764
|
};
|
|
1762
1765
|
let d = !1;
|
|
1763
|
-
|
|
1766
|
+
pe(
|
|
1764
1767
|
a.users,
|
|
1765
1768
|
(p) => {
|
|
1766
|
-
p !== void 0 && (c.id_msg = p.id, d = !0,
|
|
1769
|
+
p !== void 0 && (c.id_msg = p.id, d = !0, R(e, c));
|
|
1767
1770
|
},
|
|
1768
1771
|
(p) => {
|
|
1769
1772
|
d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", p), n && n(p), c.id_msg = "";
|
|
@@ -1781,7 +1784,7 @@ function at(e, t, s = void 0, n = void 0) {
|
|
|
1781
1784
|
type: "json",
|
|
1782
1785
|
onComplete(u, f, l) {
|
|
1783
1786
|
const g = u;
|
|
1784
|
-
g.reponse = JSON.parse(l.response), g.status = l.status, s && s(g), c.id_msg = g.result.id,
|
|
1787
|
+
g.reponse = JSON.parse(l.response), g.status = l.status, s && s(g), c.id_msg = g.result.id, R(e, c);
|
|
1785
1788
|
},
|
|
1786
1789
|
onFailure(u, f, l) {
|
|
1787
1790
|
const g = u;
|
|
@@ -1791,7 +1794,7 @@ function at(e, t, s = void 0, n = void 0) {
|
|
|
1791
1794
|
});
|
|
1792
1795
|
}, 500);
|
|
1793
1796
|
}
|
|
1794
|
-
function
|
|
1797
|
+
function pe(e, t, s, n) {
|
|
1795
1798
|
const i = `${e.space}/api/directmessages/lite?with_favorites=false`;
|
|
1796
1799
|
C(e, (r) => {
|
|
1797
1800
|
m(i, {
|
|
@@ -1820,7 +1823,7 @@ function de(e, t, s, n) {
|
|
|
1820
1823
|
});
|
|
1821
1824
|
});
|
|
1822
1825
|
}
|
|
1823
|
-
function
|
|
1826
|
+
function R(e, t, s = void 0, n = void 0) {
|
|
1824
1827
|
const i = {
|
|
1825
1828
|
base: e.space,
|
|
1826
1829
|
uri: "/api/community",
|
|
@@ -1857,14 +1860,14 @@ function P(e, t, s = void 0, n = void 0) {
|
|
|
1857
1860
|
});
|
|
1858
1861
|
});
|
|
1859
1862
|
}
|
|
1860
|
-
function
|
|
1863
|
+
function ue(e) {
|
|
1861
1864
|
const t = (/* @__PURE__ */ new Date()).toLocaleDateString(), s = (/* @__PURE__ */ new Date()).toLocaleTimeString();
|
|
1862
1865
|
return `<p>${e} </p>
|
|
1863
1866
|
<br/>
|
|
1864
1867
|
<hr/>
|
|
1865
1868
|
<p><u>envoyer :</u>Le <b>${t} à ${s}</b></p>`;
|
|
1866
1869
|
}
|
|
1867
|
-
function
|
|
1870
|
+
function rt(e, t, s = void 0, n = void 0) {
|
|
1868
1871
|
const i = `${e.space}/api/idea/add`, r = e.swymCommunities.find(
|
|
1869
1872
|
(c) => c.id === t.community_id
|
|
1870
1873
|
), o = e.swymCommunities.find(
|
|
@@ -1875,7 +1878,7 @@ function ot(e, t, s = void 0, n = void 0) {
|
|
|
1875
1878
|
// String, le nom de l'affaire
|
|
1876
1879
|
community_id: r?.id !== void 0 ? r.id : o.id,
|
|
1877
1880
|
// String, l'id de la communauté
|
|
1878
|
-
message:
|
|
1881
|
+
message: le(t.text_html),
|
|
1879
1882
|
// STRING => le contenue du message doit être au format HTML
|
|
1880
1883
|
published: 1
|
|
1881
1884
|
// 1 publier, 0 non publier
|
|
@@ -1903,7 +1906,7 @@ function ot(e, t, s = void 0, n = void 0) {
|
|
|
1903
1906
|
});
|
|
1904
1907
|
});
|
|
1905
1908
|
}
|
|
1906
|
-
function
|
|
1909
|
+
function ct(e, t = void 0, s = void 0) {
|
|
1907
1910
|
const n = { base: e.space, uri: "/api/idea/add" };
|
|
1908
1911
|
if (!Array.isArray(e.swymCommunities)) {
|
|
1909
1912
|
const o = "☠️ swymCommunities doit être un tableau d'objets de communautés";
|
|
@@ -1976,7 +1979,7 @@ function rt(e, t = void 0, s = void 0) {
|
|
|
1976
1979
|
m(n.base + n.uri, a);
|
|
1977
1980
|
});
|
|
1978
1981
|
}
|
|
1979
|
-
function
|
|
1982
|
+
function dt(e, t, s = void 0, n = void 0) {
|
|
1980
1983
|
const i = `${e.space}/api/idea/delete`, r = {
|
|
1981
1984
|
params: {
|
|
1982
1985
|
community_id: t.community_id,
|
|
@@ -2003,7 +2006,7 @@ function ct(e, t, s = void 0, n = void 0) {
|
|
|
2003
2006
|
});
|
|
2004
2007
|
});
|
|
2005
2008
|
}
|
|
2006
|
-
function
|
|
2009
|
+
function pt(e, t = void 0, s = void 0) {
|
|
2007
2010
|
const n = `${e.space}/api/idea/get`;
|
|
2008
2011
|
if (e.idPost === "") {
|
|
2009
2012
|
const r = "☠️ idPost est vide, vous devez renseigner un identifiant de post";
|
|
@@ -2033,7 +2036,7 @@ function dt(e, t = void 0, s = void 0) {
|
|
|
2033
2036
|
});
|
|
2034
2037
|
});
|
|
2035
2038
|
}
|
|
2036
|
-
function
|
|
2039
|
+
function ut(e, t, s) {
|
|
2037
2040
|
const n = {
|
|
2038
2041
|
base: `${e.space}/api/idea/edit`,
|
|
2039
2042
|
uri: "/api/idea/edit"
|
|
@@ -2070,7 +2073,7 @@ function pt(e, t, s) {
|
|
|
2070
2073
|
m(n.base + n.uri, o);
|
|
2071
2074
|
});
|
|
2072
2075
|
}
|
|
2073
|
-
function
|
|
2076
|
+
function lt(e, t, s = void 0, n = void 0) {
|
|
2074
2077
|
const { space: i } = e;
|
|
2075
2078
|
let { community_id: r, limit: o, page: a, search: c } = t;
|
|
2076
2079
|
const d = [], p = 1;
|
|
@@ -2083,12 +2086,12 @@ function ut(e, t, s = void 0, n = void 0) {
|
|
|
2083
2086
|
page: `/page/${a}`
|
|
2084
2087
|
};
|
|
2085
2088
|
let g = `${i}${l.uri}${l.comId}${l.limit}${l.page}`;
|
|
2086
|
-
C(e, (
|
|
2087
|
-
const
|
|
2089
|
+
C(e, (y) => {
|
|
2090
|
+
const h = (S) => {
|
|
2088
2091
|
m(S, {
|
|
2089
2092
|
method: "GET",
|
|
2090
2093
|
headers: {
|
|
2091
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
2094
|
+
"X-DS-SWYM-CSRFTOKEN": y.result.ServerToken
|
|
2092
2095
|
},
|
|
2093
2096
|
onComplete(_) {
|
|
2094
2097
|
const w = { response: JSON.parse(_) };
|
|
@@ -2097,7 +2100,7 @@ function ut(e, t, s = void 0, n = void 0) {
|
|
|
2097
2100
|
d.push(w.response.result);
|
|
2098
2101
|
else {
|
|
2099
2102
|
const T = w.response.result.find(
|
|
2100
|
-
(
|
|
2103
|
+
(j) => j.title.includes(c)
|
|
2101
2104
|
);
|
|
2102
2105
|
if (T) {
|
|
2103
2106
|
s(T);
|
|
@@ -2108,7 +2111,7 @@ function ut(e, t, s = void 0, n = void 0) {
|
|
|
2108
2111
|
u = !0, s(d);
|
|
2109
2112
|
return;
|
|
2110
2113
|
}
|
|
2111
|
-
|
|
2114
|
+
h(S);
|
|
2112
2115
|
}
|
|
2113
2116
|
},
|
|
2114
2117
|
onFailure(_, w) {
|
|
@@ -2117,10 +2120,10 @@ function ut(e, t, s = void 0, n = void 0) {
|
|
|
2117
2120
|
}
|
|
2118
2121
|
});
|
|
2119
2122
|
};
|
|
2120
|
-
u ||
|
|
2123
|
+
u || h(g);
|
|
2121
2124
|
});
|
|
2122
2125
|
}
|
|
2123
|
-
function
|
|
2126
|
+
function le(e) {
|
|
2124
2127
|
return !e || e === "" ? `<h2><u>INFORMATIONS AFFAIRE :</u></h2>
|
|
2125
2128
|
<p><u>|⚠️<em> Merci de respecter l'écriture des tags, en MAJUSCULES, nom complet, pas de caractères</em></u></p>
|
|
2126
2129
|
<p><u><em>|spéciaux, séparation par "_" si besoin !</em></u></p>
|
|
@@ -2195,7 +2198,7 @@ function ue(e) {
|
|
|
2195
2198
|
<p>
|
|
2196
2199
|
</p>` : e;
|
|
2197
2200
|
}
|
|
2198
|
-
function
|
|
2201
|
+
function ft(e, t = void 0, s = void 0) {
|
|
2199
2202
|
const n = e.space + "/api/user/getcurrent/";
|
|
2200
2203
|
C(e, (i) => {
|
|
2201
2204
|
m(n, {
|
|
@@ -2214,7 +2217,7 @@ function lt(e, t = void 0, s = void 0) {
|
|
|
2214
2217
|
});
|
|
2215
2218
|
});
|
|
2216
2219
|
}
|
|
2217
|
-
function
|
|
2220
|
+
function mt(e, t, s = void 0, n = void 0) {
|
|
2218
2221
|
const i = e.space + "/api/user/find/login/" + t;
|
|
2219
2222
|
C(
|
|
2220
2223
|
e,
|
|
@@ -2234,13 +2237,13 @@ function ft(e, t, s = void 0, n = void 0) {
|
|
|
2234
2237
|
n
|
|
2235
2238
|
);
|
|
2236
2239
|
}
|
|
2237
|
-
function
|
|
2240
|
+
function gt(e, t = void 0, s = void 0) {
|
|
2238
2241
|
e.tenant && b(e, (n) => {
|
|
2239
2242
|
const i = n.services.find((r) => r.id === "businessprocess")?.url + "/api/v2";
|
|
2240
2243
|
return t && t(i), i;
|
|
2241
2244
|
});
|
|
2242
2245
|
}
|
|
2243
|
-
function
|
|
2246
|
+
function ht(e, t = void 0, s = void 0) {
|
|
2244
2247
|
e.tenant && b(e, (n) => {
|
|
2245
2248
|
const i = n.services.find((a) => a.id === "3dpassport")?.url, r = n.services.find((a) => a.id === "businessprocess")?.url + "/api/v2", o = `${i}/login/?service=${r}/auth/cas`;
|
|
2246
2249
|
m(o, {
|
|
@@ -2258,7 +2261,7 @@ function gt(e, t = void 0, s = void 0) {
|
|
|
2258
2261
|
});
|
|
2259
2262
|
});
|
|
2260
2263
|
}
|
|
2261
|
-
function
|
|
2264
|
+
function yt(e, t = void 0, s = void 0) {
|
|
2262
2265
|
if (e.tenant) {
|
|
2263
2266
|
const n = e.tenant.toLowerCase();
|
|
2264
2267
|
fetch(`https://api.uixhome.fr/${n}/iterop/jwtuser`, {
|
|
@@ -2270,7 +2273,7 @@ function ht(e, t = void 0, s = void 0) {
|
|
|
2270
2273
|
});
|
|
2271
2274
|
}
|
|
2272
2275
|
}
|
|
2273
|
-
async function
|
|
2276
|
+
async function St(e, t, s = void 0, n = void 0) {
|
|
2274
2277
|
e.tenant && b(e, (i) => {
|
|
2275
2278
|
const o = `${i.services.find((c) => c.id === "businessprocess")?.url + "/api/v2"}/identity/users`, a = e.tenant.toLowerCase();
|
|
2276
2279
|
fetch(`https://api.uixhome.fr/${a}/iterop/listusers?t=${t}&s=${o}`, {
|
|
@@ -2282,7 +2285,7 @@ async function yt(e, t, s = void 0, n = void 0) {
|
|
|
2282
2285
|
});
|
|
2283
2286
|
});
|
|
2284
2287
|
}
|
|
2285
|
-
async function
|
|
2288
|
+
async function _t(e, t, s = void 0, n = void 0) {
|
|
2286
2289
|
e.tenant && b(e, (i) => {
|
|
2287
2290
|
const o = `${i.services.find((c) => c.id === "businessprocess")?.url + "/api/v2"}/repository/data/tables`, a = e.tenant.toLowerCase();
|
|
2288
2291
|
fetch(`https://api.uixhome.fr/${a}/iterop/repository/data/tables?t=${t}&s=${o}`, {
|
|
@@ -2294,7 +2297,7 @@ async function St(e, t, s = void 0, n = void 0) {
|
|
|
2294
2297
|
});
|
|
2295
2298
|
});
|
|
2296
2299
|
}
|
|
2297
|
-
async function
|
|
2300
|
+
async function wt(e, t, s, n = void 0, i = void 0) {
|
|
2298
2301
|
if (e.tenant) {
|
|
2299
2302
|
const r = e.tenant.toLowerCase();
|
|
2300
2303
|
fetch(`https://api.uixhome.fr/${r}/iterop/businesstable/${s}?t=${t}`, {
|
|
@@ -2306,7 +2309,7 @@ async function _t(e, t, s, n = void 0, i = void 0) {
|
|
|
2306
2309
|
});
|
|
2307
2310
|
}
|
|
2308
2311
|
}
|
|
2309
|
-
async function
|
|
2312
|
+
async function Ct(e, t, s, n = void 0, i = void 0) {
|
|
2310
2313
|
if (e.tenant) {
|
|
2311
2314
|
const r = e.tenant.toLowerCase();
|
|
2312
2315
|
fetch(`https://api.uixhome.fr/${r}/iterop/businesstable/rows/${s}/?t=${t}`, {
|
|
@@ -2318,7 +2321,7 @@ async function wt(e, t, s, n = void 0, i = void 0) {
|
|
|
2318
2321
|
});
|
|
2319
2322
|
}
|
|
2320
2323
|
}
|
|
2321
|
-
async function
|
|
2324
|
+
async function Tt(e, t, s, n, i = void 0, r = void 0) {
|
|
2322
2325
|
e.tenant && b(e, (o) => {
|
|
2323
2326
|
o.services.find((c) => c.id === "businessprocess")?.url + "";
|
|
2324
2327
|
const a = e.tenant.toLowerCase();
|
|
@@ -2331,7 +2334,7 @@ async function Ct(e, t, s, n, i = void 0, r = void 0) {
|
|
|
2331
2334
|
});
|
|
2332
2335
|
});
|
|
2333
2336
|
}
|
|
2334
|
-
async function
|
|
2337
|
+
async function bt(e, t, s, n, i, r = void 0, o = void 0) {
|
|
2335
2338
|
if (e.tenant) {
|
|
2336
2339
|
const a = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/search/rows/${s}?t=${t}&c=${encodeURIComponent(
|
|
2337
2340
|
n
|
|
@@ -2350,7 +2353,7 @@ async function Tt(e, t, s, n, i, r = void 0, o = void 0) {
|
|
|
2350
2353
|
});
|
|
2351
2354
|
}
|
|
2352
2355
|
}
|
|
2353
|
-
async function
|
|
2356
|
+
async function Ot(e, t, s, n, i = void 0, r = void 0) {
|
|
2354
2357
|
if (e.tenant) {
|
|
2355
2358
|
const o = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/update/${s}?t=${t}&b=${encodeURIComponent(
|
|
2356
2359
|
n
|
|
@@ -2367,7 +2370,7 @@ async function bt(e, t, s, n, i = void 0, r = void 0) {
|
|
|
2367
2370
|
});
|
|
2368
2371
|
}
|
|
2369
2372
|
}
|
|
2370
|
-
async function
|
|
2373
|
+
async function $t(e, t, s, n, i = void 0, r = void 0) {
|
|
2371
2374
|
e.tenant && b(e, (o) => {
|
|
2372
2375
|
o.services.find((c) => c.id === "businessprocess")?.url + "";
|
|
2373
2376
|
const a = e.tenant.toLowerCase();
|
|
@@ -2383,7 +2386,7 @@ async function Ot(e, t, s, n, i = void 0, r = void 0) {
|
|
|
2383
2386
|
});
|
|
2384
2387
|
});
|
|
2385
2388
|
}
|
|
2386
|
-
async function
|
|
2389
|
+
async function It(e, t, s, n = void 0, i = void 0) {
|
|
2387
2390
|
e.tenant && b(e, (r) => {
|
|
2388
2391
|
r.services.find((a) => a.id === "businessprocess")?.url + "";
|
|
2389
2392
|
const o = e.tenant.toLowerCase();
|
|
@@ -2399,7 +2402,7 @@ async function $t(e, t, s, n = void 0, i = void 0) {
|
|
|
2399
2402
|
});
|
|
2400
2403
|
});
|
|
2401
2404
|
}
|
|
2402
|
-
async function
|
|
2405
|
+
async function vt(e, t, s, n, i, r = void 0, o = void 0) {
|
|
2403
2406
|
e.tenant && b(e, (a) => {
|
|
2404
2407
|
a.services.find((d) => d.id === "businessprocess")?.url + "";
|
|
2405
2408
|
const c = e.tenant.toLowerCase();
|
|
@@ -2415,7 +2418,7 @@ async function It(e, t, s, n, i, r = void 0, o = void 0) {
|
|
|
2415
2418
|
});
|
|
2416
2419
|
});
|
|
2417
2420
|
}
|
|
2418
|
-
async function
|
|
2421
|
+
async function Nt(e, t, s, n, i = void 0, r = void 0) {
|
|
2419
2422
|
e.tenant && b(e, (o) => {
|
|
2420
2423
|
o.services.find((c) => c.id === "businessprocess")?.url + "";
|
|
2421
2424
|
const a = e.tenant.toLowerCase();
|
|
@@ -2432,7 +2435,7 @@ async function vt(e, t, s, n, i = void 0, r = void 0) {
|
|
|
2432
2435
|
});
|
|
2433
2436
|
}
|
|
2434
2437
|
//!SECTION
|
|
2435
|
-
async function
|
|
2438
|
+
async function kt(e, t, s, n = void 0, i = void 0) {
|
|
2436
2439
|
if (e.tenant) {
|
|
2437
2440
|
const r = e.tenant.toLowerCase();
|
|
2438
2441
|
fetch(
|
|
@@ -2448,17 +2451,17 @@ async function Nt(e, t, s, n = void 0, i = void 0) {
|
|
|
2448
2451
|
}
|
|
2449
2452
|
}
|
|
2450
2453
|
//!SECTION
|
|
2451
|
-
function
|
|
2454
|
+
function At(e) {
|
|
2452
2455
|
const t = "Hello " + e;
|
|
2453
2456
|
return console.log(t), t;
|
|
2454
2457
|
}
|
|
2455
|
-
function
|
|
2458
|
+
function jt(e, t = void 0, s = void 0) {
|
|
2456
2459
|
return console.log("credentials", e), new Promise((n) => {
|
|
2457
2460
|
if (e.token === "" && O(e), !e.space || e.space === "") {
|
|
2458
2461
|
const o = Y();
|
|
2459
2462
|
console.log("platformeInfo", o);
|
|
2460
2463
|
}
|
|
2461
|
-
|
|
2464
|
+
A(
|
|
2462
2465
|
e,
|
|
2463
2466
|
"Common space",
|
|
2464
2467
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -2469,7 +2472,7 @@ function At(e, t = void 0, s = void 0) {
|
|
|
2469
2472
|
},
|
|
2470
2473
|
!0
|
|
2471
2474
|
);
|
|
2472
|
-
const i =
|
|
2475
|
+
const i = v.now().ts, r = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dsearch&platformId=${e.tenant}`;
|
|
2473
2476
|
m(r, {
|
|
2474
2477
|
onComplete(o) {
|
|
2475
2478
|
if (Array.isArray(JSON.parse(o))) {
|
|
@@ -2532,98 +2535,98 @@ function At(e, t = void 0, s = void 0) {
|
|
|
2532
2535
|
});
|
|
2533
2536
|
}
|
|
2534
2537
|
export {
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2538
|
+
L as UUID,
|
|
2539
|
+
jt as _3DSearch_usersGroup,
|
|
2540
|
+
Le as _3DSpace_Create_Doc,
|
|
2541
|
+
De as _3DSpace_Update_Doc,
|
|
2542
|
+
Ve as _3DSpace_bookmark_addSubsciptions,
|
|
2543
|
+
Be as _3DSpace_bookmark_newWorkspace,
|
|
2541
2544
|
O as _3DSpace_csrf,
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2545
|
+
G as _3DSpace_download_doc,
|
|
2546
|
+
ne as _3DSpace_download_multidoc,
|
|
2547
|
+
J as _3DSpace_file_update,
|
|
2548
|
+
te as _3DSpace_file_update_csr,
|
|
2549
|
+
Re as _3DSpace_file_url_csr,
|
|
2550
|
+
k as _3DSpace_get_csrf,
|
|
2551
|
+
M as _3DSpace_get_docInfo,
|
|
2552
|
+
se as _3DSpace_get_downloadTicket_multidoc,
|
|
2553
|
+
Pe as _3DSpace_get_multiDocInfo,
|
|
2554
|
+
A as _3DSpace_get_securityContexts,
|
|
2555
|
+
x as _3DSpace_get_ticket,
|
|
2556
|
+
Ke as _3DSpace_lifecycle_changeRevision,
|
|
2557
|
+
Je as _3DSpace_lifecycle_changeState,
|
|
2558
|
+
Ge as _3DSpace_lifecycle_getGraph,
|
|
2559
|
+
Ee as _3DSpace_lifecycle_getNextRevision,
|
|
2560
|
+
Me as _3DSpace_lifecycle_getNextStates,
|
|
2561
|
+
ot as _3DSwym_buildDirectMessage,
|
|
2562
|
+
dt as _3DSwym_deleteIdea,
|
|
2563
|
+
ut as _3DSwym_editIdea,
|
|
2564
|
+
pe as _3DSwym_findCommunityToInstantMSG,
|
|
2565
|
+
it as _3DSwym_getAllCommunities,
|
|
2566
|
+
lt as _3DSwym_getAllListIdeas,
|
|
2567
|
+
nt as _3DSwym_getAllNews,
|
|
2568
|
+
st as _3DSwym_getFamiliarPeople,
|
|
2569
|
+
at as _3DSwym_getIdeaStatusMaturity,
|
|
2570
|
+
de as _3DSwym_getMembersCommunity,
|
|
2571
|
+
pt as _3DSwym_getOneIdea,
|
|
2569
2572
|
C as _3DSwym_get_Token,
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2573
|
+
ft as _3DSwym_get_currentUser,
|
|
2574
|
+
mt as _3DSwym_get_findUser,
|
|
2575
|
+
ct as _3DSwym_postIdea,
|
|
2576
|
+
rt as _3DSwym_postIdeaTemplate,
|
|
2577
|
+
R as _3DSwym_sendMessageData,
|
|
2578
|
+
ve as _AppMngt_get_info_user,
|
|
2579
|
+
Ie as _AppMngt_get_users,
|
|
2580
|
+
Tt as _Iterop_AddOrRemoveRows,
|
|
2581
|
+
ht as _Iterop_Auth_CAS,
|
|
2582
|
+
It as _Iterop_GetOneDependencyTable,
|
|
2583
|
+
kt as _Iterop_GetOneList,
|
|
2584
|
+
St as _Iterop_ListUsers,
|
|
2585
|
+
vt as _Iterop_PatchDependencyTable,
|
|
2586
|
+
Nt as _Iterop_PutDependencyTable,
|
|
2587
|
+
bt as _Iterop_businessTableSearchInRows,
|
|
2588
|
+
_t as _Iterop_getAllBusinessTables,
|
|
2589
|
+
wt as _Iterop_getOneBusinessTable,
|
|
2590
|
+
Ct as _Iterop_getOneBusinessTableRows,
|
|
2591
|
+
yt as _Iterop_jwtUser,
|
|
2592
|
+
$t as _Iterop_runProcess,
|
|
2593
|
+
Ot as _Iterop_updateBusinessTable,
|
|
2591
2594
|
Y as _getPlateformInfos,
|
|
2592
|
-
|
|
2595
|
+
be as _getPlatformServices,
|
|
2593
2596
|
b as _getServiceUrl,
|
|
2594
|
-
|
|
2595
|
-
|
|
2597
|
+
Oe as _getServiceUrl_3DPassport,
|
|
2598
|
+
gt as _getServiceUrl_Iterop,
|
|
2596
2599
|
m as _httpCallAuthenticated,
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2600
|
+
we as _setDraggable,
|
|
2601
|
+
Te as _setDroppable,
|
|
2602
|
+
Ce as _setupTagger,
|
|
2603
|
+
Ze as addTagToDoc,
|
|
2604
|
+
X as chunkArray,
|
|
2605
|
+
$e as compass_getListAdditionalApps,
|
|
2606
|
+
W as couleurs,
|
|
2607
|
+
Ne as createUserGroups,
|
|
2608
|
+
ie as dataMixing,
|
|
2609
|
+
je as deleteUserGroups,
|
|
2610
|
+
ye as findAdresse,
|
|
2611
|
+
We as getAllContextSecurity,
|
|
2612
|
+
z as getCSRFToken,
|
|
2613
|
+
he as getCommunes,
|
|
2614
|
+
ke as getComplementUG,
|
|
2615
|
+
Xe as getDataFrom3DSpace,
|
|
2616
|
+
Se as getDataFromGouvFr,
|
|
2617
|
+
ze as getDatasByTenant,
|
|
2618
|
+
Qe as getDatasFrom3DSpace,
|
|
2619
|
+
qe as getDownloadDocument,
|
|
2620
|
+
tt as getInfoDocTags,
|
|
2621
|
+
Ae as getUserGroupsList,
|
|
2622
|
+
H as getUsersGroupRules,
|
|
2623
|
+
He as get_3DSpace_csrf,
|
|
2624
|
+
Fe as patchUserGroups,
|
|
2625
|
+
Ue as patchUserGroupsControl,
|
|
2623
2626
|
Ye as pushDataIn3DSpace,
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2627
|
+
xe as readUserGroupControl,
|
|
2628
|
+
et as removeTagToDoc,
|
|
2629
|
+
At as sayHello,
|
|
2630
|
+
_e as updateEvent
|
|
2628
2631
|
};
|
|
2629
2632
|
//# sourceMappingURL=wb3Api.js.map
|