@beam3_dev/api_module 0.0.225 → 0.0.227
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 +294 -292
- 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
1
|
import { v4 as B } from "uuid";
|
|
2
|
-
import { DateTime as
|
|
3
|
-
import { requirejs as
|
|
4
|
-
function
|
|
2
|
+
import { DateTime as $ } from "luxon";
|
|
3
|
+
import { requirejs as I, widget as D } from "@widget-lab/3ddashboard-utils";
|
|
4
|
+
function V() {
|
|
5
5
|
return B();
|
|
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 = $.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 === $.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: $.fromISO(c.date).toISODate(),
|
|
96
|
+
end: $.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,44 +134,44 @@ 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
|
}
|
|
141
141
|
function m(e, t) {
|
|
142
|
-
|
|
142
|
+
I(["DS/WAFData/WAFData"], (s) => {
|
|
143
143
|
s.authenticatedRequest(e, t);
|
|
144
144
|
});
|
|
145
145
|
}
|
|
146
|
-
function
|
|
147
|
-
|
|
146
|
+
function we(e, t, s) {
|
|
147
|
+
I(["DS/DataDragAndDrop/DataDragAndDrop"], (n) => {
|
|
148
148
|
n.draggable(e, {
|
|
149
149
|
data: t,
|
|
150
150
|
start: s
|
|
151
151
|
});
|
|
152
152
|
});
|
|
153
153
|
}
|
|
154
|
-
function
|
|
155
|
-
|
|
154
|
+
function Ce(e, t = void 0) {
|
|
155
|
+
I(["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
|
|
164
|
-
|
|
163
|
+
function Te(e, t) {
|
|
164
|
+
I(["DS/DataDragAndDrop/DataDragAndDrop"], (s) => {
|
|
165
165
|
s.droppable(e, {
|
|
166
166
|
drop: t
|
|
167
167
|
});
|
|
168
168
|
});
|
|
169
169
|
}
|
|
170
|
-
async function
|
|
171
|
-
await
|
|
170
|
+
async function be(e, t = void 0, s = void 0) {
|
|
171
|
+
await I(
|
|
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,
|
|
@@ -183,7 +183,7 @@ async function Te(e, t = void 0, s = void 0) {
|
|
|
183
183
|
}
|
|
184
184
|
function Y() {
|
|
185
185
|
let e = {};
|
|
186
|
-
return
|
|
186
|
+
return I(["DS/PlatformAPI/PlatformAPI"], (t) => {
|
|
187
187
|
const s = t.getTenant(), n = t.getUser(), i = t.getAllApplicationConfigurations(), r = t.getApplicationConfiguration(
|
|
188
188
|
"com.3ds.wp.passport.cors"
|
|
189
189
|
);
|
|
@@ -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 x = {
|
|
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: x,
|
|
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: x,
|
|
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 xe(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: x,
|
|
420
420
|
data: JSON.stringify(s),
|
|
421
421
|
type: "json",
|
|
422
422
|
onComplete(d) {
|
|
@@ -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,7 +475,7 @@ 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
|
}, v = function(e) {
|
|
@@ -489,7 +489,7 @@ 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
494
|
var r = encodeURIComponent(v(i)) + s;
|
|
495
495
|
return Array.isArray(e[i]) ? e[i].map(function(o) {
|
|
@@ -497,8 +497,8 @@ var Q = function(e, t, s, n) {
|
|
|
497
497
|
}).join(t) : r + encodeURIComponent(v(e[i]));
|
|
498
498
|
}).filter(Boolean).join(t) : n ? encodeURIComponent(v(n)) + s + encodeURIComponent(v(e)) : "";
|
|
499
499
|
};
|
|
500
|
-
|
|
501
|
-
|
|
500
|
+
N.decode = N.parse = Z;
|
|
501
|
+
N.encode = N.stringify = ee;
|
|
502
502
|
async function L(e, t = void 0, s = void 0, n = void 0) {
|
|
503
503
|
const i = e.space;
|
|
504
504
|
if (t === void 0) {
|
|
@@ -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, {
|
|
@@ -584,7 +584,7 @@ function O(e, t = void 0, s = void 0) {
|
|
|
584
584
|
}
|
|
585
585
|
function U(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",
|
|
@@ -629,7 +629,7 @@ function Pe(e, t, s, n = void 0, i = void 0) {
|
|
|
629
629
|
});
|
|
630
630
|
}
|
|
631
631
|
function M(e, t, s, n, i, r = void 0, o = void 0) {
|
|
632
|
-
const a = () =>
|
|
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,13 +699,13 @@ 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
|
|
708
|
+
async function De(e, t, s, n = void 0, i = void 0) {
|
|
709
709
|
e.space, e.token, e.ctx, L(
|
|
710
710
|
e,
|
|
711
711
|
t,
|
|
@@ -730,79 +730,81 @@ 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`;
|
|
737
737
|
m(d, {
|
|
738
738
|
method: "PUT",
|
|
739
739
|
headers: {
|
|
740
|
-
ENO_CSRF_TOKEN: a
|
|
740
|
+
ENO_CSRF_TOKEN: a,
|
|
741
|
+
Accept: "application/json",
|
|
742
|
+
"Content-Type": "application/json",
|
|
743
|
+
SecurityContext: c
|
|
741
744
|
},
|
|
742
745
|
onComplete(p, u, f) {
|
|
743
|
-
|
|
746
|
+
const l = JSON.parse(p).csrf;
|
|
747
|
+
let g = JSON.parse(p).data[0].dataelements, y = new FormData(), h;
|
|
744
748
|
t instanceof Blob ? h = t : h = new Blob([t], {
|
|
745
749
|
type: "text/plain"
|
|
746
|
-
}),
|
|
747
|
-
const
|
|
748
|
-
let
|
|
750
|
+
}), y.append("__fcs__jobTicket", g.ticket), y.append("file_0", h, s);
|
|
751
|
+
const S = (w) => w.indexOf(".") === -1 ? w : w.split(".").slice(0, -1).join(".");
|
|
752
|
+
let _ = {
|
|
749
753
|
method: "POST",
|
|
750
|
-
data:
|
|
751
|
-
onComplete(
|
|
752
|
-
let
|
|
754
|
+
data: y,
|
|
755
|
+
onComplete(w) {
|
|
756
|
+
let T = "temp_" + $.now().ts, j = {
|
|
753
757
|
method: "POST",
|
|
754
758
|
headers: {
|
|
755
|
-
ENO_CSRF_TOKEN:
|
|
756
|
-
|
|
757
|
-
"Content-Type": "application/json"
|
|
759
|
+
ENO_CSRF_TOKEN: l.value,
|
|
760
|
+
SecurityContext: encodeURIComponent("ctx::" + c)
|
|
758
761
|
},
|
|
759
762
|
data: JSON.stringify({
|
|
763
|
+
csrf: l,
|
|
760
764
|
data: [
|
|
761
765
|
{
|
|
762
766
|
type: "Document",
|
|
763
767
|
dataelements: {
|
|
764
|
-
title:
|
|
765
|
-
description: n,
|
|
766
|
-
policy: "Document Release"
|
|
768
|
+
title: S(s)
|
|
767
769
|
},
|
|
768
770
|
relateddata: {
|
|
769
771
|
files: [
|
|
770
772
|
{
|
|
771
773
|
dataelements: {
|
|
772
774
|
title: s,
|
|
773
|
-
receipt:
|
|
775
|
+
receipt: w
|
|
774
776
|
}
|
|
775
777
|
}
|
|
776
778
|
]
|
|
777
779
|
},
|
|
778
|
-
tempId:
|
|
780
|
+
tempId: T
|
|
779
781
|
}
|
|
780
782
|
]
|
|
781
783
|
}),
|
|
782
784
|
type: "json",
|
|
783
|
-
onComplete(
|
|
784
|
-
i && i(
|
|
785
|
+
onComplete(F) {
|
|
786
|
+
i && i(F);
|
|
785
787
|
},
|
|
786
|
-
onFailure(
|
|
787
|
-
r && r(
|
|
788
|
+
onFailure(F) {
|
|
789
|
+
r && r(F);
|
|
788
790
|
}
|
|
789
791
|
};
|
|
790
792
|
m(
|
|
791
|
-
o + "/resources/v1/modeler/documents/?
|
|
792
|
-
|
|
793
|
+
o + "/resources/v1/modeler/documents/?e6w-lang=fr&e6w-timezone=-120&xrequestedwith=xmlhttprequest",
|
|
794
|
+
j
|
|
793
795
|
);
|
|
794
796
|
},
|
|
795
|
-
onFailure(
|
|
796
|
-
r && r(
|
|
797
|
+
onFailure(w) {
|
|
798
|
+
r && r(w);
|
|
797
799
|
},
|
|
798
800
|
timeout: 0
|
|
799
801
|
};
|
|
800
|
-
m(
|
|
802
|
+
m(g.ticketURL, _);
|
|
801
803
|
}
|
|
802
804
|
});
|
|
803
805
|
}
|
|
804
806
|
}
|
|
805
|
-
function
|
|
807
|
+
function A(e, t = void 0, s = void 0, n = void 0, i = void 0, r = void 0, o = !1) {
|
|
806
808
|
const a = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
|
|
807
809
|
m(a, {
|
|
808
810
|
method: "GET",
|
|
@@ -810,30 +812,30 @@ function j(e, t = void 0, s = void 0, n = void 0, i = void 0, r = void 0, o = !1
|
|
|
810
812
|
const d = JSON.parse(c);
|
|
811
813
|
let p = "", u, f, l;
|
|
812
814
|
if (t) {
|
|
813
|
-
let g = d.collabspaces.find((
|
|
815
|
+
let g = d.collabspaces.find((y) => y.title === t);
|
|
814
816
|
if (g) {
|
|
815
817
|
u = t;
|
|
816
|
-
let
|
|
817
|
-
|
|
818
|
-
(
|
|
819
|
-
(w) => w.organization.pid ===
|
|
818
|
+
let y = g.couples;
|
|
819
|
+
y = y.filter(
|
|
820
|
+
(h, S, _) => S === _.findIndex(
|
|
821
|
+
(w) => w.organization.pid === h.organization.pid && w.role.pid === h.role.pid
|
|
820
822
|
)
|
|
821
|
-
), s && (Array.isArray(s) ? s.forEach((
|
|
822
|
-
l ||
|
|
823
|
-
if (
|
|
824
|
-
l =
|
|
825
|
-
else if (
|
|
826
|
-
let _ =
|
|
827
|
-
(w) => w.role.name ===
|
|
823
|
+
), s && (Array.isArray(s) ? s.forEach((h) => {
|
|
824
|
+
l || y.forEach((S) => {
|
|
825
|
+
if (h === S.role.name && n === S.organization.title)
|
|
826
|
+
l = h, f = n;
|
|
827
|
+
else if (h === S.role.name) {
|
|
828
|
+
let _ = y.filter(
|
|
829
|
+
(w) => w.role.name === h
|
|
828
830
|
);
|
|
829
831
|
_.length === 1 ? (l = _[0].role.name, f = _[0].organization.title) : r(_);
|
|
830
832
|
}
|
|
831
833
|
});
|
|
832
|
-
}) :
|
|
833
|
-
if (s ===
|
|
834
|
+
}) : y.forEach((h) => {
|
|
835
|
+
if (s === h.role.name && n === h.organization.title)
|
|
834
836
|
l = s, f = n;
|
|
835
|
-
else if (s ===
|
|
836
|
-
let S =
|
|
837
|
+
else if (s === h.role.name) {
|
|
838
|
+
let S = y.filter(
|
|
837
839
|
(_) => _.role.name === s
|
|
838
840
|
);
|
|
839
841
|
S.length === 1 ? (l = S[0].role.name, f = S[0].organization.title) : r(S);
|
|
@@ -858,7 +860,7 @@ async function J(e, t = void 0, s = void 0) {
|
|
|
858
860
|
"_3DSpace_download_doc() / Le paramètre objectId est obligatoire"
|
|
859
861
|
)), (e.space === "" || !e.space) && (console.warn(
|
|
860
862
|
"_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) &&
|
|
863
|
+
), s && s("_3DSpace_download_doc() / Le paramètre space est obligatoire")), (e.token === "" || !e.token) && z(
|
|
862
864
|
e,
|
|
863
865
|
(n) => {
|
|
864
866
|
e.token = n;
|
|
@@ -903,12 +905,12 @@ async function J(e, t = void 0, s = void 0) {
|
|
|
903
905
|
);
|
|
904
906
|
});
|
|
905
907
|
}
|
|
906
|
-
async function
|
|
907
|
-
typeof t < "u" && Array.isArray(t) && t?.length > 0 ?
|
|
908
|
+
async function ne(e, t, s = void 0, n = void 0) {
|
|
909
|
+
typeof t < "u" && Array.isArray(t) && t?.length > 0 ? X({
|
|
908
910
|
credentials: e,
|
|
909
911
|
myArray: t,
|
|
910
912
|
chunk: 80,
|
|
911
|
-
fn_to_call:
|
|
913
|
+
fn_to_call: se
|
|
912
914
|
}, (r) => {
|
|
913
915
|
s && s(r);
|
|
914
916
|
}) : (console.warn(
|
|
@@ -917,7 +919,7 @@ async function te(e, t, s = void 0, n = void 0) {
|
|
|
917
919
|
"La liste d'objects dans la fonction _3DSpace_download_multidoc est vide ou non défini."
|
|
918
920
|
));
|
|
919
921
|
}
|
|
920
|
-
function
|
|
922
|
+
function se(e, t, s = void 0, n = void 0, i = void 0) {
|
|
921
923
|
const r = [];
|
|
922
924
|
t.forEach((c) => {
|
|
923
925
|
r.push({
|
|
@@ -943,17 +945,17 @@ function ne(e, t, s = void 0, n = void 0, i = void 0) {
|
|
|
943
945
|
const u = p.dataelements.fileName, f = p.dataelements.ticketURL;
|
|
944
946
|
m(f, {
|
|
945
947
|
onComplete: (l, g) => {
|
|
946
|
-
let
|
|
948
|
+
let y;
|
|
947
949
|
try {
|
|
948
|
-
|
|
950
|
+
y = JSON.parse(l);
|
|
949
951
|
} catch {
|
|
950
|
-
|
|
952
|
+
y = l.blob();
|
|
951
953
|
}
|
|
952
954
|
n && n({
|
|
953
955
|
objectId: p.id,
|
|
954
956
|
headers: g,
|
|
955
957
|
fileName: u,
|
|
956
|
-
data:
|
|
958
|
+
data: y
|
|
957
959
|
});
|
|
958
960
|
},
|
|
959
961
|
onFailure: (l) => {
|
|
@@ -970,7 +972,7 @@ function ne(e, t, s = void 0, n = void 0, i = void 0) {
|
|
|
970
972
|
}
|
|
971
973
|
});
|
|
972
974
|
}
|
|
973
|
-
function
|
|
975
|
+
function Me(e, t, s = void 0, n = void 0) {
|
|
974
976
|
return new Promise((i) => {
|
|
975
977
|
if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
|
|
976
978
|
const r = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
|
|
@@ -1001,7 +1003,7 @@ function Le(e, t, s = void 0, n = void 0) {
|
|
|
1001
1003
|
}
|
|
1002
1004
|
});
|
|
1003
1005
|
}
|
|
1004
|
-
function
|
|
1006
|
+
function Je(e, t, s, n = void 0, i = void 0) {
|
|
1005
1007
|
return new Promise((r) => {
|
|
1006
1008
|
if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
|
|
1007
1009
|
const o = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
|
|
@@ -1033,11 +1035,11 @@ function Me(e, t, s, n = void 0, i = void 0) {
|
|
|
1033
1035
|
}
|
|
1034
1036
|
});
|
|
1035
1037
|
}
|
|
1036
|
-
function
|
|
1038
|
+
function Ge(e, t, s = void 0, n = void 0) {
|
|
1037
1039
|
return new Promise((i) => {
|
|
1038
1040
|
if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
|
|
1039
1041
|
const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
|
|
1040
|
-
|
|
1042
|
+
A(
|
|
1041
1043
|
e.space,
|
|
1042
1044
|
"ESPACE COMMUN",
|
|
1043
1045
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -1074,11 +1076,11 @@ function Je(e, t, s = void 0, n = void 0) {
|
|
|
1074
1076
|
}
|
|
1075
1077
|
});
|
|
1076
1078
|
}
|
|
1077
|
-
function
|
|
1079
|
+
function Ee(e, t, s = void 0, n = void 0) {
|
|
1078
1080
|
return new Promise((i) => {
|
|
1079
1081
|
if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
|
|
1080
1082
|
const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
|
|
1081
|
-
|
|
1083
|
+
A(
|
|
1082
1084
|
e.space,
|
|
1083
1085
|
"ESPACE COMMUN",
|
|
1084
1086
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -1121,11 +1123,11 @@ function Ge(e, t, s = void 0, n = void 0) {
|
|
|
1121
1123
|
}
|
|
1122
1124
|
});
|
|
1123
1125
|
}
|
|
1124
|
-
function
|
|
1126
|
+
function Ke(e, t, s, n = void 0, i = void 0) {
|
|
1125
1127
|
return new Promise((r) => {
|
|
1126
1128
|
if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
|
|
1127
1129
|
const o = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
|
|
1128
|
-
|
|
1130
|
+
A(
|
|
1129
1131
|
e.space,
|
|
1130
1132
|
"ESPACE COMMUN",
|
|
1131
1133
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -1168,7 +1170,7 @@ function Ee(e, t, s, n = void 0, i = void 0) {
|
|
|
1168
1170
|
}
|
|
1169
1171
|
});
|
|
1170
1172
|
}
|
|
1171
|
-
function
|
|
1173
|
+
function Be(e, t, s, n, i = void 0, r = void 0) {
|
|
1172
1174
|
return new Promise((o) => {
|
|
1173
1175
|
const a = `${e.space}/resources/v1/modeler/dsbks/dsbks:Bookmark`;
|
|
1174
1176
|
let c = {
|
|
@@ -1201,7 +1203,7 @@ function Ke(e, t, s, n, i = void 0, r = void 0) {
|
|
|
1201
1203
|
m(a, p);
|
|
1202
1204
|
});
|
|
1203
1205
|
}
|
|
1204
|
-
function
|
|
1206
|
+
function Ve(e, t, s, n, i = void 0, r = void 0) {
|
|
1205
1207
|
return console.log("credentials", e), new Promise((o) => {
|
|
1206
1208
|
`${e.space}`, JSON.stringify({
|
|
1207
1209
|
csrf: {
|
|
@@ -1225,7 +1227,7 @@ function Be(e, t, s, n, i = void 0, r = void 0) {
|
|
|
1225
1227
|
});
|
|
1226
1228
|
}
|
|
1227
1229
|
//!SECTION
|
|
1228
|
-
function
|
|
1230
|
+
function We(e, t = void 0, s = void 0) {
|
|
1229
1231
|
const n = {
|
|
1230
1232
|
base: `${e.space}`,
|
|
1231
1233
|
uri: "/resources/bps/cspaces",
|
|
@@ -1246,7 +1248,7 @@ function Ve(e, t = void 0, s = void 0) {
|
|
|
1246
1248
|
}
|
|
1247
1249
|
});
|
|
1248
1250
|
}
|
|
1249
|
-
function
|
|
1251
|
+
function Xe(e, t, s, n) {
|
|
1250
1252
|
U(
|
|
1251
1253
|
e.space,
|
|
1252
1254
|
t,
|
|
@@ -1263,7 +1265,7 @@ function We(e, t, s, n) {
|
|
|
1263
1265
|
}
|
|
1264
1266
|
);
|
|
1265
1267
|
}
|
|
1266
|
-
async function
|
|
1268
|
+
async function qe(e, t, s = void 0, n = void 0) {
|
|
1267
1269
|
return new Promise((i) => {
|
|
1268
1270
|
U(e, t, (r) => {
|
|
1269
1271
|
m(r, {
|
|
@@ -1277,7 +1279,7 @@ async function Xe(e, t, s = void 0, n = void 0) {
|
|
|
1277
1279
|
}
|
|
1278
1280
|
function Ye(e, t, s, n = void 0, i = void 0) {
|
|
1279
1281
|
const r = new Blob([JSON.stringify(t)], { type: "text/plain" });
|
|
1280
|
-
|
|
1282
|
+
k(
|
|
1281
1283
|
e,
|
|
1282
1284
|
s,
|
|
1283
1285
|
(o) => {
|
|
@@ -1299,9 +1301,9 @@ function Ye(e, t, s, n = void 0, i = void 0) {
|
|
|
1299
1301
|
);
|
|
1300
1302
|
}
|
|
1301
1303
|
let G, E;
|
|
1302
|
-
const
|
|
1303
|
-
async function
|
|
1304
|
-
e.objID && e.objID !== "" ?
|
|
1304
|
+
const P = [];
|
|
1305
|
+
async function He(e, t = void 0, s = void 0) {
|
|
1306
|
+
e.objID && e.objID !== "" ? k(
|
|
1305
1307
|
e,
|
|
1306
1308
|
(n) => {
|
|
1307
1309
|
t && t(n);
|
|
@@ -1319,7 +1321,7 @@ async function qe(e, t = void 0, s = void 0) {
|
|
|
1319
1321
|
}
|
|
1320
1322
|
);
|
|
1321
1323
|
}
|
|
1322
|
-
async function
|
|
1324
|
+
async function ze(e, t = void 0, s = void 0) {
|
|
1323
1325
|
console.log("getDatasByTenant (getDocuments)", e), await J(
|
|
1324
1326
|
e,
|
|
1325
1327
|
(n) => {
|
|
@@ -1331,7 +1333,7 @@ async function He(e, t = void 0, s = void 0) {
|
|
|
1331
1333
|
}
|
|
1332
1334
|
);
|
|
1333
1335
|
}
|
|
1334
|
-
function
|
|
1336
|
+
function Qe(e, t = void 0, s = void 0) {
|
|
1335
1337
|
const n = [];
|
|
1336
1338
|
if (!e.objIds && !Array.isArray(e.objIds) && e.objIds.length === 0) {
|
|
1337
1339
|
console.warn("la liste est vide ou n'est pas un tableau");
|
|
@@ -1342,25 +1344,25 @@ function ze(e, t = void 0, s = void 0) {
|
|
|
1342
1344
|
e,
|
|
1343
1345
|
i.objID,
|
|
1344
1346
|
(o) => {
|
|
1345
|
-
n.push({ [i.name]: o }), i.name === "dbProjets" && (G = o.affaires.map((a) => a.objectID),
|
|
1347
|
+
n.push({ [i.name]: o }), i.name === "dbProjets" && (G = o.affaires.map((a) => a.objectID), ie(e, E)), r === e.objIds.length - 1 && (t && t(n), delete e.objIds, delete e.datas);
|
|
1346
1348
|
}
|
|
1347
1349
|
);
|
|
1348
1350
|
});
|
|
1349
1351
|
}
|
|
1350
|
-
function
|
|
1351
|
-
|
|
1352
|
+
function ie(e, t, s = void 0, n = void 0) {
|
|
1353
|
+
ne(
|
|
1352
1354
|
e,
|
|
1353
1355
|
G,
|
|
1354
1356
|
(i) => {
|
|
1355
1357
|
const r = [...t];
|
|
1356
|
-
r.find((o) => o.objectID === i.objectId).data = i.data, E = r,
|
|
1358
|
+
r.find((o) => o.objectID === i.objectId).data = i.data, E = r, P.push(i.data), s && s(P);
|
|
1357
1359
|
},
|
|
1358
1360
|
(i) => {
|
|
1359
1361
|
n && (n(i), console.log(i));
|
|
1360
1362
|
}
|
|
1361
1363
|
);
|
|
1362
1364
|
}
|
|
1363
|
-
const
|
|
1365
|
+
const ae = "FA35FB9B177A280065800EA0000F599C", oe = [
|
|
1364
1366
|
"swym",
|
|
1365
1367
|
"3dspace",
|
|
1366
1368
|
"drive",
|
|
@@ -1374,13 +1376,13 @@ const ie = "FA35FB9B177A280065800EA0000F599C", ae = [
|
|
|
1374
1376
|
where: "ds6w:where",
|
|
1375
1377
|
who: "ds6w:who",
|
|
1376
1378
|
why: "ds6w:why"
|
|
1377
|
-
},
|
|
1378
|
-
objId:
|
|
1379
|
+
}, re = {
|
|
1380
|
+
objId: ae,
|
|
1379
1381
|
pred: "who",
|
|
1380
1382
|
order_by: "desc",
|
|
1381
1383
|
tag: "testTag"
|
|
1382
1384
|
};
|
|
1383
|
-
function
|
|
1385
|
+
function Ze(e, t, s = void 0, n = void 0) {
|
|
1384
1386
|
const { space: i, tenant: r } = e, { objId: o, pred: a, tag: c } = t, d = {
|
|
1385
1387
|
uri: "/resources/6w/tags",
|
|
1386
1388
|
otpCTX: "SecurityContext=preferred",
|
|
@@ -1415,8 +1417,8 @@ function Qe(e, t, s = void 0, n = void 0) {
|
|
|
1415
1417
|
e,
|
|
1416
1418
|
o,
|
|
1417
1419
|
(g) => {
|
|
1418
|
-
const
|
|
1419
|
-
l.name =
|
|
1420
|
+
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;
|
|
1421
|
+
l.name = y, l.ext = h, l.createBy = S, t.info = { ...l }, ce(
|
|
1420
1422
|
e,
|
|
1421
1423
|
t,
|
|
1422
1424
|
(_) => {
|
|
@@ -1427,9 +1429,9 @@ function Qe(e, t, s = void 0, n = void 0) {
|
|
|
1427
1429
|
}
|
|
1428
1430
|
);
|
|
1429
1431
|
},
|
|
1430
|
-
(g,
|
|
1431
|
-
const
|
|
1432
|
-
|
|
1432
|
+
(g, y) => {
|
|
1433
|
+
const h = g;
|
|
1434
|
+
h.msg = y.errormsg, h.errCode = y.errorcode, console.log("❌ sendDirectMessage => ", h), n && n(h);
|
|
1433
1435
|
}
|
|
1434
1436
|
);
|
|
1435
1437
|
}, 2e3);
|
|
@@ -1440,7 +1442,7 @@ function Qe(e, t, s = void 0, n = void 0) {
|
|
|
1440
1442
|
}
|
|
1441
1443
|
});
|
|
1442
1444
|
}
|
|
1443
|
-
function
|
|
1445
|
+
function ce(e, t, s = void 0, n = void 0) {
|
|
1444
1446
|
console.log("obj ", t);
|
|
1445
1447
|
const i = t.info.name, r = {
|
|
1446
1448
|
baseUrl: `https://${e.tenant.toLowerCase()}-eu1-fedsearch.3dexperience.3ds.com`,
|
|
@@ -1448,7 +1450,7 @@ function re(e, t, s = void 0, n = void 0) {
|
|
|
1448
1450
|
}, o = `${r.baseUrl}${r.uri}`, a = {
|
|
1449
1451
|
"Content-Type": "application/json",
|
|
1450
1452
|
Accept: "application/json,text/javascript,*/*"
|
|
1451
|
-
}, c =
|
|
1453
|
+
}, c = V(), d = {
|
|
1452
1454
|
with_indexing_date: !0,
|
|
1453
1455
|
with_synthesis: !0,
|
|
1454
1456
|
with_nls: !1,
|
|
@@ -1490,7 +1492,7 @@ function re(e, t, s = void 0, n = void 0) {
|
|
|
1490
1492
|
}
|
|
1491
1493
|
},
|
|
1492
1494
|
select_exclude_synthesis: ["ds6w:what/ds6w:topic"],
|
|
1493
|
-
order_by:
|
|
1495
|
+
order_by: re.order_by,
|
|
1494
1496
|
order_field: "relevance",
|
|
1495
1497
|
select_snippets: [
|
|
1496
1498
|
"ds6w:snippet",
|
|
@@ -1501,7 +1503,7 @@ function re(e, t, s = void 0, n = void 0) {
|
|
|
1501
1503
|
],
|
|
1502
1504
|
nresults: 40,
|
|
1503
1505
|
start: "0",
|
|
1504
|
-
source:
|
|
1506
|
+
source: oe,
|
|
1505
1507
|
tenant: e.tenant,
|
|
1506
1508
|
login: {
|
|
1507
1509
|
"3dspace": {
|
|
@@ -1523,7 +1525,7 @@ function re(e, t, s = void 0, n = void 0) {
|
|
|
1523
1525
|
}
|
|
1524
1526
|
});
|
|
1525
1527
|
}
|
|
1526
|
-
function
|
|
1528
|
+
function et(e, t, s = void 0, n = void 0) {
|
|
1527
1529
|
const { objId: i, pred: r, tag: o } = t, a = {
|
|
1528
1530
|
uri: "/resources/6w/tags",
|
|
1529
1531
|
otpCTX: "SecurityContext=preferred",
|
|
@@ -1559,7 +1561,7 @@ function Ze(e, t, s = void 0, n = void 0) {
|
|
|
1559
1561
|
}
|
|
1560
1562
|
});
|
|
1561
1563
|
}
|
|
1562
|
-
function
|
|
1564
|
+
function tt(e, t = "", s = void 0, n = void 0) {
|
|
1563
1565
|
const { space: i } = e;
|
|
1564
1566
|
if (t === "")
|
|
1565
1567
|
return;
|
|
@@ -1595,7 +1597,7 @@ async function C(e, t = void 0, s = void 0) {
|
|
|
1595
1597
|
}
|
|
1596
1598
|
});
|
|
1597
1599
|
}
|
|
1598
|
-
function
|
|
1600
|
+
function nt(e, t = void 0, s = void 0) {
|
|
1599
1601
|
const n = `${e.space}/api/exalead/whatsnew`, i = {
|
|
1600
1602
|
params: {
|
|
1601
1603
|
community_id: null,
|
|
@@ -1625,7 +1627,7 @@ function tt(e, t = void 0, s = void 0) {
|
|
|
1625
1627
|
});
|
|
1626
1628
|
});
|
|
1627
1629
|
}
|
|
1628
|
-
function
|
|
1630
|
+
function st(e, t = void 0, s = void 0) {
|
|
1629
1631
|
const n = `${e.space}/api/Recommendation/getpeoplefamiliartocurrentuser`, i = {
|
|
1630
1632
|
params: {
|
|
1631
1633
|
idsToFilterArr: [],
|
|
@@ -1655,7 +1657,7 @@ function nt(e, t = void 0, s = void 0) {
|
|
|
1655
1657
|
});
|
|
1656
1658
|
});
|
|
1657
1659
|
}
|
|
1658
|
-
function
|
|
1660
|
+
function it(e, t = void 0, s = void 0) {
|
|
1659
1661
|
const n = {
|
|
1660
1662
|
base: e.space,
|
|
1661
1663
|
uri: "/api/community/listmycommunities",
|
|
@@ -1680,13 +1682,13 @@ function st(e, t = void 0, s = void 0) {
|
|
|
1680
1682
|
role: l.role,
|
|
1681
1683
|
access: l.access
|
|
1682
1684
|
};
|
|
1683
|
-
|
|
1685
|
+
de(
|
|
1684
1686
|
e,
|
|
1685
1687
|
l.id,
|
|
1686
|
-
(
|
|
1687
|
-
f++, g.members =
|
|
1688
|
+
(y) => {
|
|
1689
|
+
f++, g.members = y, r.push(g), f === u.length && t && t(r);
|
|
1688
1690
|
},
|
|
1689
|
-
(
|
|
1691
|
+
(y) => s(y)
|
|
1690
1692
|
);
|
|
1691
1693
|
});
|
|
1692
1694
|
},
|
|
@@ -1697,7 +1699,7 @@ function st(e, t = void 0, s = void 0) {
|
|
|
1697
1699
|
});
|
|
1698
1700
|
});
|
|
1699
1701
|
}
|
|
1700
|
-
function
|
|
1702
|
+
function de(e, t, s, n) {
|
|
1701
1703
|
const i = `${e.space}/api/community/listmembers`, r = {
|
|
1702
1704
|
params: {
|
|
1703
1705
|
page: e.page ? e.page : 1,
|
|
@@ -1725,7 +1727,7 @@ function ce(e, t, s, n) {
|
|
|
1725
1727
|
});
|
|
1726
1728
|
});
|
|
1727
1729
|
}
|
|
1728
|
-
function
|
|
1730
|
+
function at(e, t = void 0, s = void 0) {
|
|
1729
1731
|
const n = "YXdA5x4DSUKtlAi2wmnyTA";
|
|
1730
1732
|
e.commu_id || (e.commu_id = n);
|
|
1731
1733
|
const i = `${e.space}/api/v2/communities/${e.commu_id}/ideas/statuses`;
|
|
@@ -1748,7 +1750,7 @@ function it(e, t = void 0, s = void 0) {
|
|
|
1748
1750
|
});
|
|
1749
1751
|
});
|
|
1750
1752
|
}
|
|
1751
|
-
function
|
|
1753
|
+
function ot(e, t, s = void 0, n = void 0) {
|
|
1752
1754
|
const { listAllContacts: i, currentUser: r } = e;
|
|
1753
1755
|
console.log("__listAllContacts", i.hits);
|
|
1754
1756
|
const o = `${e.space}/api/directmessages`, a = {
|
|
@@ -1757,13 +1759,13 @@ function at(e, t, s = void 0, n = void 0) {
|
|
|
1757
1759
|
id_msg: "",
|
|
1758
1760
|
senderId: e.currentUser.login,
|
|
1759
1761
|
senderName: `${e.currentUser.first_name} ${e.currentUser.last_name}`,
|
|
1760
|
-
msg:
|
|
1762
|
+
msg: ue(t.msg)
|
|
1761
1763
|
};
|
|
1762
1764
|
let d = !1;
|
|
1763
|
-
|
|
1765
|
+
pe(
|
|
1764
1766
|
a.users,
|
|
1765
1767
|
(p) => {
|
|
1766
|
-
p !== void 0 && (c.id_msg = p.id, d = !0,
|
|
1768
|
+
p !== void 0 && (c.id_msg = p.id, d = !0, R(e, c));
|
|
1767
1769
|
},
|
|
1768
1770
|
(p) => {
|
|
1769
1771
|
d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", p), n && n(p), c.id_msg = "";
|
|
@@ -1781,7 +1783,7 @@ function at(e, t, s = void 0, n = void 0) {
|
|
|
1781
1783
|
type: "json",
|
|
1782
1784
|
onComplete(u, f, l) {
|
|
1783
1785
|
const g = u;
|
|
1784
|
-
g.reponse = JSON.parse(l.response), g.status = l.status, s && s(g), c.id_msg = g.result.id,
|
|
1786
|
+
g.reponse = JSON.parse(l.response), g.status = l.status, s && s(g), c.id_msg = g.result.id, R(e, c);
|
|
1785
1787
|
},
|
|
1786
1788
|
onFailure(u, f, l) {
|
|
1787
1789
|
const g = u;
|
|
@@ -1791,7 +1793,7 @@ function at(e, t, s = void 0, n = void 0) {
|
|
|
1791
1793
|
});
|
|
1792
1794
|
}, 500);
|
|
1793
1795
|
}
|
|
1794
|
-
function
|
|
1796
|
+
function pe(e, t, s, n) {
|
|
1795
1797
|
const i = `${e.space}/api/directmessages/lite?with_favorites=false`;
|
|
1796
1798
|
C(e, (r) => {
|
|
1797
1799
|
m(i, {
|
|
@@ -1820,7 +1822,7 @@ function de(e, t, s, n) {
|
|
|
1820
1822
|
});
|
|
1821
1823
|
});
|
|
1822
1824
|
}
|
|
1823
|
-
function
|
|
1825
|
+
function R(e, t, s = void 0, n = void 0) {
|
|
1824
1826
|
const i = {
|
|
1825
1827
|
base: e.space,
|
|
1826
1828
|
uri: "/api/community",
|
|
@@ -1857,14 +1859,14 @@ function P(e, t, s = void 0, n = void 0) {
|
|
|
1857
1859
|
});
|
|
1858
1860
|
});
|
|
1859
1861
|
}
|
|
1860
|
-
function
|
|
1862
|
+
function ue(e) {
|
|
1861
1863
|
const t = (/* @__PURE__ */ new Date()).toLocaleDateString(), s = (/* @__PURE__ */ new Date()).toLocaleTimeString();
|
|
1862
1864
|
return `<p>${e} </p>
|
|
1863
1865
|
<br/>
|
|
1864
1866
|
<hr/>
|
|
1865
1867
|
<p><u>envoyer :</u>Le <b>${t} à ${s}</b></p>`;
|
|
1866
1868
|
}
|
|
1867
|
-
function
|
|
1869
|
+
function rt(e, t, s = void 0, n = void 0) {
|
|
1868
1870
|
const i = `${e.space}/api/idea/add`, r = e.swymCommunities.find(
|
|
1869
1871
|
(c) => c.id === t.community_id
|
|
1870
1872
|
), o = e.swymCommunities.find(
|
|
@@ -1875,7 +1877,7 @@ function ot(e, t, s = void 0, n = void 0) {
|
|
|
1875
1877
|
// String, le nom de l'affaire
|
|
1876
1878
|
community_id: r?.id !== void 0 ? r.id : o.id,
|
|
1877
1879
|
// String, l'id de la communauté
|
|
1878
|
-
message:
|
|
1880
|
+
message: le(t.text_html),
|
|
1879
1881
|
// STRING => le contenue du message doit être au format HTML
|
|
1880
1882
|
published: 1
|
|
1881
1883
|
// 1 publier, 0 non publier
|
|
@@ -1903,7 +1905,7 @@ function ot(e, t, s = void 0, n = void 0) {
|
|
|
1903
1905
|
});
|
|
1904
1906
|
});
|
|
1905
1907
|
}
|
|
1906
|
-
function
|
|
1908
|
+
function ct(e, t = void 0, s = void 0) {
|
|
1907
1909
|
const n = { base: e.space, uri: "/api/idea/add" };
|
|
1908
1910
|
if (!Array.isArray(e.swymCommunities)) {
|
|
1909
1911
|
const o = "☠️ swymCommunities doit être un tableau d'objets de communautés";
|
|
@@ -1976,7 +1978,7 @@ function rt(e, t = void 0, s = void 0) {
|
|
|
1976
1978
|
m(n.base + n.uri, a);
|
|
1977
1979
|
});
|
|
1978
1980
|
}
|
|
1979
|
-
function
|
|
1981
|
+
function dt(e, t, s = void 0, n = void 0) {
|
|
1980
1982
|
const i = `${e.space}/api/idea/delete`, r = {
|
|
1981
1983
|
params: {
|
|
1982
1984
|
community_id: t.community_id,
|
|
@@ -2003,7 +2005,7 @@ function ct(e, t, s = void 0, n = void 0) {
|
|
|
2003
2005
|
});
|
|
2004
2006
|
});
|
|
2005
2007
|
}
|
|
2006
|
-
function
|
|
2008
|
+
function pt(e, t = void 0, s = void 0) {
|
|
2007
2009
|
const n = `${e.space}/api/idea/get`;
|
|
2008
2010
|
if (e.idPost === "") {
|
|
2009
2011
|
const r = "☠️ idPost est vide, vous devez renseigner un identifiant de post";
|
|
@@ -2033,7 +2035,7 @@ function dt(e, t = void 0, s = void 0) {
|
|
|
2033
2035
|
});
|
|
2034
2036
|
});
|
|
2035
2037
|
}
|
|
2036
|
-
function
|
|
2038
|
+
function ut(e, t, s) {
|
|
2037
2039
|
const n = {
|
|
2038
2040
|
base: `${e.space}/api/idea/edit`,
|
|
2039
2041
|
uri: "/api/idea/edit"
|
|
@@ -2070,7 +2072,7 @@ function pt(e, t, s) {
|
|
|
2070
2072
|
m(n.base + n.uri, o);
|
|
2071
2073
|
});
|
|
2072
2074
|
}
|
|
2073
|
-
function
|
|
2075
|
+
function lt(e, t, s = void 0, n = void 0) {
|
|
2074
2076
|
const { space: i } = e;
|
|
2075
2077
|
let { community_id: r, limit: o, page: a, search: c } = t;
|
|
2076
2078
|
const d = [], p = 1;
|
|
@@ -2083,12 +2085,12 @@ function ut(e, t, s = void 0, n = void 0) {
|
|
|
2083
2085
|
page: `/page/${a}`
|
|
2084
2086
|
};
|
|
2085
2087
|
let g = `${i}${l.uri}${l.comId}${l.limit}${l.page}`;
|
|
2086
|
-
C(e, (
|
|
2087
|
-
const
|
|
2088
|
+
C(e, (y) => {
|
|
2089
|
+
const h = (S) => {
|
|
2088
2090
|
m(S, {
|
|
2089
2091
|
method: "GET",
|
|
2090
2092
|
headers: {
|
|
2091
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
2093
|
+
"X-DS-SWYM-CSRFTOKEN": y.result.ServerToken
|
|
2092
2094
|
},
|
|
2093
2095
|
onComplete(_) {
|
|
2094
2096
|
const w = { response: JSON.parse(_) };
|
|
@@ -2097,7 +2099,7 @@ function ut(e, t, s = void 0, n = void 0) {
|
|
|
2097
2099
|
d.push(w.response.result);
|
|
2098
2100
|
else {
|
|
2099
2101
|
const T = w.response.result.find(
|
|
2100
|
-
(
|
|
2102
|
+
(j) => j.title.includes(c)
|
|
2101
2103
|
);
|
|
2102
2104
|
if (T) {
|
|
2103
2105
|
s(T);
|
|
@@ -2108,7 +2110,7 @@ function ut(e, t, s = void 0, n = void 0) {
|
|
|
2108
2110
|
u = !0, s(d);
|
|
2109
2111
|
return;
|
|
2110
2112
|
}
|
|
2111
|
-
|
|
2113
|
+
h(S);
|
|
2112
2114
|
}
|
|
2113
2115
|
},
|
|
2114
2116
|
onFailure(_, w) {
|
|
@@ -2117,10 +2119,10 @@ function ut(e, t, s = void 0, n = void 0) {
|
|
|
2117
2119
|
}
|
|
2118
2120
|
});
|
|
2119
2121
|
};
|
|
2120
|
-
u ||
|
|
2122
|
+
u || h(g);
|
|
2121
2123
|
});
|
|
2122
2124
|
}
|
|
2123
|
-
function
|
|
2125
|
+
function le(e) {
|
|
2124
2126
|
return !e || e === "" ? `<h2><u>INFORMATIONS AFFAIRE :</u></h2>
|
|
2125
2127
|
<p><u>|⚠️<em> Merci de respecter l'écriture des tags, en MAJUSCULES, nom complet, pas de caractères</em></u></p>
|
|
2126
2128
|
<p><u><em>|spéciaux, séparation par "_" si besoin !</em></u></p>
|
|
@@ -2195,7 +2197,7 @@ function ue(e) {
|
|
|
2195
2197
|
<p>
|
|
2196
2198
|
</p>` : e;
|
|
2197
2199
|
}
|
|
2198
|
-
function
|
|
2200
|
+
function ft(e, t = void 0, s = void 0) {
|
|
2199
2201
|
const n = e.space + "/api/user/getcurrent/";
|
|
2200
2202
|
C(e, (i) => {
|
|
2201
2203
|
m(n, {
|
|
@@ -2214,7 +2216,7 @@ function lt(e, t = void 0, s = void 0) {
|
|
|
2214
2216
|
});
|
|
2215
2217
|
});
|
|
2216
2218
|
}
|
|
2217
|
-
function
|
|
2219
|
+
function mt(e, t, s = void 0, n = void 0) {
|
|
2218
2220
|
const i = e.space + "/api/user/find/login/" + t;
|
|
2219
2221
|
C(
|
|
2220
2222
|
e,
|
|
@@ -2234,13 +2236,13 @@ function ft(e, t, s = void 0, n = void 0) {
|
|
|
2234
2236
|
n
|
|
2235
2237
|
);
|
|
2236
2238
|
}
|
|
2237
|
-
function
|
|
2239
|
+
function gt(e, t = void 0, s = void 0) {
|
|
2238
2240
|
e.tenant && b(e, (n) => {
|
|
2239
2241
|
const i = n.services.find((r) => r.id === "businessprocess")?.url + "/api/v2";
|
|
2240
2242
|
return t && t(i), i;
|
|
2241
2243
|
});
|
|
2242
2244
|
}
|
|
2243
|
-
function
|
|
2245
|
+
function ht(e, t = void 0, s = void 0) {
|
|
2244
2246
|
e.tenant && b(e, (n) => {
|
|
2245
2247
|
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
2248
|
m(o, {
|
|
@@ -2258,7 +2260,7 @@ function gt(e, t = void 0, s = void 0) {
|
|
|
2258
2260
|
});
|
|
2259
2261
|
});
|
|
2260
2262
|
}
|
|
2261
|
-
function
|
|
2263
|
+
function yt(e, t = void 0, s = void 0) {
|
|
2262
2264
|
if (e.tenant) {
|
|
2263
2265
|
const n = e.tenant.toLowerCase();
|
|
2264
2266
|
fetch(`https://api.uixhome.fr/${n}/iterop/jwtuser`, {
|
|
@@ -2270,7 +2272,7 @@ function ht(e, t = void 0, s = void 0) {
|
|
|
2270
2272
|
});
|
|
2271
2273
|
}
|
|
2272
2274
|
}
|
|
2273
|
-
async function
|
|
2275
|
+
async function St(e, t, s = void 0, n = void 0) {
|
|
2274
2276
|
e.tenant && b(e, (i) => {
|
|
2275
2277
|
const o = `${i.services.find((c) => c.id === "businessprocess")?.url + "/api/v2"}/identity/users`, a = e.tenant.toLowerCase();
|
|
2276
2278
|
fetch(`https://api.uixhome.fr/${a}/iterop/listusers?t=${t}&s=${o}`, {
|
|
@@ -2282,7 +2284,7 @@ async function yt(e, t, s = void 0, n = void 0) {
|
|
|
2282
2284
|
});
|
|
2283
2285
|
});
|
|
2284
2286
|
}
|
|
2285
|
-
async function
|
|
2287
|
+
async function _t(e, t, s = void 0, n = void 0) {
|
|
2286
2288
|
e.tenant && b(e, (i) => {
|
|
2287
2289
|
const o = `${i.services.find((c) => c.id === "businessprocess")?.url + "/api/v2"}/repository/data/tables`, a = e.tenant.toLowerCase();
|
|
2288
2290
|
fetch(`https://api.uixhome.fr/${a}/iterop/repository/data/tables?t=${t}&s=${o}`, {
|
|
@@ -2294,7 +2296,7 @@ async function St(e, t, s = void 0, n = void 0) {
|
|
|
2294
2296
|
});
|
|
2295
2297
|
});
|
|
2296
2298
|
}
|
|
2297
|
-
async function
|
|
2299
|
+
async function wt(e, t, s, n = void 0, i = void 0) {
|
|
2298
2300
|
if (e.tenant) {
|
|
2299
2301
|
const r = e.tenant.toLowerCase();
|
|
2300
2302
|
fetch(`https://api.uixhome.fr/${r}/iterop/businesstable/${s}?t=${t}`, {
|
|
@@ -2306,7 +2308,7 @@ async function _t(e, t, s, n = void 0, i = void 0) {
|
|
|
2306
2308
|
});
|
|
2307
2309
|
}
|
|
2308
2310
|
}
|
|
2309
|
-
async function
|
|
2311
|
+
async function Ct(e, t, s, n = void 0, i = void 0) {
|
|
2310
2312
|
if (e.tenant) {
|
|
2311
2313
|
const r = e.tenant.toLowerCase();
|
|
2312
2314
|
fetch(`https://api.uixhome.fr/${r}/iterop/businesstable/rows/${s}/?t=${t}`, {
|
|
@@ -2318,7 +2320,7 @@ async function wt(e, t, s, n = void 0, i = void 0) {
|
|
|
2318
2320
|
});
|
|
2319
2321
|
}
|
|
2320
2322
|
}
|
|
2321
|
-
async function
|
|
2323
|
+
async function Tt(e, t, s, n, i = void 0, r = void 0) {
|
|
2322
2324
|
e.tenant && b(e, (o) => {
|
|
2323
2325
|
o.services.find((c) => c.id === "businessprocess")?.url + "";
|
|
2324
2326
|
const a = e.tenant.toLowerCase();
|
|
@@ -2331,7 +2333,7 @@ async function Ct(e, t, s, n, i = void 0, r = void 0) {
|
|
|
2331
2333
|
});
|
|
2332
2334
|
});
|
|
2333
2335
|
}
|
|
2334
|
-
async function
|
|
2336
|
+
async function bt(e, t, s, n, i, r = void 0, o = void 0) {
|
|
2335
2337
|
if (e.tenant) {
|
|
2336
2338
|
const a = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/search/rows/${s}?t=${t}&c=${encodeURIComponent(
|
|
2337
2339
|
n
|
|
@@ -2350,7 +2352,7 @@ async function Tt(e, t, s, n, i, r = void 0, o = void 0) {
|
|
|
2350
2352
|
});
|
|
2351
2353
|
}
|
|
2352
2354
|
}
|
|
2353
|
-
async function
|
|
2355
|
+
async function Ot(e, t, s, n, i = void 0, r = void 0) {
|
|
2354
2356
|
if (e.tenant) {
|
|
2355
2357
|
const o = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/update/${s}?t=${t}&b=${encodeURIComponent(
|
|
2356
2358
|
n
|
|
@@ -2367,7 +2369,7 @@ async function bt(e, t, s, n, i = void 0, r = void 0) {
|
|
|
2367
2369
|
});
|
|
2368
2370
|
}
|
|
2369
2371
|
}
|
|
2370
|
-
async function
|
|
2372
|
+
async function $t(e, t, s, n, i = void 0, r = void 0) {
|
|
2371
2373
|
e.tenant && b(e, (o) => {
|
|
2372
2374
|
o.services.find((c) => c.id === "businessprocess")?.url + "";
|
|
2373
2375
|
const a = e.tenant.toLowerCase();
|
|
@@ -2383,7 +2385,7 @@ async function Ot(e, t, s, n, i = void 0, r = void 0) {
|
|
|
2383
2385
|
});
|
|
2384
2386
|
});
|
|
2385
2387
|
}
|
|
2386
|
-
async function
|
|
2388
|
+
async function It(e, t, s, n = void 0, i = void 0) {
|
|
2387
2389
|
e.tenant && b(e, (r) => {
|
|
2388
2390
|
r.services.find((a) => a.id === "businessprocess")?.url + "";
|
|
2389
2391
|
const o = e.tenant.toLowerCase();
|
|
@@ -2399,7 +2401,7 @@ async function $t(e, t, s, n = void 0, i = void 0) {
|
|
|
2399
2401
|
});
|
|
2400
2402
|
});
|
|
2401
2403
|
}
|
|
2402
|
-
async function
|
|
2404
|
+
async function vt(e, t, s, n, i, r = void 0, o = void 0) {
|
|
2403
2405
|
e.tenant && b(e, (a) => {
|
|
2404
2406
|
a.services.find((d) => d.id === "businessprocess")?.url + "";
|
|
2405
2407
|
const c = e.tenant.toLowerCase();
|
|
@@ -2415,7 +2417,7 @@ async function It(e, t, s, n, i, r = void 0, o = void 0) {
|
|
|
2415
2417
|
});
|
|
2416
2418
|
});
|
|
2417
2419
|
}
|
|
2418
|
-
async function
|
|
2420
|
+
async function Nt(e, t, s, n, i = void 0, r = void 0) {
|
|
2419
2421
|
e.tenant && b(e, (o) => {
|
|
2420
2422
|
o.services.find((c) => c.id === "businessprocess")?.url + "";
|
|
2421
2423
|
const a = e.tenant.toLowerCase();
|
|
@@ -2432,7 +2434,7 @@ async function vt(e, t, s, n, i = void 0, r = void 0) {
|
|
|
2432
2434
|
});
|
|
2433
2435
|
}
|
|
2434
2436
|
//!SECTION
|
|
2435
|
-
async function
|
|
2437
|
+
async function kt(e, t, s, n = void 0, i = void 0) {
|
|
2436
2438
|
if (e.tenant) {
|
|
2437
2439
|
const r = e.tenant.toLowerCase();
|
|
2438
2440
|
fetch(
|
|
@@ -2448,17 +2450,17 @@ async function Nt(e, t, s, n = void 0, i = void 0) {
|
|
|
2448
2450
|
}
|
|
2449
2451
|
}
|
|
2450
2452
|
//!SECTION
|
|
2451
|
-
function
|
|
2453
|
+
function At(e) {
|
|
2452
2454
|
const t = "Hello " + e;
|
|
2453
2455
|
return console.log(t), t;
|
|
2454
2456
|
}
|
|
2455
|
-
function
|
|
2457
|
+
function jt(e, t = void 0, s = void 0) {
|
|
2456
2458
|
return console.log("credentials", e), new Promise((n) => {
|
|
2457
2459
|
if (e.token === "" && O(e), !e.space || e.space === "") {
|
|
2458
2460
|
const o = Y();
|
|
2459
2461
|
console.log("platformeInfo", o);
|
|
2460
2462
|
}
|
|
2461
|
-
|
|
2463
|
+
A(
|
|
2462
2464
|
e,
|
|
2463
2465
|
"Common space",
|
|
2464
2466
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -2469,7 +2471,7 @@ function At(e, t = void 0, s = void 0) {
|
|
|
2469
2471
|
},
|
|
2470
2472
|
!0
|
|
2471
2473
|
);
|
|
2472
|
-
const i =
|
|
2474
|
+
const i = $.now().ts, r = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dsearch&platformId=${e.tenant}`;
|
|
2473
2475
|
m(r, {
|
|
2474
2476
|
onComplete(o) {
|
|
2475
2477
|
if (Array.isArray(JSON.parse(o))) {
|
|
@@ -2532,98 +2534,98 @@ function At(e, t = void 0, s = void 0) {
|
|
|
2532
2534
|
});
|
|
2533
2535
|
}
|
|
2534
2536
|
export {
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2537
|
+
V as UUID,
|
|
2538
|
+
jt as _3DSearch_usersGroup,
|
|
2539
|
+
Le as _3DSpace_Create_Doc,
|
|
2540
|
+
De as _3DSpace_Update_Doc,
|
|
2541
|
+
Ve as _3DSpace_bookmark_addSubsciptions,
|
|
2542
|
+
Be as _3DSpace_bookmark_newWorkspace,
|
|
2541
2543
|
O as _3DSpace_csrf,
|
|
2542
2544
|
J as _3DSpace_download_doc,
|
|
2543
|
-
|
|
2545
|
+
ne as _3DSpace_download_multidoc,
|
|
2544
2546
|
M as _3DSpace_file_update,
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2547
|
+
te as _3DSpace_file_update_csr,
|
|
2548
|
+
Re as _3DSpace_file_url_csr,
|
|
2549
|
+
k as _3DSpace_get_csrf,
|
|
2548
2550
|
L as _3DSpace_get_docInfo,
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2551
|
+
se as _3DSpace_get_downloadTicket_multidoc,
|
|
2552
|
+
Pe as _3DSpace_get_multiDocInfo,
|
|
2553
|
+
A as _3DSpace_get_securityContexts,
|
|
2552
2554
|
U as _3DSpace_get_ticket,
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2555
|
+
Ke as _3DSpace_lifecycle_changeRevision,
|
|
2556
|
+
Je as _3DSpace_lifecycle_changeState,
|
|
2557
|
+
Ge as _3DSpace_lifecycle_getGraph,
|
|
2558
|
+
Ee as _3DSpace_lifecycle_getNextRevision,
|
|
2559
|
+
Me as _3DSpace_lifecycle_getNextStates,
|
|
2560
|
+
ot as _3DSwym_buildDirectMessage,
|
|
2561
|
+
dt as _3DSwym_deleteIdea,
|
|
2562
|
+
ut as _3DSwym_editIdea,
|
|
2563
|
+
pe as _3DSwym_findCommunityToInstantMSG,
|
|
2564
|
+
it as _3DSwym_getAllCommunities,
|
|
2565
|
+
lt as _3DSwym_getAllListIdeas,
|
|
2566
|
+
nt as _3DSwym_getAllNews,
|
|
2567
|
+
st as _3DSwym_getFamiliarPeople,
|
|
2568
|
+
at as _3DSwym_getIdeaStatusMaturity,
|
|
2569
|
+
de as _3DSwym_getMembersCommunity,
|
|
2570
|
+
pt as _3DSwym_getOneIdea,
|
|
2569
2571
|
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
|
-
|
|
2572
|
+
ft as _3DSwym_get_currentUser,
|
|
2573
|
+
mt as _3DSwym_get_findUser,
|
|
2574
|
+
ct as _3DSwym_postIdea,
|
|
2575
|
+
rt as _3DSwym_postIdeaTemplate,
|
|
2576
|
+
R as _3DSwym_sendMessageData,
|
|
2577
|
+
ve as _AppMngt_get_info_user,
|
|
2578
|
+
Ie as _AppMngt_get_users,
|
|
2579
|
+
Tt as _Iterop_AddOrRemoveRows,
|
|
2580
|
+
ht as _Iterop_Auth_CAS,
|
|
2581
|
+
It as _Iterop_GetOneDependencyTable,
|
|
2582
|
+
kt as _Iterop_GetOneList,
|
|
2583
|
+
St as _Iterop_ListUsers,
|
|
2584
|
+
vt as _Iterop_PatchDependencyTable,
|
|
2585
|
+
Nt as _Iterop_PutDependencyTable,
|
|
2586
|
+
bt as _Iterop_businessTableSearchInRows,
|
|
2587
|
+
_t as _Iterop_getAllBusinessTables,
|
|
2588
|
+
wt as _Iterop_getOneBusinessTable,
|
|
2589
|
+
Ct as _Iterop_getOneBusinessTableRows,
|
|
2590
|
+
yt as _Iterop_jwtUser,
|
|
2591
|
+
$t as _Iterop_runProcess,
|
|
2592
|
+
Ot as _Iterop_updateBusinessTable,
|
|
2591
2593
|
Y as _getPlateformInfos,
|
|
2592
|
-
|
|
2594
|
+
be as _getPlatformServices,
|
|
2593
2595
|
b as _getServiceUrl,
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
+
Oe as _getServiceUrl_3DPassport,
|
|
2597
|
+
gt as _getServiceUrl_Iterop,
|
|
2596
2598
|
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
|
-
|
|
2599
|
+
we as _setDraggable,
|
|
2600
|
+
Te as _setDroppable,
|
|
2601
|
+
Ce as _setupTagger,
|
|
2602
|
+
Ze as addTagToDoc,
|
|
2603
|
+
X as chunkArray,
|
|
2604
|
+
$e as compass_getListAdditionalApps,
|
|
2605
|
+
W as couleurs,
|
|
2606
|
+
Ne as createUserGroups,
|
|
2607
|
+
ie as dataMixing,
|
|
2608
|
+
je as deleteUserGroups,
|
|
2609
|
+
ye as findAdresse,
|
|
2610
|
+
We as getAllContextSecurity,
|
|
2611
|
+
z as getCSRFToken,
|
|
2612
|
+
he as getCommunes,
|
|
2613
|
+
ke as getComplementUG,
|
|
2614
|
+
Xe as getDataFrom3DSpace,
|
|
2615
|
+
Se as getDataFromGouvFr,
|
|
2616
|
+
ze as getDatasByTenant,
|
|
2617
|
+
Qe as getDatasFrom3DSpace,
|
|
2618
|
+
qe as getDownloadDocument,
|
|
2619
|
+
tt as getInfoDocTags,
|
|
2620
|
+
Ae as getUserGroupsList,
|
|
2621
|
+
H as getUsersGroupRules,
|
|
2622
|
+
He as get_3DSpace_csrf,
|
|
2623
|
+
Fe as patchUserGroups,
|
|
2624
|
+
xe as patchUserGroupsControl,
|
|
2623
2625
|
Ye as pushDataIn3DSpace,
|
|
2624
2626
|
Ue as readUserGroupControl,
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2627
|
+
et as removeTagToDoc,
|
|
2628
|
+
At as sayHello,
|
|
2629
|
+
_e as updateEvent
|
|
2628
2630
|
};
|
|
2629
2631
|
//# sourceMappingURL=wb3Api.js.map
|