@beam3_dev/api_module 0.0.180 → 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/dist/wb3Api.js +448 -422
- 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
|
|
1
|
+
import { v4 as V } from "uuid";
|
|
2
2
|
import { DateTime as I } from "luxon";
|
|
3
3
|
import { requirejs as O, widget as R } from "@widget-lab/3ddashboard-utils";
|
|
4
4
|
function D() {
|
|
5
|
-
return
|
|
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 =
|
|
68
|
+
async function he(e, t = B) {
|
|
69
69
|
let n = I.now().year;
|
|
70
|
-
const s = e, i = [],
|
|
71
|
-
for (let
|
|
72
|
-
i.push({ date:
|
|
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 === I.fromISO(
|
|
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: I.fromISO(
|
|
96
|
-
end: I.fromISO(
|
|
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) => {
|
|
@@ -147,17 +147,17 @@ 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
|
}
|
|
@@ -166,9 +166,9 @@ function C(e, t = void 0, n = void 0) {
|
|
|
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,37 +411,37 @@ 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
427
|
var A = {};
|
|
428
|
-
function
|
|
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) {
|
|
@@ -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) :
|
|
462
|
+
return r + encodeURIComponent(N(o));
|
|
463
|
+
}).join(t) : r + encodeURIComponent(N(e[i]));
|
|
464
464
|
}).filter(Boolean).join(t) : s ? encodeURIComponent(N(s)) + n + encodeURIComponent(N(e)) : "";
|
|
465
465
|
};
|
|
466
|
-
A.decode = A.parse =
|
|
467
|
-
A.encode = A.stringify =
|
|
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
|
}
|
|
@@ -550,7 +550,7 @@ function b(e, t = void 0, n = void 0) {
|
|
|
550
550
|
}
|
|
551
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 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(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 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 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,20 +602,20 @@ 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
|
|
@@ -671,8 +671,33 @@ function Q(e, t, n, s, i, c, o = void 0, a = void 0) {
|
|
|
671
671
|
}
|
|
672
672
|
});
|
|
673
673
|
}
|
|
674
|
-
async function Pe(e, t, n, s
|
|
675
|
-
|
|
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;
|
|
676
701
|
if (o !== "") {
|
|
677
702
|
let d = `${o}/resources/v1/modeler/documents/files/CheckinTicket`;
|
|
678
703
|
m(d, {
|
|
@@ -721,20 +746,20 @@ async function Pe(e, t, n, s, i = void 0, c = void 0) {
|
|
|
721
746
|
]
|
|
722
747
|
}),
|
|
723
748
|
type: "json",
|
|
724
|
-
onComplete(
|
|
725
|
-
i && i(
|
|
749
|
+
onComplete(k) {
|
|
750
|
+
i && i(k);
|
|
726
751
|
},
|
|
727
|
-
onFailure(
|
|
728
|
-
|
|
752
|
+
onFailure(k) {
|
|
753
|
+
r && r(k);
|
|
729
754
|
}
|
|
730
755
|
};
|
|
731
756
|
m(
|
|
732
|
-
o + "/resources/v1/modeler/documents/?SecurityContext=ctx::" +
|
|
757
|
+
o + "/resources/v1/modeler/documents/?SecurityContext=ctx::" + c,
|
|
733
758
|
v
|
|
734
759
|
);
|
|
735
760
|
},
|
|
736
761
|
onFailure(_) {
|
|
737
|
-
|
|
762
|
+
r && r(_);
|
|
738
763
|
},
|
|
739
764
|
timeout: 0
|
|
740
765
|
};
|
|
@@ -743,12 +768,12 @@ async function Pe(e, t, n, s, i = void 0, c = void 0) {
|
|
|
743
768
|
});
|
|
744
769
|
}
|
|
745
770
|
}
|
|
746
|
-
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) {
|
|
747
772
|
const a = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
|
|
748
773
|
m(a, {
|
|
749
774
|
method: "GET",
|
|
750
|
-
onComplete(
|
|
751
|
-
const d = JSON.parse(
|
|
775
|
+
onComplete(c) {
|
|
776
|
+
const d = JSON.parse(c);
|
|
752
777
|
let p = "", l, f, u;
|
|
753
778
|
if (t) {
|
|
754
779
|
let g = d.collabspaces.find((h) => h.title === t);
|
|
@@ -767,7 +792,7 @@ function $(e, t = void 0, n = void 0, s = void 0, i = void 0, c = void 0, o = !1
|
|
|
767
792
|
let _ = h.filter(
|
|
768
793
|
(T) => T.role.name === S
|
|
769
794
|
);
|
|
770
|
-
_.length === 1 ? (u = _[0].role.name, f = _[0].organization.title) :
|
|
795
|
+
_.length === 1 ? (u = _[0].role.name, f = _[0].organization.title) : r(_);
|
|
771
796
|
}
|
|
772
797
|
});
|
|
773
798
|
}) : h.forEach((S) => {
|
|
@@ -777,29 +802,29 @@ function $(e, t = void 0, n = void 0, s = void 0, i = void 0, c = void 0, o = !1
|
|
|
777
802
|
let y = h.filter(
|
|
778
803
|
(_) => _.role.name === n
|
|
779
804
|
);
|
|
780
|
-
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);
|
|
781
806
|
}
|
|
782
807
|
}));
|
|
783
808
|
}
|
|
784
809
|
}
|
|
785
|
-
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));
|
|
786
811
|
},
|
|
787
|
-
onFailure(
|
|
812
|
+
onFailure(c, d) {
|
|
788
813
|
console.warn("Erreur de récupération du contexte de sécurité. => ", {
|
|
789
|
-
err:
|
|
814
|
+
err: c,
|
|
790
815
|
headers: d
|
|
791
816
|
});
|
|
792
817
|
}
|
|
793
818
|
});
|
|
794
819
|
}
|
|
795
|
-
async function
|
|
820
|
+
async function J(e, t = void 0, n = void 0) {
|
|
796
821
|
return (!e.objID || e.objID === "") && (console.warn(
|
|
797
822
|
"_3DSpace_download_doc() / Le paramètre objectId est obligatoire"
|
|
798
823
|
), n && n(
|
|
799
824
|
"_3DSpace_download_doc() / Le paramètre objectId est obligatoire"
|
|
800
825
|
)), (e.space === "" || !e.space) && (console.warn(
|
|
801
826
|
"_3DSpace_download_doc() / Le paramètre space est obligatoire"
|
|
802
|
-
), 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(
|
|
803
828
|
e,
|
|
804
829
|
(s) => {
|
|
805
830
|
e.token = s;
|
|
@@ -810,12 +835,12 @@ async function L(e, t = void 0, n = void 0) {
|
|
|
810
835
|
), new Promise((s, i) => {
|
|
811
836
|
F(
|
|
812
837
|
e,
|
|
813
|
-
(
|
|
814
|
-
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) => {
|
|
815
840
|
t && t(o);
|
|
816
841
|
}).catch((o) => {
|
|
817
842
|
n && n(o);
|
|
818
|
-
})) : m(
|
|
843
|
+
})) : m(r, {
|
|
819
844
|
onComplete(o) {
|
|
820
845
|
let a;
|
|
821
846
|
try {
|
|
@@ -825,21 +850,21 @@ async function L(e, t = void 0, n = void 0) {
|
|
|
825
850
|
}
|
|
826
851
|
t && typeof t == "function" && t(a), s(a);
|
|
827
852
|
},
|
|
828
|
-
onFailure(o, a,
|
|
853
|
+
onFailure(o, a, c) {
|
|
829
854
|
n && (console.log("error http", o), n({
|
|
830
855
|
msg: JSON.parse(o),
|
|
831
856
|
headers: a,
|
|
832
|
-
xhr:
|
|
857
|
+
xhr: c
|
|
833
858
|
}), i({
|
|
834
859
|
msg: JSON.parse(o),
|
|
835
860
|
headers: a,
|
|
836
|
-
xhr:
|
|
861
|
+
xhr: c
|
|
837
862
|
}));
|
|
838
863
|
}
|
|
839
864
|
});
|
|
840
865
|
},
|
|
841
|
-
(
|
|
842
|
-
n && n(
|
|
866
|
+
(r) => {
|
|
867
|
+
n && n(r), console.log("*_3dspace_download_doc / error file URL *", r), i(r);
|
|
843
868
|
}
|
|
844
869
|
);
|
|
845
870
|
});
|
|
@@ -848,8 +873,8 @@ async function Z(e, t, n = void 0, s = void 0) {
|
|
|
848
873
|
let i = [];
|
|
849
874
|
if (typeof t < "u" && Array.isArray(t) && t?.length > 0) {
|
|
850
875
|
for (let a = 0; a < t.length; a += 80) {
|
|
851
|
-
const
|
|
852
|
-
i.push(
|
|
876
|
+
const c = t.slice(a, a + 80);
|
|
877
|
+
i.push(c);
|
|
853
878
|
}
|
|
854
879
|
const o = (a) => {
|
|
855
880
|
ee(
|
|
@@ -858,8 +883,8 @@ async function Z(e, t, n = void 0, s = void 0) {
|
|
|
858
883
|
() => {
|
|
859
884
|
a++, a < i.length && o(a);
|
|
860
885
|
},
|
|
861
|
-
(
|
|
862
|
-
n && n(
|
|
886
|
+
(c) => {
|
|
887
|
+
n && n(c);
|
|
863
888
|
}
|
|
864
889
|
);
|
|
865
890
|
};
|
|
@@ -872,10 +897,10 @@ async function Z(e, t, n = void 0, s = void 0) {
|
|
|
872
897
|
);
|
|
873
898
|
}
|
|
874
899
|
function ee(e, t, n = void 0, s = void 0, i = void 0) {
|
|
875
|
-
const
|
|
876
|
-
t.forEach((
|
|
877
|
-
|
|
878
|
-
id:
|
|
900
|
+
const r = [];
|
|
901
|
+
t.forEach((c) => {
|
|
902
|
+
r.push({
|
|
903
|
+
id: c
|
|
879
904
|
});
|
|
880
905
|
});
|
|
881
906
|
let o = JSON.stringify({
|
|
@@ -883,16 +908,16 @@ function ee(e, t, n = void 0, s = void 0, i = void 0) {
|
|
|
883
908
|
name: "ENO_CSRF_TOKEN",
|
|
884
909
|
value: e.token
|
|
885
910
|
},
|
|
886
|
-
data:
|
|
911
|
+
data: r
|
|
887
912
|
});
|
|
888
913
|
const a = `${e.space}/resources/v1/modeler/documents/DownloadTicket?tenant=${e.tenant}&e6w-lang=fr&e6w-timezone=-120`;
|
|
889
914
|
m(a, {
|
|
890
915
|
method: "PUT",
|
|
891
916
|
data: o,
|
|
892
917
|
type: "json",
|
|
893
|
-
onComplete(
|
|
894
|
-
const d =
|
|
895
|
-
|
|
918
|
+
onComplete(c) {
|
|
919
|
+
const d = c.data;
|
|
920
|
+
c.success === !0 && (n && n(), d.forEach((p) => {
|
|
896
921
|
try {
|
|
897
922
|
const l = p.dataelements.fileName, f = p.dataelements.ticketURL;
|
|
898
923
|
m(f, {
|
|
@@ -919,15 +944,15 @@ function ee(e, t, n = void 0, s = void 0, i = void 0) {
|
|
|
919
944
|
}
|
|
920
945
|
}));
|
|
921
946
|
},
|
|
922
|
-
onFailure(
|
|
923
|
-
console.log(
|
|
947
|
+
onFailure(c) {
|
|
948
|
+
console.log(c), i && i(c);
|
|
924
949
|
}
|
|
925
950
|
});
|
|
926
951
|
}
|
|
927
|
-
function
|
|
952
|
+
function De(e, t, n = void 0, s = void 0) {
|
|
928
953
|
return new Promise((i) => {
|
|
929
954
|
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
930
|
-
const
|
|
955
|
+
const r = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
|
|
931
956
|
$(
|
|
932
957
|
e.space,
|
|
933
958
|
"ESPACE COMMUN",
|
|
@@ -961,12 +986,12 @@ function Re(e, t, n = void 0, s = void 0) {
|
|
|
961
986
|
s && s(a);
|
|
962
987
|
}
|
|
963
988
|
};
|
|
964
|
-
m(
|
|
989
|
+
m(r, o);
|
|
965
990
|
}
|
|
966
991
|
});
|
|
967
992
|
}
|
|
968
|
-
function
|
|
969
|
-
return new Promise((
|
|
993
|
+
function Le(e, t, n, s = void 0, i = void 0) {
|
|
994
|
+
return new Promise((r) => {
|
|
970
995
|
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
971
996
|
const o = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
|
|
972
997
|
$(
|
|
@@ -974,9 +999,9 @@ function De(e, t, n, s = void 0, i = void 0) {
|
|
|
974
999
|
"ESPACE COMMUN",
|
|
975
1000
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
976
1001
|
void 0,
|
|
977
|
-
(
|
|
978
|
-
(
|
|
979
|
-
console.log("onError =>",
|
|
1002
|
+
(c) => e.ctx = c,
|
|
1003
|
+
(c) => {
|
|
1004
|
+
console.log("onError =>", c);
|
|
980
1005
|
}
|
|
981
1006
|
);
|
|
982
1007
|
let a = {
|
|
@@ -996,21 +1021,21 @@ function De(e, t, n, s = void 0, i = void 0) {
|
|
|
996
1021
|
]
|
|
997
1022
|
}),
|
|
998
1023
|
type: "json",
|
|
999
|
-
onComplete(
|
|
1000
|
-
s && s(
|
|
1024
|
+
onComplete(c) {
|
|
1025
|
+
s && s(c);
|
|
1001
1026
|
},
|
|
1002
|
-
onFailure(
|
|
1003
|
-
i && i(
|
|
1027
|
+
onFailure(c) {
|
|
1028
|
+
i && i(c);
|
|
1004
1029
|
}
|
|
1005
1030
|
};
|
|
1006
1031
|
m(o, a);
|
|
1007
1032
|
}
|
|
1008
1033
|
});
|
|
1009
1034
|
}
|
|
1010
|
-
function
|
|
1035
|
+
function Me(e, t, n = void 0, s = void 0) {
|
|
1011
1036
|
return new Promise((i) => {
|
|
1012
1037
|
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
1013
|
-
const
|
|
1038
|
+
const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
|
|
1014
1039
|
$(
|
|
1015
1040
|
e.space,
|
|
1016
1041
|
"ESPACE COMMUN",
|
|
@@ -1044,14 +1069,14 @@ function Le(e, t, n = void 0, s = void 0) {
|
|
|
1044
1069
|
s && s(a);
|
|
1045
1070
|
}
|
|
1046
1071
|
};
|
|
1047
|
-
m(
|
|
1072
|
+
m(r, o);
|
|
1048
1073
|
}
|
|
1049
1074
|
});
|
|
1050
1075
|
}
|
|
1051
|
-
function
|
|
1076
|
+
function Je(e, t, n = void 0, s = void 0) {
|
|
1052
1077
|
return new Promise((i) => {
|
|
1053
1078
|
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
1054
|
-
const
|
|
1079
|
+
const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
|
|
1055
1080
|
$(
|
|
1056
1081
|
e.space,
|
|
1057
1082
|
"ESPACE COMMUN",
|
|
@@ -1091,12 +1116,12 @@ function Me(e, t, n = void 0, s = void 0) {
|
|
|
1091
1116
|
s && s(a);
|
|
1092
1117
|
}
|
|
1093
1118
|
};
|
|
1094
|
-
m(
|
|
1119
|
+
m(r, o);
|
|
1095
1120
|
}
|
|
1096
1121
|
});
|
|
1097
1122
|
}
|
|
1098
|
-
function
|
|
1099
|
-
return new Promise((
|
|
1123
|
+
function Ge(e, t, n, s = void 0, i = void 0) {
|
|
1124
|
+
return new Promise((r) => {
|
|
1100
1125
|
if (e.token === "" && b(e), t !== void 0 && t !== "" && t !== null) {
|
|
1101
1126
|
const o = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
|
|
1102
1127
|
$(
|
|
@@ -1104,9 +1129,9 @@ function Je(e, t, n, s = void 0, i = void 0) {
|
|
|
1104
1129
|
"ESPACE COMMUN",
|
|
1105
1130
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
1106
1131
|
void 0,
|
|
1107
|
-
(
|
|
1108
|
-
(
|
|
1109
|
-
console.log("onError =>",
|
|
1132
|
+
(c) => e.ctx = c,
|
|
1133
|
+
(c) => {
|
|
1134
|
+
console.log("onError =>", c);
|
|
1110
1135
|
}
|
|
1111
1136
|
);
|
|
1112
1137
|
let a = {
|
|
@@ -1131,21 +1156,21 @@ function Je(e, t, n, s = void 0, i = void 0) {
|
|
|
1131
1156
|
notificationTimeout: 600
|
|
1132
1157
|
}),
|
|
1133
1158
|
type: "json",
|
|
1134
|
-
onComplete(
|
|
1135
|
-
s && s(
|
|
1159
|
+
onComplete(c) {
|
|
1160
|
+
s && s(c);
|
|
1136
1161
|
},
|
|
1137
|
-
onFailure(
|
|
1138
|
-
i && i(
|
|
1162
|
+
onFailure(c) {
|
|
1163
|
+
i && i(c);
|
|
1139
1164
|
}
|
|
1140
1165
|
};
|
|
1141
1166
|
m(o, a);
|
|
1142
1167
|
}
|
|
1143
1168
|
});
|
|
1144
1169
|
}
|
|
1145
|
-
function
|
|
1170
|
+
function Ee(e, t, n, s, i = void 0, r = void 0) {
|
|
1146
1171
|
return new Promise((o) => {
|
|
1147
1172
|
const a = `${e.space}/resources/v1/modeler/dsbks/dsbks:Bookmark`;
|
|
1148
|
-
let
|
|
1173
|
+
let c = {
|
|
1149
1174
|
attributes: {
|
|
1150
1175
|
title: n,
|
|
1151
1176
|
description: s,
|
|
@@ -1154,7 +1179,7 @@ function Ge(e, t, n, s, i = void 0, c = void 0) {
|
|
|
1154
1179
|
}, d = {
|
|
1155
1180
|
items: []
|
|
1156
1181
|
};
|
|
1157
|
-
t && (d.parentId = t), d.items.push(
|
|
1182
|
+
t && (d.parentId = t), d.items.push(c);
|
|
1158
1183
|
let p = {
|
|
1159
1184
|
method: "POST",
|
|
1160
1185
|
headers: {
|
|
@@ -1169,13 +1194,13 @@ function Ge(e, t, n, s, i = void 0, c = void 0) {
|
|
|
1169
1194
|
i && i(l);
|
|
1170
1195
|
},
|
|
1171
1196
|
onFailure(l) {
|
|
1172
|
-
|
|
1197
|
+
r && r(l);
|
|
1173
1198
|
}
|
|
1174
1199
|
};
|
|
1175
1200
|
m(a, p);
|
|
1176
1201
|
});
|
|
1177
1202
|
}
|
|
1178
|
-
function
|
|
1203
|
+
function Ke(e, t, n, s, i = void 0, r = void 0) {
|
|
1179
1204
|
return console.log("credentials", e), new Promise((o) => {
|
|
1180
1205
|
`${e.space}`, JSON.stringify({
|
|
1181
1206
|
csrf: {
|
|
@@ -1199,7 +1224,7 @@ function Ee(e, t, n, s, i = void 0, c = void 0) {
|
|
|
1199
1224
|
});
|
|
1200
1225
|
}
|
|
1201
1226
|
//!SECTION
|
|
1202
|
-
function
|
|
1227
|
+
function Ve(e, t = void 0, n = void 0) {
|
|
1203
1228
|
const s = {
|
|
1204
1229
|
base: `${e.space}`,
|
|
1205
1230
|
uri: "/resources/bps/cspaces",
|
|
@@ -1211,57 +1236,57 @@ function Ke(e, t = void 0, n = void 0) {
|
|
|
1211
1236
|
Accept: "application/json,text/javascript,*/*",
|
|
1212
1237
|
"Content-Type": "application/ds-json"
|
|
1213
1238
|
},
|
|
1214
|
-
onComplete(
|
|
1215
|
-
const a = JSON.parse(
|
|
1239
|
+
onComplete(r, o) {
|
|
1240
|
+
const a = JSON.parse(r);
|
|
1216
1241
|
t && t(a, o);
|
|
1217
1242
|
},
|
|
1218
|
-
onFailure(
|
|
1219
|
-
n && n({ response:
|
|
1243
|
+
onFailure(r, o, a) {
|
|
1244
|
+
n && n({ response: r, headers: o, xhr: a });
|
|
1220
1245
|
}
|
|
1221
1246
|
});
|
|
1222
1247
|
}
|
|
1223
|
-
function
|
|
1248
|
+
function Be(e, t, n, s) {
|
|
1224
1249
|
F(
|
|
1225
1250
|
e.space,
|
|
1226
1251
|
t,
|
|
1227
1252
|
(i) => {
|
|
1228
1253
|
m(i, {
|
|
1229
1254
|
header: { ENO_CSRF_TOKEN: e.token },
|
|
1230
|
-
onComplete: (
|
|
1231
|
-
n && n(
|
|
1255
|
+
onComplete: (r) => {
|
|
1256
|
+
n && n(r);
|
|
1232
1257
|
},
|
|
1233
|
-
onFailure: (
|
|
1234
|
-
console.log("error http",
|
|
1258
|
+
onFailure: (r) => {
|
|
1259
|
+
console.log("error http", r), s && s(r);
|
|
1235
1260
|
}
|
|
1236
1261
|
});
|
|
1237
1262
|
}
|
|
1238
1263
|
);
|
|
1239
1264
|
}
|
|
1240
|
-
async function
|
|
1265
|
+
async function We(e, t, n = void 0, s = void 0) {
|
|
1241
1266
|
return new Promise((i) => {
|
|
1242
|
-
F(e, t, (
|
|
1243
|
-
m(
|
|
1244
|
-
onComplete: (o, a,
|
|
1245
|
-
onFailure: (o, a,
|
|
1246
|
-
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);
|
|
1247
1272
|
}
|
|
1248
1273
|
});
|
|
1249
1274
|
});
|
|
1250
1275
|
});
|
|
1251
1276
|
}
|
|
1252
|
-
function
|
|
1253
|
-
const
|
|
1254
|
-
|
|
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(
|
|
1255
1280
|
e,
|
|
1256
1281
|
n,
|
|
1257
1282
|
(o) => {
|
|
1258
|
-
const a = o.data[0].relateddata.files[0].id,
|
|
1259
|
-
|
|
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(
|
|
1260
1285
|
e,
|
|
1261
1286
|
n,
|
|
1262
1287
|
a,
|
|
1263
|
-
c,
|
|
1264
1288
|
r,
|
|
1289
|
+
c,
|
|
1265
1290
|
(d) => {
|
|
1266
1291
|
s && s(d);
|
|
1267
1292
|
},
|
|
@@ -1272,10 +1297,10 @@ function We(e, t, n, s = void 0, i = void 0) {
|
|
|
1272
1297
|
}
|
|
1273
1298
|
);
|
|
1274
1299
|
}
|
|
1275
|
-
let
|
|
1300
|
+
let G, E;
|
|
1276
1301
|
const x = [];
|
|
1277
|
-
async function
|
|
1278
|
-
e.objID && e.objID !== "" ?
|
|
1302
|
+
async function Ye(e, t = void 0, n = void 0) {
|
|
1303
|
+
e.objID && e.objID !== "" ? U(
|
|
1279
1304
|
e,
|
|
1280
1305
|
(s) => {
|
|
1281
1306
|
t && t(s);
|
|
@@ -1293,8 +1318,8 @@ async function Xe(e, t = void 0, n = void 0) {
|
|
|
1293
1318
|
}
|
|
1294
1319
|
);
|
|
1295
1320
|
}
|
|
1296
|
-
async function
|
|
1297
|
-
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(
|
|
1298
1323
|
e,
|
|
1299
1324
|
(s) => {
|
|
1300
1325
|
const i = {};
|
|
@@ -1305,18 +1330,18 @@ async function Ye(e, t = void 0, n = void 0) {
|
|
|
1305
1330
|
}
|
|
1306
1331
|
);
|
|
1307
1332
|
}
|
|
1308
|
-
function
|
|
1333
|
+
function ze(e, t = void 0, n = void 0) {
|
|
1309
1334
|
const s = [];
|
|
1310
1335
|
if (!e.objIds && !Array.isArray(e.objIds) && e.objIds.length === 0) {
|
|
1311
1336
|
console.warn("la liste est vide ou n'est pas un tableau");
|
|
1312
1337
|
return;
|
|
1313
1338
|
}
|
|
1314
|
-
e.objIds.forEach((i,
|
|
1315
|
-
|
|
1339
|
+
e.objIds.forEach((i, r) => {
|
|
1340
|
+
J(
|
|
1316
1341
|
e,
|
|
1317
1342
|
i.objID,
|
|
1318
1343
|
(o) => {
|
|
1319
|
-
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);
|
|
1320
1345
|
}
|
|
1321
1346
|
);
|
|
1322
1347
|
});
|
|
@@ -1324,10 +1349,10 @@ function He(e, t = void 0, n = void 0) {
|
|
|
1324
1349
|
function te(e, t, n = void 0, s = void 0) {
|
|
1325
1350
|
Z(
|
|
1326
1351
|
e,
|
|
1327
|
-
|
|
1352
|
+
G,
|
|
1328
1353
|
(i) => {
|
|
1329
|
-
const
|
|
1330
|
-
|
|
1354
|
+
const r = [...t];
|
|
1355
|
+
r.find((o) => o.objectID === i.objectId).data = i.data, E = r, x.push(i.data), n && n(x);
|
|
1331
1356
|
},
|
|
1332
1357
|
(i) => {
|
|
1333
1358
|
s && (s(i), console.log(i));
|
|
@@ -1341,7 +1366,7 @@ const ne = "FA35FB9B177A280065800EA0000F599C", se = [
|
|
|
1341
1366
|
"usersgroup",
|
|
1342
1367
|
"3dplan",
|
|
1343
1368
|
"dashboard"
|
|
1344
|
-
],
|
|
1369
|
+
], K = {
|
|
1345
1370
|
how: "ds6w:how",
|
|
1346
1371
|
what: "ds6w:what",
|
|
1347
1372
|
when: "ds6w:when",
|
|
@@ -1354,11 +1379,11 @@ const ne = "FA35FB9B177A280065800EA0000F599C", se = [
|
|
|
1354
1379
|
order_by: "desc",
|
|
1355
1380
|
tag: "testTag"
|
|
1356
1381
|
};
|
|
1357
|
-
function
|
|
1358
|
-
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 = {
|
|
1359
1384
|
uri: "/resources/6w/tags",
|
|
1360
1385
|
otpCTX: "SecurityContext=preferred",
|
|
1361
|
-
optTenant: `tenant=${
|
|
1386
|
+
optTenant: `tenant=${r}`
|
|
1362
1387
|
}, p = `${i}${d.uri}?${d.otpCTX}&${d.optTenant}`, l = {
|
|
1363
1388
|
tag: [
|
|
1364
1389
|
{
|
|
@@ -1367,9 +1392,9 @@ function ze(e, t, n = void 0, s = void 0) {
|
|
|
1367
1392
|
uri: `pid://${o}`
|
|
1368
1393
|
}
|
|
1369
1394
|
],
|
|
1370
|
-
predicate:
|
|
1395
|
+
predicate: K[a],
|
|
1371
1396
|
object: {
|
|
1372
|
-
literal:
|
|
1397
|
+
literal: c
|
|
1373
1398
|
}
|
|
1374
1399
|
}
|
|
1375
1400
|
]
|
|
@@ -1385,7 +1410,7 @@ function ze(e, t, n = void 0, s = void 0) {
|
|
|
1385
1410
|
JSON.parse(f);
|
|
1386
1411
|
const u = {};
|
|
1387
1412
|
setTimeout(() => {
|
|
1388
|
-
|
|
1413
|
+
L(
|
|
1389
1414
|
e,
|
|
1390
1415
|
o,
|
|
1391
1416
|
(g) => {
|
|
@@ -1416,17 +1441,17 @@ function ze(e, t, n = void 0, s = void 0) {
|
|
|
1416
1441
|
}
|
|
1417
1442
|
function ae(e, t, n = void 0, s = void 0) {
|
|
1418
1443
|
console.log("obj ", t);
|
|
1419
|
-
const i = t.info.name,
|
|
1444
|
+
const i = t.info.name, r = {
|
|
1420
1445
|
baseUrl: `https://${e.tenant.toLowerCase()}-eu1-fedsearch.3dexperience.3ds.com`,
|
|
1421
1446
|
uri: "/federated/search"
|
|
1422
|
-
}, o = `${
|
|
1447
|
+
}, o = `${r.baseUrl}${r.uri}`, a = {
|
|
1423
1448
|
"Content-Type": "application/json",
|
|
1424
1449
|
Accept: "application/json,text/javascript,*/*"
|
|
1425
|
-
},
|
|
1450
|
+
}, c = D(), d = {
|
|
1426
1451
|
with_indexing_date: !0,
|
|
1427
1452
|
with_synthesis: !0,
|
|
1428
1453
|
with_nls: !1,
|
|
1429
|
-
label: `3DSearch-${e.currentUser.username}-AjoutDeTagBeam-${
|
|
1454
|
+
label: `3DSearch-${e.currentUser.username}-AjoutDeTagBeam-${c}`,
|
|
1430
1455
|
locale: "fr",
|
|
1431
1456
|
select_predicate: [
|
|
1432
1457
|
"ds6w:label",
|
|
@@ -1497,12 +1522,12 @@ function ae(e, t, n = void 0, s = void 0) {
|
|
|
1497
1522
|
}
|
|
1498
1523
|
});
|
|
1499
1524
|
}
|
|
1500
|
-
function
|
|
1501
|
-
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 = {
|
|
1502
1527
|
uri: "/resources/6w/tags",
|
|
1503
1528
|
otpCTX: "SecurityContext=preferred",
|
|
1504
1529
|
optTenant: `tenant=${e.tenant}`
|
|
1505
|
-
},
|
|
1530
|
+
}, c = `${e.space}${a.uri}?${a.otpCTX}&${a.optTenant}`, d = {
|
|
1506
1531
|
tag: [
|
|
1507
1532
|
{
|
|
1508
1533
|
subject: [
|
|
@@ -1510,14 +1535,14 @@ function qe(e, t, n = void 0, s = void 0) {
|
|
|
1510
1535
|
uri: `pid://${i}`
|
|
1511
1536
|
}
|
|
1512
1537
|
],
|
|
1513
|
-
predicate:
|
|
1538
|
+
predicate: K[r],
|
|
1514
1539
|
object: {
|
|
1515
1540
|
literal: o
|
|
1516
1541
|
}
|
|
1517
1542
|
}
|
|
1518
1543
|
]
|
|
1519
1544
|
};
|
|
1520
|
-
m(
|
|
1545
|
+
m(c, {
|
|
1521
1546
|
method: "DELETE",
|
|
1522
1547
|
data: JSON.stringify(d),
|
|
1523
1548
|
headers: {
|
|
@@ -1533,20 +1558,20 @@ function qe(e, t, n = void 0, s = void 0) {
|
|
|
1533
1558
|
}
|
|
1534
1559
|
});
|
|
1535
1560
|
}
|
|
1536
|
-
function
|
|
1561
|
+
function Ze(e, t = "", n = void 0, s = void 0) {
|
|
1537
1562
|
const { space: i } = e;
|
|
1538
1563
|
if (t === "")
|
|
1539
1564
|
return;
|
|
1540
|
-
const
|
|
1565
|
+
const r = {
|
|
1541
1566
|
uri: "/resources/v1/modeler/documents"
|
|
1542
1567
|
}, o = {
|
|
1543
1568
|
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
|
|
1544
1569
|
Accept: "application/json,text/javascript,*/*"
|
|
1545
|
-
}, 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}`;
|
|
1546
1571
|
m(a, {
|
|
1547
1572
|
method: "POST",
|
|
1548
1573
|
headers: o,
|
|
1549
|
-
data:
|
|
1574
|
+
data: c,
|
|
1550
1575
|
onComplete(d) {
|
|
1551
1576
|
n && n(JSON.parse(d));
|
|
1552
1577
|
},
|
|
@@ -1559,7 +1584,7 @@ function Qe(e, t = "", n = void 0, s = void 0) {
|
|
|
1559
1584
|
async function w(e, t = void 0, n = void 0) {
|
|
1560
1585
|
const s = e._3DSwym + "/api/index/tk";
|
|
1561
1586
|
return m(s, {
|
|
1562
|
-
onComplete(i,
|
|
1587
|
+
onComplete(i, r, o) {
|
|
1563
1588
|
const a = JSON.parse(i);
|
|
1564
1589
|
if (t)
|
|
1565
1590
|
return t(a), e.token = a?.result?.ServerToken;
|
|
@@ -1569,7 +1594,7 @@ async function w(e, t = void 0, n = void 0) {
|
|
|
1569
1594
|
}
|
|
1570
1595
|
});
|
|
1571
1596
|
}
|
|
1572
|
-
function
|
|
1597
|
+
function et(e, t = void 0, n = void 0) {
|
|
1573
1598
|
const s = `${e.space}/api/exalead/whatsnew`, i = {
|
|
1574
1599
|
params: {
|
|
1575
1600
|
community_id: null,
|
|
@@ -1580,11 +1605,11 @@ function Ze(e, t = void 0, n = void 0) {
|
|
|
1580
1605
|
start: 0
|
|
1581
1606
|
}
|
|
1582
1607
|
};
|
|
1583
|
-
w(e, (
|
|
1608
|
+
w(e, (r) => {
|
|
1584
1609
|
m(s, {
|
|
1585
1610
|
method: "POST",
|
|
1586
1611
|
headers: {
|
|
1587
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1612
|
+
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken,
|
|
1588
1613
|
"Content-type": "application/json;charset=UTF-8",
|
|
1589
1614
|
Accept: "application/json"
|
|
1590
1615
|
},
|
|
@@ -1599,7 +1624,7 @@ function Ze(e, t = void 0, n = void 0) {
|
|
|
1599
1624
|
});
|
|
1600
1625
|
});
|
|
1601
1626
|
}
|
|
1602
|
-
function
|
|
1627
|
+
function tt(e, t = void 0, n = void 0) {
|
|
1603
1628
|
const s = `${e.space}/api/Recommendation/getpeoplefamiliartocurrentuser`, i = {
|
|
1604
1629
|
params: {
|
|
1605
1630
|
idsToFilterArr: [],
|
|
@@ -1609,19 +1634,19 @@ function et(e, t = void 0, n = void 0) {
|
|
|
1609
1634
|
maxNbOfCommonElements: "5"
|
|
1610
1635
|
}
|
|
1611
1636
|
};
|
|
1612
|
-
w(e, (
|
|
1637
|
+
w(e, (r) => {
|
|
1613
1638
|
m(s, {
|
|
1614
1639
|
method: "POST",
|
|
1615
1640
|
headers: {
|
|
1616
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1641
|
+
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken,
|
|
1617
1642
|
"Content-type": "application/json;charset=UTF-8",
|
|
1618
1643
|
Accept: "application/json"
|
|
1619
1644
|
},
|
|
1620
1645
|
data: JSON.stringify(i),
|
|
1621
1646
|
type: "json",
|
|
1622
1647
|
onComplete(o, a) {
|
|
1623
|
-
const
|
|
1624
|
-
t && t(
|
|
1648
|
+
const c = o.result.hits.map((d) => ({ login: d.login, fullName: d.name }));
|
|
1649
|
+
t && t(c, o);
|
|
1625
1650
|
},
|
|
1626
1651
|
onFailure(o, a) {
|
|
1627
1652
|
n && n(o, a);
|
|
@@ -1629,20 +1654,20 @@ function et(e, t = void 0, n = void 0) {
|
|
|
1629
1654
|
});
|
|
1630
1655
|
});
|
|
1631
1656
|
}
|
|
1632
|
-
function
|
|
1657
|
+
function nt(e, t = void 0, n = void 0) {
|
|
1633
1658
|
const s = {
|
|
1634
1659
|
base: e.space,
|
|
1635
1660
|
uri: "/api/community/listmycommunities",
|
|
1636
1661
|
limit: `/limit/${e.limit ? e.limit : 128}`,
|
|
1637
1662
|
page: `/page/${e.page ? e.page : "1"}`
|
|
1638
|
-
}, i = `${s.base}${s.uri}${s.limit}${s.page}`,
|
|
1663
|
+
}, i = `${s.base}${s.uri}${s.limit}${s.page}`, r = [];
|
|
1639
1664
|
w(e, (o) => {
|
|
1640
1665
|
m(i, {
|
|
1641
1666
|
method: "GET",
|
|
1642
1667
|
headers: {
|
|
1643
1668
|
"X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
|
|
1644
1669
|
},
|
|
1645
|
-
onComplete(a,
|
|
1670
|
+
onComplete(a, c, d) {
|
|
1646
1671
|
const l = JSON.parse(a).result;
|
|
1647
1672
|
let f = 0;
|
|
1648
1673
|
l.forEach((u) => {
|
|
@@ -1658,21 +1683,21 @@ function tt(e, t = void 0, n = void 0) {
|
|
|
1658
1683
|
e,
|
|
1659
1684
|
u.id,
|
|
1660
1685
|
(h) => {
|
|
1661
|
-
f++, g.members = h,
|
|
1686
|
+
f++, g.members = h, r.push(g), f === l.length && t && t(r);
|
|
1662
1687
|
},
|
|
1663
1688
|
(h) => n(h)
|
|
1664
1689
|
);
|
|
1665
1690
|
});
|
|
1666
1691
|
},
|
|
1667
|
-
onFailure(a,
|
|
1692
|
+
onFailure(a, c) {
|
|
1668
1693
|
const d = a;
|
|
1669
|
-
d.status =
|
|
1694
|
+
d.status = c.status, d.response = c.errormsg, n && n(d);
|
|
1670
1695
|
}
|
|
1671
1696
|
});
|
|
1672
1697
|
});
|
|
1673
1698
|
}
|
|
1674
1699
|
function oe(e, t, n, s) {
|
|
1675
|
-
const i = `${e.space}/api/community/listmembers`,
|
|
1700
|
+
const i = `${e.space}/api/community/listmembers`, r = {
|
|
1676
1701
|
params: {
|
|
1677
1702
|
page: e.page ? e.page : 1,
|
|
1678
1703
|
limit: e.limit ? e.limit : 50,
|
|
@@ -1687,47 +1712,47 @@ function oe(e, t, n, s) {
|
|
|
1687
1712
|
Accept: "application/json",
|
|
1688
1713
|
"X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
|
|
1689
1714
|
},
|
|
1690
|
-
data: JSON.stringify(
|
|
1715
|
+
data: JSON.stringify(r),
|
|
1691
1716
|
type: "json",
|
|
1692
|
-
onComplete(a,
|
|
1717
|
+
onComplete(a, c, d) {
|
|
1693
1718
|
n && n(a);
|
|
1694
1719
|
},
|
|
1695
|
-
onFailure(a,
|
|
1720
|
+
onFailure(a, c) {
|
|
1696
1721
|
const d = a;
|
|
1697
|
-
d.status =
|
|
1722
|
+
d.status = c.status, d.response = c.errormsg, s && s(d);
|
|
1698
1723
|
}
|
|
1699
1724
|
});
|
|
1700
1725
|
});
|
|
1701
1726
|
}
|
|
1702
|
-
function
|
|
1727
|
+
function st(e, t = void 0, n = void 0) {
|
|
1703
1728
|
const s = "YXdA5x4DSUKtlAi2wmnyTA";
|
|
1704
1729
|
e.commu_id || (e.commu_id = s);
|
|
1705
1730
|
const i = `${e.space}/api/v2/communities/${e.commu_id}/ideas/statuses`;
|
|
1706
|
-
w(e, (
|
|
1731
|
+
w(e, (r) => {
|
|
1707
1732
|
m(i, {
|
|
1708
1733
|
method: "GET",
|
|
1709
1734
|
headers: {
|
|
1710
1735
|
"Content-type": "application/json;charset=UTF-8",
|
|
1711
1736
|
Accept: "application/json",
|
|
1712
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1737
|
+
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
|
|
1713
1738
|
},
|
|
1714
1739
|
onComplete(o) {
|
|
1715
1740
|
const a = JSON.parse(o);
|
|
1716
1741
|
t && t(a);
|
|
1717
1742
|
},
|
|
1718
1743
|
onFailure(o, a) {
|
|
1719
|
-
const
|
|
1720
|
-
|
|
1744
|
+
const c = o;
|
|
1745
|
+
c.status = a.status, c.response = a.errormsg, n && n(c);
|
|
1721
1746
|
}
|
|
1722
1747
|
});
|
|
1723
1748
|
});
|
|
1724
1749
|
}
|
|
1725
|
-
function
|
|
1726
|
-
const { listAllContacts: i, currentUser:
|
|
1750
|
+
function it(e, t, n = void 0, s = void 0) {
|
|
1751
|
+
const { listAllContacts: i, currentUser: r } = e;
|
|
1727
1752
|
console.log("__listAllContacts", i.hits);
|
|
1728
1753
|
const o = `${e.space}/api/directmessages`, a = {
|
|
1729
|
-
users: [
|
|
1730
|
-
},
|
|
1754
|
+
users: [r.login].concat(t.receipt)
|
|
1755
|
+
}, c = {
|
|
1731
1756
|
id_msg: "",
|
|
1732
1757
|
senderId: e.currentUser.login,
|
|
1733
1758
|
senderName: `${e.currentUser.first_name} ${e.currentUser.last_name}`,
|
|
@@ -1737,10 +1762,10 @@ function st(e, t, n = void 0, s = void 0) {
|
|
|
1737
1762
|
re(
|
|
1738
1763
|
a.users,
|
|
1739
1764
|
(p) => {
|
|
1740
|
-
p !== void 0 && (
|
|
1765
|
+
p !== void 0 && (c.id_msg = p.id, d = !0, P(e, c));
|
|
1741
1766
|
},
|
|
1742
1767
|
(p) => {
|
|
1743
|
-
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 = "";
|
|
1744
1769
|
}
|
|
1745
1770
|
), d === !1 && setTimeout(() => {
|
|
1746
1771
|
d === !1 && w(e, (p) => {
|
|
@@ -1755,7 +1780,7 @@ function st(e, t, n = void 0, s = void 0) {
|
|
|
1755
1780
|
type: "json",
|
|
1756
1781
|
onComplete(l, f, u) {
|
|
1757
1782
|
const g = l;
|
|
1758
|
-
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);
|
|
1759
1784
|
},
|
|
1760
1785
|
onFailure(l, f, u) {
|
|
1761
1786
|
const g = l;
|
|
@@ -1767,19 +1792,19 @@ function st(e, t, n = void 0, s = void 0) {
|
|
|
1767
1792
|
}
|
|
1768
1793
|
function re(e, t, n, s) {
|
|
1769
1794
|
const i = `${e.space}/api/directmessages/lite?with_favorites=false`;
|
|
1770
|
-
w(e, (
|
|
1795
|
+
w(e, (r) => {
|
|
1771
1796
|
m(i, {
|
|
1772
1797
|
method: "GET",
|
|
1773
1798
|
headers: {
|
|
1774
1799
|
Accept: "application/json,text/javascript,*/*",
|
|
1775
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1800
|
+
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
|
|
1776
1801
|
},
|
|
1777
1802
|
onComplete(o) {
|
|
1778
|
-
const a = JSON.parse(o),
|
|
1803
|
+
const a = JSON.parse(o), c = [];
|
|
1779
1804
|
a.result.forEach((l) => {
|
|
1780
|
-
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);
|
|
1781
1806
|
});
|
|
1782
|
-
const d = t.sort(), p =
|
|
1807
|
+
const d = t.sort(), p = c.find((l) => {
|
|
1783
1808
|
const f = [];
|
|
1784
1809
|
return l.users.forEach((u) => {
|
|
1785
1810
|
f.push(u.login);
|
|
@@ -1800,7 +1825,7 @@ function P(e, t, n = void 0, s = void 0) {
|
|
|
1800
1825
|
uri: "/api/community",
|
|
1801
1826
|
id_msg: `${t.id_msg}`,
|
|
1802
1827
|
endUri: "/instantmessages"
|
|
1803
|
-
},
|
|
1828
|
+
}, r = `${i.base}${i.uri}/${i.id_msg}${i.endUri}`, o = {
|
|
1804
1829
|
author: { login: t.senderId, displayName: t.senderName },
|
|
1805
1830
|
accessState: null,
|
|
1806
1831
|
commentUri: null,
|
|
@@ -1810,8 +1835,8 @@ function P(e, t, n = void 0, s = void 0) {
|
|
|
1810
1835
|
parentCommentUri: null,
|
|
1811
1836
|
richMessage: t.msg
|
|
1812
1837
|
};
|
|
1813
|
-
console.log("_3dSwym_sendDirectMessageData url ",
|
|
1814
|
-
m(
|
|
1838
|
+
console.log("_3dSwym_sendDirectMessageData url ", r), w(e, (a) => {
|
|
1839
|
+
m(r, {
|
|
1815
1840
|
method: "POST",
|
|
1816
1841
|
headers: {
|
|
1817
1842
|
"Content-Type": "application/json",
|
|
@@ -1820,12 +1845,12 @@ function P(e, t, n = void 0, s = void 0) {
|
|
|
1820
1845
|
},
|
|
1821
1846
|
data: JSON.stringify(o),
|
|
1822
1847
|
type: "json",
|
|
1823
|
-
onComplete(
|
|
1824
|
-
const l =
|
|
1848
|
+
onComplete(c, d, p) {
|
|
1849
|
+
const l = c;
|
|
1825
1850
|
l.status = p.status, l.response = JSON.parse(p.response), console.log("✅ _3dSwym_sendDirectMessageData => ", l), n && n(l);
|
|
1826
1851
|
},
|
|
1827
|
-
onFailure(
|
|
1828
|
-
const p =
|
|
1852
|
+
onFailure(c, d) {
|
|
1853
|
+
const p = c;
|
|
1829
1854
|
p.msg = d.errormsg, p.errCode = d.errorcode, console.log("❌ sendDirectMessage => ", p), s && s(p);
|
|
1830
1855
|
}
|
|
1831
1856
|
});
|
|
@@ -1848,16 +1873,16 @@ const de = {
|
|
|
1848
1873
|
idee_id: "THhRI8rlQNWKRxpv3Xqqug"
|
|
1849
1874
|
// id de l'idee qui est créer au post (_3dSwym_postIdea)
|
|
1850
1875
|
};
|
|
1851
|
-
function
|
|
1852
|
-
const i = `${e.space}/api/idea/add`,
|
|
1853
|
-
(
|
|
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
|
|
1854
1879
|
), o = e.swymCommunities.find(
|
|
1855
|
-
(
|
|
1880
|
+
(c) => c.title.toLowerCase() === t.community_title.toLowerCase()
|
|
1856
1881
|
), a = {
|
|
1857
1882
|
params: {
|
|
1858
1883
|
title: t.title,
|
|
1859
1884
|
// String, le nom de l'affaire
|
|
1860
|
-
community_id:
|
|
1885
|
+
community_id: r?.id !== void 0 ? r.id : o.id,
|
|
1861
1886
|
// String, l'id de la communauté
|
|
1862
1887
|
message: pe(t.text_html),
|
|
1863
1888
|
// STRING => le contenue du message doit être au format HTML
|
|
@@ -1865,11 +1890,11 @@ function it(e, t, n = void 0, s = void 0) {
|
|
|
1865
1890
|
// 1 publier, 0 non publier
|
|
1866
1891
|
}
|
|
1867
1892
|
};
|
|
1868
|
-
w(e, (
|
|
1893
|
+
w(e, (c) => {
|
|
1869
1894
|
const d = {
|
|
1870
1895
|
"Content-type": "application/json;charset=UTF-8",
|
|
1871
1896
|
Accept: "application/json",
|
|
1872
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1897
|
+
"X-DS-SWYM-CSRFTOKEN": c.result.ServerToken
|
|
1873
1898
|
};
|
|
1874
1899
|
m(i, {
|
|
1875
1900
|
method: "POST",
|
|
@@ -1887,8 +1912,8 @@ function it(e, t, n = void 0, s = void 0) {
|
|
|
1887
1912
|
});
|
|
1888
1913
|
});
|
|
1889
1914
|
}
|
|
1890
|
-
function
|
|
1891
|
-
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 = {
|
|
1892
1917
|
params: {
|
|
1893
1918
|
community_id: t.community_id,
|
|
1894
1919
|
ideationIds: [t.idee_id]
|
|
@@ -1902,28 +1927,28 @@ function at(e, t, n = void 0, s = void 0) {
|
|
|
1902
1927
|
Accept: "application/json",
|
|
1903
1928
|
"X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
|
|
1904
1929
|
},
|
|
1905
|
-
data: JSON.stringify(
|
|
1930
|
+
data: JSON.stringify(r),
|
|
1906
1931
|
type: "json",
|
|
1907
|
-
onComplete(a,
|
|
1932
|
+
onComplete(a, c, d) {
|
|
1908
1933
|
n && n(a);
|
|
1909
1934
|
},
|
|
1910
|
-
onFailure(a,
|
|
1935
|
+
onFailure(a, c, d) {
|
|
1911
1936
|
const p = a;
|
|
1912
|
-
p.status =
|
|
1937
|
+
p.status = c.status, p.response = c.errormsg, s && s(p);
|
|
1913
1938
|
}
|
|
1914
1939
|
});
|
|
1915
1940
|
});
|
|
1916
1941
|
}
|
|
1917
|
-
function
|
|
1942
|
+
function rt(e, t = "", n = void 0, s = void 0) {
|
|
1918
1943
|
const i = e.tenant.toLowerCase() === "r1132101716373" ? "tFtz0G4MR6qNtKgJjNfTog" : e.tenant.toLowerCase() === "r1132101286859" ? "Qpv3HN-tTDOsU-7_c5DnDg" : "Template_d'idée_à_créer";
|
|
1919
1944
|
t === "" && (t = i);
|
|
1920
|
-
const
|
|
1945
|
+
const r = `${e.space}/api/idea/get`, o = {
|
|
1921
1946
|
params: {
|
|
1922
1947
|
id: t
|
|
1923
1948
|
}
|
|
1924
1949
|
};
|
|
1925
1950
|
w(e, (a) => {
|
|
1926
|
-
m(
|
|
1951
|
+
m(r, {
|
|
1927
1952
|
method: "POST",
|
|
1928
1953
|
headers: {
|
|
1929
1954
|
"Content-type": "application/json;charset=UTF-8",
|
|
@@ -1932,36 +1957,36 @@ function ot(e, t = "", n = void 0, s = void 0) {
|
|
|
1932
1957
|
},
|
|
1933
1958
|
data: JSON.stringify(o),
|
|
1934
1959
|
type: "json",
|
|
1935
|
-
onComplete(
|
|
1936
|
-
const d =
|
|
1960
|
+
onComplete(c) {
|
|
1961
|
+
const d = c;
|
|
1937
1962
|
d.msg = d.result.message, n && n(d);
|
|
1938
1963
|
},
|
|
1939
|
-
onFailure(
|
|
1940
|
-
const d =
|
|
1964
|
+
onFailure(c) {
|
|
1965
|
+
const d = c;
|
|
1941
1966
|
d.status = headers.status, d.response = headers.errormsg, s && s(d);
|
|
1942
1967
|
}
|
|
1943
1968
|
});
|
|
1944
1969
|
});
|
|
1945
1970
|
}
|
|
1946
|
-
function
|
|
1971
|
+
function ct(e, t = de, n = void 0, s = void 0) {
|
|
1947
1972
|
const i = {
|
|
1948
1973
|
uri: "/api/idea/list",
|
|
1949
1974
|
comId: `/community_id/${e.tenant.toLowerCase() === "r1132101716373" ? t.community_id : "bgnIsG74SUWswyGzS6NC6g"}`,
|
|
1950
1975
|
limit: `/limit/${t.limit ? t.limit : 10}`
|
|
1951
|
-
},
|
|
1976
|
+
}, r = `${e.space}${i.uri}${i.comId}${i.limit}`;
|
|
1952
1977
|
w(e, (o) => {
|
|
1953
|
-
m(
|
|
1978
|
+
m(r, {
|
|
1954
1979
|
method: "GET",
|
|
1955
1980
|
headers: {
|
|
1956
1981
|
"X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
|
|
1957
1982
|
},
|
|
1958
1983
|
onComplete(a) {
|
|
1959
|
-
const
|
|
1960
|
-
n && n(
|
|
1984
|
+
const c = JSON.parse(a);
|
|
1985
|
+
n && n(c);
|
|
1961
1986
|
},
|
|
1962
|
-
onFailure(a,
|
|
1987
|
+
onFailure(a, c) {
|
|
1963
1988
|
const d = a;
|
|
1964
|
-
d.status =
|
|
1989
|
+
d.status = c.status, d.response = c.errormsg, s && s(d);
|
|
1965
1990
|
}
|
|
1966
1991
|
});
|
|
1967
1992
|
});
|
|
@@ -2041,7 +2066,7 @@ function pe(e) {
|
|
|
2041
2066
|
<p>
|
|
2042
2067
|
</p>` : e;
|
|
2043
2068
|
}
|
|
2044
|
-
function
|
|
2069
|
+
function dt(e, t = void 0, n = void 0) {
|
|
2045
2070
|
const s = e.space + "/api/user/getcurrent/";
|
|
2046
2071
|
w(e, (i) => {
|
|
2047
2072
|
m(s, {
|
|
@@ -2049,26 +2074,26 @@ function ct(e, t = void 0, n = void 0) {
|
|
|
2049
2074
|
headers: {
|
|
2050
2075
|
"X-DS-SWYM-CSRFTOKEN": i.result.ServerToken
|
|
2051
2076
|
},
|
|
2052
|
-
onComplete(
|
|
2053
|
-
const
|
|
2054
|
-
t && t(
|
|
2077
|
+
onComplete(r, o, a) {
|
|
2078
|
+
const c = JSON.parse(r);
|
|
2079
|
+
t && t(c.result);
|
|
2055
2080
|
},
|
|
2056
|
-
onFailure(
|
|
2057
|
-
const
|
|
2058
|
-
n && n(
|
|
2081
|
+
onFailure(r, o, a) {
|
|
2082
|
+
const c = { erreur: JSON.parse(r), headers: o, xhr: a };
|
|
2083
|
+
n && n(c);
|
|
2059
2084
|
}
|
|
2060
2085
|
});
|
|
2061
2086
|
});
|
|
2062
2087
|
}
|
|
2063
|
-
function
|
|
2088
|
+
function pt(e, t, n = void 0, s = void 0) {
|
|
2064
2089
|
const i = e.space + "/api/user/find/login/" + t;
|
|
2065
2090
|
w(
|
|
2066
2091
|
e,
|
|
2067
|
-
(
|
|
2092
|
+
(r) => {
|
|
2068
2093
|
m(i, {
|
|
2069
2094
|
method: "GET",
|
|
2070
|
-
headers: { "X-DS-SWYM-CSRFTOKEN":
|
|
2071
|
-
onComplete(o, a,
|
|
2095
|
+
headers: { "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken },
|
|
2096
|
+
onComplete(o, a, c) {
|
|
2072
2097
|
const d = JSON.parse(o);
|
|
2073
2098
|
n && n(d);
|
|
2074
2099
|
},
|
|
@@ -2080,22 +2105,22 @@ function dt(e, t, n = void 0, s = void 0) {
|
|
|
2080
2105
|
s
|
|
2081
2106
|
);
|
|
2082
2107
|
}
|
|
2083
|
-
function
|
|
2108
|
+
function lt(e, t = void 0, n = void 0) {
|
|
2084
2109
|
e.tenant && C(e, (s) => {
|
|
2085
2110
|
console.log("serviceUrls", s);
|
|
2086
|
-
const i = s.services.find((
|
|
2111
|
+
const i = s.services.find((r) => r.id === "businessprocess")?.url + "/api/v2";
|
|
2087
2112
|
return t && t(i), i;
|
|
2088
2113
|
});
|
|
2089
2114
|
}
|
|
2090
|
-
function
|
|
2115
|
+
function ut(e, t = void 0, n = void 0) {
|
|
2091
2116
|
e.tenant && C(e, (s) => {
|
|
2092
2117
|
console.log("serviceUrls", s);
|
|
2093
|
-
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`;
|
|
2094
2119
|
m(o, {
|
|
2095
2120
|
async onComplete(a) {
|
|
2096
2121
|
console.log("response", a);
|
|
2097
|
-
const
|
|
2098
|
-
await fetch(
|
|
2122
|
+
const c = typeof a == "string" ? JSON.parse(a)?.x3ds_service_redirect_url : a?.x3ds_service_redirect_url;
|
|
2123
|
+
await fetch(c, {
|
|
2099
2124
|
method: "POST"
|
|
2100
2125
|
}).then((d) => d.json()).then(async (d) => {
|
|
2101
2126
|
t && t(d?.token);
|
|
@@ -2107,7 +2132,7 @@ function lt(e, t = void 0, n = void 0) {
|
|
|
2107
2132
|
});
|
|
2108
2133
|
});
|
|
2109
2134
|
}
|
|
2110
|
-
function
|
|
2135
|
+
function ft(e, t = void 0, n = void 0) {
|
|
2111
2136
|
if (e.tenant) {
|
|
2112
2137
|
const s = e.tenant.toLowerCase();
|
|
2113
2138
|
fetch(`https://api.uixhome.fr/${s}/iterop/jwtuser`, {
|
|
@@ -2119,34 +2144,34 @@ function ut(e, t = void 0, n = void 0) {
|
|
|
2119
2144
|
});
|
|
2120
2145
|
}
|
|
2121
2146
|
}
|
|
2122
|
-
async function
|
|
2147
|
+
async function mt(e, t, n = void 0, s = void 0) {
|
|
2123
2148
|
e.tenant && C(e, (i) => {
|
|
2124
|
-
const o = `${i.services.find((
|
|
2149
|
+
const o = `${i.services.find((c) => c.id === "businessprocess")?.url + "/api/v2"}/identity/users`, a = e.tenant.toLowerCase();
|
|
2125
2150
|
fetch(`https://api.uixhome.fr/${a}/iterop/listusers?t=${t}&s=${o}`, {
|
|
2126
2151
|
method: "POST"
|
|
2127
|
-
}).then((
|
|
2128
|
-
n && n(
|
|
2129
|
-
}).catch((
|
|
2130
|
-
s && s(
|
|
2152
|
+
}).then((c) => c.json()).then((c) => {
|
|
2153
|
+
n && n(c);
|
|
2154
|
+
}).catch((c) => {
|
|
2155
|
+
s && s(c);
|
|
2131
2156
|
});
|
|
2132
2157
|
});
|
|
2133
2158
|
}
|
|
2134
|
-
async function
|
|
2159
|
+
async function gt(e, t, n = void 0, s = void 0) {
|
|
2135
2160
|
e.tenant && C(e, (i) => {
|
|
2136
|
-
const o = `${i.services.find((
|
|
2161
|
+
const o = `${i.services.find((c) => c.id === "businessprocess")?.url + "/api/v2"}/repository/data/tables`, a = e.tenant.toLowerCase();
|
|
2137
2162
|
fetch(`https://api.uixhome.fr/${a}/iterop/repository/data/tables?t=${t}&s=${o}`, {
|
|
2138
2163
|
method: "GET"
|
|
2139
|
-
}).then((
|
|
2140
|
-
n && n(
|
|
2141
|
-
}).catch((
|
|
2142
|
-
s && s(
|
|
2164
|
+
}).then((c) => c.json()).then((c) => {
|
|
2165
|
+
n && n(c);
|
|
2166
|
+
}).catch((c) => {
|
|
2167
|
+
s && s(c);
|
|
2143
2168
|
});
|
|
2144
2169
|
});
|
|
2145
2170
|
}
|
|
2146
|
-
async function
|
|
2171
|
+
async function ht(e, t, n, s = void 0, i = void 0) {
|
|
2147
2172
|
if (e.tenant) {
|
|
2148
|
-
const
|
|
2149
|
-
fetch(`https://api.uixhome.fr/${
|
|
2173
|
+
const r = e.tenant.toLowerCase();
|
|
2174
|
+
fetch(`https://api.uixhome.fr/${r}/iterop//businesstable/${n}?t=${t}`, {
|
|
2150
2175
|
method: "POST"
|
|
2151
2176
|
}).then((o) => o.json()).then((o) => {
|
|
2152
2177
|
s && s(o);
|
|
@@ -2155,10 +2180,10 @@ async function gt(e, t, n, s = void 0, i = void 0) {
|
|
|
2155
2180
|
});
|
|
2156
2181
|
}
|
|
2157
2182
|
}
|
|
2158
|
-
async function
|
|
2183
|
+
async function St(e, t, n, s = void 0, i = void 0) {
|
|
2159
2184
|
if (e.tenant) {
|
|
2160
|
-
const
|
|
2161
|
-
fetch(`https://api.uixhome.fr/${
|
|
2185
|
+
const r = e.tenant.toLowerCase();
|
|
2186
|
+
fetch(`https://api.uixhome.fr/${r}/iterop//businesstable/${n}/rows/?t=${t}`, {
|
|
2162
2187
|
method: "POST"
|
|
2163
2188
|
}).then((o) => o.json()).then((o) => {
|
|
2164
2189
|
s && s(o);
|
|
@@ -2167,41 +2192,41 @@ async function ht(e, t, n, s = void 0, i = void 0) {
|
|
|
2167
2192
|
});
|
|
2168
2193
|
}
|
|
2169
2194
|
}
|
|
2170
|
-
async function
|
|
2195
|
+
async function yt(e, t, n, s, i = void 0, r = void 0) {
|
|
2171
2196
|
e.tenant && C(e, (o) => {
|
|
2172
|
-
o.services.find((
|
|
2197
|
+
o.services.find((c) => c.id === "businessprocess")?.url + "";
|
|
2173
2198
|
const a = e.tenant.toLowerCase();
|
|
2174
2199
|
fetch(
|
|
2175
2200
|
`https://api.uixhome.fr/${a}/iterop/runtime/processes/${n}?t=${t}&b=${s}`,
|
|
2176
2201
|
{
|
|
2177
2202
|
method: "POST"
|
|
2178
2203
|
}
|
|
2179
|
-
).then((
|
|
2180
|
-
i && i(
|
|
2181
|
-
}).catch((
|
|
2182
|
-
|
|
2204
|
+
).then((c) => c.json()).then((c) => {
|
|
2205
|
+
i && i(c);
|
|
2206
|
+
}).catch((c) => {
|
|
2207
|
+
r && r(c);
|
|
2183
2208
|
});
|
|
2184
2209
|
});
|
|
2185
2210
|
}
|
|
2186
|
-
async function
|
|
2211
|
+
async function _t(e, t, n, s, i, r = void 0, o = void 0) {
|
|
2187
2212
|
e.tenant && C(e, (a) => {
|
|
2188
2213
|
a.services.find((d) => d.id === "businessprocess")?.url + "";
|
|
2189
|
-
const
|
|
2214
|
+
const c = e.tenant.toLowerCase();
|
|
2190
2215
|
fetch(
|
|
2191
|
-
`https://api.uixhome.fr/${
|
|
2216
|
+
`https://api.uixhome.fr/${c}/iterop/businesstable/patch/${n}/rows?t=${t}&rowsToAdd=${s}&rowsToRemove=${i}`,
|
|
2192
2217
|
{
|
|
2193
2218
|
method: "POST"
|
|
2194
2219
|
}
|
|
2195
2220
|
).then((d) => d.json()).then((d) => {
|
|
2196
|
-
|
|
2221
|
+
r && r(d);
|
|
2197
2222
|
}).catch((d) => {
|
|
2198
2223
|
o && o(d);
|
|
2199
2224
|
});
|
|
2200
2225
|
});
|
|
2201
2226
|
}
|
|
2202
|
-
async function
|
|
2203
|
-
e.tenant && C(e, (
|
|
2204
|
-
|
|
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 + "";
|
|
2205
2230
|
const o = e.tenant.toLowerCase();
|
|
2206
2231
|
fetch(
|
|
2207
2232
|
`https://api.uixhome.fr/${o}/iterop/dependencytable/one/${n}/?t=${t}`,
|
|
@@ -2215,46 +2240,46 @@ async function _t(e, t, n, s = void 0, i = void 0) {
|
|
|
2215
2240
|
});
|
|
2216
2241
|
});
|
|
2217
2242
|
}
|
|
2218
|
-
async function
|
|
2243
|
+
async function Ct(e, t, n, s, i, r = void 0, o = void 0) {
|
|
2219
2244
|
e.tenant && C(e, (a) => {
|
|
2220
2245
|
a.services.find((d) => d.id === "businessprocess")?.url + "";
|
|
2221
|
-
const
|
|
2246
|
+
const c = e.tenant.toLowerCase();
|
|
2222
2247
|
fetch(
|
|
2223
|
-
`https://api.uixhome.fr/${
|
|
2248
|
+
`https://api.uixhome.fr/${c}/iterop/dependencytable/patch/${n}/?t=${t}&cli=${s}&b=${i}`,
|
|
2224
2249
|
{
|
|
2225
2250
|
method: "POST"
|
|
2226
2251
|
}
|
|
2227
2252
|
).then((d) => d.json()).then((d) => {
|
|
2228
|
-
|
|
2253
|
+
r && r(d);
|
|
2229
2254
|
}).catch((d) => {
|
|
2230
2255
|
o && o(d);
|
|
2231
2256
|
});
|
|
2232
2257
|
});
|
|
2233
2258
|
}
|
|
2234
|
-
async function
|
|
2259
|
+
async function Tt(e, t, n, s, i = void 0, r = void 0) {
|
|
2235
2260
|
e.tenant && C(e, (o) => {
|
|
2236
|
-
o.services.find((
|
|
2261
|
+
o.services.find((c) => c.id === "businessprocess")?.url + "";
|
|
2237
2262
|
const a = e.tenant.toLowerCase();
|
|
2238
2263
|
fetch(
|
|
2239
2264
|
`https://api.uixhome.fr/${a}/iterop/dependencytable/put/${n}/?t=${t}&b=${s}`,
|
|
2240
2265
|
{
|
|
2241
2266
|
method: "POST"
|
|
2242
2267
|
}
|
|
2243
|
-
).then((
|
|
2244
|
-
i && i(
|
|
2245
|
-
}).catch((
|
|
2246
|
-
|
|
2268
|
+
).then((c) => c.json()).then((c) => {
|
|
2269
|
+
i && i(c);
|
|
2270
|
+
}).catch((c) => {
|
|
2271
|
+
r && r(c);
|
|
2247
2272
|
});
|
|
2248
2273
|
});
|
|
2249
2274
|
}
|
|
2250
|
-
function
|
|
2275
|
+
function bt(e) {
|
|
2251
2276
|
const t = "Hello " + e;
|
|
2252
2277
|
return console.log(t), t;
|
|
2253
2278
|
}
|
|
2254
|
-
function
|
|
2279
|
+
function Ot(e, t = void 0, n = void 0) {
|
|
2255
2280
|
return console.log("credentials", e), new Promise((s) => {
|
|
2256
2281
|
if (e.token === "" && b(e), !e.space || e.space === "") {
|
|
2257
|
-
const o =
|
|
2282
|
+
const o = W();
|
|
2258
2283
|
console.log("platformeInfo", o);
|
|
2259
2284
|
}
|
|
2260
2285
|
$(
|
|
@@ -2268,14 +2293,14 @@ function bt(e, t = void 0, n = void 0) {
|
|
|
2268
2293
|
},
|
|
2269
2294
|
!0
|
|
2270
2295
|
);
|
|
2271
|
-
const i = I.now().ts,
|
|
2272
|
-
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, {
|
|
2273
2298
|
onComplete(o) {
|
|
2274
2299
|
if (Array.isArray(JSON.parse(o))) {
|
|
2275
2300
|
const a = JSON.parse(o);
|
|
2276
2301
|
console.log("serviceId=3dsearch", a);
|
|
2277
|
-
const
|
|
2278
|
-
m(
|
|
2302
|
+
const c = `${a[0].services[0].url}/search?xrequestedwith=xmlhttprequest`;
|
|
2303
|
+
m(c, {
|
|
2279
2304
|
method: "POST",
|
|
2280
2305
|
headers: {
|
|
2281
2306
|
Accept: "application/json",
|
|
@@ -2332,90 +2357,91 @@ function bt(e, t = void 0, n = void 0) {
|
|
|
2332
2357
|
}
|
|
2333
2358
|
export {
|
|
2334
2359
|
D as UUID,
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
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,
|
|
2339
2365
|
b as _3DSpace_csrf,
|
|
2340
|
-
|
|
2366
|
+
J as _3DSpace_download_doc,
|
|
2341
2367
|
Z as _3DSpace_download_multidoc,
|
|
2342
|
-
|
|
2368
|
+
M as _3DSpace_file_update,
|
|
2343
2369
|
Q as _3DSpace_file_update_csr,
|
|
2344
2370
|
xe as _3DSpace_file_url_csr,
|
|
2345
|
-
|
|
2346
|
-
|
|
2371
|
+
U as _3DSpace_get_csrf,
|
|
2372
|
+
L as _3DSpace_get_docInfo,
|
|
2347
2373
|
ee as _3DSpace_get_downloadTicket_multidoc,
|
|
2348
2374
|
Fe as _3DSpace_get_multiDocInfo,
|
|
2349
2375
|
$ as _3DSpace_get_securityContexts,
|
|
2350
2376
|
F as _3DSpace_get_ticket,
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
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,
|
|
2358
2384
|
re as _3DSwym_findCommunityToInstantMSG,
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2385
|
+
nt as _3DSwym_getAllCommunities,
|
|
2386
|
+
et as _3DSwym_getAllNews,
|
|
2387
|
+
tt as _3DSwym_getFamiliarPeople,
|
|
2388
|
+
st as _3DSwym_getIdeaStatusMaturity,
|
|
2363
2389
|
oe as _3DSwym_getMembersCommunity,
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2390
|
+
rt as _3DSwym_getSWYMIdea,
|
|
2391
|
+
ct as _3DSwym_get_AllSWYMIdeas,
|
|
2392
|
+
dt as _3DSwym_get_currentUser,
|
|
2393
|
+
pt as _3DSwym_get_findUser,
|
|
2368
2394
|
w as _3DSwym_get_version,
|
|
2369
|
-
|
|
2395
|
+
at as _3DSwym_postIdea,
|
|
2370
2396
|
P as _3DSwym_sendMessageData,
|
|
2371
2397
|
$e as _AppMngt_get_info_user,
|
|
2372
2398
|
Oe as _AppMngt_get_users,
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
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,
|
|
2385
2411
|
Ce as _getPlatformServices,
|
|
2386
2412
|
C as _getServiceUrl,
|
|
2387
2413
|
Te as _getServiceUrl_3DPassport,
|
|
2388
|
-
|
|
2414
|
+
lt as _getServiceUrl_Iterop,
|
|
2389
2415
|
m as _httpCallAuthenticated,
|
|
2390
2416
|
ye as _setDraggable,
|
|
2391
2417
|
we as _setDroppable,
|
|
2392
2418
|
_e as _setupTagger,
|
|
2393
|
-
|
|
2419
|
+
qe as addTagToDoc,
|
|
2394
2420
|
be as compass_getListAdditionalApps,
|
|
2395
|
-
|
|
2421
|
+
B as couleurs,
|
|
2396
2422
|
ve as createUserGroups,
|
|
2397
2423
|
te as dataMixing,
|
|
2398
2424
|
Ae as deleteUserGroups,
|
|
2399
2425
|
ge as findAdresse,
|
|
2400
|
-
|
|
2401
|
-
|
|
2426
|
+
Ve as getAllContextSecurity,
|
|
2427
|
+
Y as getCSRFToken,
|
|
2402
2428
|
me as getCommunes,
|
|
2403
2429
|
Ne as getComplementUG,
|
|
2404
|
-
|
|
2430
|
+
Be as getDataFrom3DSpace,
|
|
2405
2431
|
he as getDataFromGouvFr,
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2432
|
+
He as getDatasByTenant,
|
|
2433
|
+
ze as getDatasFrom3DSpace,
|
|
2434
|
+
We as getDownloadDocument,
|
|
2435
|
+
Ze as getInfoDocTags,
|
|
2410
2436
|
Ie as getUserGroupsList,
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
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,
|
|
2419
2445
|
Se as updateEvent
|
|
2420
2446
|
};
|
|
2421
2447
|
//# sourceMappingURL=wb3Api.js.map
|