@beam3_dev/api_module 0.0.176 → 0.0.178
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 +419 -355
- package/dist/wb3Api.js.map +1 -1
- package/dist/wb3Api.umd.cjs +4 -4
- package/dist/wb3Api.umd.cjs.map +1 -1
- package/package.json +1 -1
package/dist/wb3Api.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { v4 as E } from "uuid";
|
|
2
|
-
import { DateTime as
|
|
3
|
-
import { requirejs as O, widget as
|
|
4
|
-
function
|
|
2
|
+
import { DateTime as N } from "luxon";
|
|
3
|
+
import { requirejs as O, widget as P } from "@widget-lab/3ddashboard-utils";
|
|
4
|
+
function R() {
|
|
5
5
|
return E();
|
|
6
6
|
}
|
|
7
7
|
const K = {
|
|
@@ -66,10 +66,10 @@ async function ge(e, t = void 0, n = void 0) {
|
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
async function he(e, t = K) {
|
|
69
|
-
let n =
|
|
70
|
-
const s = e, i = [],
|
|
71
|
-
for (let
|
|
72
|
-
i.push({ date:
|
|
69
|
+
let n = N.now().year;
|
|
70
|
+
const s = e, i = [], c = (a) => {
|
|
71
|
+
for (let r in a)
|
|
72
|
+
i.push({ date: r, comment: a[r] });
|
|
73
73
|
};
|
|
74
74
|
for (let a = n; a <= n + 1; a++)
|
|
75
75
|
await fetch(
|
|
@@ -80,20 +80,20 @@ async function he(e, t = K) {
|
|
|
80
80
|
Accept: "application/json"
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
).then((
|
|
84
|
-
r
|
|
85
|
-
}).catch((
|
|
83
|
+
).then((r) => r.json()).then((r) => {
|
|
84
|
+
c(r);
|
|
85
|
+
}).catch((r) => console.error("Erreur : " + r));
|
|
86
86
|
return (() => {
|
|
87
87
|
const a = s.length === 0 ? {
|
|
88
88
|
events: []
|
|
89
89
|
} : s;
|
|
90
|
-
for (let
|
|
90
|
+
for (let r of i)
|
|
91
91
|
a.events.findIndex(
|
|
92
|
-
(p) => p.start ===
|
|
92
|
+
(p) => p.start === N.fromISO(r.date).toISODate() && p.name === "Férié : " + r.comment
|
|
93
93
|
) === -1 && a.events.push({
|
|
94
|
-
name: "Férié : " +
|
|
95
|
-
start:
|
|
96
|
-
end:
|
|
94
|
+
name: "Férié : " + r.comment,
|
|
95
|
+
start: N.fromISO(r.date).toISODate(),
|
|
96
|
+
end: N.fromISO(r.date).toISODate(),
|
|
97
97
|
color: t.b3BusinnessDays,
|
|
98
98
|
timed: !1
|
|
99
99
|
});
|
|
@@ -102,7 +102,7 @@ async function he(e, t = K) {
|
|
|
102
102
|
}
|
|
103
103
|
async function Se(e, t, n = !0) {
|
|
104
104
|
const s = e.events.findIndex((i) => i.uuid === t.uuid);
|
|
105
|
-
return s === -1 ? e.events.push(t) : n ? e.events[s] = t : e.events.splice(s, 1), e.length > 0 && e.sort((i,
|
|
105
|
+
return s === -1 ? e.events.push(t) : n ? e.events[s] = t : e.events.splice(s, 1), e.length > 0 && e.sort((i, c) => i.start - c.start), e;
|
|
106
106
|
}
|
|
107
107
|
function m(e, t) {
|
|
108
108
|
O(["DS/WAFData/WAFData"], (n) => {
|
|
@@ -121,7 +121,7 @@ function _e(e, t = void 0) {
|
|
|
121
121
|
O(["DS/TagNavigatorProxy/TagNavigatorProxy"], (n) => {
|
|
122
122
|
let s;
|
|
123
123
|
s === void 0 && (s = n.createProxy({
|
|
124
|
-
widgetId:
|
|
124
|
+
widgetId: P.id,
|
|
125
125
|
filteringMode: "WithFilteringServices"
|
|
126
126
|
}), t !== void 0 && s.addEvent("onFilterSubjectsChange", t)), s.setSubjectsTags(e);
|
|
127
127
|
});
|
|
@@ -137,7 +137,7 @@ async function Ce(e, t = void 0, n = void 0) {
|
|
|
137
137
|
await O(
|
|
138
138
|
["DS/i3DXCompassServices/i3DXCompassServices"],
|
|
139
139
|
(s) => {
|
|
140
|
-
(!e || e === "") && (e =
|
|
140
|
+
(!e || e === "") && (e = P.getValue("PlatFormInstanceId")), (!e || e === "") && (e = void 0), t && t(
|
|
141
141
|
s.getPlatformServices({
|
|
142
142
|
platformId: e,
|
|
143
143
|
onComplete: t,
|
|
@@ -150,25 +150,25 @@ async function Ce(e, t = void 0, n = void 0) {
|
|
|
150
150
|
function V() {
|
|
151
151
|
let e = {};
|
|
152
152
|
return O(["DS/PlatformAPI/PlatformAPI"], (t) => {
|
|
153
|
-
const n = t.getTenant(), s = t.getUser(), i = t.getAllApplicationConfigurations(),
|
|
153
|
+
const n = t.getTenant(), s = t.getUser(), i = t.getAllApplicationConfigurations(), c = t.getApplicationConfiguration(
|
|
154
154
|
"com.3ds.wp.passport.cors"
|
|
155
155
|
);
|
|
156
156
|
e = {
|
|
157
157
|
tenant: n,
|
|
158
158
|
user: s,
|
|
159
159
|
appsConfiguration: i,
|
|
160
|
-
appConf:
|
|
160
|
+
appConf: c
|
|
161
161
|
};
|
|
162
162
|
}), console.log("%cRETOUR API :", "color:blue", e), e;
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function T(e, t = void 0, n = void 0) {
|
|
165
165
|
if (e.tenant) {
|
|
166
166
|
const s = `https://${e.tenant}-eu1-apps.3dexperience.3ds.com/enovia/resources/AppsMngt/api/v1/services?tenant=${e.tenant}&cors=true&xrequestedwith=xmlhttprequest`;
|
|
167
167
|
m(s, {
|
|
168
168
|
onComplete(i) {
|
|
169
|
-
const
|
|
170
|
-
if (
|
|
171
|
-
const o =
|
|
169
|
+
const c = typeof i == "string" ? JSON.parse(i) : i;
|
|
170
|
+
if (c && "platforms" in c) {
|
|
171
|
+
const o = c.platforms.find(
|
|
172
172
|
(a) => a.id === e.tenant.toUpperCase()
|
|
173
173
|
);
|
|
174
174
|
t && o ? t(o) : n && n("_getServiceUrl return listServiceUrl = undefined");
|
|
@@ -186,9 +186,9 @@ function Te(e, t = void 0, n = void 0) {
|
|
|
186
186
|
const s = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dpassport&platformId=${e.tenant}`;
|
|
187
187
|
m(s, {
|
|
188
188
|
onComplete(i) {
|
|
189
|
-
const
|
|
190
|
-
if (console.log("serviceId=3dpassport",
|
|
191
|
-
const o = `${
|
|
189
|
+
const c = JSON.parse(i);
|
|
190
|
+
if (console.log("serviceId=3dpassport", c), Array.isArray(c) && c.length > 0) {
|
|
191
|
+
const o = `${c[0].services[0].url}`;
|
|
192
192
|
t && t(o);
|
|
193
193
|
}
|
|
194
194
|
},
|
|
@@ -198,7 +198,7 @@ function Te(e, t = void 0, n = void 0) {
|
|
|
198
198
|
});
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function be(e, t, n) {
|
|
202
202
|
const s = {
|
|
203
203
|
base: `${e.space}`,
|
|
204
204
|
uri: "/resources/AppsMngt/api/custom/applications",
|
|
@@ -211,41 +211,41 @@ function Oe(e, t, n) {
|
|
|
211
211
|
"Content-Type": "application/json",
|
|
212
212
|
Accept: "application/json"
|
|
213
213
|
},
|
|
214
|
-
onComplete(
|
|
215
|
-
const
|
|
214
|
+
onComplete(c, o, a) {
|
|
215
|
+
const r = JSON.parse(c), d = r.data.map((p) => {
|
|
216
216
|
const l = p.attributes.name, f = p.id;
|
|
217
217
|
return { name: l, id: f };
|
|
218
218
|
});
|
|
219
|
-
t && t(d,
|
|
219
|
+
t && t(d, r);
|
|
220
220
|
},
|
|
221
|
-
onFailure(
|
|
222
|
-
const a =
|
|
221
|
+
onFailure(c, o) {
|
|
222
|
+
const a = c;
|
|
223
223
|
a.msg = o.errormsg, a.errCode = o.errorcode, n && n(a);
|
|
224
224
|
}
|
|
225
225
|
});
|
|
226
226
|
}
|
|
227
|
-
function
|
|
227
|
+
function Oe(e, t = void 0, n = void 0) {
|
|
228
228
|
let s = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&limit=-1`;
|
|
229
229
|
m(s, {
|
|
230
|
-
onComplete(i,
|
|
230
|
+
onComplete(i, c, o) {
|
|
231
231
|
const a = JSON.parse(i);
|
|
232
232
|
console.log("_AppMngt_get_users => ", a), t && t(a);
|
|
233
233
|
},
|
|
234
|
-
onFailure(i,
|
|
234
|
+
onFailure(i, c) {
|
|
235
235
|
const o = i;
|
|
236
|
-
o.msg =
|
|
236
|
+
o.msg = c.errormsg, o.errCode = c.errorcode, n && n(o);
|
|
237
237
|
}
|
|
238
238
|
});
|
|
239
239
|
}
|
|
240
|
-
function
|
|
240
|
+
function $e(e, t, n = void 0, s = void 0) {
|
|
241
241
|
let i = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&id=${t}`;
|
|
242
242
|
m(i, {
|
|
243
|
-
onComplete(
|
|
244
|
-
const
|
|
245
|
-
n && n(
|
|
243
|
+
onComplete(c, o, a) {
|
|
244
|
+
const r = JSON.parse(c);
|
|
245
|
+
n && n(r);
|
|
246
246
|
},
|
|
247
|
-
onFailure(
|
|
248
|
-
const a =
|
|
247
|
+
onFailure(c, o) {
|
|
248
|
+
const a = c;
|
|
249
249
|
a.msg = o.errormsg, a.errCode = o.errorcode, s && s(a);
|
|
250
250
|
}
|
|
251
251
|
});
|
|
@@ -254,15 +254,15 @@ const U = {
|
|
|
254
254
|
"Content-Type": "application/json",
|
|
255
255
|
Accept: "application/json,text/javascript,*/*"
|
|
256
256
|
};
|
|
257
|
-
function
|
|
258
|
-
const { space: i, currentUser:
|
|
257
|
+
function ve(e, t, n = void 0, s = void 0) {
|
|
258
|
+
const { space: i, currentUser: c } = e, a = `${i}${{
|
|
259
259
|
URIUGr: "/3drdfpersist/resources/v1/usersgroup"
|
|
260
|
-
}.URIUGr}`,
|
|
260
|
+
}.URIUGr}`, r = {
|
|
261
261
|
groups: [
|
|
262
262
|
{
|
|
263
263
|
title: t.title,
|
|
264
264
|
description: t.description,
|
|
265
|
-
members: t.members || [
|
|
265
|
+
members: t.members || [c.email, "samuel.mureau@beam3.fr"],
|
|
266
266
|
pending_members: [],
|
|
267
267
|
sharing: t.sharing,
|
|
268
268
|
visibility: t.visibility
|
|
@@ -272,7 +272,7 @@ function $e(e, t, n = void 0, s = void 0) {
|
|
|
272
272
|
m(a, {
|
|
273
273
|
method: "POST",
|
|
274
274
|
headers: U,
|
|
275
|
-
data: JSON.stringify(
|
|
275
|
+
data: JSON.stringify(r),
|
|
276
276
|
onComplete(d) {
|
|
277
277
|
n && n(JSON.parse(d));
|
|
278
278
|
},
|
|
@@ -283,8 +283,8 @@ function $e(e, t, n = void 0, s = void 0) {
|
|
|
283
283
|
}
|
|
284
284
|
});
|
|
285
285
|
}
|
|
286
|
-
function
|
|
287
|
-
const { space: i, tenant:
|
|
286
|
+
function Ne(e, t, n = void 0, s = void 0) {
|
|
287
|
+
const { space: i, tenant: c } = e, o = i, a = `/3drdfpersist/v1/resources/${t}`, r = `?$mask=dsaccess:Mask.GroupUI.Properties&tenant=dstenant:${c}`, d = `${o}${a}${r}`;
|
|
288
288
|
m(d, {
|
|
289
289
|
opts: {
|
|
290
290
|
method: "GET",
|
|
@@ -303,12 +303,12 @@ function ve(e, t, n = void 0, s = void 0) {
|
|
|
303
303
|
});
|
|
304
304
|
}
|
|
305
305
|
function B(e, t = void 0, n = void 0) {
|
|
306
|
-
const { space: s, tenant: i } = e,
|
|
306
|
+
const { space: s, tenant: i } = e, c = s, o = "/3drdfpersist/resources/v1/option-sets/dsusergroup:ListOfGroupResponsibilities/options", a = `?tenant=dstenant:${i}`, r = {
|
|
307
307
|
method: "GET",
|
|
308
308
|
Accept: "application/json,*/*,test/javascript"
|
|
309
|
-
}, d = `${
|
|
309
|
+
}, d = `${c}${o}${a}`;
|
|
310
310
|
m(d, {
|
|
311
|
-
OPTsH:
|
|
311
|
+
OPTsH: r,
|
|
312
312
|
onComplete(p) {
|
|
313
313
|
t && t(JSON.parse(p));
|
|
314
314
|
},
|
|
@@ -355,8 +355,8 @@ function Ae(e, t) {
|
|
|
355
355
|
method: "DELETE"
|
|
356
356
|
});
|
|
357
357
|
}
|
|
358
|
-
function
|
|
359
|
-
const { space:
|
|
358
|
+
function je(e, t, n, s = void 0, i = void 0) {
|
|
359
|
+
const { space: c, tenant: o } = e, a = {
|
|
360
360
|
URITI: "/3drdfpersist/resources/v1/template-instances",
|
|
361
361
|
URIUGr: "/3drdfpersist/resources/v1/usersgroup",
|
|
362
362
|
nextURICh: "/characteristics",
|
|
@@ -364,7 +364,7 @@ function ke(e, t, n, s = void 0, i = void 0) {
|
|
|
364
364
|
nexURImem: "/members",
|
|
365
365
|
OPTsTI: "?$mask=dsaccess:Mask.GroupUI.Properties",
|
|
366
366
|
OPTsTenant: `tenant=dstenant:${o}`
|
|
367
|
-
},
|
|
367
|
+
}, r = n, d = `${c}${a.URIUGr}/${t}`, p = JSON.stringify(r);
|
|
368
368
|
m(d, {
|
|
369
369
|
headers: U,
|
|
370
370
|
method: "PATCH",
|
|
@@ -379,7 +379,7 @@ function ke(e, t, n, s = void 0, i = void 0) {
|
|
|
379
379
|
});
|
|
380
380
|
}
|
|
381
381
|
function Ue(e, t, n, s = void 0, i = void 0) {
|
|
382
|
-
const { space:
|
|
382
|
+
const { space: c } = e, a = `${c}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
|
|
383
383
|
m(a, {
|
|
384
384
|
method: "PATCH",
|
|
385
385
|
headers: U,
|
|
@@ -393,7 +393,7 @@ function Ue(e, t, n, s = void 0, i = void 0) {
|
|
|
393
393
|
}
|
|
394
394
|
});
|
|
395
395
|
}
|
|
396
|
-
function
|
|
396
|
+
function ke(e, t, n = void 0, s = void 0) {
|
|
397
397
|
const { space: i } = e, o = `${i}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
|
|
398
398
|
m(o, {
|
|
399
399
|
opts: {
|
|
@@ -418,8 +418,8 @@ async function W(e, t, n) {
|
|
|
418
418
|
onComplete(i) {
|
|
419
419
|
i = JSON.parse(i), t && t(i.csrf);
|
|
420
420
|
},
|
|
421
|
-
onFailure(i,
|
|
422
|
-
n && n({ error: i, headers:
|
|
421
|
+
onFailure(i, c, o) {
|
|
422
|
+
n && n({ error: i, headers: c, xhr: o });
|
|
423
423
|
}
|
|
424
424
|
});
|
|
425
425
|
}
|
|
@@ -433,18 +433,18 @@ var Y = function(e, t, n, s) {
|
|
|
433
433
|
var i = {};
|
|
434
434
|
if (typeof e != "string" || e.length === 0)
|
|
435
435
|
return i;
|
|
436
|
-
var
|
|
436
|
+
var c = /\+/g;
|
|
437
437
|
e = e.split(t);
|
|
438
438
|
var o = 1e3;
|
|
439
439
|
s && typeof s.maxKeys == "number" && (o = s.maxKeys);
|
|
440
440
|
var a = e.length;
|
|
441
441
|
o > 0 && a > o && (a = o);
|
|
442
|
-
for (var
|
|
443
|
-
var d = e[
|
|
442
|
+
for (var r = 0; r < a; ++r) {
|
|
443
|
+
var d = e[r].replace(c, "%20"), p = d.indexOf(n), l, f, u, g;
|
|
444
444
|
p >= 0 ? (l = d.substr(0, p), f = d.substr(p + 1)) : (l = d, f = ""), u = decodeURIComponent(l), g = decodeURIComponent(f), X(i, u) ? Array.isArray(i[u]) ? i[u].push(g) : i[u] = [i[u], g] : i[u] = g;
|
|
445
445
|
}
|
|
446
446
|
return i;
|
|
447
|
-
},
|
|
447
|
+
}, v = function(e) {
|
|
448
448
|
switch (typeof e) {
|
|
449
449
|
case "string":
|
|
450
450
|
return e;
|
|
@@ -457,11 +457,11 @@ var Y = function(e, t, n, s) {
|
|
|
457
457
|
}
|
|
458
458
|
}, H = function(e, t, n, s) {
|
|
459
459
|
return t = t || "&", n = n || "=", e === null && (e = void 0), typeof e == "object" ? Object.keys(e).map(function(i) {
|
|
460
|
-
var
|
|
460
|
+
var c = encodeURIComponent(v(i)) + n;
|
|
461
461
|
return Array.isArray(e[i]) ? e[i].map(function(o) {
|
|
462
|
-
return
|
|
463
|
-
}).join(t) :
|
|
464
|
-
}).filter(Boolean).join(t) : s ? encodeURIComponent(
|
|
462
|
+
return c + encodeURIComponent(v(o));
|
|
463
|
+
}).join(t) : c + encodeURIComponent(v(e[i]));
|
|
464
|
+
}).filter(Boolean).join(t) : s ? encodeURIComponent(v(s)) + n + encodeURIComponent(v(e)) : "";
|
|
465
465
|
};
|
|
466
466
|
I.decode = I.parse = Y;
|
|
467
467
|
I.encode = I.stringify = H;
|
|
@@ -471,9 +471,9 @@ async function z(e, t = void 0, n = void 0, s = void 0) {
|
|
|
471
471
|
console.log("Le paramètre docid est obligatoire");
|
|
472
472
|
return;
|
|
473
473
|
}
|
|
474
|
-
const
|
|
475
|
-
m(
|
|
476
|
-
onComplete(o, a,
|
|
474
|
+
const c = i + `/resources/v1/modeler/documents/${t}`;
|
|
475
|
+
m(c, {
|
|
476
|
+
onComplete(o, a, r) {
|
|
477
477
|
const d = JSON.parse(o);
|
|
478
478
|
n && n(d);
|
|
479
479
|
},
|
|
@@ -482,22 +482,22 @@ async function z(e, t = void 0, n = void 0, s = void 0) {
|
|
|
482
482
|
}
|
|
483
483
|
});
|
|
484
484
|
}
|
|
485
|
-
async function
|
|
485
|
+
async function Fe(e, t = void 0, n = void 0, s = void 0) {
|
|
486
486
|
const i = e.space;
|
|
487
487
|
if (t === void 0) {
|
|
488
488
|
console.log("Le paramètre docids est obligatoire");
|
|
489
489
|
return;
|
|
490
490
|
}
|
|
491
|
-
let
|
|
491
|
+
let c = `${i}/resources/v1/modeler/documents/ids?$include=!files,!ownerInfo,!originatorInfo,!relOwnerInfo'`, o = I.stringify({
|
|
492
492
|
$ids: t.toString().replace('"', "").replace("[", "").replace("]", "")
|
|
493
493
|
});
|
|
494
|
-
m(
|
|
494
|
+
m(c, {
|
|
495
495
|
method: "POST",
|
|
496
496
|
headers: {
|
|
497
497
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
498
498
|
},
|
|
499
499
|
data: o,
|
|
500
|
-
onComplete(a,
|
|
500
|
+
onComplete(a, r, d) {
|
|
501
501
|
const p = JSON.parse(a);
|
|
502
502
|
n && n(p);
|
|
503
503
|
},
|
|
@@ -510,7 +510,7 @@ function A(e, t = void 0, n = void 0) {
|
|
|
510
510
|
if (e.objID && e.objID !== "") {
|
|
511
511
|
let s = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
|
|
512
512
|
m(s, {
|
|
513
|
-
onComplete(i,
|
|
513
|
+
onComplete(i, c, o) {
|
|
514
514
|
const a = JSON.parse(i);
|
|
515
515
|
e.token = a?.csrf?.value, e.datas = a?.data[0], t && t(e);
|
|
516
516
|
},
|
|
@@ -519,7 +519,7 @@ function A(e, t = void 0, n = void 0) {
|
|
|
519
519
|
}
|
|
520
520
|
});
|
|
521
521
|
} else
|
|
522
|
-
|
|
522
|
+
b(
|
|
523
523
|
e,
|
|
524
524
|
(s) => {
|
|
525
525
|
console.log("_3DSpace_get_csrf / _3DSpace_csrf", s), t && t(s);
|
|
@@ -529,18 +529,18 @@ function A(e, t = void 0, n = void 0) {
|
|
|
529
529
|
}
|
|
530
530
|
);
|
|
531
531
|
}
|
|
532
|
-
function
|
|
532
|
+
function b(e, t = void 0, n = void 0) {
|
|
533
533
|
if (e.space) {
|
|
534
534
|
const s = e.space + "/resources/v1/application/CSRF";
|
|
535
535
|
m(s, {
|
|
536
|
-
onComplete(i,
|
|
536
|
+
onComplete(i, c, o) {
|
|
537
537
|
const a = JSON.parse(i);
|
|
538
538
|
t && t(a.csrf.value);
|
|
539
539
|
},
|
|
540
|
-
onFailure(i,
|
|
540
|
+
onFailure(i, c, o) {
|
|
541
541
|
n && n({
|
|
542
542
|
response: i,
|
|
543
|
-
headers:
|
|
543
|
+
headers: c,
|
|
544
544
|
xhr: o
|
|
545
545
|
});
|
|
546
546
|
}
|
|
@@ -548,7 +548,7 @@ function T(e, t = void 0, n = void 0) {
|
|
|
548
548
|
} else
|
|
549
549
|
n && n("ERROR : url du 3DSpace non défini.");
|
|
550
550
|
}
|
|
551
|
-
function
|
|
551
|
+
function k(e, t = void 0, n = void 0) {
|
|
552
552
|
let s = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
|
|
553
553
|
A(
|
|
554
554
|
e,
|
|
@@ -558,12 +558,12 @@ function F(e, t = void 0, n = void 0) {
|
|
|
558
558
|
headers: {
|
|
559
559
|
ENO_CSRF_TOKEN: e.token
|
|
560
560
|
},
|
|
561
|
-
onComplete(
|
|
562
|
-
const
|
|
563
|
-
t && t(
|
|
561
|
+
onComplete(c, o) {
|
|
562
|
+
const r = JSON.parse(c).data[0].dataelements.ticketURL;
|
|
563
|
+
t && t(r, o);
|
|
564
564
|
},
|
|
565
|
-
onFailure(
|
|
566
|
-
console.warn("☠️ error => ",
|
|
565
|
+
onFailure(c, o) {
|
|
566
|
+
console.warn("☠️ error => ", c, o), n && n(c, o);
|
|
567
567
|
}
|
|
568
568
|
});
|
|
569
569
|
},
|
|
@@ -573,8 +573,8 @@ function F(e, t = void 0, n = void 0) {
|
|
|
573
573
|
);
|
|
574
574
|
}
|
|
575
575
|
function xe(e, t, n, s = void 0, i = void 0) {
|
|
576
|
-
const
|
|
577
|
-
n || (n = e.token), m(
|
|
576
|
+
const c = `${e.space}/resources/v1/modeler/documents/${t}/files/DownloadTicket`;
|
|
577
|
+
n || (n = e.token), m(c, {
|
|
578
578
|
method: "PUT",
|
|
579
579
|
headers: {
|
|
580
580
|
ENO_CSRF_TOKEN: n
|
|
@@ -583,10 +583,10 @@ function xe(e, t, n, s = void 0, i = void 0) {
|
|
|
583
583
|
let a = JSON.parse(o);
|
|
584
584
|
if (console.log("☠️ info => ", a), a.success === !0)
|
|
585
585
|
try {
|
|
586
|
-
const
|
|
587
|
-
s && s(
|
|
588
|
-
} catch (
|
|
589
|
-
i && i(
|
|
586
|
+
const r = a.data[0].dataelements.ticketURL;
|
|
587
|
+
s && s(r);
|
|
588
|
+
} catch (r) {
|
|
589
|
+
i && i(r);
|
|
590
590
|
}
|
|
591
591
|
},
|
|
592
592
|
onFailure(o) {
|
|
@@ -594,7 +594,7 @@ function xe(e, t, n, s = void 0, i = void 0) {
|
|
|
594
594
|
}
|
|
595
595
|
});
|
|
596
596
|
}
|
|
597
|
-
function q(e, t, n, s, i,
|
|
597
|
+
function q(e, t, n, s, i, c = void 0, o = void 0) {
|
|
598
598
|
const a = () => Q(
|
|
599
599
|
e,
|
|
600
600
|
t,
|
|
@@ -602,20 +602,20 @@ function q(e, t, n, s, i, r = void 0, o = void 0) {
|
|
|
602
602
|
s,
|
|
603
603
|
i,
|
|
604
604
|
e.token,
|
|
605
|
-
|
|
605
|
+
c,
|
|
606
606
|
o
|
|
607
607
|
);
|
|
608
608
|
e.token ? a() : A(
|
|
609
609
|
e,
|
|
610
610
|
t,
|
|
611
|
-
(
|
|
612
|
-
e.token =
|
|
611
|
+
(r) => {
|
|
612
|
+
e.token = r.csrf.value, a();
|
|
613
613
|
}
|
|
614
614
|
);
|
|
615
615
|
}
|
|
616
|
-
function Q(e, t, n, s, i,
|
|
617
|
-
const
|
|
618
|
-
m(
|
|
616
|
+
function Q(e, t, n, s, i, c, o = void 0, a = void 0) {
|
|
617
|
+
const r = e.space + `/resources/v1/modeler/documents/${t}/files/CheckinTicket`;
|
|
618
|
+
m(r, {
|
|
619
619
|
method: "PUT",
|
|
620
620
|
headers: {
|
|
621
621
|
ENO_CSRF_TOKEN: e.token
|
|
@@ -668,8 +668,8 @@ function Q(e, t, n, s, i, r, o = void 0, a = void 0) {
|
|
|
668
668
|
}
|
|
669
669
|
});
|
|
670
670
|
}
|
|
671
|
-
async function
|
|
672
|
-
const o = e.space, a = e.token,
|
|
671
|
+
async function Pe(e, t, n, s, i = void 0, c = void 0) {
|
|
672
|
+
const o = e.space, a = e.token, r = e.ctx;
|
|
673
673
|
if (o !== "") {
|
|
674
674
|
let d = `${o}/resources/v1/modeler/documents/files/CheckinTicket`;
|
|
675
675
|
m(d, {
|
|
@@ -687,7 +687,7 @@ async function Re(e, t, n, s, i = void 0, r = void 0) {
|
|
|
687
687
|
method: "POST",
|
|
688
688
|
data: g,
|
|
689
689
|
onComplete(_) {
|
|
690
|
-
let C =
|
|
690
|
+
let C = R(), G = {
|
|
691
691
|
method: "POST",
|
|
692
692
|
headers: {
|
|
693
693
|
ENO_CSRF_TOKEN: a,
|
|
@@ -718,20 +718,20 @@ async function Re(e, t, n, s, i = void 0, r = void 0) {
|
|
|
718
718
|
]
|
|
719
719
|
}),
|
|
720
720
|
type: "json",
|
|
721
|
-
onComplete(
|
|
722
|
-
i && i(
|
|
721
|
+
onComplete(j) {
|
|
722
|
+
i && i(j);
|
|
723
723
|
},
|
|
724
|
-
onFailure(
|
|
725
|
-
|
|
724
|
+
onFailure(j) {
|
|
725
|
+
c && c(j);
|
|
726
726
|
}
|
|
727
727
|
};
|
|
728
728
|
m(
|
|
729
|
-
o + "/resources/v1/modeler/documents/?SecurityContext=ctx::" +
|
|
729
|
+
o + "/resources/v1/modeler/documents/?SecurityContext=ctx::" + r,
|
|
730
730
|
G
|
|
731
731
|
);
|
|
732
732
|
},
|
|
733
733
|
onFailure(_) {
|
|
734
|
-
|
|
734
|
+
c && c(_);
|
|
735
735
|
},
|
|
736
736
|
timeout: 0
|
|
737
737
|
};
|
|
@@ -740,12 +740,12 @@ async function Re(e, t, n, s, i = void 0, r = void 0) {
|
|
|
740
740
|
});
|
|
741
741
|
}
|
|
742
742
|
}
|
|
743
|
-
function
|
|
743
|
+
function $(e, t = void 0, n = void 0, s = void 0, i = void 0, c = void 0, o = !1) {
|
|
744
744
|
const a = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
|
|
745
745
|
m(a, {
|
|
746
746
|
method: "GET",
|
|
747
|
-
onComplete(
|
|
748
|
-
const d = JSON.parse(
|
|
747
|
+
onComplete(r) {
|
|
748
|
+
const d = JSON.parse(r);
|
|
749
749
|
let p = "", l, f, u;
|
|
750
750
|
if (t) {
|
|
751
751
|
let g = d.collabspaces.find((h) => h.title === t);
|
|
@@ -764,7 +764,7 @@ function N(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0, o = !1
|
|
|
764
764
|
let _ = h.filter(
|
|
765
765
|
(C) => C.role.name === S
|
|
766
766
|
);
|
|
767
|
-
_.length === 1 ? (u = _[0].role.name, f = _[0].organization.title) :
|
|
767
|
+
_.length === 1 ? (u = _[0].role.name, f = _[0].organization.title) : c(_);
|
|
768
768
|
}
|
|
769
769
|
});
|
|
770
770
|
}) : h.forEach((S) => {
|
|
@@ -774,16 +774,16 @@ function N(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0, o = !1
|
|
|
774
774
|
let y = h.filter(
|
|
775
775
|
(_) => _.role.name === n
|
|
776
776
|
);
|
|
777
|
-
y.length === 1 ? (u = y[0].role.name, f = y[0].organization.title) :
|
|
777
|
+
y.length === 1 ? (u = y[0].role.name, f = y[0].organization.title) : c(y);
|
|
778
778
|
}
|
|
779
779
|
}));
|
|
780
780
|
}
|
|
781
781
|
}
|
|
782
|
-
l && f && u ? (p = u + "." + f + "." + l, i(p)) : d.preferredcredentials && o ? (p = d.preferredcredentials.role.name + "." + d.preferredcredentials.organization.title + "." + d.preferredcredentials.collabspace.title, i(p)) :
|
|
782
|
+
l && f && u ? (p = u + "." + f + "." + l, i(p)) : d.preferredcredentials && o ? (p = d.preferredcredentials.role.name + "." + d.preferredcredentials.organization.title + "." + d.preferredcredentials.collabspace.title, i(p)) : c && (p = u + "." + f + "." + l, c(p));
|
|
783
783
|
},
|
|
784
|
-
onFailure(
|
|
784
|
+
onFailure(r, d) {
|
|
785
785
|
console.log("Erreur de récupération du contexte de sécurité. => ", {
|
|
786
|
-
err:
|
|
786
|
+
err: r,
|
|
787
787
|
headers: d
|
|
788
788
|
});
|
|
789
789
|
}
|
|
@@ -805,14 +805,14 @@ async function D(e, t = void 0, n = void 0) {
|
|
|
805
805
|
console.log("☠️ error => ", s);
|
|
806
806
|
}
|
|
807
807
|
), new Promise((s, i) => {
|
|
808
|
-
|
|
808
|
+
k(
|
|
809
809
|
e,
|
|
810
|
-
(
|
|
811
|
-
e?.returnType === "blob" ? (console.log("ticketURL blob",
|
|
810
|
+
(c) => {
|
|
811
|
+
e?.returnType === "blob" ? (console.log("ticketURL blob", c), fetch(c).then((o) => o.blob()).then((o) => {
|
|
812
812
|
t && t(o);
|
|
813
813
|
}).catch((o) => {
|
|
814
814
|
n && n(o);
|
|
815
|
-
})) : m(
|
|
815
|
+
})) : m(c, {
|
|
816
816
|
onComplete(o) {
|
|
817
817
|
let a;
|
|
818
818
|
try {
|
|
@@ -822,21 +822,21 @@ async function D(e, t = void 0, n = void 0) {
|
|
|
822
822
|
}
|
|
823
823
|
t && typeof t == "function" && t(a), s(a);
|
|
824
824
|
},
|
|
825
|
-
onFailure(o, a,
|
|
825
|
+
onFailure(o, a, r) {
|
|
826
826
|
n && (console.log("error http", o), n({
|
|
827
827
|
msg: JSON.parse(o),
|
|
828
828
|
headers: a,
|
|
829
|
-
xhr:
|
|
829
|
+
xhr: r
|
|
830
830
|
}), i({
|
|
831
831
|
msg: JSON.parse(o),
|
|
832
832
|
headers: a,
|
|
833
|
-
xhr:
|
|
833
|
+
xhr: r
|
|
834
834
|
}));
|
|
835
835
|
}
|
|
836
836
|
});
|
|
837
837
|
},
|
|
838
|
-
(
|
|
839
|
-
n && n(
|
|
838
|
+
(c) => {
|
|
839
|
+
n && n(c), console.log("*_3dspace_download_doc / error file URL *", c), i(c);
|
|
840
840
|
}
|
|
841
841
|
);
|
|
842
842
|
});
|
|
@@ -845,8 +845,8 @@ async function Z(e, t, n = void 0, s = void 0) {
|
|
|
845
845
|
let i = [];
|
|
846
846
|
if (typeof t < "u" && Array.isArray(t) && t?.length > 0) {
|
|
847
847
|
for (let a = 0; a < t.length; a += 80) {
|
|
848
|
-
const
|
|
849
|
-
i.push(
|
|
848
|
+
const r = t.slice(a, a + 80);
|
|
849
|
+
i.push(r);
|
|
850
850
|
}
|
|
851
851
|
const o = (a) => {
|
|
852
852
|
ee(
|
|
@@ -855,8 +855,8 @@ async function Z(e, t, n = void 0, s = void 0) {
|
|
|
855
855
|
() => {
|
|
856
856
|
a++, a < i.length && o(a);
|
|
857
857
|
},
|
|
858
|
-
(
|
|
859
|
-
n && n(
|
|
858
|
+
(r) => {
|
|
859
|
+
n && n(r);
|
|
860
860
|
}
|
|
861
861
|
);
|
|
862
862
|
};
|
|
@@ -869,10 +869,10 @@ async function Z(e, t, n = void 0, s = void 0) {
|
|
|
869
869
|
);
|
|
870
870
|
}
|
|
871
871
|
function ee(e, t, n = void 0, s = void 0, i = void 0) {
|
|
872
|
-
const
|
|
873
|
-
t.forEach((
|
|
874
|
-
|
|
875
|
-
id:
|
|
872
|
+
const c = [];
|
|
873
|
+
t.forEach((r) => {
|
|
874
|
+
c.push({
|
|
875
|
+
id: r
|
|
876
876
|
});
|
|
877
877
|
});
|
|
878
878
|
let o = JSON.stringify({
|
|
@@ -880,16 +880,16 @@ function ee(e, t, n = void 0, s = void 0, i = void 0) {
|
|
|
880
880
|
name: "ENO_CSRF_TOKEN",
|
|
881
881
|
value: e.token
|
|
882
882
|
},
|
|
883
|
-
data:
|
|
883
|
+
data: c
|
|
884
884
|
});
|
|
885
885
|
const a = `${e.space}/resources/v1/modeler/documents/DownloadTicket?tenant=${e.tenant}&e6w-lang=fr&e6w-timezone=-120`;
|
|
886
886
|
m(a, {
|
|
887
887
|
method: "PUT",
|
|
888
888
|
data: o,
|
|
889
889
|
type: "json",
|
|
890
|
-
onComplete(
|
|
891
|
-
const d =
|
|
892
|
-
|
|
890
|
+
onComplete(r) {
|
|
891
|
+
const d = r.data;
|
|
892
|
+
r.success === !0 && (n && n(), d.forEach((p) => {
|
|
893
893
|
try {
|
|
894
894
|
const l = p.dataelements.fileName, f = p.dataelements.ticketURL;
|
|
895
895
|
m(f, {
|
|
@@ -916,16 +916,16 @@ function ee(e, t, n = void 0, s = void 0, i = void 0) {
|
|
|
916
916
|
}
|
|
917
917
|
}));
|
|
918
918
|
},
|
|
919
|
-
onFailure(
|
|
920
|
-
console.log(
|
|
919
|
+
onFailure(r) {
|
|
920
|
+
console.log(r), i && i(r);
|
|
921
921
|
}
|
|
922
922
|
});
|
|
923
923
|
}
|
|
924
|
-
function
|
|
924
|
+
function Re(e, t, n = void 0, s = void 0) {
|
|
925
925
|
return new Promise((i) => {
|
|
926
|
-
if (e.token === "" &&
|
|
927
|
-
const
|
|
928
|
-
|
|
926
|
+
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
927
|
+
const c = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
|
|
928
|
+
$(
|
|
929
929
|
e.space,
|
|
930
930
|
"ESPACE COMMUN",
|
|
931
931
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -958,22 +958,22 @@ function Pe(e, t, n = void 0, s = void 0) {
|
|
|
958
958
|
s && s(a);
|
|
959
959
|
}
|
|
960
960
|
};
|
|
961
|
-
m(
|
|
961
|
+
m(c, o);
|
|
962
962
|
}
|
|
963
963
|
});
|
|
964
964
|
}
|
|
965
965
|
function De(e, t, n, s = void 0, i = void 0) {
|
|
966
|
-
return new Promise((
|
|
967
|
-
if (e.token === "" &&
|
|
966
|
+
return new Promise((c) => {
|
|
967
|
+
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
968
968
|
const o = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
|
|
969
|
-
|
|
969
|
+
$(
|
|
970
970
|
e.space,
|
|
971
971
|
"ESPACE COMMUN",
|
|
972
972
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
973
973
|
void 0,
|
|
974
|
-
(
|
|
975
|
-
(
|
|
976
|
-
console.log("onError =>",
|
|
974
|
+
(r) => e.ctx = r,
|
|
975
|
+
(r) => {
|
|
976
|
+
console.log("onError =>", r);
|
|
977
977
|
}
|
|
978
978
|
);
|
|
979
979
|
let a = {
|
|
@@ -993,11 +993,11 @@ function De(e, t, n, s = void 0, i = void 0) {
|
|
|
993
993
|
]
|
|
994
994
|
}),
|
|
995
995
|
type: "json",
|
|
996
|
-
onComplete(
|
|
997
|
-
s && s(
|
|
996
|
+
onComplete(r) {
|
|
997
|
+
s && s(r);
|
|
998
998
|
},
|
|
999
|
-
onFailure(
|
|
1000
|
-
i && i(
|
|
999
|
+
onFailure(r) {
|
|
1000
|
+
i && i(r);
|
|
1001
1001
|
}
|
|
1002
1002
|
};
|
|
1003
1003
|
m(o, a);
|
|
@@ -1006,9 +1006,9 @@ function De(e, t, n, s = void 0, i = void 0) {
|
|
|
1006
1006
|
}
|
|
1007
1007
|
function Le(e, t, n = void 0, s = void 0) {
|
|
1008
1008
|
return new Promise((i) => {
|
|
1009
|
-
if (e.token === "" &&
|
|
1010
|
-
const
|
|
1011
|
-
|
|
1009
|
+
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
1010
|
+
const c = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
|
|
1011
|
+
$(
|
|
1012
1012
|
e.space,
|
|
1013
1013
|
"ESPACE COMMUN",
|
|
1014
1014
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -1041,15 +1041,15 @@ function Le(e, t, n = void 0, s = void 0) {
|
|
|
1041
1041
|
s && s(a);
|
|
1042
1042
|
}
|
|
1043
1043
|
};
|
|
1044
|
-
m(
|
|
1044
|
+
m(c, o);
|
|
1045
1045
|
}
|
|
1046
1046
|
});
|
|
1047
1047
|
}
|
|
1048
1048
|
function Me(e, t, n = void 0, s = void 0) {
|
|
1049
1049
|
return new Promise((i) => {
|
|
1050
|
-
if (e.token === "" &&
|
|
1051
|
-
const
|
|
1052
|
-
|
|
1050
|
+
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
1051
|
+
const c = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
|
|
1052
|
+
$(
|
|
1053
1053
|
e.space,
|
|
1054
1054
|
"ESPACE COMMUN",
|
|
1055
1055
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -1088,22 +1088,22 @@ function Me(e, t, n = void 0, s = void 0) {
|
|
|
1088
1088
|
s && s(a);
|
|
1089
1089
|
}
|
|
1090
1090
|
};
|
|
1091
|
-
m(
|
|
1091
|
+
m(c, o);
|
|
1092
1092
|
}
|
|
1093
1093
|
});
|
|
1094
1094
|
}
|
|
1095
1095
|
function Je(e, t, n, s = void 0, i = void 0) {
|
|
1096
|
-
return new Promise((
|
|
1097
|
-
if (e.token === "" &&
|
|
1096
|
+
return new Promise((c) => {
|
|
1097
|
+
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
1098
1098
|
const o = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
|
|
1099
|
-
|
|
1099
|
+
$(
|
|
1100
1100
|
e.space,
|
|
1101
1101
|
"ESPACE COMMUN",
|
|
1102
1102
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
1103
1103
|
void 0,
|
|
1104
|
-
(
|
|
1105
|
-
(
|
|
1106
|
-
console.log("onError =>",
|
|
1104
|
+
(r) => e.ctx = r,
|
|
1105
|
+
(r) => {
|
|
1106
|
+
console.log("onError =>", r);
|
|
1107
1107
|
}
|
|
1108
1108
|
);
|
|
1109
1109
|
let a = {
|
|
@@ -1128,21 +1128,21 @@ function Je(e, t, n, s = void 0, i = void 0) {
|
|
|
1128
1128
|
notificationTimeout: 600
|
|
1129
1129
|
}),
|
|
1130
1130
|
type: "json",
|
|
1131
|
-
onComplete(
|
|
1132
|
-
s && s(
|
|
1131
|
+
onComplete(r) {
|
|
1132
|
+
s && s(r);
|
|
1133
1133
|
},
|
|
1134
|
-
onFailure(
|
|
1135
|
-
i && i(
|
|
1134
|
+
onFailure(r) {
|
|
1135
|
+
i && i(r);
|
|
1136
1136
|
}
|
|
1137
1137
|
};
|
|
1138
1138
|
m(o, a);
|
|
1139
1139
|
}
|
|
1140
1140
|
});
|
|
1141
1141
|
}
|
|
1142
|
-
function Ge(e, t, n, s, i = void 0,
|
|
1142
|
+
function Ge(e, t, n, s, i = void 0, c = void 0) {
|
|
1143
1143
|
return new Promise((o) => {
|
|
1144
1144
|
const a = `${e.space}/resources/v1/modeler/dsbks/dsbks:Bookmark`;
|
|
1145
|
-
let
|
|
1145
|
+
let r = {
|
|
1146
1146
|
attributes: {
|
|
1147
1147
|
title: n,
|
|
1148
1148
|
description: s,
|
|
@@ -1151,7 +1151,7 @@ function Ge(e, t, n, s, i = void 0, r = void 0) {
|
|
|
1151
1151
|
}, d = {
|
|
1152
1152
|
items: []
|
|
1153
1153
|
};
|
|
1154
|
-
t && (d.parentId = t), d.items.push(
|
|
1154
|
+
t && (d.parentId = t), d.items.push(r);
|
|
1155
1155
|
let p = {
|
|
1156
1156
|
method: "POST",
|
|
1157
1157
|
headers: {
|
|
@@ -1166,13 +1166,13 @@ function Ge(e, t, n, s, i = void 0, r = void 0) {
|
|
|
1166
1166
|
i && i(l);
|
|
1167
1167
|
},
|
|
1168
1168
|
onFailure(l) {
|
|
1169
|
-
|
|
1169
|
+
c && c(l);
|
|
1170
1170
|
}
|
|
1171
1171
|
};
|
|
1172
1172
|
m(a, p);
|
|
1173
1173
|
});
|
|
1174
1174
|
}
|
|
1175
|
-
function Ee(e, t, n, s, i = void 0,
|
|
1175
|
+
function Ee(e, t, n, s, i = void 0, c = void 0) {
|
|
1176
1176
|
return console.log("credentials", e), new Promise((o) => {
|
|
1177
1177
|
`${e.space}`, JSON.stringify({
|
|
1178
1178
|
csrf: {
|
|
@@ -1208,27 +1208,27 @@ function Ke(e, t = void 0, n = void 0) {
|
|
|
1208
1208
|
Accept: "application/json,text/javascript,*/*",
|
|
1209
1209
|
"Content-Type": "application/ds-json"
|
|
1210
1210
|
},
|
|
1211
|
-
onComplete(
|
|
1212
|
-
const a = JSON.parse(
|
|
1211
|
+
onComplete(c, o) {
|
|
1212
|
+
const a = JSON.parse(c);
|
|
1213
1213
|
t && t(a, o);
|
|
1214
1214
|
},
|
|
1215
|
-
onFailure(
|
|
1216
|
-
n && n({ response:
|
|
1215
|
+
onFailure(c, o, a) {
|
|
1216
|
+
n && n({ response: c, headers: o, xhr: a });
|
|
1217
1217
|
}
|
|
1218
1218
|
});
|
|
1219
1219
|
}
|
|
1220
1220
|
function Ve(e, t, n, s) {
|
|
1221
|
-
|
|
1221
|
+
k(
|
|
1222
1222
|
e.space,
|
|
1223
1223
|
t,
|
|
1224
1224
|
(i) => {
|
|
1225
1225
|
m(i, {
|
|
1226
1226
|
header: { ENO_CSRF_TOKEN: e.token },
|
|
1227
|
-
onComplete: (
|
|
1228
|
-
n && n(
|
|
1227
|
+
onComplete: (c) => {
|
|
1228
|
+
n && n(c);
|
|
1229
1229
|
},
|
|
1230
|
-
onFailure: (
|
|
1231
|
-
console.log("error http",
|
|
1230
|
+
onFailure: (c) => {
|
|
1231
|
+
console.log("error http", c), s && s(c);
|
|
1232
1232
|
}
|
|
1233
1233
|
});
|
|
1234
1234
|
}
|
|
@@ -1236,29 +1236,29 @@ function Ve(e, t, n, s) {
|
|
|
1236
1236
|
}
|
|
1237
1237
|
async function Be(e, t, n = void 0, s = void 0) {
|
|
1238
1238
|
return new Promise((i) => {
|
|
1239
|
-
|
|
1240
|
-
m(
|
|
1241
|
-
onComplete: (o, a,
|
|
1242
|
-
onFailure: (o, a,
|
|
1243
|
-
s && s(o, a,
|
|
1239
|
+
k(e, t, (c) => {
|
|
1240
|
+
m(c, {
|
|
1241
|
+
onComplete: (o, a, r) => (i(JSON.parse(o)), n && n(JSON.parse(o), a, r), i),
|
|
1242
|
+
onFailure: (o, a, r) => {
|
|
1243
|
+
s && s(o, a, r), console.log(o, a?.errormsg);
|
|
1244
1244
|
}
|
|
1245
1245
|
});
|
|
1246
1246
|
});
|
|
1247
1247
|
});
|
|
1248
1248
|
}
|
|
1249
1249
|
function We(e, t, n, s = void 0, i = void 0) {
|
|
1250
|
-
const
|
|
1250
|
+
const c = new Blob([JSON.stringify(t)], { type: "text/plain" });
|
|
1251
1251
|
A(
|
|
1252
1252
|
e,
|
|
1253
1253
|
n,
|
|
1254
1254
|
(o) => {
|
|
1255
|
-
const a = o.data[0].relateddata.files[0].id,
|
|
1255
|
+
const a = o.data[0].relateddata.files[0].id, r = o.data[0].dataelements.secondaryTitle !== "" ? o.data[0].dataelements.secondaryTitle : o.data[0].dataelements.title;
|
|
1256
1256
|
q(
|
|
1257
1257
|
e,
|
|
1258
1258
|
n,
|
|
1259
1259
|
a,
|
|
1260
|
-
r,
|
|
1261
1260
|
c,
|
|
1261
|
+
r,
|
|
1262
1262
|
(d) => {
|
|
1263
1263
|
s && s(d);
|
|
1264
1264
|
},
|
|
@@ -1270,7 +1270,7 @@ function We(e, t, n, s = void 0, i = void 0) {
|
|
|
1270
1270
|
);
|
|
1271
1271
|
}
|
|
1272
1272
|
let L, M;
|
|
1273
|
-
const
|
|
1273
|
+
const F = [];
|
|
1274
1274
|
async function Xe(e, t = void 0, n = void 0) {
|
|
1275
1275
|
e.objID && e.objID !== "" ? A(
|
|
1276
1276
|
e,
|
|
@@ -1280,7 +1280,7 @@ async function Xe(e, t = void 0, n = void 0) {
|
|
|
1280
1280
|
(s) => {
|
|
1281
1281
|
n && n(s);
|
|
1282
1282
|
}
|
|
1283
|
-
) : (e.objID === null || e.objID === "") &&
|
|
1283
|
+
) : (e.objID === null || e.objID === "") && b(
|
|
1284
1284
|
e,
|
|
1285
1285
|
(s) => {
|
|
1286
1286
|
t && t({ rep: s, msg: "Pas d'objID, ou invalide" });
|
|
@@ -1308,12 +1308,12 @@ function He(e, t = void 0, n = void 0) {
|
|
|
1308
1308
|
console.warn("la liste est vide ou n'est pas un tableau");
|
|
1309
1309
|
return;
|
|
1310
1310
|
}
|
|
1311
|
-
e.objIds.forEach((i,
|
|
1311
|
+
e.objIds.forEach((i, c) => {
|
|
1312
1312
|
D(
|
|
1313
1313
|
e,
|
|
1314
1314
|
i.objID,
|
|
1315
1315
|
(o) => {
|
|
1316
|
-
s.push({ [i.name]: o }), i.name === "dbProjets" && (L = o.affaires.map((a) => a.objectID), te(e, M)),
|
|
1316
|
+
s.push({ [i.name]: o }), i.name === "dbProjets" && (L = o.affaires.map((a) => a.objectID), te(e, M)), c === e.objIds.length - 1 && (t && t(s), delete e.objIds, delete e.datas);
|
|
1317
1317
|
}
|
|
1318
1318
|
);
|
|
1319
1319
|
});
|
|
@@ -1323,8 +1323,8 @@ function te(e, t, n = void 0, s = void 0) {
|
|
|
1323
1323
|
e,
|
|
1324
1324
|
L,
|
|
1325
1325
|
(i) => {
|
|
1326
|
-
const
|
|
1327
|
-
|
|
1326
|
+
const c = [...t];
|
|
1327
|
+
c.find((o) => o.objectID === i.objectId).data = i.data, M = c, F.push(i.data), n && n(F);
|
|
1328
1328
|
},
|
|
1329
1329
|
(i) => {
|
|
1330
1330
|
s && (s(i), console.log(i));
|
|
@@ -1352,10 +1352,10 @@ const ne = "FA35FB9B177A280065800EA0000F599C", se = [
|
|
|
1352
1352
|
tag: "testTag"
|
|
1353
1353
|
};
|
|
1354
1354
|
function ze(e, t, n = void 0, s = void 0) {
|
|
1355
|
-
const { space: i, tenant:
|
|
1355
|
+
const { space: i, tenant: c } = e, { objId: o, pred: a, tag: r } = t, d = {
|
|
1356
1356
|
uri: "/resources/6w/tags",
|
|
1357
1357
|
otpCTX: "SecurityContext=preferred",
|
|
1358
|
-
optTenant: `tenant=${
|
|
1358
|
+
optTenant: `tenant=${c}`
|
|
1359
1359
|
}, p = `${i}${d.uri}?${d.otpCTX}&${d.optTenant}`, l = {
|
|
1360
1360
|
tag: [
|
|
1361
1361
|
{
|
|
@@ -1366,7 +1366,7 @@ function ze(e, t, n = void 0, s = void 0) {
|
|
|
1366
1366
|
],
|
|
1367
1367
|
predicate: J[a],
|
|
1368
1368
|
object: {
|
|
1369
|
-
literal:
|
|
1369
|
+
literal: r
|
|
1370
1370
|
}
|
|
1371
1371
|
}
|
|
1372
1372
|
]
|
|
@@ -1413,17 +1413,17 @@ function ze(e, t, n = void 0, s = void 0) {
|
|
|
1413
1413
|
}
|
|
1414
1414
|
function ae(e, t, n = void 0, s = void 0) {
|
|
1415
1415
|
console.log("obj ", t);
|
|
1416
|
-
const i = t.info.name,
|
|
1416
|
+
const i = t.info.name, c = {
|
|
1417
1417
|
baseUrl: `https://${e.tenant.toLowerCase()}-eu1-fedsearch.3dexperience.3ds.com`,
|
|
1418
1418
|
uri: "/federated/search"
|
|
1419
|
-
}, o = `${
|
|
1419
|
+
}, o = `${c.baseUrl}${c.uri}`, a = {
|
|
1420
1420
|
"Content-Type": "application/json",
|
|
1421
1421
|
Accept: "application/json,text/javascript,*/*"
|
|
1422
|
-
},
|
|
1422
|
+
}, r = R(), d = {
|
|
1423
1423
|
with_indexing_date: !0,
|
|
1424
1424
|
with_synthesis: !0,
|
|
1425
1425
|
with_nls: !1,
|
|
1426
|
-
label: `3DSearch-${e.currentUser.username}-AjoutDeTagBeam-${
|
|
1426
|
+
label: `3DSearch-${e.currentUser.username}-AjoutDeTagBeam-${r}`,
|
|
1427
1427
|
locale: "fr",
|
|
1428
1428
|
select_predicate: [
|
|
1429
1429
|
"ds6w:label",
|
|
@@ -1495,11 +1495,11 @@ function ae(e, t, n = void 0, s = void 0) {
|
|
|
1495
1495
|
});
|
|
1496
1496
|
}
|
|
1497
1497
|
function qe(e, t, n = void 0, s = void 0) {
|
|
1498
|
-
const { objId: i, pred:
|
|
1498
|
+
const { objId: i, pred: c, tag: o } = t, a = {
|
|
1499
1499
|
uri: "/resources/6w/tags",
|
|
1500
1500
|
otpCTX: "SecurityContext=preferred",
|
|
1501
1501
|
optTenant: `tenant=${e.tenant}`
|
|
1502
|
-
},
|
|
1502
|
+
}, r = `${e.space}${a.uri}?${a.otpCTX}&${a.optTenant}`, d = {
|
|
1503
1503
|
tag: [
|
|
1504
1504
|
{
|
|
1505
1505
|
subject: [
|
|
@@ -1507,14 +1507,14 @@ function qe(e, t, n = void 0, s = void 0) {
|
|
|
1507
1507
|
uri: `pid://${i}`
|
|
1508
1508
|
}
|
|
1509
1509
|
],
|
|
1510
|
-
predicate: J[
|
|
1510
|
+
predicate: J[c],
|
|
1511
1511
|
object: {
|
|
1512
1512
|
literal: o
|
|
1513
1513
|
}
|
|
1514
1514
|
}
|
|
1515
1515
|
]
|
|
1516
1516
|
};
|
|
1517
|
-
m(
|
|
1517
|
+
m(r, {
|
|
1518
1518
|
method: "DELETE",
|
|
1519
1519
|
data: JSON.stringify(d),
|
|
1520
1520
|
headers: {
|
|
@@ -1534,16 +1534,16 @@ function Qe(e, t = "", n = void 0, s = void 0) {
|
|
|
1534
1534
|
const { space: i } = e;
|
|
1535
1535
|
if (t === "")
|
|
1536
1536
|
return;
|
|
1537
|
-
const
|
|
1537
|
+
const c = {
|
|
1538
1538
|
uri: "/resources/v1/modeler/documents"
|
|
1539
1539
|
}, o = {
|
|
1540
1540
|
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
|
|
1541
1541
|
Accept: "application/json,text/javascript,*/*"
|
|
1542
|
-
}, a = `${i}${
|
|
1542
|
+
}, a = `${i}${c.uri}`, r = `$include=none,lockerInfo,ownerInfo,originatorInfo,files,ownerInfo,originatorInfo&$fields=none,title,name,typeNLS,collabSpaceTitle,revision,isLatestRevision,files,lockStatus,lockerInfo.name,lockerInfo.firstname,lockerInfo.lastname,owner,ownerInfo.name,ownerInfo.firstname,ownerInfo.lastname,stateNLS,modified,policy,state,organizationTitle,originator,originatorInfo.name,originatorInfo.firstname,originatorInfo.lastname,hasModifyAccess,fileExtension,files.name,files.title,files.revision,files.locker,ownerInfo,ownerInfo.name,ownerInfo.firstname,ownerInfo.lastname,originatorInfo,originatorInfo.name,originatorInfo.firstname,originatorInfo.lastname&$ids=${t}`;
|
|
1543
1543
|
m(a, {
|
|
1544
1544
|
method: "POST",
|
|
1545
1545
|
headers: o,
|
|
1546
|
-
data:
|
|
1546
|
+
data: r,
|
|
1547
1547
|
onComplete(d) {
|
|
1548
1548
|
n && n(JSON.parse(d));
|
|
1549
1549
|
},
|
|
@@ -1556,7 +1556,7 @@ function Qe(e, t = "", n = void 0, s = void 0) {
|
|
|
1556
1556
|
async function w(e, t = void 0, n = void 0) {
|
|
1557
1557
|
const s = e._3DSwym + "/api/index/tk";
|
|
1558
1558
|
return m(s, {
|
|
1559
|
-
onComplete(i,
|
|
1559
|
+
onComplete(i, c, o) {
|
|
1560
1560
|
const a = JSON.parse(i);
|
|
1561
1561
|
if (t)
|
|
1562
1562
|
return t(a), e.token = a?.result?.ServerToken;
|
|
@@ -1577,11 +1577,11 @@ function Ze(e, t = void 0, n = void 0) {
|
|
|
1577
1577
|
start: 0
|
|
1578
1578
|
}
|
|
1579
1579
|
};
|
|
1580
|
-
w(e, (
|
|
1580
|
+
w(e, (c) => {
|
|
1581
1581
|
m(s, {
|
|
1582
1582
|
method: "POST",
|
|
1583
1583
|
headers: {
|
|
1584
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1584
|
+
"X-DS-SWYM-CSRFTOKEN": c.result.ServerToken,
|
|
1585
1585
|
"Content-type": "application/json;charset=UTF-8",
|
|
1586
1586
|
Accept: "application/json"
|
|
1587
1587
|
},
|
|
@@ -1606,19 +1606,19 @@ function et(e, t = void 0, n = void 0) {
|
|
|
1606
1606
|
maxNbOfCommonElements: "5"
|
|
1607
1607
|
}
|
|
1608
1608
|
};
|
|
1609
|
-
w(e, (
|
|
1609
|
+
w(e, (c) => {
|
|
1610
1610
|
m(s, {
|
|
1611
1611
|
method: "POST",
|
|
1612
1612
|
headers: {
|
|
1613
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1613
|
+
"X-DS-SWYM-CSRFTOKEN": c.result.ServerToken,
|
|
1614
1614
|
"Content-type": "application/json;charset=UTF-8",
|
|
1615
1615
|
Accept: "application/json"
|
|
1616
1616
|
},
|
|
1617
1617
|
data: JSON.stringify(i),
|
|
1618
1618
|
type: "json",
|
|
1619
1619
|
onComplete(o, a) {
|
|
1620
|
-
const
|
|
1621
|
-
t && t(
|
|
1620
|
+
const r = o.result.hits.map((d) => ({ login: d.login, fullName: d.name }));
|
|
1621
|
+
t && t(r, o);
|
|
1622
1622
|
},
|
|
1623
1623
|
onFailure(o, a) {
|
|
1624
1624
|
n && n(o, a);
|
|
@@ -1632,14 +1632,14 @@ function tt(e, t = void 0, n = void 0) {
|
|
|
1632
1632
|
uri: "/api/community/listmycommunities",
|
|
1633
1633
|
limit: `/limit/${e.limit ? e.limit : 128}`,
|
|
1634
1634
|
page: `/page/${e.page ? e.page : "1"}`
|
|
1635
|
-
}, i = `${s.base}${s.uri}${s.limit}${s.page}`,
|
|
1635
|
+
}, i = `${s.base}${s.uri}${s.limit}${s.page}`, c = [];
|
|
1636
1636
|
w(e, (o) => {
|
|
1637
1637
|
m(i, {
|
|
1638
1638
|
method: "GET",
|
|
1639
1639
|
headers: {
|
|
1640
1640
|
"X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
|
|
1641
1641
|
},
|
|
1642
|
-
onComplete(a,
|
|
1642
|
+
onComplete(a, r, d) {
|
|
1643
1643
|
const l = JSON.parse(a).result;
|
|
1644
1644
|
let f = 0;
|
|
1645
1645
|
l.forEach((u) => {
|
|
@@ -1655,21 +1655,21 @@ function tt(e, t = void 0, n = void 0) {
|
|
|
1655
1655
|
e,
|
|
1656
1656
|
u.id,
|
|
1657
1657
|
(h) => {
|
|
1658
|
-
f++, g.members = h,
|
|
1658
|
+
f++, g.members = h, c.push(g), f === l.length && t && t(c);
|
|
1659
1659
|
},
|
|
1660
1660
|
(h) => n(h)
|
|
1661
1661
|
);
|
|
1662
1662
|
});
|
|
1663
1663
|
},
|
|
1664
|
-
onFailure(a,
|
|
1664
|
+
onFailure(a, r) {
|
|
1665
1665
|
const d = a;
|
|
1666
|
-
d.status =
|
|
1666
|
+
d.status = r.status, d.response = r.errormsg, n && n(d);
|
|
1667
1667
|
}
|
|
1668
1668
|
});
|
|
1669
1669
|
});
|
|
1670
1670
|
}
|
|
1671
1671
|
function oe(e, t, n, s) {
|
|
1672
|
-
const i = `${e.space}/api/community/listmembers`,
|
|
1672
|
+
const i = `${e.space}/api/community/listmembers`, c = {
|
|
1673
1673
|
params: {
|
|
1674
1674
|
page: e.page ? e.page : 1,
|
|
1675
1675
|
limit: e.limit ? e.limit : 50,
|
|
@@ -1684,14 +1684,14 @@ function oe(e, t, n, s) {
|
|
|
1684
1684
|
Accept: "application/json",
|
|
1685
1685
|
"X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
|
|
1686
1686
|
},
|
|
1687
|
-
data: JSON.stringify(
|
|
1687
|
+
data: JSON.stringify(c),
|
|
1688
1688
|
type: "json",
|
|
1689
|
-
onComplete(a,
|
|
1689
|
+
onComplete(a, r, d) {
|
|
1690
1690
|
n && n(a);
|
|
1691
1691
|
},
|
|
1692
|
-
onFailure(a,
|
|
1692
|
+
onFailure(a, r) {
|
|
1693
1693
|
const d = a;
|
|
1694
|
-
d.status =
|
|
1694
|
+
d.status = r.status, d.response = r.errormsg, s && s(d);
|
|
1695
1695
|
}
|
|
1696
1696
|
});
|
|
1697
1697
|
});
|
|
@@ -1700,31 +1700,31 @@ function nt(e, t = void 0, n = void 0) {
|
|
|
1700
1700
|
const s = "YXdA5x4DSUKtlAi2wmnyTA";
|
|
1701
1701
|
e.commu_id || (e.commu_id = s);
|
|
1702
1702
|
const i = `${e.space}/api/v2/communities/${e.commu_id}/ideas/statuses`;
|
|
1703
|
-
w(e, (
|
|
1703
|
+
w(e, (c) => {
|
|
1704
1704
|
m(i, {
|
|
1705
1705
|
method: "GET",
|
|
1706
1706
|
headers: {
|
|
1707
1707
|
"Content-type": "application/json;charset=UTF-8",
|
|
1708
1708
|
Accept: "application/json",
|
|
1709
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1709
|
+
"X-DS-SWYM-CSRFTOKEN": c.result.ServerToken
|
|
1710
1710
|
},
|
|
1711
1711
|
onComplete(o) {
|
|
1712
1712
|
const a = JSON.parse(o);
|
|
1713
1713
|
t && t(a);
|
|
1714
1714
|
},
|
|
1715
1715
|
onFailure(o, a) {
|
|
1716
|
-
const
|
|
1717
|
-
|
|
1716
|
+
const r = o;
|
|
1717
|
+
r.status = a.status, r.response = a.errormsg, n && n(r);
|
|
1718
1718
|
}
|
|
1719
1719
|
});
|
|
1720
1720
|
});
|
|
1721
1721
|
}
|
|
1722
1722
|
function st(e, t, n = void 0, s = void 0) {
|
|
1723
|
-
const { listAllContacts: i, currentUser:
|
|
1723
|
+
const { listAllContacts: i, currentUser: c } = e;
|
|
1724
1724
|
console.log("__listAllContacts", i.hits);
|
|
1725
1725
|
const o = `${e.space}/api/directmessages`, a = {
|
|
1726
|
-
users: [
|
|
1727
|
-
},
|
|
1726
|
+
users: [c.login].concat(t.receipt)
|
|
1727
|
+
}, r = {
|
|
1728
1728
|
id_msg: "",
|
|
1729
1729
|
senderId: e.currentUser.login,
|
|
1730
1730
|
senderName: `${e.currentUser.first_name} ${e.currentUser.last_name}`,
|
|
@@ -1734,10 +1734,10 @@ function st(e, t, n = void 0, s = void 0) {
|
|
|
1734
1734
|
re(
|
|
1735
1735
|
a.users,
|
|
1736
1736
|
(p) => {
|
|
1737
|
-
p !== void 0 && (
|
|
1737
|
+
p !== void 0 && (r.id_msg = p.id, d = !0, x(e, r));
|
|
1738
1738
|
},
|
|
1739
1739
|
(p) => {
|
|
1740
|
-
d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", p), s && s(p),
|
|
1740
|
+
d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", p), s && s(p), r.id_msg = "";
|
|
1741
1741
|
}
|
|
1742
1742
|
), d === !1 && setTimeout(() => {
|
|
1743
1743
|
d === !1 && w(e, (p) => {
|
|
@@ -1752,7 +1752,7 @@ function st(e, t, n = void 0, s = void 0) {
|
|
|
1752
1752
|
type: "json",
|
|
1753
1753
|
onComplete(l, f, u) {
|
|
1754
1754
|
const g = l;
|
|
1755
|
-
g.reponse = JSON.parse(u.response), g.status = u.status, n && n(g),
|
|
1755
|
+
g.reponse = JSON.parse(u.response), g.status = u.status, n && n(g), r.id_msg = g.result.id, x(e, r);
|
|
1756
1756
|
},
|
|
1757
1757
|
onFailure(l, f, u) {
|
|
1758
1758
|
const g = l;
|
|
@@ -1764,19 +1764,19 @@ function st(e, t, n = void 0, s = void 0) {
|
|
|
1764
1764
|
}
|
|
1765
1765
|
function re(e, t, n, s) {
|
|
1766
1766
|
const i = `${e.space}/api/directmessages/lite?with_favorites=false`;
|
|
1767
|
-
w(e, (
|
|
1767
|
+
w(e, (c) => {
|
|
1768
1768
|
m(i, {
|
|
1769
1769
|
method: "GET",
|
|
1770
1770
|
headers: {
|
|
1771
1771
|
Accept: "application/json,text/javascript,*/*",
|
|
1772
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1772
|
+
"X-DS-SWYM-CSRFTOKEN": c.result.ServerToken
|
|
1773
1773
|
},
|
|
1774
1774
|
onComplete(o) {
|
|
1775
|
-
const a = JSON.parse(o),
|
|
1775
|
+
const a = JSON.parse(o), r = [];
|
|
1776
1776
|
a.result.forEach((l) => {
|
|
1777
|
-
l.users = l.users.sort((f, u) => f.login.localeCompare(u.login)), l.users.length === t.length &&
|
|
1777
|
+
l.users = l.users.sort((f, u) => f.login.localeCompare(u.login)), l.users.length === t.length && r.push(l);
|
|
1778
1778
|
});
|
|
1779
|
-
const d = t.sort(), p =
|
|
1779
|
+
const d = t.sort(), p = r.find((l) => {
|
|
1780
1780
|
const f = [];
|
|
1781
1781
|
return l.users.forEach((u) => {
|
|
1782
1782
|
f.push(u.login);
|
|
@@ -1797,7 +1797,7 @@ function x(e, t, n = void 0, s = void 0) {
|
|
|
1797
1797
|
uri: "/api/community",
|
|
1798
1798
|
id_msg: `${t.id_msg}`,
|
|
1799
1799
|
endUri: "/instantmessages"
|
|
1800
|
-
},
|
|
1800
|
+
}, c = `${i.base}${i.uri}/${i.id_msg}${i.endUri}`, o = {
|
|
1801
1801
|
author: { login: t.senderId, displayName: t.senderName },
|
|
1802
1802
|
accessState: null,
|
|
1803
1803
|
commentUri: null,
|
|
@@ -1807,8 +1807,8 @@ function x(e, t, n = void 0, s = void 0) {
|
|
|
1807
1807
|
parentCommentUri: null,
|
|
1808
1808
|
richMessage: t.msg
|
|
1809
1809
|
};
|
|
1810
|
-
console.log("_3dSwym_sendDirectMessageData url ",
|
|
1811
|
-
m(
|
|
1810
|
+
console.log("_3dSwym_sendDirectMessageData url ", c), w(e, (a) => {
|
|
1811
|
+
m(c, {
|
|
1812
1812
|
method: "POST",
|
|
1813
1813
|
headers: {
|
|
1814
1814
|
"Content-Type": "application/json",
|
|
@@ -1817,12 +1817,12 @@ function x(e, t, n = void 0, s = void 0) {
|
|
|
1817
1817
|
},
|
|
1818
1818
|
data: JSON.stringify(o),
|
|
1819
1819
|
type: "json",
|
|
1820
|
-
onComplete(
|
|
1821
|
-
const l =
|
|
1820
|
+
onComplete(r, d, p) {
|
|
1821
|
+
const l = r;
|
|
1822
1822
|
l.status = p.status, l.response = JSON.parse(p.response), console.log("✅ _3dSwym_sendDirectMessageData => ", l), n && n(l);
|
|
1823
1823
|
},
|
|
1824
|
-
onFailure(
|
|
1825
|
-
const p =
|
|
1824
|
+
onFailure(r, d) {
|
|
1825
|
+
const p = r;
|
|
1826
1826
|
p.msg = d.errormsg, p.errCode = d.errorcode, console.log("❌ sendDirectMessage => ", p), s && s(p);
|
|
1827
1827
|
}
|
|
1828
1828
|
});
|
|
@@ -1846,15 +1846,15 @@ const de = {
|
|
|
1846
1846
|
// id de l'idee qui est créer au post (_3dSwym_postIdea)
|
|
1847
1847
|
};
|
|
1848
1848
|
function it(e, t, n = void 0, s = void 0) {
|
|
1849
|
-
const i = `${e.space}/api/idea/add`,
|
|
1850
|
-
(
|
|
1849
|
+
const i = `${e.space}/api/idea/add`, c = e.swymCommunities.find(
|
|
1850
|
+
(r) => r.id === t.community_id
|
|
1851
1851
|
), o = e.swymCommunities.find(
|
|
1852
|
-
(
|
|
1852
|
+
(r) => r.title.toLowerCase() === t.community_title.toLowerCase()
|
|
1853
1853
|
), a = {
|
|
1854
1854
|
params: {
|
|
1855
1855
|
title: t.title,
|
|
1856
1856
|
// String, le nom de l'affaire
|
|
1857
|
-
community_id:
|
|
1857
|
+
community_id: c?.id !== void 0 ? c.id : o.id,
|
|
1858
1858
|
// String, l'id de la communauté
|
|
1859
1859
|
message: pe(t.text_html),
|
|
1860
1860
|
// STRING => le contenue du message doit être au format HTML
|
|
@@ -1862,11 +1862,11 @@ function it(e, t, n = void 0, s = void 0) {
|
|
|
1862
1862
|
// 1 publier, 0 non publier
|
|
1863
1863
|
}
|
|
1864
1864
|
};
|
|
1865
|
-
w(e, (
|
|
1865
|
+
w(e, (r) => {
|
|
1866
1866
|
const d = {
|
|
1867
1867
|
"Content-type": "application/json;charset=UTF-8",
|
|
1868
1868
|
Accept: "application/json",
|
|
1869
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1869
|
+
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
|
|
1870
1870
|
};
|
|
1871
1871
|
m(i, {
|
|
1872
1872
|
method: "POST",
|
|
@@ -1885,7 +1885,7 @@ function it(e, t, n = void 0, s = void 0) {
|
|
|
1885
1885
|
});
|
|
1886
1886
|
}
|
|
1887
1887
|
function at(e, t, n = void 0, s = void 0) {
|
|
1888
|
-
const i = `${e.space}/api/idea/delete`,
|
|
1888
|
+
const i = `${e.space}/api/idea/delete`, c = {
|
|
1889
1889
|
params: {
|
|
1890
1890
|
community_id: t.community_id,
|
|
1891
1891
|
ideationIds: [t.idee_id]
|
|
@@ -1899,14 +1899,14 @@ function at(e, t, n = void 0, s = void 0) {
|
|
|
1899
1899
|
Accept: "application/json",
|
|
1900
1900
|
"X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
|
|
1901
1901
|
},
|
|
1902
|
-
data: JSON.stringify(
|
|
1902
|
+
data: JSON.stringify(c),
|
|
1903
1903
|
type: "json",
|
|
1904
|
-
onComplete(a,
|
|
1904
|
+
onComplete(a, r, d) {
|
|
1905
1905
|
n && n(a);
|
|
1906
1906
|
},
|
|
1907
|
-
onFailure(a,
|
|
1907
|
+
onFailure(a, r, d) {
|
|
1908
1908
|
const p = a;
|
|
1909
|
-
p.status =
|
|
1909
|
+
p.status = r.status, p.response = r.errormsg, s && s(p);
|
|
1910
1910
|
}
|
|
1911
1911
|
});
|
|
1912
1912
|
});
|
|
@@ -1914,13 +1914,13 @@ function at(e, t, n = void 0, s = void 0) {
|
|
|
1914
1914
|
function ot(e, t = "", n = void 0, s = void 0) {
|
|
1915
1915
|
const i = e.tenant.toLowerCase() === "r1132101716373" ? "tFtz0G4MR6qNtKgJjNfTog" : e.tenant.toLowerCase() === "r1132101286859" ? "Qpv3HN-tTDOsU-7_c5DnDg" : "Template_d'idée_à_créer";
|
|
1916
1916
|
t === "" && (t = i);
|
|
1917
|
-
const
|
|
1917
|
+
const c = `${e.space}/api/idea/get`, o = {
|
|
1918
1918
|
params: {
|
|
1919
1919
|
id: t
|
|
1920
1920
|
}
|
|
1921
1921
|
};
|
|
1922
1922
|
w(e, (a) => {
|
|
1923
|
-
m(
|
|
1923
|
+
m(c, {
|
|
1924
1924
|
method: "POST",
|
|
1925
1925
|
headers: {
|
|
1926
1926
|
"Content-type": "application/json;charset=UTF-8",
|
|
@@ -1929,12 +1929,12 @@ function ot(e, t = "", n = void 0, s = void 0) {
|
|
|
1929
1929
|
},
|
|
1930
1930
|
data: JSON.stringify(o),
|
|
1931
1931
|
type: "json",
|
|
1932
|
-
onComplete(
|
|
1933
|
-
const d =
|
|
1932
|
+
onComplete(r) {
|
|
1933
|
+
const d = r;
|
|
1934
1934
|
d.msg = d.result.message, n && n(d);
|
|
1935
1935
|
},
|
|
1936
|
-
onFailure(
|
|
1937
|
-
const d =
|
|
1936
|
+
onFailure(r) {
|
|
1937
|
+
const d = r;
|
|
1938
1938
|
d.status = headers.status, d.response = headers.errormsg, s && s(d);
|
|
1939
1939
|
}
|
|
1940
1940
|
});
|
|
@@ -1945,20 +1945,20 @@ function rt(e, t = de, n = void 0, s = void 0) {
|
|
|
1945
1945
|
uri: "/api/idea/list",
|
|
1946
1946
|
comId: `/community_id/${e.tenant.toLowerCase() === "r1132101716373" ? t.community_id : "bgnIsG74SUWswyGzS6NC6g"}`,
|
|
1947
1947
|
limit: `/limit/${t.limit ? t.limit : 10}`
|
|
1948
|
-
},
|
|
1948
|
+
}, c = `${e.space}${i.uri}${i.comId}${i.limit}`;
|
|
1949
1949
|
w(e, (o) => {
|
|
1950
|
-
m(
|
|
1950
|
+
m(c, {
|
|
1951
1951
|
method: "GET",
|
|
1952
1952
|
headers: {
|
|
1953
1953
|
"X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
|
|
1954
1954
|
},
|
|
1955
1955
|
onComplete(a) {
|
|
1956
|
-
const
|
|
1957
|
-
n && n(
|
|
1956
|
+
const r = JSON.parse(a);
|
|
1957
|
+
n && n(r);
|
|
1958
1958
|
},
|
|
1959
|
-
onFailure(a,
|
|
1959
|
+
onFailure(a, r) {
|
|
1960
1960
|
const d = a;
|
|
1961
|
-
d.status =
|
|
1961
|
+
d.status = r.status, d.response = r.errormsg, s && s(d);
|
|
1962
1962
|
}
|
|
1963
1963
|
});
|
|
1964
1964
|
});
|
|
@@ -2046,13 +2046,13 @@ function ct(e, t = void 0, n = void 0) {
|
|
|
2046
2046
|
headers: {
|
|
2047
2047
|
"X-DS-SWYM-CSRFTOKEN": i.result.ServerToken
|
|
2048
2048
|
},
|
|
2049
|
-
onComplete(
|
|
2050
|
-
const
|
|
2051
|
-
t && t(
|
|
2049
|
+
onComplete(c, o, a) {
|
|
2050
|
+
const r = JSON.parse(c);
|
|
2051
|
+
t && t(r.result);
|
|
2052
2052
|
},
|
|
2053
|
-
onFailure(
|
|
2054
|
-
const
|
|
2055
|
-
n && n(
|
|
2053
|
+
onFailure(c, o, a) {
|
|
2054
|
+
const r = { erreur: JSON.parse(c), headers: o, xhr: a };
|
|
2055
|
+
n && n(r);
|
|
2056
2056
|
}
|
|
2057
2057
|
});
|
|
2058
2058
|
});
|
|
@@ -2061,11 +2061,11 @@ function dt(e, t, n = void 0, s = void 0) {
|
|
|
2061
2061
|
const i = e.space + "/api/user/find/login/" + t;
|
|
2062
2062
|
w(
|
|
2063
2063
|
e,
|
|
2064
|
-
(
|
|
2064
|
+
(c) => {
|
|
2065
2065
|
m(i, {
|
|
2066
2066
|
method: "GET",
|
|
2067
|
-
headers: { "X-DS-SWYM-CSRFTOKEN":
|
|
2068
|
-
onComplete(o, a,
|
|
2067
|
+
headers: { "X-DS-SWYM-CSRFTOKEN": c.result.ServerToken },
|
|
2068
|
+
onComplete(o, a, r) {
|
|
2069
2069
|
const d = JSON.parse(o);
|
|
2070
2070
|
n && n(d);
|
|
2071
2071
|
},
|
|
@@ -2078,21 +2078,21 @@ function dt(e, t, n = void 0, s = void 0) {
|
|
|
2078
2078
|
);
|
|
2079
2079
|
}
|
|
2080
2080
|
function pt(e, t = void 0, n = void 0) {
|
|
2081
|
-
e.tenant &&
|
|
2081
|
+
e.tenant && T(e, (s) => {
|
|
2082
2082
|
console.log("serviceUrls", s);
|
|
2083
|
-
const i = s.services.find((
|
|
2083
|
+
const i = s.services.find((c) => c.id === "businessprocess")?.url + "/api/v2";
|
|
2084
2084
|
return t && t(i), i;
|
|
2085
2085
|
});
|
|
2086
2086
|
}
|
|
2087
2087
|
function lt(e, t = void 0, n = void 0) {
|
|
2088
|
-
e.tenant &&
|
|
2088
|
+
e.tenant && T(e, (s) => {
|
|
2089
2089
|
console.log("serviceUrls", s);
|
|
2090
|
-
const i = s.services.find((a) => a.id === "3dpassport")?.url,
|
|
2090
|
+
const i = s.services.find((a) => a.id === "3dpassport")?.url, c = s.services.find((a) => a.id === "businessprocess")?.url + "/api/v2", o = `${i}/login/?service=${c}/auth/cas`;
|
|
2091
2091
|
m(o, {
|
|
2092
2092
|
async onComplete(a) {
|
|
2093
2093
|
console.log("response", a);
|
|
2094
|
-
const
|
|
2095
|
-
await fetch(
|
|
2094
|
+
const r = typeof a == "string" ? JSON.parse(a)?.x3ds_service_redirect_url : a?.x3ds_service_redirect_url;
|
|
2095
|
+
await fetch(r, {
|
|
2096
2096
|
method: "POST"
|
|
2097
2097
|
}).then((d) => d.json()).then(async (d) => {
|
|
2098
2098
|
t && t(d?.token);
|
|
@@ -2104,34 +2104,46 @@ function lt(e, t = void 0, n = void 0) {
|
|
|
2104
2104
|
});
|
|
2105
2105
|
});
|
|
2106
2106
|
}
|
|
2107
|
-
|
|
2108
|
-
e.tenant
|
|
2109
|
-
const
|
|
2107
|
+
function ut(e, t = void 0, n = void 0) {
|
|
2108
|
+
if (e.tenant) {
|
|
2109
|
+
const s = e.tenant.toLowerCase();
|
|
2110
|
+
fetch(`https://api.uixhome.fr/${s}/iterop/jwtuser`, {
|
|
2111
|
+
method: "POST"
|
|
2112
|
+
}).then((i) => i.json()).then((i) => {
|
|
2113
|
+
t && t(i);
|
|
2114
|
+
}).catch((i) => {
|
|
2115
|
+
n && n(i);
|
|
2116
|
+
});
|
|
2117
|
+
}
|
|
2118
|
+
}
|
|
2119
|
+
async function ft(e, t, n = void 0, s = void 0) {
|
|
2120
|
+
e.tenant && T(e, (i) => {
|
|
2121
|
+
const o = `${i.services.find((r) => r.id === "businessprocess")?.url + "/api/v2"}/identity/users`, a = e.tenant.toLowerCase();
|
|
2110
2122
|
fetch(`https://api.uixhome.fr/${a}/iterop/listusers?t=${t}&s=${o}`, {
|
|
2111
2123
|
method: "POST"
|
|
2112
|
-
}).then((
|
|
2113
|
-
n && n(
|
|
2114
|
-
}).catch((
|
|
2115
|
-
s && s(
|
|
2124
|
+
}).then((r) => r.json()).then((r) => {
|
|
2125
|
+
n && n(r);
|
|
2126
|
+
}).catch((r) => {
|
|
2127
|
+
s && s(r);
|
|
2116
2128
|
});
|
|
2117
2129
|
});
|
|
2118
2130
|
}
|
|
2119
|
-
async function
|
|
2120
|
-
e.tenant &&
|
|
2121
|
-
const o = `${i.services.find((
|
|
2131
|
+
async function mt(e, t, n = void 0, s = void 0) {
|
|
2132
|
+
e.tenant && T(e, (i) => {
|
|
2133
|
+
const o = `${i.services.find((r) => r.id === "businessprocess")?.url + "/api/v2"}/repository/data/tables`, a = e.tenant.toLowerCase();
|
|
2122
2134
|
fetch(`https://api.uixhome.fr/${a}/iterop/repository/data/tables?t=${t}&s=${o}`, {
|
|
2123
2135
|
method: "GET"
|
|
2124
|
-
}).then((
|
|
2125
|
-
n && n(
|
|
2126
|
-
}).catch((
|
|
2127
|
-
s && s(
|
|
2136
|
+
}).then((r) => r.json()).then((r) => {
|
|
2137
|
+
n && n(r);
|
|
2138
|
+
}).catch((r) => {
|
|
2139
|
+
s && s(r);
|
|
2128
2140
|
});
|
|
2129
2141
|
});
|
|
2130
2142
|
}
|
|
2131
|
-
async function
|
|
2143
|
+
async function gt(e, t, n, s = void 0, i = void 0) {
|
|
2132
2144
|
if (e.tenant) {
|
|
2133
|
-
const
|
|
2134
|
-
fetch(`https://api.uixhome.fr/${
|
|
2145
|
+
const c = e.tenant.toLowerCase();
|
|
2146
|
+
fetch(`https://api.uixhome.fr/${c}/iterop//businesstable/${n}?t=${t}`, {
|
|
2135
2147
|
method: "POST"
|
|
2136
2148
|
}).then((o) => o.json()).then((o) => {
|
|
2137
2149
|
s && s(o);
|
|
@@ -2140,10 +2152,10 @@ async function mt(e, t, n, s = void 0, i = void 0) {
|
|
|
2140
2152
|
});
|
|
2141
2153
|
}
|
|
2142
2154
|
}
|
|
2143
|
-
async function
|
|
2155
|
+
async function ht(e, t, n, s = void 0, i = void 0) {
|
|
2144
2156
|
if (e.tenant) {
|
|
2145
|
-
const
|
|
2146
|
-
fetch(`https://api.uixhome.fr/${
|
|
2157
|
+
const c = e.tenant.toLowerCase();
|
|
2158
|
+
fetch(`https://api.uixhome.fr/${c}/iterop//businesstable/${n}/rows/?t=${t}`, {
|
|
2147
2159
|
method: "POST"
|
|
2148
2160
|
}).then((o) => o.json()).then((o) => {
|
|
2149
2161
|
s && s(o);
|
|
@@ -2152,49 +2164,97 @@ async function gt(e, t, n, s = void 0, i = void 0) {
|
|
|
2152
2164
|
});
|
|
2153
2165
|
}
|
|
2154
2166
|
}
|
|
2155
|
-
async function
|
|
2156
|
-
e.tenant &&
|
|
2157
|
-
o.services.find((
|
|
2167
|
+
async function St(e, t, n, s, i = void 0, c = void 0) {
|
|
2168
|
+
e.tenant && T(e, (o) => {
|
|
2169
|
+
o.services.find((r) => r.id === "businessprocess")?.url + "";
|
|
2158
2170
|
const a = e.tenant.toLowerCase();
|
|
2159
2171
|
fetch(
|
|
2160
2172
|
`https://api.uixhome.fr/${a}/iterop/runtime/processes/${n}?t=${t}&b=${s}`,
|
|
2161
2173
|
{
|
|
2162
2174
|
method: "POST"
|
|
2163
2175
|
}
|
|
2164
|
-
).then((
|
|
2165
|
-
i && i(
|
|
2166
|
-
}).catch((
|
|
2167
|
-
|
|
2176
|
+
).then((r) => r.json()).then((r) => {
|
|
2177
|
+
i && i(r);
|
|
2178
|
+
}).catch((r) => {
|
|
2179
|
+
c && c(r);
|
|
2168
2180
|
});
|
|
2169
2181
|
});
|
|
2170
2182
|
}
|
|
2171
|
-
async function
|
|
2172
|
-
e.tenant &&
|
|
2183
|
+
async function yt(e, t, n, s, i, c = void 0, o = void 0) {
|
|
2184
|
+
e.tenant && T(e, (a) => {
|
|
2173
2185
|
a.services.find((d) => d.id === "businessprocess")?.url + "";
|
|
2174
|
-
const
|
|
2186
|
+
const r = e.tenant.toLowerCase();
|
|
2175
2187
|
fetch(
|
|
2176
|
-
`https://api.uixhome.fr/${
|
|
2188
|
+
`https://api.uixhome.fr/${r}/iterop/businesstable/patch/${n}/rows?t=${t}&rowsToAdd=${s}&rowsToRemove=${i}`,
|
|
2177
2189
|
{
|
|
2178
2190
|
method: "POST"
|
|
2179
2191
|
}
|
|
2180
2192
|
).then((d) => d.json()).then((d) => {
|
|
2181
|
-
|
|
2193
|
+
c && c(d);
|
|
2182
2194
|
}).catch((d) => {
|
|
2183
2195
|
o && o(d);
|
|
2184
2196
|
});
|
|
2185
2197
|
});
|
|
2186
2198
|
}
|
|
2187
|
-
function
|
|
2199
|
+
async function _t(e, t, n, s = void 0, i = void 0) {
|
|
2200
|
+
e.tenant && T(e, (c) => {
|
|
2201
|
+
c.services.find((a) => a.id === "businessprocess")?.url + "";
|
|
2202
|
+
const o = e.tenant.toLowerCase();
|
|
2203
|
+
fetch(
|
|
2204
|
+
`https://api.uixhome.fr/${o}/iterop/dependencytable/one/${n}/?t=${t}`,
|
|
2205
|
+
{
|
|
2206
|
+
method: "POST"
|
|
2207
|
+
}
|
|
2208
|
+
).then((a) => a.json()).then((a) => {
|
|
2209
|
+
s && s(a);
|
|
2210
|
+
}).catch((a) => {
|
|
2211
|
+
i && i(a);
|
|
2212
|
+
});
|
|
2213
|
+
});
|
|
2214
|
+
}
|
|
2215
|
+
async function wt(e, t, n, s, i = void 0, c = void 0) {
|
|
2216
|
+
e.tenant && T(e, (o) => {
|
|
2217
|
+
o.services.find((r) => r.id === "businessprocess")?.url + "";
|
|
2218
|
+
const a = e.tenant.toLowerCase();
|
|
2219
|
+
fetch(
|
|
2220
|
+
`https://api.uixhome.fr/${a}/iterop/dependencytable/patch/${n}/?t=${t}&cli=${s}`,
|
|
2221
|
+
{
|
|
2222
|
+
method: "POST"
|
|
2223
|
+
}
|
|
2224
|
+
).then((r) => r.json()).then((r) => {
|
|
2225
|
+
i && i(r);
|
|
2226
|
+
}).catch((r) => {
|
|
2227
|
+
c && c(r);
|
|
2228
|
+
});
|
|
2229
|
+
});
|
|
2230
|
+
}
|
|
2231
|
+
async function Ct(e, t, n, s, i = void 0, c = void 0) {
|
|
2232
|
+
e.tenant && T(e, (o) => {
|
|
2233
|
+
o.services.find((r) => r.id === "businessprocess")?.url + "";
|
|
2234
|
+
const a = e.tenant.toLowerCase();
|
|
2235
|
+
fetch(
|
|
2236
|
+
`https://api.uixhome.fr/${a}/iterop/dependencytable/put/${n}/?t=${t}&b=${s}`,
|
|
2237
|
+
{
|
|
2238
|
+
method: "POST"
|
|
2239
|
+
}
|
|
2240
|
+
).then((r) => r.json()).then((r) => {
|
|
2241
|
+
i && i(r);
|
|
2242
|
+
}).catch((r) => {
|
|
2243
|
+
c && c(r);
|
|
2244
|
+
});
|
|
2245
|
+
});
|
|
2246
|
+
}
|
|
2247
|
+
function Tt(e) {
|
|
2188
2248
|
const t = "Hello " + e;
|
|
2189
2249
|
return console.log(t), t;
|
|
2190
2250
|
}
|
|
2191
|
-
function
|
|
2251
|
+
function bt(e, t = void 0, n = void 0) {
|
|
2192
2252
|
return console.log("credentials", e), new Promise((s) => {
|
|
2193
|
-
if (e.token === "" &&
|
|
2253
|
+
if (e.token === "" && b(e), !e.space || e.space === "") {
|
|
2194
2254
|
const o = V();
|
|
2195
2255
|
console.log("platformeInfo", o);
|
|
2196
2256
|
}
|
|
2197
|
-
|
|
2257
|
+
$(
|
|
2198
2258
|
e,
|
|
2199
2259
|
"Common space",
|
|
2200
2260
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -2205,14 +2265,14 @@ function _t(e, t = void 0, n = void 0) {
|
|
|
2205
2265
|
},
|
|
2206
2266
|
!0
|
|
2207
2267
|
);
|
|
2208
|
-
const i =
|
|
2209
|
-
m(
|
|
2268
|
+
const i = N.now().ts, c = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dsearch&platformId=${e.tenant}`;
|
|
2269
|
+
m(c, {
|
|
2210
2270
|
onComplete(o) {
|
|
2211
2271
|
if (Array.isArray(JSON.parse(o))) {
|
|
2212
2272
|
const a = JSON.parse(o);
|
|
2213
2273
|
console.log("serviceId=3dsearch", a);
|
|
2214
|
-
const
|
|
2215
|
-
m(
|
|
2274
|
+
const r = `${a[0].services[0].url}/search?xrequestedwith=xmlhttprequest`;
|
|
2275
|
+
m(r, {
|
|
2216
2276
|
method: "POST",
|
|
2217
2277
|
headers: {
|
|
2218
2278
|
Accept: "application/json",
|
|
@@ -2268,12 +2328,12 @@ function _t(e, t = void 0, n = void 0) {
|
|
|
2268
2328
|
});
|
|
2269
2329
|
}
|
|
2270
2330
|
export {
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2331
|
+
R as UUID,
|
|
2332
|
+
bt as _3DSearch_usersGroup,
|
|
2333
|
+
Pe as _3DSpace_Create_Doc,
|
|
2274
2334
|
Ee as _3DSpace_bookmark_addSubsciptions,
|
|
2275
2335
|
Ge as _3DSpace_bookmark_newWorkspace,
|
|
2276
|
-
|
|
2336
|
+
b as _3DSpace_csrf,
|
|
2277
2337
|
D as _3DSpace_download_doc,
|
|
2278
2338
|
Z as _3DSpace_download_multidoc,
|
|
2279
2339
|
q as _3DSpace_file_update,
|
|
@@ -2282,14 +2342,14 @@ export {
|
|
|
2282
2342
|
A as _3DSpace_get_csrf,
|
|
2283
2343
|
z as _3DSpace_get_docInfo,
|
|
2284
2344
|
ee as _3DSpace_get_downloadTicket_multidoc,
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2345
|
+
Fe as _3DSpace_get_multiDocInfo,
|
|
2346
|
+
$ as _3DSpace_get_securityContexts,
|
|
2347
|
+
k as _3DSpace_get_ticket,
|
|
2288
2348
|
Je as _3DSpace_lifecycle_changeRevision,
|
|
2289
2349
|
De as _3DSpace_lifecycle_changeState,
|
|
2290
2350
|
Le as _3DSpace_lifecycle_getGraph,
|
|
2291
2351
|
Me as _3DSpace_lifecycle_getNextRevision,
|
|
2292
|
-
|
|
2352
|
+
Re as _3DSpace_lifecycle_getNextStates,
|
|
2293
2353
|
st as _3DSwym_buildDirectMessage,
|
|
2294
2354
|
at as _3DSwym_deleteIdea,
|
|
2295
2355
|
re as _3DSwym_findCommunityToInstantMSG,
|
|
@@ -2305,18 +2365,22 @@ export {
|
|
|
2305
2365
|
w as _3DSwym_get_version,
|
|
2306
2366
|
it as _3DSwym_postIdea,
|
|
2307
2367
|
x as _3DSwym_sendMessageData,
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2368
|
+
$e as _AppMngt_get_info_user,
|
|
2369
|
+
Oe as _AppMngt_get_users,
|
|
2370
|
+
yt as _Iterop_AddOrRemoveRows,
|
|
2311
2371
|
lt as _Iterop_Auth_CAS,
|
|
2312
|
-
|
|
2313
|
-
ft as
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2372
|
+
_t as _Iterop_GetOneDependencyTable,
|
|
2373
|
+
ft as _Iterop_ListUsers,
|
|
2374
|
+
wt as _Iterop_PatchDependencyTable,
|
|
2375
|
+
Ct as _Iterop_PutDependencyTable,
|
|
2376
|
+
mt as _Iterop_getAllBusinessTables,
|
|
2377
|
+
gt as _Iterop_getOneBusinessTable,
|
|
2378
|
+
ht as _Iterop_getOneBusinessTableRows,
|
|
2379
|
+
ut as _Iterop_jwtUser,
|
|
2380
|
+
St as _Iterop_runProcess,
|
|
2317
2381
|
V as _getPlateformInfos,
|
|
2318
2382
|
Ce as _getPlatformServices,
|
|
2319
|
-
|
|
2383
|
+
T as _getServiceUrl,
|
|
2320
2384
|
Te as _getServiceUrl_3DPassport,
|
|
2321
2385
|
pt as _getServiceUrl_Iterop,
|
|
2322
2386
|
m as _httpCallAuthenticated,
|
|
@@ -2324,16 +2388,16 @@ export {
|
|
|
2324
2388
|
we as _setDroppable,
|
|
2325
2389
|
_e as _setupTagger,
|
|
2326
2390
|
ze as addTagToDoc,
|
|
2327
|
-
|
|
2391
|
+
be as compass_getListAdditionalApps,
|
|
2328
2392
|
K as couleurs,
|
|
2329
|
-
|
|
2393
|
+
ve as createUserGroups,
|
|
2330
2394
|
te as dataMixing,
|
|
2331
2395
|
Ae as deleteUserGroups,
|
|
2332
2396
|
ge as findAdresse,
|
|
2333
2397
|
Ke as getAllContextSecurity,
|
|
2334
2398
|
W as getCSRFToken,
|
|
2335
2399
|
me as getCommunes,
|
|
2336
|
-
|
|
2400
|
+
Ne as getComplementUG,
|
|
2337
2401
|
Ve as getDataFrom3DSpace,
|
|
2338
2402
|
he as getDataFromGouvFr,
|
|
2339
2403
|
Ye as getDatasByTenant,
|
|
@@ -2343,12 +2407,12 @@ export {
|
|
|
2343
2407
|
Ie as getUserGroupsList,
|
|
2344
2408
|
B as getUsersGroupRules,
|
|
2345
2409
|
Xe as get_3DSpace_csrf,
|
|
2346
|
-
|
|
2410
|
+
je as patchUserGroups,
|
|
2347
2411
|
Ue as patchUserGroupsControl,
|
|
2348
2412
|
We as pushDataIn3DSpace,
|
|
2349
|
-
|
|
2413
|
+
ke as readUserGroupControl,
|
|
2350
2414
|
qe as removeTagToDoc,
|
|
2351
|
-
|
|
2415
|
+
Tt as sayHello,
|
|
2352
2416
|
Se as updateEvent
|
|
2353
2417
|
};
|
|
2354
2418
|
//# sourceMappingURL=wb3Api.js.map
|