@beam3_dev/api_module 0.0.179 → 0.0.181
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/README.md +1 -2
- package/dist/wb3Api.js +499 -470
- 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,10 +1,10 @@
|
|
|
1
|
-
import { v4 as
|
|
2
|
-
import { DateTime as
|
|
3
|
-
import { requirejs as O, widget as
|
|
4
|
-
function
|
|
5
|
-
return
|
|
1
|
+
import { v4 as V } from "uuid";
|
|
2
|
+
import { DateTime as I } from "luxon";
|
|
3
|
+
import { requirejs as O, widget as R } from "@widget-lab/3ddashboard-utils";
|
|
4
|
+
function D() {
|
|
5
|
+
return V();
|
|
6
6
|
}
|
|
7
|
-
const
|
|
7
|
+
const B = {
|
|
8
8
|
b3M3Yellow: "#FFB300",
|
|
9
9
|
b3AboutageBlue: "#42A5F5",
|
|
10
10
|
b3UsinageGreen: "#689F38",
|
|
@@ -65,11 +65,11 @@ async function ge(e, t = void 0, n = void 0) {
|
|
|
65
65
|
n && n(s), console.error("Erreur : " + s);
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
-
async function he(e, t =
|
|
69
|
-
let n =
|
|
70
|
-
const s = e, i = [],
|
|
71
|
-
for (let
|
|
72
|
-
i.push({ date:
|
|
68
|
+
async function he(e, t = B) {
|
|
69
|
+
let n = I.now().year;
|
|
70
|
+
const s = e, i = [], r = (a) => {
|
|
71
|
+
for (let c in a)
|
|
72
|
+
i.push({ date: c, comment: a[c] });
|
|
73
73
|
};
|
|
74
74
|
for (let a = n; a <= n + 1; a++)
|
|
75
75
|
await fetch(
|
|
@@ -80,20 +80,20 @@ async function he(e, t = K) {
|
|
|
80
80
|
Accept: "application/json"
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
).then((
|
|
84
|
-
c
|
|
85
|
-
}).catch((
|
|
83
|
+
).then((c) => c.json()).then((c) => {
|
|
84
|
+
r(c);
|
|
85
|
+
}).catch((c) => console.error("Erreur : " + c));
|
|
86
86
|
return (() => {
|
|
87
87
|
const a = s.length === 0 ? {
|
|
88
88
|
events: []
|
|
89
89
|
} : s;
|
|
90
|
-
for (let
|
|
90
|
+
for (let c of i)
|
|
91
91
|
a.events.findIndex(
|
|
92
|
-
(p) => p.start ===
|
|
92
|
+
(p) => p.start === I.fromISO(c.date).toISODate() && p.name === "Férié : " + c.comment
|
|
93
93
|
) === -1 && a.events.push({
|
|
94
|
-
name: "Férié : " +
|
|
95
|
-
start:
|
|
96
|
-
end:
|
|
94
|
+
name: "Férié : " + c.comment,
|
|
95
|
+
start: I.fromISO(c.date).toISODate(),
|
|
96
|
+
end: I.fromISO(c.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, r) => i.start - r.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: R.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 = R.getValue("PlatFormInstanceId")), (!e || e === "") && (e = void 0), t && t(
|
|
141
141
|
s.getPlatformServices({
|
|
142
142
|
platformId: e,
|
|
143
143
|
onComplete: t,
|
|
@@ -147,28 +147,28 @@ async function Ce(e, t = void 0, n = void 0) {
|
|
|
147
147
|
}
|
|
148
148
|
);
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function W() {
|
|
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(), r = 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: r
|
|
161
161
|
};
|
|
162
162
|
}), console.log("%cRETOUR API :", "color:blue", e), e;
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function C(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 r = typeof i == "string" ? JSON.parse(i) : i;
|
|
170
|
+
if (r && "platforms" in r) {
|
|
171
|
+
const o = r.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 r = JSON.parse(i);
|
|
190
|
+
if (console.log("serviceId=3dpassport", r), Array.isArray(r) && r.length > 0) {
|
|
191
|
+
const o = `${r[0].services[0].url}`;
|
|
192
192
|
t && t(o);
|
|
193
193
|
}
|
|
194
194
|
},
|
|
@@ -211,15 +211,15 @@ function be(e, t, n) {
|
|
|
211
211
|
"Content-Type": "application/json",
|
|
212
212
|
Accept: "application/json"
|
|
213
213
|
},
|
|
214
|
-
onComplete(
|
|
215
|
-
const
|
|
214
|
+
onComplete(r, o, a) {
|
|
215
|
+
const c = JSON.parse(r), d = c.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, c);
|
|
220
220
|
},
|
|
221
|
-
onFailure(
|
|
222
|
-
const a =
|
|
221
|
+
onFailure(r, o) {
|
|
222
|
+
const a = r;
|
|
223
223
|
a.msg = o.errormsg, a.errCode = o.errorcode, n && n(a);
|
|
224
224
|
}
|
|
225
225
|
});
|
|
@@ -227,42 +227,42 @@ function be(e, t, n) {
|
|
|
227
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, r, 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, r) {
|
|
235
235
|
const o = i;
|
|
236
|
-
o.msg =
|
|
236
|
+
o.msg = r.errormsg, o.errCode = r.errorcode, n && n(o);
|
|
237
237
|
}
|
|
238
238
|
});
|
|
239
239
|
}
|
|
240
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(r, o, a) {
|
|
244
|
+
const c = JSON.parse(r);
|
|
245
|
+
n && n(c);
|
|
246
246
|
},
|
|
247
|
-
onFailure(
|
|
248
|
-
const a =
|
|
247
|
+
onFailure(r, o) {
|
|
248
|
+
const a = r;
|
|
249
249
|
a.msg = o.errormsg, a.errCode = o.errorcode, s && s(a);
|
|
250
250
|
}
|
|
251
251
|
});
|
|
252
252
|
}
|
|
253
|
-
const
|
|
253
|
+
const j = {
|
|
254
254
|
"Content-Type": "application/json",
|
|
255
255
|
Accept: "application/json,text/javascript,*/*"
|
|
256
256
|
};
|
|
257
257
|
function ve(e, t, n = void 0, s = void 0) {
|
|
258
|
-
const { space: i, currentUser:
|
|
258
|
+
const { space: i, currentUser: r } = e, a = `${i}${{
|
|
259
259
|
URIUGr: "/3drdfpersist/resources/v1/usersgroup"
|
|
260
|
-
}.URIUGr}`,
|
|
260
|
+
}.URIUGr}`, c = {
|
|
261
261
|
groups: [
|
|
262
262
|
{
|
|
263
263
|
title: t.title,
|
|
264
264
|
description: t.description,
|
|
265
|
-
members: t.members || [
|
|
265
|
+
members: t.members || [r.email, "samuel.mureau@beam3.fr"],
|
|
266
266
|
pending_members: [],
|
|
267
267
|
sharing: t.sharing,
|
|
268
268
|
visibility: t.visibility
|
|
@@ -271,8 +271,8 @@ function ve(e, t, n = void 0, s = void 0) {
|
|
|
271
271
|
};
|
|
272
272
|
m(a, {
|
|
273
273
|
method: "POST",
|
|
274
|
-
headers:
|
|
275
|
-
data: JSON.stringify(
|
|
274
|
+
headers: j,
|
|
275
|
+
data: JSON.stringify(c),
|
|
276
276
|
onComplete(d) {
|
|
277
277
|
n && n(JSON.parse(d));
|
|
278
278
|
},
|
|
@@ -284,7 +284,7 @@ function ve(e, t, n = void 0, s = void 0) {
|
|
|
284
284
|
});
|
|
285
285
|
}
|
|
286
286
|
function Ne(e, t, n = void 0, s = void 0) {
|
|
287
|
-
const { space: i, tenant:
|
|
287
|
+
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}`;
|
|
288
288
|
m(d, {
|
|
289
289
|
opts: {
|
|
290
290
|
method: "GET",
|
|
@@ -302,13 +302,13 @@ function Ne(e, t, n = void 0, s = void 0) {
|
|
|
302
302
|
}
|
|
303
303
|
});
|
|
304
304
|
}
|
|
305
|
-
function
|
|
306
|
-
const { space: s, tenant: i } = e,
|
|
305
|
+
function X(e, t = void 0, n = void 0) {
|
|
306
|
+
const { space: s, tenant: i } = e, r = s, o = "/3drdfpersist/resources/v1/option-sets/dsusergroup:ListOfGroupResponsibilities/options", a = `?tenant=dstenant:${i}`, c = {
|
|
307
307
|
method: "GET",
|
|
308
308
|
Accept: "application/json,*/*,test/javascript"
|
|
309
|
-
}, d = `${
|
|
309
|
+
}, d = `${r}${o}${a}`;
|
|
310
310
|
m(d, {
|
|
311
|
-
OPTsH:
|
|
311
|
+
OPTsH: c,
|
|
312
312
|
onComplete(p) {
|
|
313
313
|
t && t(JSON.parse(p));
|
|
314
314
|
},
|
|
@@ -330,7 +330,7 @@ function Ie(e, t = void 0, n = void 0) {
|
|
|
330
330
|
const l = JSON.parse(p), f = {}, u = l.groups.filter((g) => g.uri.startsWith("uuid:"));
|
|
331
331
|
if (i && Object.keys(i).length > 0) {
|
|
332
332
|
const g = u.filter((y) => y.owner === i.email), h = u.filter((y) => y.members.includes(i.email)), S = g.concat(h);
|
|
333
|
-
f.iam = S, f.UG = u, f.iamMember = h,
|
|
333
|
+
f.iam = S, f.UG = u, f.iamMember = h, X(
|
|
334
334
|
e,
|
|
335
335
|
(y) => {
|
|
336
336
|
f.rules = y, t && t(f);
|
|
@@ -355,8 +355,8 @@ function Ae(e, t) {
|
|
|
355
355
|
method: "DELETE"
|
|
356
356
|
});
|
|
357
357
|
}
|
|
358
|
-
function
|
|
359
|
-
const { space:
|
|
358
|
+
function Ue(e, t, n, s = void 0, i = void 0) {
|
|
359
|
+
const { space: r, tenant: o } = e, a = {
|
|
360
360
|
URITI: "/3drdfpersist/resources/v1/template-instances",
|
|
361
361
|
URIUGr: "/3drdfpersist/resources/v1/usersgroup",
|
|
362
362
|
nextURICh: "/characteristics",
|
|
@@ -364,9 +364,9 @@ function je(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
|
+
}, c = n, d = `${r}${a.URIUGr}/${t}`, p = JSON.stringify(c);
|
|
368
368
|
m(d, {
|
|
369
|
-
headers:
|
|
369
|
+
headers: j,
|
|
370
370
|
method: "PATCH",
|
|
371
371
|
data: p,
|
|
372
372
|
type: "json",
|
|
@@ -378,11 +378,11 @@ function je(e, t, n, s = void 0, i = void 0) {
|
|
|
378
378
|
}
|
|
379
379
|
});
|
|
380
380
|
}
|
|
381
|
-
function
|
|
382
|
-
const { space:
|
|
381
|
+
function ke(e, t, n, s = void 0, i = void 0) {
|
|
382
|
+
const { space: r } = e, a = `${r}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
|
|
383
383
|
m(a, {
|
|
384
384
|
method: "PATCH",
|
|
385
|
-
headers:
|
|
385
|
+
headers: j,
|
|
386
386
|
data: JSON.stringify(n),
|
|
387
387
|
type: "json",
|
|
388
388
|
onComplete(d) {
|
|
@@ -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 je(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: {
|
|
@@ -411,40 +411,40 @@ function ke(e, t, n = void 0, s = void 0) {
|
|
|
411
411
|
}
|
|
412
412
|
});
|
|
413
413
|
}
|
|
414
|
-
async function
|
|
414
|
+
async function Y(e, t, n) {
|
|
415
415
|
if (e.space) {
|
|
416
416
|
const s = `${e.space}/resources/v1/application/CSRF`;
|
|
417
417
|
m(s, {
|
|
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, r, o) {
|
|
422
|
+
n && n({ error: i, headers: r, xhr: o });
|
|
423
423
|
}
|
|
424
424
|
});
|
|
425
425
|
}
|
|
426
426
|
}
|
|
427
|
-
var
|
|
428
|
-
function
|
|
427
|
+
var A = {};
|
|
428
|
+
function H(e, t) {
|
|
429
429
|
return Object.prototype.hasOwnProperty.call(e, t);
|
|
430
430
|
}
|
|
431
|
-
var
|
|
431
|
+
var z = function(e, t, n, s) {
|
|
432
432
|
t = t || "&", n = n || "=";
|
|
433
433
|
var i = {};
|
|
434
434
|
if (typeof e != "string" || e.length === 0)
|
|
435
435
|
return i;
|
|
436
|
-
var
|
|
436
|
+
var r = /\+/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[
|
|
444
|
-
p >= 0 ? (l = d.substr(0, p), f = d.substr(p + 1)) : (l = d, f = ""), u = decodeURIComponent(l), g = decodeURIComponent(f),
|
|
442
|
+
for (var c = 0; c < a; ++c) {
|
|
443
|
+
var d = e[c].replace(r, "%20"), p = d.indexOf(n), l, f, u, g;
|
|
444
|
+
p >= 0 ? (l = d.substr(0, p), f = d.substr(p + 1)) : (l = d, f = ""), u = decodeURIComponent(l), g = decodeURIComponent(f), H(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
|
+
}, N = function(e) {
|
|
448
448
|
switch (typeof e) {
|
|
449
449
|
case "string":
|
|
450
450
|
return e;
|
|
@@ -455,25 +455,25 @@ var Y = function(e, t, n, s) {
|
|
|
455
455
|
default:
|
|
456
456
|
return "";
|
|
457
457
|
}
|
|
458
|
-
},
|
|
458
|
+
}, q = 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 r = encodeURIComponent(N(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 r + encodeURIComponent(N(o));
|
|
463
|
+
}).join(t) : r + encodeURIComponent(N(e[i]));
|
|
464
|
+
}).filter(Boolean).join(t) : s ? encodeURIComponent(N(s)) + n + encodeURIComponent(N(e)) : "";
|
|
465
465
|
};
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
async function
|
|
466
|
+
A.decode = A.parse = z;
|
|
467
|
+
A.encode = A.stringify = q;
|
|
468
|
+
async function L(e, t = void 0, n = void 0, s = void 0) {
|
|
469
469
|
const i = e.space;
|
|
470
470
|
if (t === 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 r = i + `/resources/v1/modeler/documents/${t}`;
|
|
475
|
+
m(r, {
|
|
476
|
+
onComplete(o, a, c) {
|
|
477
477
|
const d = JSON.parse(o);
|
|
478
478
|
n && n(d);
|
|
479
479
|
},
|
|
@@ -488,16 +488,16 @@ async function Fe(e, t = void 0, n = void 0, s = void 0) {
|
|
|
488
488
|
console.log("Le paramètre docids est obligatoire");
|
|
489
489
|
return;
|
|
490
490
|
}
|
|
491
|
-
let
|
|
491
|
+
let r = `${i}/resources/v1/modeler/documents/ids?$include=!files,!ownerInfo,!originatorInfo,!relOwnerInfo'`, o = A.stringify({
|
|
492
492
|
$ids: t.toString().replace('"', "").replace("[", "").replace("]", "")
|
|
493
493
|
});
|
|
494
|
-
m(
|
|
494
|
+
m(r, {
|
|
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, c, d) {
|
|
501
501
|
const p = JSON.parse(a);
|
|
502
502
|
n && n(p);
|
|
503
503
|
},
|
|
@@ -506,11 +506,11 @@ async function Fe(e, t = void 0, n = void 0, s = void 0) {
|
|
|
506
506
|
}
|
|
507
507
|
});
|
|
508
508
|
}
|
|
509
|
-
function
|
|
509
|
+
function U(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, r, 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
|
},
|
|
@@ -533,14 +533,14 @@ 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, r, o) {
|
|
537
537
|
const a = JSON.parse(i);
|
|
538
538
|
t && t(a.csrf.value);
|
|
539
539
|
},
|
|
540
|
-
onFailure(i,
|
|
540
|
+
onFailure(i, r, o) {
|
|
541
541
|
n && n({
|
|
542
542
|
response: i,
|
|
543
|
-
headers:
|
|
543
|
+
headers: r,
|
|
544
544
|
xhr: o
|
|
545
545
|
});
|
|
546
546
|
}
|
|
@@ -548,9 +548,9 @@ function b(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 F(e, t = void 0, n = void 0) {
|
|
552
552
|
let s = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
|
|
553
|
-
|
|
553
|
+
U(
|
|
554
554
|
e,
|
|
555
555
|
(i) => {
|
|
556
556
|
m(s, {
|
|
@@ -558,12 +558,12 @@ function k(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(r, o) {
|
|
562
|
+
const c = JSON.parse(r).data[0].dataelements.ticketURL;
|
|
563
|
+
t && t(c, o);
|
|
564
564
|
},
|
|
565
|
-
onFailure(
|
|
566
|
-
console.warn("☠️ error => ",
|
|
565
|
+
onFailure(r, o) {
|
|
566
|
+
console.warn("☠️ error => ", r, o), n && n(r, o);
|
|
567
567
|
}
|
|
568
568
|
});
|
|
569
569
|
},
|
|
@@ -573,8 +573,8 @@ function k(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 r = `${e.space}/resources/v1/modeler/documents/${t}/files/DownloadTicket`;
|
|
577
|
+
n || (n = e.token), m(r, {
|
|
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 c = a.data[0].dataelements.ticketURL;
|
|
587
|
+
s && s(c);
|
|
588
|
+
} catch (c) {
|
|
589
|
+
i && i(c);
|
|
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
|
|
597
|
+
function M(e, t, n, s, i, r = void 0, o = void 0) {
|
|
598
598
|
const a = () => Q(
|
|
599
599
|
e,
|
|
600
600
|
t,
|
|
@@ -602,30 +602,33 @@ function q(e, t, n, s, i, c = void 0, o = void 0) {
|
|
|
602
602
|
s,
|
|
603
603
|
i,
|
|
604
604
|
e.token,
|
|
605
|
-
|
|
605
|
+
r,
|
|
606
606
|
o
|
|
607
607
|
);
|
|
608
|
-
e.token ? a() :
|
|
608
|
+
e.token ? a() : U(
|
|
609
609
|
e,
|
|
610
610
|
t,
|
|
611
|
-
(
|
|
612
|
-
e.token =
|
|
611
|
+
(c) => {
|
|
612
|
+
e.token = c.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, r, o = void 0, a = void 0) {
|
|
617
|
+
const c = e.space + `/resources/v1/modeler/documents/${t}/files/CheckinTicket`;
|
|
618
|
+
m(c, {
|
|
619
619
|
method: "PUT",
|
|
620
620
|
headers: {
|
|
621
621
|
ENO_CSRF_TOKEN: e.token
|
|
622
622
|
},
|
|
623
623
|
onComplete(d, p, l) {
|
|
624
624
|
const f = JSON.parse(d).csrf, u = JSON.parse(d).data[0].dataelements, g = new FormData();
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
625
|
+
let h;
|
|
626
|
+
s instanceof Blob ? h = s : h = new Blob([s], {
|
|
627
|
+
type: "text/plain"
|
|
628
|
+
}), g.append("__fcs__jobTicket", u.ticket), g.append("file_0", h, i);
|
|
629
|
+
const S = {};
|
|
630
|
+
S.method = "POST", S.data = g, S.onComplete = function(y) {
|
|
631
|
+
let _ = {
|
|
629
632
|
method: "PUT",
|
|
630
633
|
headers: {
|
|
631
634
|
SecurityContext: "ctx::" + e.ctx
|
|
@@ -639,7 +642,7 @@ function Q(e, t, n, s, i, c, o = void 0, a = void 0) {
|
|
|
639
642
|
{
|
|
640
643
|
dataelements: {
|
|
641
644
|
title: i,
|
|
642
|
-
receipt:
|
|
645
|
+
receipt: y
|
|
643
646
|
},
|
|
644
647
|
updateAction: "REVISE"
|
|
645
648
|
}
|
|
@@ -651,25 +654,50 @@ function Q(e, t, n, s, i, c, o = void 0, a = void 0) {
|
|
|
651
654
|
]
|
|
652
655
|
}),
|
|
653
656
|
type: "json",
|
|
654
|
-
onComplete(
|
|
655
|
-
o && o(
|
|
657
|
+
onComplete(v) {
|
|
658
|
+
o && o(v);
|
|
656
659
|
},
|
|
657
|
-
onFailure(
|
|
658
|
-
a && a(
|
|
660
|
+
onFailure(v) {
|
|
661
|
+
a && a(v);
|
|
659
662
|
}
|
|
660
|
-
},
|
|
663
|
+
}, T = e.tenant.toUpperCase();
|
|
661
664
|
m(
|
|
662
|
-
e.space + `/resources/v1/modeler/documents/?$include=versions&tenant=${
|
|
663
|
-
|
|
665
|
+
e.space + `/resources/v1/modeler/documents/?$include=versions&tenant=${T}&e6w-lang=en&e6w-timezone=-120&xrequestedwith=xmlhttprequest`,
|
|
666
|
+
_
|
|
664
667
|
);
|
|
665
|
-
},
|
|
666
|
-
a && a(
|
|
667
|
-
},
|
|
668
|
+
}, S.onFailure = function(y) {
|
|
669
|
+
a && a(y);
|
|
670
|
+
}, S.timeout = 0, m(u.ticketURL, S);
|
|
668
671
|
}
|
|
669
672
|
});
|
|
670
673
|
}
|
|
671
|
-
async function Pe(e, t, n, s
|
|
672
|
-
|
|
674
|
+
async function Pe(e, t, n, s = void 0, i = void 0) {
|
|
675
|
+
e.space, e.token, e.ctx, L(
|
|
676
|
+
e,
|
|
677
|
+
t,
|
|
678
|
+
(r) => {
|
|
679
|
+
const o = r.data[0].relateddata.files[0].id, a = r.data[0].dataelements.secondaryTitle && r.data[0].dataelements.secondaryTitle !== "" ? r.data[0].dataelements.secondaryTitle : r.data[0].dataelements.title;
|
|
680
|
+
M(
|
|
681
|
+
e,
|
|
682
|
+
t,
|
|
683
|
+
o,
|
|
684
|
+
n,
|
|
685
|
+
a,
|
|
686
|
+
(c) => {
|
|
687
|
+
s && s(c);
|
|
688
|
+
},
|
|
689
|
+
(c) => {
|
|
690
|
+
i && i(c);
|
|
691
|
+
}
|
|
692
|
+
);
|
|
693
|
+
},
|
|
694
|
+
(r) => {
|
|
695
|
+
i && i(r);
|
|
696
|
+
}
|
|
697
|
+
);
|
|
698
|
+
}
|
|
699
|
+
async function Re(e, t, n, s, i = void 0, r = void 0) {
|
|
700
|
+
const o = e.space, a = e.token, c = e.ctx;
|
|
673
701
|
if (o !== "") {
|
|
674
702
|
let d = `${o}/resources/v1/modeler/documents/files/CheckinTicket`;
|
|
675
703
|
m(d, {
|
|
@@ -687,7 +715,7 @@ async function Pe(e, t, n, s, i = void 0, c = void 0) {
|
|
|
687
715
|
method: "POST",
|
|
688
716
|
data: g,
|
|
689
717
|
onComplete(_) {
|
|
690
|
-
let
|
|
718
|
+
let T = D(), v = {
|
|
691
719
|
method: "POST",
|
|
692
720
|
headers: {
|
|
693
721
|
ENO_CSRF_TOKEN: a,
|
|
@@ -713,25 +741,25 @@ async function Pe(e, t, n, s, i = void 0, c = void 0) {
|
|
|
713
741
|
}
|
|
714
742
|
]
|
|
715
743
|
},
|
|
716
|
-
tempId:
|
|
744
|
+
tempId: T
|
|
717
745
|
}
|
|
718
746
|
]
|
|
719
747
|
}),
|
|
720
748
|
type: "json",
|
|
721
|
-
onComplete(
|
|
722
|
-
i && i(
|
|
749
|
+
onComplete(k) {
|
|
750
|
+
i && i(k);
|
|
723
751
|
},
|
|
724
|
-
onFailure(
|
|
725
|
-
|
|
752
|
+
onFailure(k) {
|
|
753
|
+
r && r(k);
|
|
726
754
|
}
|
|
727
755
|
};
|
|
728
756
|
m(
|
|
729
|
-
o + "/resources/v1/modeler/documents/?SecurityContext=ctx::" +
|
|
730
|
-
|
|
757
|
+
o + "/resources/v1/modeler/documents/?SecurityContext=ctx::" + c,
|
|
758
|
+
v
|
|
731
759
|
);
|
|
732
760
|
},
|
|
733
761
|
onFailure(_) {
|
|
734
|
-
|
|
762
|
+
r && r(_);
|
|
735
763
|
},
|
|
736
764
|
timeout: 0
|
|
737
765
|
};
|
|
@@ -740,12 +768,12 @@ async function Pe(e, t, n, s, i = void 0, c = void 0) {
|
|
|
740
768
|
});
|
|
741
769
|
}
|
|
742
770
|
}
|
|
743
|
-
function $(e, t = void 0, n = void 0, s = void 0, i = void 0,
|
|
771
|
+
function $(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0, o = !1) {
|
|
744
772
|
const a = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
|
|
745
773
|
m(a, {
|
|
746
774
|
method: "GET",
|
|
747
|
-
onComplete(
|
|
748
|
-
const d = JSON.parse(
|
|
775
|
+
onComplete(c) {
|
|
776
|
+
const d = JSON.parse(c);
|
|
749
777
|
let p = "", l, f, u;
|
|
750
778
|
if (t) {
|
|
751
779
|
let g = d.collabspaces.find((h) => h.title === t);
|
|
@@ -754,7 +782,7 @@ function $(e, t = void 0, n = void 0, s = void 0, i = void 0, c = void 0, o = !1
|
|
|
754
782
|
let h = g.couples;
|
|
755
783
|
h = h.filter(
|
|
756
784
|
(S, y, _) => y === _.findIndex(
|
|
757
|
-
(
|
|
785
|
+
(T) => T.organization.pid === S.organization.pid && T.role.pid === S.role.pid
|
|
758
786
|
)
|
|
759
787
|
), n && (Array.isArray(n) ? n.forEach((S) => {
|
|
760
788
|
u || h.forEach((y) => {
|
|
@@ -762,9 +790,9 @@ function $(e, t = void 0, n = void 0, s = void 0, i = void 0, c = void 0, o = !1
|
|
|
762
790
|
u = S, f = s;
|
|
763
791
|
else if (S === y.role.name) {
|
|
764
792
|
let _ = h.filter(
|
|
765
|
-
(
|
|
793
|
+
(T) => T.role.name === S
|
|
766
794
|
);
|
|
767
|
-
_.length === 1 ? (u = _[0].role.name, f = _[0].organization.title) :
|
|
795
|
+
_.length === 1 ? (u = _[0].role.name, f = _[0].organization.title) : r(_);
|
|
768
796
|
}
|
|
769
797
|
});
|
|
770
798
|
}) : h.forEach((S) => {
|
|
@@ -774,29 +802,29 @@ function $(e, t = void 0, n = void 0, s = void 0, i = void 0, c = void 0, o = !1
|
|
|
774
802
|
let y = h.filter(
|
|
775
803
|
(_) => _.role.name === n
|
|
776
804
|
);
|
|
777
|
-
y.length === 1 ? (u = y[0].role.name, f = y[0].organization.title) :
|
|
805
|
+
y.length === 1 ? (u = y[0].role.name, f = y[0].organization.title) : r(y);
|
|
778
806
|
}
|
|
779
807
|
}));
|
|
780
808
|
}
|
|
781
809
|
}
|
|
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)) :
|
|
810
|
+
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)) : r && (p = u + "." + f + "." + l, r(p));
|
|
783
811
|
},
|
|
784
|
-
onFailure(
|
|
785
|
-
console.
|
|
786
|
-
err:
|
|
812
|
+
onFailure(c, d) {
|
|
813
|
+
console.warn("Erreur de récupération du contexte de sécurité. => ", {
|
|
814
|
+
err: c,
|
|
787
815
|
headers: d
|
|
788
816
|
});
|
|
789
817
|
}
|
|
790
818
|
});
|
|
791
819
|
}
|
|
792
|
-
async function
|
|
820
|
+
async function J(e, t = void 0, n = void 0) {
|
|
793
821
|
return (!e.objID || e.objID === "") && (console.warn(
|
|
794
822
|
"_3DSpace_download_doc() / Le paramètre objectId est obligatoire"
|
|
795
823
|
), n && n(
|
|
796
824
|
"_3DSpace_download_doc() / Le paramètre objectId est obligatoire"
|
|
797
825
|
)), (e.space === "" || !e.space) && (console.warn(
|
|
798
826
|
"_3DSpace_download_doc() / Le paramètre space est obligatoire"
|
|
799
|
-
), n && n("_3DSpace_download_doc() / Le paramètre space est obligatoire")), (e.token === "" || !e.token) &&
|
|
827
|
+
), n && n("_3DSpace_download_doc() / Le paramètre space est obligatoire")), (e.token === "" || !e.token) && Y(
|
|
800
828
|
e,
|
|
801
829
|
(s) => {
|
|
802
830
|
e.token = s;
|
|
@@ -805,14 +833,14 @@ async function D(e, t = void 0, n = void 0) {
|
|
|
805
833
|
console.log("☠️ error => ", s);
|
|
806
834
|
}
|
|
807
835
|
), new Promise((s, i) => {
|
|
808
|
-
|
|
836
|
+
F(
|
|
809
837
|
e,
|
|
810
|
-
(
|
|
811
|
-
e?.returnType === "blob" ? (console.log("ticketURL blob",
|
|
838
|
+
(r) => {
|
|
839
|
+
e?.returnType === "blob" ? (console.log("ticketURL blob", r), fetch(r).then((o) => o.blob()).then((o) => {
|
|
812
840
|
t && t(o);
|
|
813
841
|
}).catch((o) => {
|
|
814
842
|
n && n(o);
|
|
815
|
-
})) : m(
|
|
843
|
+
})) : m(r, {
|
|
816
844
|
onComplete(o) {
|
|
817
845
|
let a;
|
|
818
846
|
try {
|
|
@@ -822,21 +850,21 @@ async function D(e, t = void 0, n = void 0) {
|
|
|
822
850
|
}
|
|
823
851
|
t && typeof t == "function" && t(a), s(a);
|
|
824
852
|
},
|
|
825
|
-
onFailure(o, a,
|
|
853
|
+
onFailure(o, a, c) {
|
|
826
854
|
n && (console.log("error http", o), n({
|
|
827
855
|
msg: JSON.parse(o),
|
|
828
856
|
headers: a,
|
|
829
|
-
xhr:
|
|
857
|
+
xhr: c
|
|
830
858
|
}), i({
|
|
831
859
|
msg: JSON.parse(o),
|
|
832
860
|
headers: a,
|
|
833
|
-
xhr:
|
|
861
|
+
xhr: c
|
|
834
862
|
}));
|
|
835
863
|
}
|
|
836
864
|
});
|
|
837
865
|
},
|
|
838
|
-
(
|
|
839
|
-
n && n(
|
|
866
|
+
(r) => {
|
|
867
|
+
n && n(r), console.log("*_3dspace_download_doc / error file URL *", r), i(r);
|
|
840
868
|
}
|
|
841
869
|
);
|
|
842
870
|
});
|
|
@@ -845,8 +873,8 @@ async function Z(e, t, n = void 0, s = void 0) {
|
|
|
845
873
|
let i = [];
|
|
846
874
|
if (typeof t < "u" && Array.isArray(t) && t?.length > 0) {
|
|
847
875
|
for (let a = 0; a < t.length; a += 80) {
|
|
848
|
-
const
|
|
849
|
-
i.push(
|
|
876
|
+
const c = t.slice(a, a + 80);
|
|
877
|
+
i.push(c);
|
|
850
878
|
}
|
|
851
879
|
const o = (a) => {
|
|
852
880
|
ee(
|
|
@@ -855,8 +883,8 @@ async function Z(e, t, n = void 0, s = void 0) {
|
|
|
855
883
|
() => {
|
|
856
884
|
a++, a < i.length && o(a);
|
|
857
885
|
},
|
|
858
|
-
(
|
|
859
|
-
n && n(
|
|
886
|
+
(c) => {
|
|
887
|
+
n && n(c);
|
|
860
888
|
}
|
|
861
889
|
);
|
|
862
890
|
};
|
|
@@ -869,10 +897,10 @@ async function Z(e, t, n = void 0, s = void 0) {
|
|
|
869
897
|
);
|
|
870
898
|
}
|
|
871
899
|
function ee(e, t, n = void 0, s = void 0, i = void 0) {
|
|
872
|
-
const
|
|
873
|
-
t.forEach((
|
|
874
|
-
|
|
875
|
-
id:
|
|
900
|
+
const r = [];
|
|
901
|
+
t.forEach((c) => {
|
|
902
|
+
r.push({
|
|
903
|
+
id: c
|
|
876
904
|
});
|
|
877
905
|
});
|
|
878
906
|
let o = JSON.stringify({
|
|
@@ -880,16 +908,16 @@ function ee(e, t, n = void 0, s = void 0, i = void 0) {
|
|
|
880
908
|
name: "ENO_CSRF_TOKEN",
|
|
881
909
|
value: e.token
|
|
882
910
|
},
|
|
883
|
-
data:
|
|
911
|
+
data: r
|
|
884
912
|
});
|
|
885
913
|
const a = `${e.space}/resources/v1/modeler/documents/DownloadTicket?tenant=${e.tenant}&e6w-lang=fr&e6w-timezone=-120`;
|
|
886
914
|
m(a, {
|
|
887
915
|
method: "PUT",
|
|
888
916
|
data: o,
|
|
889
917
|
type: "json",
|
|
890
|
-
onComplete(
|
|
891
|
-
const d =
|
|
892
|
-
|
|
918
|
+
onComplete(c) {
|
|
919
|
+
const d = c.data;
|
|
920
|
+
c.success === !0 && (n && n(), d.forEach((p) => {
|
|
893
921
|
try {
|
|
894
922
|
const l = p.dataelements.fileName, f = p.dataelements.ticketURL;
|
|
895
923
|
m(f, {
|
|
@@ -916,15 +944,15 @@ function ee(e, t, n = void 0, s = void 0, i = void 0) {
|
|
|
916
944
|
}
|
|
917
945
|
}));
|
|
918
946
|
},
|
|
919
|
-
onFailure(
|
|
920
|
-
console.log(
|
|
947
|
+
onFailure(c) {
|
|
948
|
+
console.log(c), i && i(c);
|
|
921
949
|
}
|
|
922
950
|
});
|
|
923
951
|
}
|
|
924
|
-
function
|
|
952
|
+
function De(e, t, n = void 0, s = void 0) {
|
|
925
953
|
return new Promise((i) => {
|
|
926
954
|
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
927
|
-
const
|
|
955
|
+
const r = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
|
|
928
956
|
$(
|
|
929
957
|
e.space,
|
|
930
958
|
"ESPACE COMMUN",
|
|
@@ -958,12 +986,12 @@ function Re(e, t, n = void 0, s = void 0) {
|
|
|
958
986
|
s && s(a);
|
|
959
987
|
}
|
|
960
988
|
};
|
|
961
|
-
m(
|
|
989
|
+
m(r, o);
|
|
962
990
|
}
|
|
963
991
|
});
|
|
964
992
|
}
|
|
965
|
-
function
|
|
966
|
-
return new Promise((
|
|
993
|
+
function Le(e, t, n, s = void 0, i = void 0) {
|
|
994
|
+
return new Promise((r) => {
|
|
967
995
|
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
968
996
|
const o = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
|
|
969
997
|
$(
|
|
@@ -971,9 +999,9 @@ function De(e, t, n, s = void 0, i = void 0) {
|
|
|
971
999
|
"ESPACE COMMUN",
|
|
972
1000
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
973
1001
|
void 0,
|
|
974
|
-
(
|
|
975
|
-
(
|
|
976
|
-
console.log("onError =>",
|
|
1002
|
+
(c) => e.ctx = c,
|
|
1003
|
+
(c) => {
|
|
1004
|
+
console.log("onError =>", c);
|
|
977
1005
|
}
|
|
978
1006
|
);
|
|
979
1007
|
let a = {
|
|
@@ -993,21 +1021,21 @@ function De(e, t, n, s = void 0, i = void 0) {
|
|
|
993
1021
|
]
|
|
994
1022
|
}),
|
|
995
1023
|
type: "json",
|
|
996
|
-
onComplete(
|
|
997
|
-
s && s(
|
|
1024
|
+
onComplete(c) {
|
|
1025
|
+
s && s(c);
|
|
998
1026
|
},
|
|
999
|
-
onFailure(
|
|
1000
|
-
i && i(
|
|
1027
|
+
onFailure(c) {
|
|
1028
|
+
i && i(c);
|
|
1001
1029
|
}
|
|
1002
1030
|
};
|
|
1003
1031
|
m(o, a);
|
|
1004
1032
|
}
|
|
1005
1033
|
});
|
|
1006
1034
|
}
|
|
1007
|
-
function
|
|
1035
|
+
function Me(e, t, n = void 0, s = void 0) {
|
|
1008
1036
|
return new Promise((i) => {
|
|
1009
1037
|
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
1010
|
-
const
|
|
1038
|
+
const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
|
|
1011
1039
|
$(
|
|
1012
1040
|
e.space,
|
|
1013
1041
|
"ESPACE COMMUN",
|
|
@@ -1041,14 +1069,14 @@ function Le(e, t, n = void 0, s = void 0) {
|
|
|
1041
1069
|
s && s(a);
|
|
1042
1070
|
}
|
|
1043
1071
|
};
|
|
1044
|
-
m(
|
|
1072
|
+
m(r, o);
|
|
1045
1073
|
}
|
|
1046
1074
|
});
|
|
1047
1075
|
}
|
|
1048
|
-
function
|
|
1076
|
+
function Je(e, t, n = void 0, s = void 0) {
|
|
1049
1077
|
return new Promise((i) => {
|
|
1050
1078
|
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
1051
|
-
const
|
|
1079
|
+
const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
|
|
1052
1080
|
$(
|
|
1053
1081
|
e.space,
|
|
1054
1082
|
"ESPACE COMMUN",
|
|
@@ -1088,12 +1116,12 @@ function Me(e, t, n = void 0, s = void 0) {
|
|
|
1088
1116
|
s && s(a);
|
|
1089
1117
|
}
|
|
1090
1118
|
};
|
|
1091
|
-
m(
|
|
1119
|
+
m(r, o);
|
|
1092
1120
|
}
|
|
1093
1121
|
});
|
|
1094
1122
|
}
|
|
1095
|
-
function
|
|
1096
|
-
return new Promise((
|
|
1123
|
+
function Ge(e, t, n, s = void 0, i = void 0) {
|
|
1124
|
+
return new Promise((r) => {
|
|
1097
1125
|
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
1098
1126
|
const o = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
|
|
1099
1127
|
$(
|
|
@@ -1101,9 +1129,9 @@ function Je(e, t, n, s = void 0, i = void 0) {
|
|
|
1101
1129
|
"ESPACE COMMUN",
|
|
1102
1130
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
1103
1131
|
void 0,
|
|
1104
|
-
(
|
|
1105
|
-
(
|
|
1106
|
-
console.log("onError =>",
|
|
1132
|
+
(c) => e.ctx = c,
|
|
1133
|
+
(c) => {
|
|
1134
|
+
console.log("onError =>", c);
|
|
1107
1135
|
}
|
|
1108
1136
|
);
|
|
1109
1137
|
let a = {
|
|
@@ -1128,21 +1156,21 @@ function Je(e, t, n, s = void 0, i = void 0) {
|
|
|
1128
1156
|
notificationTimeout: 600
|
|
1129
1157
|
}),
|
|
1130
1158
|
type: "json",
|
|
1131
|
-
onComplete(
|
|
1132
|
-
s && s(
|
|
1159
|
+
onComplete(c) {
|
|
1160
|
+
s && s(c);
|
|
1133
1161
|
},
|
|
1134
|
-
onFailure(
|
|
1135
|
-
i && i(
|
|
1162
|
+
onFailure(c) {
|
|
1163
|
+
i && i(c);
|
|
1136
1164
|
}
|
|
1137
1165
|
};
|
|
1138
1166
|
m(o, a);
|
|
1139
1167
|
}
|
|
1140
1168
|
});
|
|
1141
1169
|
}
|
|
1142
|
-
function
|
|
1170
|
+
function Ee(e, t, n, s, i = void 0, r = void 0) {
|
|
1143
1171
|
return new Promise((o) => {
|
|
1144
1172
|
const a = `${e.space}/resources/v1/modeler/dsbks/dsbks:Bookmark`;
|
|
1145
|
-
let
|
|
1173
|
+
let c = {
|
|
1146
1174
|
attributes: {
|
|
1147
1175
|
title: n,
|
|
1148
1176
|
description: s,
|
|
@@ -1151,7 +1179,7 @@ function Ge(e, t, n, s, i = void 0, c = void 0) {
|
|
|
1151
1179
|
}, d = {
|
|
1152
1180
|
items: []
|
|
1153
1181
|
};
|
|
1154
|
-
t && (d.parentId = t), d.items.push(
|
|
1182
|
+
t && (d.parentId = t), d.items.push(c);
|
|
1155
1183
|
let p = {
|
|
1156
1184
|
method: "POST",
|
|
1157
1185
|
headers: {
|
|
@@ -1166,13 +1194,13 @@ function Ge(e, t, n, s, i = void 0, c = void 0) {
|
|
|
1166
1194
|
i && i(l);
|
|
1167
1195
|
},
|
|
1168
1196
|
onFailure(l) {
|
|
1169
|
-
|
|
1197
|
+
r && r(l);
|
|
1170
1198
|
}
|
|
1171
1199
|
};
|
|
1172
1200
|
m(a, p);
|
|
1173
1201
|
});
|
|
1174
1202
|
}
|
|
1175
|
-
function
|
|
1203
|
+
function Ke(e, t, n, s, i = void 0, r = void 0) {
|
|
1176
1204
|
return console.log("credentials", e), new Promise((o) => {
|
|
1177
1205
|
`${e.space}`, JSON.stringify({
|
|
1178
1206
|
csrf: {
|
|
@@ -1196,7 +1224,7 @@ function Ee(e, t, n, s, i = void 0, c = void 0) {
|
|
|
1196
1224
|
});
|
|
1197
1225
|
}
|
|
1198
1226
|
//!SECTION
|
|
1199
|
-
function
|
|
1227
|
+
function Ve(e, t = void 0, n = void 0) {
|
|
1200
1228
|
const s = {
|
|
1201
1229
|
base: `${e.space}`,
|
|
1202
1230
|
uri: "/resources/bps/cspaces",
|
|
@@ -1208,57 +1236,57 @@ function Ke(e, t = void 0, n = void 0) {
|
|
|
1208
1236
|
Accept: "application/json,text/javascript,*/*",
|
|
1209
1237
|
"Content-Type": "application/ds-json"
|
|
1210
1238
|
},
|
|
1211
|
-
onComplete(
|
|
1212
|
-
const a = JSON.parse(
|
|
1239
|
+
onComplete(r, o) {
|
|
1240
|
+
const a = JSON.parse(r);
|
|
1213
1241
|
t && t(a, o);
|
|
1214
1242
|
},
|
|
1215
|
-
onFailure(
|
|
1216
|
-
n && n({ response:
|
|
1243
|
+
onFailure(r, o, a) {
|
|
1244
|
+
n && n({ response: r, headers: o, xhr: a });
|
|
1217
1245
|
}
|
|
1218
1246
|
});
|
|
1219
1247
|
}
|
|
1220
|
-
function
|
|
1221
|
-
|
|
1248
|
+
function Be(e, t, n, s) {
|
|
1249
|
+
F(
|
|
1222
1250
|
e.space,
|
|
1223
1251
|
t,
|
|
1224
1252
|
(i) => {
|
|
1225
1253
|
m(i, {
|
|
1226
1254
|
header: { ENO_CSRF_TOKEN: e.token },
|
|
1227
|
-
onComplete: (
|
|
1228
|
-
n && n(
|
|
1255
|
+
onComplete: (r) => {
|
|
1256
|
+
n && n(r);
|
|
1229
1257
|
},
|
|
1230
|
-
onFailure: (
|
|
1231
|
-
console.log("error http",
|
|
1258
|
+
onFailure: (r) => {
|
|
1259
|
+
console.log("error http", r), s && s(r);
|
|
1232
1260
|
}
|
|
1233
1261
|
});
|
|
1234
1262
|
}
|
|
1235
1263
|
);
|
|
1236
1264
|
}
|
|
1237
|
-
async function
|
|
1265
|
+
async function We(e, t, n = void 0, s = void 0) {
|
|
1238
1266
|
return new Promise((i) => {
|
|
1239
|
-
|
|
1240
|
-
m(
|
|
1241
|
-
onComplete: (o, a,
|
|
1242
|
-
onFailure: (o, a,
|
|
1243
|
-
s && s(o, a,
|
|
1267
|
+
F(e, t, (r) => {
|
|
1268
|
+
m(r, {
|
|
1269
|
+
onComplete: (o, a, c) => (i(JSON.parse(o)), n && n(JSON.parse(o), a, c), i),
|
|
1270
|
+
onFailure: (o, a, c) => {
|
|
1271
|
+
s && s(o, a, c), console.log(o, a?.errormsg);
|
|
1244
1272
|
}
|
|
1245
1273
|
});
|
|
1246
1274
|
});
|
|
1247
1275
|
});
|
|
1248
1276
|
}
|
|
1249
|
-
function
|
|
1250
|
-
const
|
|
1251
|
-
|
|
1277
|
+
function Xe(e, t, n, s = void 0, i = void 0) {
|
|
1278
|
+
const r = new Blob([JSON.stringify(t)], { type: "text/plain" });
|
|
1279
|
+
U(
|
|
1252
1280
|
e,
|
|
1253
1281
|
n,
|
|
1254
1282
|
(o) => {
|
|
1255
|
-
const a = o.data[0].relateddata.files[0].id,
|
|
1256
|
-
|
|
1283
|
+
const a = o.data[0].relateddata.files[0].id, c = o.data[0].dataelements.secondaryTitle !== "" ? o.data[0].dataelements.secondaryTitle : o.data[0].dataelements.title;
|
|
1284
|
+
M(
|
|
1257
1285
|
e,
|
|
1258
1286
|
n,
|
|
1259
1287
|
a,
|
|
1260
|
-
c,
|
|
1261
1288
|
r,
|
|
1289
|
+
c,
|
|
1262
1290
|
(d) => {
|
|
1263
1291
|
s && s(d);
|
|
1264
1292
|
},
|
|
@@ -1269,10 +1297,10 @@ function We(e, t, n, s = void 0, i = void 0) {
|
|
|
1269
1297
|
}
|
|
1270
1298
|
);
|
|
1271
1299
|
}
|
|
1272
|
-
let
|
|
1273
|
-
const
|
|
1274
|
-
async function
|
|
1275
|
-
e.objID && e.objID !== "" ?
|
|
1300
|
+
let G, E;
|
|
1301
|
+
const x = [];
|
|
1302
|
+
async function Ye(e, t = void 0, n = void 0) {
|
|
1303
|
+
e.objID && e.objID !== "" ? U(
|
|
1276
1304
|
e,
|
|
1277
1305
|
(s) => {
|
|
1278
1306
|
t && t(s);
|
|
@@ -1290,8 +1318,8 @@ async function Xe(e, t = void 0, n = void 0) {
|
|
|
1290
1318
|
}
|
|
1291
1319
|
);
|
|
1292
1320
|
}
|
|
1293
|
-
async function
|
|
1294
|
-
console.log("getDatasByTenant (getDocuments)", e), await
|
|
1321
|
+
async function He(e, t = void 0, n = void 0) {
|
|
1322
|
+
console.log("getDatasByTenant (getDocuments)", e), await J(
|
|
1295
1323
|
e,
|
|
1296
1324
|
(s) => {
|
|
1297
1325
|
const i = {};
|
|
@@ -1302,18 +1330,18 @@ async function Ye(e, t = void 0, n = void 0) {
|
|
|
1302
1330
|
}
|
|
1303
1331
|
);
|
|
1304
1332
|
}
|
|
1305
|
-
function
|
|
1333
|
+
function ze(e, t = void 0, n = void 0) {
|
|
1306
1334
|
const s = [];
|
|
1307
1335
|
if (!e.objIds && !Array.isArray(e.objIds) && e.objIds.length === 0) {
|
|
1308
1336
|
console.warn("la liste est vide ou n'est pas un tableau");
|
|
1309
1337
|
return;
|
|
1310
1338
|
}
|
|
1311
|
-
e.objIds.forEach((i,
|
|
1312
|
-
|
|
1339
|
+
e.objIds.forEach((i, r) => {
|
|
1340
|
+
J(
|
|
1313
1341
|
e,
|
|
1314
1342
|
i.objID,
|
|
1315
1343
|
(o) => {
|
|
1316
|
-
s.push({ [i.name]: o }), i.name === "dbProjets" && (
|
|
1344
|
+
s.push({ [i.name]: o }), i.name === "dbProjets" && (G = o.affaires.map((a) => a.objectID), te(e, E)), r === e.objIds.length - 1 && (t && t(s), delete e.objIds, delete e.datas);
|
|
1317
1345
|
}
|
|
1318
1346
|
);
|
|
1319
1347
|
});
|
|
@@ -1321,10 +1349,10 @@ function He(e, t = void 0, n = void 0) {
|
|
|
1321
1349
|
function te(e, t, n = void 0, s = void 0) {
|
|
1322
1350
|
Z(
|
|
1323
1351
|
e,
|
|
1324
|
-
|
|
1352
|
+
G,
|
|
1325
1353
|
(i) => {
|
|
1326
|
-
const
|
|
1327
|
-
|
|
1354
|
+
const r = [...t];
|
|
1355
|
+
r.find((o) => o.objectID === i.objectId).data = i.data, E = r, x.push(i.data), n && n(x);
|
|
1328
1356
|
},
|
|
1329
1357
|
(i) => {
|
|
1330
1358
|
s && (s(i), console.log(i));
|
|
@@ -1338,7 +1366,7 @@ const ne = "FA35FB9B177A280065800EA0000F599C", se = [
|
|
|
1338
1366
|
"usersgroup",
|
|
1339
1367
|
"3dplan",
|
|
1340
1368
|
"dashboard"
|
|
1341
|
-
],
|
|
1369
|
+
], K = {
|
|
1342
1370
|
how: "ds6w:how",
|
|
1343
1371
|
what: "ds6w:what",
|
|
1344
1372
|
when: "ds6w:when",
|
|
@@ -1351,11 +1379,11 @@ const ne = "FA35FB9B177A280065800EA0000F599C", se = [
|
|
|
1351
1379
|
order_by: "desc",
|
|
1352
1380
|
tag: "testTag"
|
|
1353
1381
|
};
|
|
1354
|
-
function
|
|
1355
|
-
const { space: i, tenant:
|
|
1382
|
+
function qe(e, t, n = void 0, s = void 0) {
|
|
1383
|
+
const { space: i, tenant: r } = e, { objId: o, pred: a, tag: c } = t, d = {
|
|
1356
1384
|
uri: "/resources/6w/tags",
|
|
1357
1385
|
otpCTX: "SecurityContext=preferred",
|
|
1358
|
-
optTenant: `tenant=${
|
|
1386
|
+
optTenant: `tenant=${r}`
|
|
1359
1387
|
}, p = `${i}${d.uri}?${d.otpCTX}&${d.optTenant}`, l = {
|
|
1360
1388
|
tag: [
|
|
1361
1389
|
{
|
|
@@ -1364,9 +1392,9 @@ function ze(e, t, n = void 0, s = void 0) {
|
|
|
1364
1392
|
uri: `pid://${o}`
|
|
1365
1393
|
}
|
|
1366
1394
|
],
|
|
1367
|
-
predicate:
|
|
1395
|
+
predicate: K[a],
|
|
1368
1396
|
object: {
|
|
1369
|
-
literal:
|
|
1397
|
+
literal: c
|
|
1370
1398
|
}
|
|
1371
1399
|
}
|
|
1372
1400
|
]
|
|
@@ -1382,7 +1410,7 @@ function ze(e, t, n = void 0, s = void 0) {
|
|
|
1382
1410
|
JSON.parse(f);
|
|
1383
1411
|
const u = {};
|
|
1384
1412
|
setTimeout(() => {
|
|
1385
|
-
|
|
1413
|
+
L(
|
|
1386
1414
|
e,
|
|
1387
1415
|
o,
|
|
1388
1416
|
(g) => {
|
|
@@ -1413,17 +1441,17 @@ function ze(e, t, n = void 0, s = void 0) {
|
|
|
1413
1441
|
}
|
|
1414
1442
|
function ae(e, t, n = void 0, s = void 0) {
|
|
1415
1443
|
console.log("obj ", t);
|
|
1416
|
-
const i = t.info.name,
|
|
1444
|
+
const i = t.info.name, r = {
|
|
1417
1445
|
baseUrl: `https://${e.tenant.toLowerCase()}-eu1-fedsearch.3dexperience.3ds.com`,
|
|
1418
1446
|
uri: "/federated/search"
|
|
1419
|
-
}, o = `${
|
|
1447
|
+
}, o = `${r.baseUrl}${r.uri}`, a = {
|
|
1420
1448
|
"Content-Type": "application/json",
|
|
1421
1449
|
Accept: "application/json,text/javascript,*/*"
|
|
1422
|
-
},
|
|
1450
|
+
}, c = D(), d = {
|
|
1423
1451
|
with_indexing_date: !0,
|
|
1424
1452
|
with_synthesis: !0,
|
|
1425
1453
|
with_nls: !1,
|
|
1426
|
-
label: `3DSearch-${e.currentUser.username}-AjoutDeTagBeam-${
|
|
1454
|
+
label: `3DSearch-${e.currentUser.username}-AjoutDeTagBeam-${c}`,
|
|
1427
1455
|
locale: "fr",
|
|
1428
1456
|
select_predicate: [
|
|
1429
1457
|
"ds6w:label",
|
|
@@ -1494,12 +1522,12 @@ function ae(e, t, n = void 0, s = void 0) {
|
|
|
1494
1522
|
}
|
|
1495
1523
|
});
|
|
1496
1524
|
}
|
|
1497
|
-
function
|
|
1498
|
-
const { objId: i, pred:
|
|
1525
|
+
function Qe(e, t, n = void 0, s = void 0) {
|
|
1526
|
+
const { objId: i, pred: r, tag: o } = t, a = {
|
|
1499
1527
|
uri: "/resources/6w/tags",
|
|
1500
1528
|
otpCTX: "SecurityContext=preferred",
|
|
1501
1529
|
optTenant: `tenant=${e.tenant}`
|
|
1502
|
-
},
|
|
1530
|
+
}, c = `${e.space}${a.uri}?${a.otpCTX}&${a.optTenant}`, d = {
|
|
1503
1531
|
tag: [
|
|
1504
1532
|
{
|
|
1505
1533
|
subject: [
|
|
@@ -1507,14 +1535,14 @@ function qe(e, t, n = void 0, s = void 0) {
|
|
|
1507
1535
|
uri: `pid://${i}`
|
|
1508
1536
|
}
|
|
1509
1537
|
],
|
|
1510
|
-
predicate:
|
|
1538
|
+
predicate: K[r],
|
|
1511
1539
|
object: {
|
|
1512
1540
|
literal: o
|
|
1513
1541
|
}
|
|
1514
1542
|
}
|
|
1515
1543
|
]
|
|
1516
1544
|
};
|
|
1517
|
-
m(
|
|
1545
|
+
m(c, {
|
|
1518
1546
|
method: "DELETE",
|
|
1519
1547
|
data: JSON.stringify(d),
|
|
1520
1548
|
headers: {
|
|
@@ -1530,20 +1558,20 @@ function qe(e, t, n = void 0, s = void 0) {
|
|
|
1530
1558
|
}
|
|
1531
1559
|
});
|
|
1532
1560
|
}
|
|
1533
|
-
function
|
|
1561
|
+
function Ze(e, t = "", n = void 0, s = void 0) {
|
|
1534
1562
|
const { space: i } = e;
|
|
1535
1563
|
if (t === "")
|
|
1536
1564
|
return;
|
|
1537
|
-
const
|
|
1565
|
+
const r = {
|
|
1538
1566
|
uri: "/resources/v1/modeler/documents"
|
|
1539
1567
|
}, o = {
|
|
1540
1568
|
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
|
|
1541
1569
|
Accept: "application/json,text/javascript,*/*"
|
|
1542
|
-
}, a = `${i}${
|
|
1570
|
+
}, a = `${i}${r.uri}`, c = `$include=none,lockerInfo,ownerInfo,originatorInfo,files,ownerInfo,originatorInfo&$fields=none,title,name,typeNLS,collabSpaceTitle,revision,isLatestRevision,files,lockStatus,lockerInfo.name,lockerInfo.firstname,lockerInfo.lastname,owner,ownerInfo.name,ownerInfo.firstname,ownerInfo.lastname,stateNLS,modified,policy,state,organizationTitle,originator,originatorInfo.name,originatorInfo.firstname,originatorInfo.lastname,hasModifyAccess,fileExtension,files.name,files.title,files.revision,files.locker,ownerInfo,ownerInfo.name,ownerInfo.firstname,ownerInfo.lastname,originatorInfo,originatorInfo.name,originatorInfo.firstname,originatorInfo.lastname&$ids=${t}`;
|
|
1543
1571
|
m(a, {
|
|
1544
1572
|
method: "POST",
|
|
1545
1573
|
headers: o,
|
|
1546
|
-
data:
|
|
1574
|
+
data: c,
|
|
1547
1575
|
onComplete(d) {
|
|
1548
1576
|
n && n(JSON.parse(d));
|
|
1549
1577
|
},
|
|
@@ -1556,7 +1584,7 @@ function Qe(e, t = "", n = void 0, s = void 0) {
|
|
|
1556
1584
|
async function w(e, t = void 0, n = void 0) {
|
|
1557
1585
|
const s = e._3DSwym + "/api/index/tk";
|
|
1558
1586
|
return m(s, {
|
|
1559
|
-
onComplete(i,
|
|
1587
|
+
onComplete(i, r, o) {
|
|
1560
1588
|
const a = JSON.parse(i);
|
|
1561
1589
|
if (t)
|
|
1562
1590
|
return t(a), e.token = a?.result?.ServerToken;
|
|
@@ -1566,7 +1594,7 @@ async function w(e, t = void 0, n = void 0) {
|
|
|
1566
1594
|
}
|
|
1567
1595
|
});
|
|
1568
1596
|
}
|
|
1569
|
-
function
|
|
1597
|
+
function et(e, t = void 0, n = void 0) {
|
|
1570
1598
|
const s = `${e.space}/api/exalead/whatsnew`, i = {
|
|
1571
1599
|
params: {
|
|
1572
1600
|
community_id: null,
|
|
@@ -1577,11 +1605,11 @@ function Ze(e, t = void 0, n = void 0) {
|
|
|
1577
1605
|
start: 0
|
|
1578
1606
|
}
|
|
1579
1607
|
};
|
|
1580
|
-
w(e, (
|
|
1608
|
+
w(e, (r) => {
|
|
1581
1609
|
m(s, {
|
|
1582
1610
|
method: "POST",
|
|
1583
1611
|
headers: {
|
|
1584
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1612
|
+
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken,
|
|
1585
1613
|
"Content-type": "application/json;charset=UTF-8",
|
|
1586
1614
|
Accept: "application/json"
|
|
1587
1615
|
},
|
|
@@ -1596,7 +1624,7 @@ function Ze(e, t = void 0, n = void 0) {
|
|
|
1596
1624
|
});
|
|
1597
1625
|
});
|
|
1598
1626
|
}
|
|
1599
|
-
function
|
|
1627
|
+
function tt(e, t = void 0, n = void 0) {
|
|
1600
1628
|
const s = `${e.space}/api/Recommendation/getpeoplefamiliartocurrentuser`, i = {
|
|
1601
1629
|
params: {
|
|
1602
1630
|
idsToFilterArr: [],
|
|
@@ -1606,19 +1634,19 @@ function et(e, t = void 0, n = void 0) {
|
|
|
1606
1634
|
maxNbOfCommonElements: "5"
|
|
1607
1635
|
}
|
|
1608
1636
|
};
|
|
1609
|
-
w(e, (
|
|
1637
|
+
w(e, (r) => {
|
|
1610
1638
|
m(s, {
|
|
1611
1639
|
method: "POST",
|
|
1612
1640
|
headers: {
|
|
1613
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1641
|
+
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken,
|
|
1614
1642
|
"Content-type": "application/json;charset=UTF-8",
|
|
1615
1643
|
Accept: "application/json"
|
|
1616
1644
|
},
|
|
1617
1645
|
data: JSON.stringify(i),
|
|
1618
1646
|
type: "json",
|
|
1619
1647
|
onComplete(o, a) {
|
|
1620
|
-
const
|
|
1621
|
-
t && t(
|
|
1648
|
+
const c = o.result.hits.map((d) => ({ login: d.login, fullName: d.name }));
|
|
1649
|
+
t && t(c, o);
|
|
1622
1650
|
},
|
|
1623
1651
|
onFailure(o, a) {
|
|
1624
1652
|
n && n(o, a);
|
|
@@ -1626,20 +1654,20 @@ function et(e, t = void 0, n = void 0) {
|
|
|
1626
1654
|
});
|
|
1627
1655
|
});
|
|
1628
1656
|
}
|
|
1629
|
-
function
|
|
1657
|
+
function nt(e, t = void 0, n = void 0) {
|
|
1630
1658
|
const s = {
|
|
1631
1659
|
base: e.space,
|
|
1632
1660
|
uri: "/api/community/listmycommunities",
|
|
1633
1661
|
limit: `/limit/${e.limit ? e.limit : 128}`,
|
|
1634
1662
|
page: `/page/${e.page ? e.page : "1"}`
|
|
1635
|
-
}, i = `${s.base}${s.uri}${s.limit}${s.page}`,
|
|
1663
|
+
}, i = `${s.base}${s.uri}${s.limit}${s.page}`, r = [];
|
|
1636
1664
|
w(e, (o) => {
|
|
1637
1665
|
m(i, {
|
|
1638
1666
|
method: "GET",
|
|
1639
1667
|
headers: {
|
|
1640
1668
|
"X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
|
|
1641
1669
|
},
|
|
1642
|
-
onComplete(a,
|
|
1670
|
+
onComplete(a, c, d) {
|
|
1643
1671
|
const l = JSON.parse(a).result;
|
|
1644
1672
|
let f = 0;
|
|
1645
1673
|
l.forEach((u) => {
|
|
@@ -1655,21 +1683,21 @@ function tt(e, t = void 0, n = void 0) {
|
|
|
1655
1683
|
e,
|
|
1656
1684
|
u.id,
|
|
1657
1685
|
(h) => {
|
|
1658
|
-
f++, g.members = h,
|
|
1686
|
+
f++, g.members = h, r.push(g), f === l.length && t && t(r);
|
|
1659
1687
|
},
|
|
1660
1688
|
(h) => n(h)
|
|
1661
1689
|
);
|
|
1662
1690
|
});
|
|
1663
1691
|
},
|
|
1664
|
-
onFailure(a,
|
|
1692
|
+
onFailure(a, c) {
|
|
1665
1693
|
const d = a;
|
|
1666
|
-
d.status =
|
|
1694
|
+
d.status = c.status, d.response = c.errormsg, n && n(d);
|
|
1667
1695
|
}
|
|
1668
1696
|
});
|
|
1669
1697
|
});
|
|
1670
1698
|
}
|
|
1671
1699
|
function oe(e, t, n, s) {
|
|
1672
|
-
const i = `${e.space}/api/community/listmembers`,
|
|
1700
|
+
const i = `${e.space}/api/community/listmembers`, r = {
|
|
1673
1701
|
params: {
|
|
1674
1702
|
page: e.page ? e.page : 1,
|
|
1675
1703
|
limit: e.limit ? e.limit : 50,
|
|
@@ -1684,47 +1712,47 @@ function oe(e, t, n, s) {
|
|
|
1684
1712
|
Accept: "application/json",
|
|
1685
1713
|
"X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
|
|
1686
1714
|
},
|
|
1687
|
-
data: JSON.stringify(
|
|
1715
|
+
data: JSON.stringify(r),
|
|
1688
1716
|
type: "json",
|
|
1689
|
-
onComplete(a,
|
|
1717
|
+
onComplete(a, c, d) {
|
|
1690
1718
|
n && n(a);
|
|
1691
1719
|
},
|
|
1692
|
-
onFailure(a,
|
|
1720
|
+
onFailure(a, c) {
|
|
1693
1721
|
const d = a;
|
|
1694
|
-
d.status =
|
|
1722
|
+
d.status = c.status, d.response = c.errormsg, s && s(d);
|
|
1695
1723
|
}
|
|
1696
1724
|
});
|
|
1697
1725
|
});
|
|
1698
1726
|
}
|
|
1699
|
-
function
|
|
1727
|
+
function st(e, t = void 0, n = void 0) {
|
|
1700
1728
|
const s = "YXdA5x4DSUKtlAi2wmnyTA";
|
|
1701
1729
|
e.commu_id || (e.commu_id = s);
|
|
1702
1730
|
const i = `${e.space}/api/v2/communities/${e.commu_id}/ideas/statuses`;
|
|
1703
|
-
w(e, (
|
|
1731
|
+
w(e, (r) => {
|
|
1704
1732
|
m(i, {
|
|
1705
1733
|
method: "GET",
|
|
1706
1734
|
headers: {
|
|
1707
1735
|
"Content-type": "application/json;charset=UTF-8",
|
|
1708
1736
|
Accept: "application/json",
|
|
1709
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1737
|
+
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
|
|
1710
1738
|
},
|
|
1711
1739
|
onComplete(o) {
|
|
1712
1740
|
const a = JSON.parse(o);
|
|
1713
1741
|
t && t(a);
|
|
1714
1742
|
},
|
|
1715
1743
|
onFailure(o, a) {
|
|
1716
|
-
const
|
|
1717
|
-
|
|
1744
|
+
const c = o;
|
|
1745
|
+
c.status = a.status, c.response = a.errormsg, n && n(c);
|
|
1718
1746
|
}
|
|
1719
1747
|
});
|
|
1720
1748
|
});
|
|
1721
1749
|
}
|
|
1722
|
-
function
|
|
1723
|
-
const { listAllContacts: i, currentUser:
|
|
1750
|
+
function it(e, t, n = void 0, s = void 0) {
|
|
1751
|
+
const { listAllContacts: i, currentUser: r } = e;
|
|
1724
1752
|
console.log("__listAllContacts", i.hits);
|
|
1725
1753
|
const o = `${e.space}/api/directmessages`, a = {
|
|
1726
|
-
users: [
|
|
1727
|
-
},
|
|
1754
|
+
users: [r.login].concat(t.receipt)
|
|
1755
|
+
}, c = {
|
|
1728
1756
|
id_msg: "",
|
|
1729
1757
|
senderId: e.currentUser.login,
|
|
1730
1758
|
senderName: `${e.currentUser.first_name} ${e.currentUser.last_name}`,
|
|
@@ -1734,10 +1762,10 @@ function st(e, t, n = void 0, s = void 0) {
|
|
|
1734
1762
|
re(
|
|
1735
1763
|
a.users,
|
|
1736
1764
|
(p) => {
|
|
1737
|
-
p !== void 0 && (
|
|
1765
|
+
p !== void 0 && (c.id_msg = p.id, d = !0, P(e, c));
|
|
1738
1766
|
},
|
|
1739
1767
|
(p) => {
|
|
1740
|
-
d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", p), s && s(p),
|
|
1768
|
+
d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", p), s && s(p), c.id_msg = "";
|
|
1741
1769
|
}
|
|
1742
1770
|
), d === !1 && setTimeout(() => {
|
|
1743
1771
|
d === !1 && w(e, (p) => {
|
|
@@ -1752,7 +1780,7 @@ function st(e, t, n = void 0, s = void 0) {
|
|
|
1752
1780
|
type: "json",
|
|
1753
1781
|
onComplete(l, f, u) {
|
|
1754
1782
|
const g = l;
|
|
1755
|
-
g.reponse = JSON.parse(u.response), g.status = u.status, n && n(g),
|
|
1783
|
+
g.reponse = JSON.parse(u.response), g.status = u.status, n && n(g), c.id_msg = g.result.id, P(e, c);
|
|
1756
1784
|
},
|
|
1757
1785
|
onFailure(l, f, u) {
|
|
1758
1786
|
const g = l;
|
|
@@ -1764,19 +1792,19 @@ function st(e, t, n = void 0, s = void 0) {
|
|
|
1764
1792
|
}
|
|
1765
1793
|
function re(e, t, n, s) {
|
|
1766
1794
|
const i = `${e.space}/api/directmessages/lite?with_favorites=false`;
|
|
1767
|
-
w(e, (
|
|
1795
|
+
w(e, (r) => {
|
|
1768
1796
|
m(i, {
|
|
1769
1797
|
method: "GET",
|
|
1770
1798
|
headers: {
|
|
1771
1799
|
Accept: "application/json,text/javascript,*/*",
|
|
1772
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1800
|
+
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
|
|
1773
1801
|
},
|
|
1774
1802
|
onComplete(o) {
|
|
1775
|
-
const a = JSON.parse(o),
|
|
1803
|
+
const a = JSON.parse(o), c = [];
|
|
1776
1804
|
a.result.forEach((l) => {
|
|
1777
|
-
l.users = l.users.sort((f, u) => f.login.localeCompare(u.login)), l.users.length === t.length &&
|
|
1805
|
+
l.users = l.users.sort((f, u) => f.login.localeCompare(u.login)), l.users.length === t.length && c.push(l);
|
|
1778
1806
|
});
|
|
1779
|
-
const d = t.sort(), p =
|
|
1807
|
+
const d = t.sort(), p = c.find((l) => {
|
|
1780
1808
|
const f = [];
|
|
1781
1809
|
return l.users.forEach((u) => {
|
|
1782
1810
|
f.push(u.login);
|
|
@@ -1791,13 +1819,13 @@ function re(e, t, n, s) {
|
|
|
1791
1819
|
});
|
|
1792
1820
|
});
|
|
1793
1821
|
}
|
|
1794
|
-
function
|
|
1822
|
+
function P(e, t, n = void 0, s = void 0) {
|
|
1795
1823
|
const i = {
|
|
1796
1824
|
base: e.space,
|
|
1797
1825
|
uri: "/api/community",
|
|
1798
1826
|
id_msg: `${t.id_msg}`,
|
|
1799
1827
|
endUri: "/instantmessages"
|
|
1800
|
-
},
|
|
1828
|
+
}, r = `${i.base}${i.uri}/${i.id_msg}${i.endUri}`, o = {
|
|
1801
1829
|
author: { login: t.senderId, displayName: t.senderName },
|
|
1802
1830
|
accessState: null,
|
|
1803
1831
|
commentUri: null,
|
|
@@ -1807,8 +1835,8 @@ function x(e, t, n = void 0, s = void 0) {
|
|
|
1807
1835
|
parentCommentUri: null,
|
|
1808
1836
|
richMessage: t.msg
|
|
1809
1837
|
};
|
|
1810
|
-
console.log("_3dSwym_sendDirectMessageData url ",
|
|
1811
|
-
m(
|
|
1838
|
+
console.log("_3dSwym_sendDirectMessageData url ", r), w(e, (a) => {
|
|
1839
|
+
m(r, {
|
|
1812
1840
|
method: "POST",
|
|
1813
1841
|
headers: {
|
|
1814
1842
|
"Content-Type": "application/json",
|
|
@@ -1817,12 +1845,12 @@ function x(e, t, n = void 0, s = void 0) {
|
|
|
1817
1845
|
},
|
|
1818
1846
|
data: JSON.stringify(o),
|
|
1819
1847
|
type: "json",
|
|
1820
|
-
onComplete(
|
|
1821
|
-
const l =
|
|
1848
|
+
onComplete(c, d, p) {
|
|
1849
|
+
const l = c;
|
|
1822
1850
|
l.status = p.status, l.response = JSON.parse(p.response), console.log("✅ _3dSwym_sendDirectMessageData => ", l), n && n(l);
|
|
1823
1851
|
},
|
|
1824
|
-
onFailure(
|
|
1825
|
-
const p =
|
|
1852
|
+
onFailure(c, d) {
|
|
1853
|
+
const p = c;
|
|
1826
1854
|
p.msg = d.errormsg, p.errCode = d.errorcode, console.log("❌ sendDirectMessage => ", p), s && s(p);
|
|
1827
1855
|
}
|
|
1828
1856
|
});
|
|
@@ -1845,16 +1873,16 @@ const de = {
|
|
|
1845
1873
|
idee_id: "THhRI8rlQNWKRxpv3Xqqug"
|
|
1846
1874
|
// id de l'idee qui est créer au post (_3dSwym_postIdea)
|
|
1847
1875
|
};
|
|
1848
|
-
function
|
|
1849
|
-
const i = `${e.space}/api/idea/add`,
|
|
1850
|
-
(
|
|
1876
|
+
function at(e, t, n = void 0, s = void 0) {
|
|
1877
|
+
const i = `${e.space}/api/idea/add`, r = e.swymCommunities.find(
|
|
1878
|
+
(c) => c.id === t.community_id
|
|
1851
1879
|
), o = e.swymCommunities.find(
|
|
1852
|
-
(
|
|
1880
|
+
(c) => c.title.toLowerCase() === t.community_title.toLowerCase()
|
|
1853
1881
|
), a = {
|
|
1854
1882
|
params: {
|
|
1855
1883
|
title: t.title,
|
|
1856
1884
|
// String, le nom de l'affaire
|
|
1857
|
-
community_id:
|
|
1885
|
+
community_id: r?.id !== void 0 ? r.id : o.id,
|
|
1858
1886
|
// String, l'id de la communauté
|
|
1859
1887
|
message: pe(t.text_html),
|
|
1860
1888
|
// STRING => le contenue du message doit être au format HTML
|
|
@@ -1862,11 +1890,11 @@ function it(e, t, n = void 0, s = void 0) {
|
|
|
1862
1890
|
// 1 publier, 0 non publier
|
|
1863
1891
|
}
|
|
1864
1892
|
};
|
|
1865
|
-
w(e, (
|
|
1893
|
+
w(e, (c) => {
|
|
1866
1894
|
const d = {
|
|
1867
1895
|
"Content-type": "application/json;charset=UTF-8",
|
|
1868
1896
|
Accept: "application/json",
|
|
1869
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1897
|
+
"X-DS-SWYM-CSRFTOKEN": c.result.ServerToken
|
|
1870
1898
|
};
|
|
1871
1899
|
m(i, {
|
|
1872
1900
|
method: "POST",
|
|
@@ -1884,8 +1912,8 @@ function it(e, t, n = void 0, s = void 0) {
|
|
|
1884
1912
|
});
|
|
1885
1913
|
});
|
|
1886
1914
|
}
|
|
1887
|
-
function
|
|
1888
|
-
const i = `${e.space}/api/idea/delete`,
|
|
1915
|
+
function ot(e, t, n = void 0, s = void 0) {
|
|
1916
|
+
const i = `${e.space}/api/idea/delete`, r = {
|
|
1889
1917
|
params: {
|
|
1890
1918
|
community_id: t.community_id,
|
|
1891
1919
|
ideationIds: [t.idee_id]
|
|
@@ -1899,28 +1927,28 @@ function at(e, t, n = void 0, s = void 0) {
|
|
|
1899
1927
|
Accept: "application/json",
|
|
1900
1928
|
"X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
|
|
1901
1929
|
},
|
|
1902
|
-
data: JSON.stringify(
|
|
1930
|
+
data: JSON.stringify(r),
|
|
1903
1931
|
type: "json",
|
|
1904
|
-
onComplete(a,
|
|
1932
|
+
onComplete(a, c, d) {
|
|
1905
1933
|
n && n(a);
|
|
1906
1934
|
},
|
|
1907
|
-
onFailure(a,
|
|
1935
|
+
onFailure(a, c, d) {
|
|
1908
1936
|
const p = a;
|
|
1909
|
-
p.status =
|
|
1937
|
+
p.status = c.status, p.response = c.errormsg, s && s(p);
|
|
1910
1938
|
}
|
|
1911
1939
|
});
|
|
1912
1940
|
});
|
|
1913
1941
|
}
|
|
1914
|
-
function
|
|
1942
|
+
function rt(e, t = "", n = void 0, s = void 0) {
|
|
1915
1943
|
const i = e.tenant.toLowerCase() === "r1132101716373" ? "tFtz0G4MR6qNtKgJjNfTog" : e.tenant.toLowerCase() === "r1132101286859" ? "Qpv3HN-tTDOsU-7_c5DnDg" : "Template_d'idée_à_créer";
|
|
1916
1944
|
t === "" && (t = i);
|
|
1917
|
-
const
|
|
1945
|
+
const r = `${e.space}/api/idea/get`, o = {
|
|
1918
1946
|
params: {
|
|
1919
1947
|
id: t
|
|
1920
1948
|
}
|
|
1921
1949
|
};
|
|
1922
1950
|
w(e, (a) => {
|
|
1923
|
-
m(
|
|
1951
|
+
m(r, {
|
|
1924
1952
|
method: "POST",
|
|
1925
1953
|
headers: {
|
|
1926
1954
|
"Content-type": "application/json;charset=UTF-8",
|
|
@@ -1929,36 +1957,36 @@ function ot(e, t = "", n = void 0, s = void 0) {
|
|
|
1929
1957
|
},
|
|
1930
1958
|
data: JSON.stringify(o),
|
|
1931
1959
|
type: "json",
|
|
1932
|
-
onComplete(
|
|
1933
|
-
const d =
|
|
1960
|
+
onComplete(c) {
|
|
1961
|
+
const d = c;
|
|
1934
1962
|
d.msg = d.result.message, n && n(d);
|
|
1935
1963
|
},
|
|
1936
|
-
onFailure(
|
|
1937
|
-
const d =
|
|
1964
|
+
onFailure(c) {
|
|
1965
|
+
const d = c;
|
|
1938
1966
|
d.status = headers.status, d.response = headers.errormsg, s && s(d);
|
|
1939
1967
|
}
|
|
1940
1968
|
});
|
|
1941
1969
|
});
|
|
1942
1970
|
}
|
|
1943
|
-
function
|
|
1971
|
+
function ct(e, t = de, n = void 0, s = void 0) {
|
|
1944
1972
|
const i = {
|
|
1945
1973
|
uri: "/api/idea/list",
|
|
1946
1974
|
comId: `/community_id/${e.tenant.toLowerCase() === "r1132101716373" ? t.community_id : "bgnIsG74SUWswyGzS6NC6g"}`,
|
|
1947
1975
|
limit: `/limit/${t.limit ? t.limit : 10}`
|
|
1948
|
-
},
|
|
1976
|
+
}, r = `${e.space}${i.uri}${i.comId}${i.limit}`;
|
|
1949
1977
|
w(e, (o) => {
|
|
1950
|
-
m(
|
|
1978
|
+
m(r, {
|
|
1951
1979
|
method: "GET",
|
|
1952
1980
|
headers: {
|
|
1953
1981
|
"X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
|
|
1954
1982
|
},
|
|
1955
1983
|
onComplete(a) {
|
|
1956
|
-
const
|
|
1957
|
-
n && n(
|
|
1984
|
+
const c = JSON.parse(a);
|
|
1985
|
+
n && n(c);
|
|
1958
1986
|
},
|
|
1959
|
-
onFailure(a,
|
|
1987
|
+
onFailure(a, c) {
|
|
1960
1988
|
const d = a;
|
|
1961
|
-
d.status =
|
|
1989
|
+
d.status = c.status, d.response = c.errormsg, s && s(d);
|
|
1962
1990
|
}
|
|
1963
1991
|
});
|
|
1964
1992
|
});
|
|
@@ -2038,7 +2066,7 @@ function pe(e) {
|
|
|
2038
2066
|
<p>
|
|
2039
2067
|
</p>` : e;
|
|
2040
2068
|
}
|
|
2041
|
-
function
|
|
2069
|
+
function dt(e, t = void 0, n = void 0) {
|
|
2042
2070
|
const s = e.space + "/api/user/getcurrent/";
|
|
2043
2071
|
w(e, (i) => {
|
|
2044
2072
|
m(s, {
|
|
@@ -2046,26 +2074,26 @@ function ct(e, t = void 0, n = void 0) {
|
|
|
2046
2074
|
headers: {
|
|
2047
2075
|
"X-DS-SWYM-CSRFTOKEN": i.result.ServerToken
|
|
2048
2076
|
},
|
|
2049
|
-
onComplete(
|
|
2050
|
-
const
|
|
2051
|
-
t && t(
|
|
2077
|
+
onComplete(r, o, a) {
|
|
2078
|
+
const c = JSON.parse(r);
|
|
2079
|
+
t && t(c.result);
|
|
2052
2080
|
},
|
|
2053
|
-
onFailure(
|
|
2054
|
-
const
|
|
2055
|
-
n && n(
|
|
2081
|
+
onFailure(r, o, a) {
|
|
2082
|
+
const c = { erreur: JSON.parse(r), headers: o, xhr: a };
|
|
2083
|
+
n && n(c);
|
|
2056
2084
|
}
|
|
2057
2085
|
});
|
|
2058
2086
|
});
|
|
2059
2087
|
}
|
|
2060
|
-
function
|
|
2088
|
+
function pt(e, t, n = void 0, s = void 0) {
|
|
2061
2089
|
const i = e.space + "/api/user/find/login/" + t;
|
|
2062
2090
|
w(
|
|
2063
2091
|
e,
|
|
2064
|
-
(
|
|
2092
|
+
(r) => {
|
|
2065
2093
|
m(i, {
|
|
2066
2094
|
method: "GET",
|
|
2067
|
-
headers: { "X-DS-SWYM-CSRFTOKEN":
|
|
2068
|
-
onComplete(o, a,
|
|
2095
|
+
headers: { "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken },
|
|
2096
|
+
onComplete(o, a, c) {
|
|
2069
2097
|
const d = JSON.parse(o);
|
|
2070
2098
|
n && n(d);
|
|
2071
2099
|
},
|
|
@@ -2077,22 +2105,22 @@ function dt(e, t, n = void 0, s = void 0) {
|
|
|
2077
2105
|
s
|
|
2078
2106
|
);
|
|
2079
2107
|
}
|
|
2080
|
-
function
|
|
2081
|
-
e.tenant &&
|
|
2108
|
+
function lt(e, t = void 0, n = void 0) {
|
|
2109
|
+
e.tenant && C(e, (s) => {
|
|
2082
2110
|
console.log("serviceUrls", s);
|
|
2083
|
-
const i = s.services.find((
|
|
2111
|
+
const i = s.services.find((r) => r.id === "businessprocess")?.url + "/api/v2";
|
|
2084
2112
|
return t && t(i), i;
|
|
2085
2113
|
});
|
|
2086
2114
|
}
|
|
2087
|
-
function
|
|
2088
|
-
e.tenant &&
|
|
2115
|
+
function ut(e, t = void 0, n = void 0) {
|
|
2116
|
+
e.tenant && C(e, (s) => {
|
|
2089
2117
|
console.log("serviceUrls", s);
|
|
2090
|
-
const i = s.services.find((a) => a.id === "3dpassport")?.url,
|
|
2118
|
+
const i = s.services.find((a) => a.id === "3dpassport")?.url, r = s.services.find((a) => a.id === "businessprocess")?.url + "/api/v2", o = `${i}/login/?service=${r}/auth/cas`;
|
|
2091
2119
|
m(o, {
|
|
2092
2120
|
async onComplete(a) {
|
|
2093
2121
|
console.log("response", a);
|
|
2094
|
-
const
|
|
2095
|
-
await fetch(
|
|
2122
|
+
const c = typeof a == "string" ? JSON.parse(a)?.x3ds_service_redirect_url : a?.x3ds_service_redirect_url;
|
|
2123
|
+
await fetch(c, {
|
|
2096
2124
|
method: "POST"
|
|
2097
2125
|
}).then((d) => d.json()).then(async (d) => {
|
|
2098
2126
|
t && t(d?.token);
|
|
@@ -2104,7 +2132,7 @@ function lt(e, t = void 0, n = void 0) {
|
|
|
2104
2132
|
});
|
|
2105
2133
|
});
|
|
2106
2134
|
}
|
|
2107
|
-
function
|
|
2135
|
+
function ft(e, t = void 0, n = void 0) {
|
|
2108
2136
|
if (e.tenant) {
|
|
2109
2137
|
const s = e.tenant.toLowerCase();
|
|
2110
2138
|
fetch(`https://api.uixhome.fr/${s}/iterop/jwtuser`, {
|
|
@@ -2116,34 +2144,34 @@ function ut(e, t = void 0, n = void 0) {
|
|
|
2116
2144
|
});
|
|
2117
2145
|
}
|
|
2118
2146
|
}
|
|
2119
|
-
async function
|
|
2120
|
-
e.tenant &&
|
|
2121
|
-
const o = `${i.services.find((
|
|
2147
|
+
async function mt(e, t, n = void 0, s = void 0) {
|
|
2148
|
+
e.tenant && C(e, (i) => {
|
|
2149
|
+
const o = `${i.services.find((c) => c.id === "businessprocess")?.url + "/api/v2"}/identity/users`, a = e.tenant.toLowerCase();
|
|
2122
2150
|
fetch(`https://api.uixhome.fr/${a}/iterop/listusers?t=${t}&s=${o}`, {
|
|
2123
2151
|
method: "POST"
|
|
2124
|
-
}).then((
|
|
2125
|
-
n && n(
|
|
2126
|
-
}).catch((
|
|
2127
|
-
s && s(
|
|
2152
|
+
}).then((c) => c.json()).then((c) => {
|
|
2153
|
+
n && n(c);
|
|
2154
|
+
}).catch((c) => {
|
|
2155
|
+
s && s(c);
|
|
2128
2156
|
});
|
|
2129
2157
|
});
|
|
2130
2158
|
}
|
|
2131
|
-
async function
|
|
2132
|
-
e.tenant &&
|
|
2133
|
-
const o = `${i.services.find((
|
|
2159
|
+
async function gt(e, t, n = void 0, s = void 0) {
|
|
2160
|
+
e.tenant && C(e, (i) => {
|
|
2161
|
+
const o = `${i.services.find((c) => c.id === "businessprocess")?.url + "/api/v2"}/repository/data/tables`, a = e.tenant.toLowerCase();
|
|
2134
2162
|
fetch(`https://api.uixhome.fr/${a}/iterop/repository/data/tables?t=${t}&s=${o}`, {
|
|
2135
2163
|
method: "GET"
|
|
2136
|
-
}).then((
|
|
2137
|
-
n && n(
|
|
2138
|
-
}).catch((
|
|
2139
|
-
s && s(
|
|
2164
|
+
}).then((c) => c.json()).then((c) => {
|
|
2165
|
+
n && n(c);
|
|
2166
|
+
}).catch((c) => {
|
|
2167
|
+
s && s(c);
|
|
2140
2168
|
});
|
|
2141
2169
|
});
|
|
2142
2170
|
}
|
|
2143
|
-
async function
|
|
2171
|
+
async function ht(e, t, n, s = void 0, i = void 0) {
|
|
2144
2172
|
if (e.tenant) {
|
|
2145
|
-
const
|
|
2146
|
-
fetch(`https://api.uixhome.fr/${
|
|
2173
|
+
const r = e.tenant.toLowerCase();
|
|
2174
|
+
fetch(`https://api.uixhome.fr/${r}/iterop//businesstable/${n}?t=${t}`, {
|
|
2147
2175
|
method: "POST"
|
|
2148
2176
|
}).then((o) => o.json()).then((o) => {
|
|
2149
2177
|
s && s(o);
|
|
@@ -2152,10 +2180,10 @@ async function gt(e, t, n, s = void 0, i = void 0) {
|
|
|
2152
2180
|
});
|
|
2153
2181
|
}
|
|
2154
2182
|
}
|
|
2155
|
-
async function
|
|
2183
|
+
async function St(e, t, n, s = void 0, i = void 0) {
|
|
2156
2184
|
if (e.tenant) {
|
|
2157
|
-
const
|
|
2158
|
-
fetch(`https://api.uixhome.fr/${
|
|
2185
|
+
const r = e.tenant.toLowerCase();
|
|
2186
|
+
fetch(`https://api.uixhome.fr/${r}/iterop//businesstable/${n}/rows/?t=${t}`, {
|
|
2159
2187
|
method: "POST"
|
|
2160
2188
|
}).then((o) => o.json()).then((o) => {
|
|
2161
2189
|
s && s(o);
|
|
@@ -2164,41 +2192,41 @@ async function ht(e, t, n, s = void 0, i = void 0) {
|
|
|
2164
2192
|
});
|
|
2165
2193
|
}
|
|
2166
2194
|
}
|
|
2167
|
-
async function
|
|
2168
|
-
e.tenant &&
|
|
2169
|
-
o.services.find((
|
|
2195
|
+
async function yt(e, t, n, s, i = void 0, r = void 0) {
|
|
2196
|
+
e.tenant && C(e, (o) => {
|
|
2197
|
+
o.services.find((c) => c.id === "businessprocess")?.url + "";
|
|
2170
2198
|
const a = e.tenant.toLowerCase();
|
|
2171
2199
|
fetch(
|
|
2172
2200
|
`https://api.uixhome.fr/${a}/iterop/runtime/processes/${n}?t=${t}&b=${s}`,
|
|
2173
2201
|
{
|
|
2174
2202
|
method: "POST"
|
|
2175
2203
|
}
|
|
2176
|
-
).then((
|
|
2177
|
-
i && i(
|
|
2178
|
-
}).catch((
|
|
2179
|
-
|
|
2204
|
+
).then((c) => c.json()).then((c) => {
|
|
2205
|
+
i && i(c);
|
|
2206
|
+
}).catch((c) => {
|
|
2207
|
+
r && r(c);
|
|
2180
2208
|
});
|
|
2181
2209
|
});
|
|
2182
2210
|
}
|
|
2183
|
-
async function
|
|
2184
|
-
e.tenant &&
|
|
2211
|
+
async function _t(e, t, n, s, i, r = void 0, o = void 0) {
|
|
2212
|
+
e.tenant && C(e, (a) => {
|
|
2185
2213
|
a.services.find((d) => d.id === "businessprocess")?.url + "";
|
|
2186
|
-
const
|
|
2214
|
+
const c = e.tenant.toLowerCase();
|
|
2187
2215
|
fetch(
|
|
2188
|
-
`https://api.uixhome.fr/${
|
|
2216
|
+
`https://api.uixhome.fr/${c}/iterop/businesstable/patch/${n}/rows?t=${t}&rowsToAdd=${s}&rowsToRemove=${i}`,
|
|
2189
2217
|
{
|
|
2190
2218
|
method: "POST"
|
|
2191
2219
|
}
|
|
2192
2220
|
).then((d) => d.json()).then((d) => {
|
|
2193
|
-
|
|
2221
|
+
r && r(d);
|
|
2194
2222
|
}).catch((d) => {
|
|
2195
2223
|
o && o(d);
|
|
2196
2224
|
});
|
|
2197
2225
|
});
|
|
2198
2226
|
}
|
|
2199
|
-
async function
|
|
2200
|
-
e.tenant &&
|
|
2201
|
-
|
|
2227
|
+
async function wt(e, t, n, s = void 0, i = void 0) {
|
|
2228
|
+
e.tenant && C(e, (r) => {
|
|
2229
|
+
r.services.find((a) => a.id === "businessprocess")?.url + "";
|
|
2202
2230
|
const o = e.tenant.toLowerCase();
|
|
2203
2231
|
fetch(
|
|
2204
2232
|
`https://api.uixhome.fr/${o}/iterop/dependencytable/one/${n}/?t=${t}`,
|
|
@@ -2212,46 +2240,46 @@ async function _t(e, t, n, s = void 0, i = void 0) {
|
|
|
2212
2240
|
});
|
|
2213
2241
|
});
|
|
2214
2242
|
}
|
|
2215
|
-
async function
|
|
2216
|
-
e.tenant &&
|
|
2243
|
+
async function Ct(e, t, n, s, i, r = void 0, o = void 0) {
|
|
2244
|
+
e.tenant && C(e, (a) => {
|
|
2217
2245
|
a.services.find((d) => d.id === "businessprocess")?.url + "";
|
|
2218
|
-
const
|
|
2246
|
+
const c = e.tenant.toLowerCase();
|
|
2219
2247
|
fetch(
|
|
2220
|
-
`https://api.uixhome.fr/${
|
|
2248
|
+
`https://api.uixhome.fr/${c}/iterop/dependencytable/patch/${n}/?t=${t}&cli=${s}&b=${i}`,
|
|
2221
2249
|
{
|
|
2222
2250
|
method: "POST"
|
|
2223
2251
|
}
|
|
2224
2252
|
).then((d) => d.json()).then((d) => {
|
|
2225
|
-
|
|
2253
|
+
r && r(d);
|
|
2226
2254
|
}).catch((d) => {
|
|
2227
2255
|
o && o(d);
|
|
2228
2256
|
});
|
|
2229
2257
|
});
|
|
2230
2258
|
}
|
|
2231
|
-
async function
|
|
2232
|
-
e.tenant &&
|
|
2233
|
-
o.services.find((
|
|
2259
|
+
async function Tt(e, t, n, s, i = void 0, r = void 0) {
|
|
2260
|
+
e.tenant && C(e, (o) => {
|
|
2261
|
+
o.services.find((c) => c.id === "businessprocess")?.url + "";
|
|
2234
2262
|
const a = e.tenant.toLowerCase();
|
|
2235
2263
|
fetch(
|
|
2236
2264
|
`https://api.uixhome.fr/${a}/iterop/dependencytable/put/${n}/?t=${t}&b=${s}`,
|
|
2237
2265
|
{
|
|
2238
2266
|
method: "POST"
|
|
2239
2267
|
}
|
|
2240
|
-
).then((
|
|
2241
|
-
i && i(
|
|
2242
|
-
}).catch((
|
|
2243
|
-
|
|
2268
|
+
).then((c) => c.json()).then((c) => {
|
|
2269
|
+
i && i(c);
|
|
2270
|
+
}).catch((c) => {
|
|
2271
|
+
r && r(c);
|
|
2244
2272
|
});
|
|
2245
2273
|
});
|
|
2246
2274
|
}
|
|
2247
|
-
function
|
|
2275
|
+
function bt(e) {
|
|
2248
2276
|
const t = "Hello " + e;
|
|
2249
2277
|
return console.log(t), t;
|
|
2250
2278
|
}
|
|
2251
|
-
function
|
|
2279
|
+
function Ot(e, t = void 0, n = void 0) {
|
|
2252
2280
|
return console.log("credentials", e), new Promise((s) => {
|
|
2253
2281
|
if (e.token === "" && b(e), !e.space || e.space === "") {
|
|
2254
|
-
const o =
|
|
2282
|
+
const o = W();
|
|
2255
2283
|
console.log("platformeInfo", o);
|
|
2256
2284
|
}
|
|
2257
2285
|
$(
|
|
@@ -2265,14 +2293,14 @@ function bt(e, t = void 0, n = void 0) {
|
|
|
2265
2293
|
},
|
|
2266
2294
|
!0
|
|
2267
2295
|
);
|
|
2268
|
-
const i =
|
|
2269
|
-
m(
|
|
2296
|
+
const i = I.now().ts, r = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dsearch&platformId=${e.tenant}`;
|
|
2297
|
+
m(r, {
|
|
2270
2298
|
onComplete(o) {
|
|
2271
2299
|
if (Array.isArray(JSON.parse(o))) {
|
|
2272
2300
|
const a = JSON.parse(o);
|
|
2273
2301
|
console.log("serviceId=3dsearch", a);
|
|
2274
|
-
const
|
|
2275
|
-
m(
|
|
2302
|
+
const c = `${a[0].services[0].url}/search?xrequestedwith=xmlhttprequest`;
|
|
2303
|
+
m(c, {
|
|
2276
2304
|
method: "POST",
|
|
2277
2305
|
headers: {
|
|
2278
2306
|
Accept: "application/json",
|
|
@@ -2328,91 +2356,92 @@ function bt(e, t = void 0, n = void 0) {
|
|
|
2328
2356
|
});
|
|
2329
2357
|
}
|
|
2330
2358
|
export {
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2359
|
+
D as UUID,
|
|
2360
|
+
Ot as _3DSearch_usersGroup,
|
|
2361
|
+
Re as _3DSpace_Create_Doc,
|
|
2362
|
+
Pe as _3DSpace_Update_Doc,
|
|
2363
|
+
Ke as _3DSpace_bookmark_addSubsciptions,
|
|
2364
|
+
Ee as _3DSpace_bookmark_newWorkspace,
|
|
2336
2365
|
b as _3DSpace_csrf,
|
|
2337
|
-
|
|
2366
|
+
J as _3DSpace_download_doc,
|
|
2338
2367
|
Z as _3DSpace_download_multidoc,
|
|
2339
|
-
|
|
2368
|
+
M as _3DSpace_file_update,
|
|
2340
2369
|
Q as _3DSpace_file_update_csr,
|
|
2341
2370
|
xe as _3DSpace_file_url_csr,
|
|
2342
|
-
|
|
2343
|
-
|
|
2371
|
+
U as _3DSpace_get_csrf,
|
|
2372
|
+
L as _3DSpace_get_docInfo,
|
|
2344
2373
|
ee as _3DSpace_get_downloadTicket_multidoc,
|
|
2345
2374
|
Fe as _3DSpace_get_multiDocInfo,
|
|
2346
2375
|
$ as _3DSpace_get_securityContexts,
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2376
|
+
F as _3DSpace_get_ticket,
|
|
2377
|
+
Ge as _3DSpace_lifecycle_changeRevision,
|
|
2378
|
+
Le as _3DSpace_lifecycle_changeState,
|
|
2379
|
+
Me as _3DSpace_lifecycle_getGraph,
|
|
2380
|
+
Je as _3DSpace_lifecycle_getNextRevision,
|
|
2381
|
+
De as _3DSpace_lifecycle_getNextStates,
|
|
2382
|
+
it as _3DSwym_buildDirectMessage,
|
|
2383
|
+
ot as _3DSwym_deleteIdea,
|
|
2355
2384
|
re as _3DSwym_findCommunityToInstantMSG,
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2385
|
+
nt as _3DSwym_getAllCommunities,
|
|
2386
|
+
et as _3DSwym_getAllNews,
|
|
2387
|
+
tt as _3DSwym_getFamiliarPeople,
|
|
2388
|
+
st as _3DSwym_getIdeaStatusMaturity,
|
|
2360
2389
|
oe as _3DSwym_getMembersCommunity,
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2390
|
+
rt as _3DSwym_getSWYMIdea,
|
|
2391
|
+
ct as _3DSwym_get_AllSWYMIdeas,
|
|
2392
|
+
dt as _3DSwym_get_currentUser,
|
|
2393
|
+
pt as _3DSwym_get_findUser,
|
|
2365
2394
|
w as _3DSwym_get_version,
|
|
2366
|
-
|
|
2367
|
-
|
|
2395
|
+
at as _3DSwym_postIdea,
|
|
2396
|
+
P as _3DSwym_sendMessageData,
|
|
2368
2397
|
$e as _AppMngt_get_info_user,
|
|
2369
2398
|
Oe as _AppMngt_get_users,
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2399
|
+
_t as _Iterop_AddOrRemoveRows,
|
|
2400
|
+
ut as _Iterop_Auth_CAS,
|
|
2401
|
+
wt as _Iterop_GetOneDependencyTable,
|
|
2402
|
+
mt as _Iterop_ListUsers,
|
|
2403
|
+
Ct as _Iterop_PatchDependencyTable,
|
|
2404
|
+
Tt as _Iterop_PutDependencyTable,
|
|
2405
|
+
gt as _Iterop_getAllBusinessTables,
|
|
2406
|
+
ht as _Iterop_getOneBusinessTable,
|
|
2407
|
+
St as _Iterop_getOneBusinessTableRows,
|
|
2408
|
+
ft as _Iterop_jwtUser,
|
|
2409
|
+
yt as _Iterop_runProcess,
|
|
2410
|
+
W as _getPlateformInfos,
|
|
2382
2411
|
Ce as _getPlatformServices,
|
|
2383
|
-
|
|
2412
|
+
C as _getServiceUrl,
|
|
2384
2413
|
Te as _getServiceUrl_3DPassport,
|
|
2385
|
-
|
|
2414
|
+
lt as _getServiceUrl_Iterop,
|
|
2386
2415
|
m as _httpCallAuthenticated,
|
|
2387
2416
|
ye as _setDraggable,
|
|
2388
2417
|
we as _setDroppable,
|
|
2389
2418
|
_e as _setupTagger,
|
|
2390
|
-
|
|
2419
|
+
qe as addTagToDoc,
|
|
2391
2420
|
be as compass_getListAdditionalApps,
|
|
2392
|
-
|
|
2421
|
+
B as couleurs,
|
|
2393
2422
|
ve as createUserGroups,
|
|
2394
2423
|
te as dataMixing,
|
|
2395
2424
|
Ae as deleteUserGroups,
|
|
2396
2425
|
ge as findAdresse,
|
|
2397
|
-
|
|
2398
|
-
|
|
2426
|
+
Ve as getAllContextSecurity,
|
|
2427
|
+
Y as getCSRFToken,
|
|
2399
2428
|
me as getCommunes,
|
|
2400
2429
|
Ne as getComplementUG,
|
|
2401
|
-
|
|
2430
|
+
Be as getDataFrom3DSpace,
|
|
2402
2431
|
he as getDataFromGouvFr,
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2432
|
+
He as getDatasByTenant,
|
|
2433
|
+
ze as getDatasFrom3DSpace,
|
|
2434
|
+
We as getDownloadDocument,
|
|
2435
|
+
Ze as getInfoDocTags,
|
|
2407
2436
|
Ie as getUserGroupsList,
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2437
|
+
X as getUsersGroupRules,
|
|
2438
|
+
Ye as get_3DSpace_csrf,
|
|
2439
|
+
Ue as patchUserGroups,
|
|
2440
|
+
ke as patchUserGroupsControl,
|
|
2441
|
+
Xe as pushDataIn3DSpace,
|
|
2442
|
+
je as readUserGroupControl,
|
|
2443
|
+
Qe as removeTagToDoc,
|
|
2444
|
+
bt as sayHello,
|
|
2416
2445
|
Se as updateEvent
|
|
2417
2446
|
};
|
|
2418
2447
|
//# sourceMappingURL=wb3Api.js.map
|