@beam3_dev/api_module 0.0.181 → 0.0.183
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 -1
- package/dist/wb3Api.js +361 -278
- 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 +4 -4
package/dist/wb3Api.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { v4 as
|
|
1
|
+
import { v4 as B } 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 B();
|
|
6
6
|
}
|
|
7
|
-
const
|
|
7
|
+
const V = {
|
|
8
8
|
b3M3Yellow: "#FFB300",
|
|
9
9
|
b3AboutageBlue: "#42A5F5",
|
|
10
10
|
b3UsinageGreen: "#689F38",
|
|
@@ -65,7 +65,7 @@ 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 = V) {
|
|
69
69
|
let n = I.now().year;
|
|
70
70
|
const s = e, i = [], r = (a) => {
|
|
71
71
|
for (let c in a)
|
|
@@ -104,7 +104,7 @@ async function Se(e, t, n = !0) {
|
|
|
104
104
|
const s = e.events.findIndex((i) => i.uuid === t.uuid);
|
|
105
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
|
-
function
|
|
107
|
+
function f(e, t) {
|
|
108
108
|
O(["DS/WAFData/WAFData"], (n) => {
|
|
109
109
|
n.authenticatedRequest(e, t);
|
|
110
110
|
});
|
|
@@ -133,7 +133,7 @@ function we(e, t) {
|
|
|
133
133
|
});
|
|
134
134
|
});
|
|
135
135
|
}
|
|
136
|
-
async function
|
|
136
|
+
async function Te(e, t = void 0, n = void 0) {
|
|
137
137
|
await O(
|
|
138
138
|
["DS/i3DXCompassServices/i3DXCompassServices"],
|
|
139
139
|
(s) => {
|
|
@@ -161,10 +161,10 @@ function W() {
|
|
|
161
161
|
};
|
|
162
162
|
}), console.log("%cRETOUR API :", "color:blue", e), e;
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function T(e, t = void 0, n = void 0) {
|
|
165
165
|
if (e.tenant) {
|
|
166
166
|
const s = `https://${e.tenant}-eu1-apps.3dexperience.3ds.com/enovia/resources/AppsMngt/api/v1/services?tenant=${e.tenant}&cors=true&xrequestedwith=xmlhttprequest`;
|
|
167
|
-
|
|
167
|
+
f(s, {
|
|
168
168
|
onComplete(i) {
|
|
169
169
|
const r = typeof i == "string" ? JSON.parse(i) : i;
|
|
170
170
|
if (r && "platforms" in r) {
|
|
@@ -181,10 +181,10 @@ function C(e, t = void 0, n = void 0) {
|
|
|
181
181
|
});
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function Ce(e, t = void 0, n = void 0) {
|
|
185
185
|
if (e.tenant) {
|
|
186
186
|
const s = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dpassport&platformId=${e.tenant}`;
|
|
187
|
-
|
|
187
|
+
f(s, {
|
|
188
188
|
onComplete(i) {
|
|
189
189
|
const r = JSON.parse(i);
|
|
190
190
|
if (console.log("serviceId=3dpassport", r), Array.isArray(r) && r.length > 0) {
|
|
@@ -205,7 +205,7 @@ function be(e, t, n) {
|
|
|
205
205
|
option: `?filter=${e.tenant}`
|
|
206
206
|
// facultatif
|
|
207
207
|
}, i = `${s.base}${s.uri}${s.option}`;
|
|
208
|
-
|
|
208
|
+
f(i, {
|
|
209
209
|
method: "GET",
|
|
210
210
|
headers: {
|
|
211
211
|
"Content-Type": "application/json",
|
|
@@ -213,8 +213,8 @@ function be(e, t, n) {
|
|
|
213
213
|
},
|
|
214
214
|
onComplete(r, o, a) {
|
|
215
215
|
const c = JSON.parse(r), d = c.data.map((p) => {
|
|
216
|
-
const
|
|
217
|
-
return { name:
|
|
216
|
+
const u = p.attributes.name, m = p.id;
|
|
217
|
+
return { name: u, id: m };
|
|
218
218
|
});
|
|
219
219
|
t && t(d, c);
|
|
220
220
|
},
|
|
@@ -226,7 +226,7 @@ function be(e, t, n) {
|
|
|
226
226
|
}
|
|
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
|
+
f(s, {
|
|
230
230
|
onComplete(i, r, o) {
|
|
231
231
|
const a = JSON.parse(i);
|
|
232
232
|
console.log("_AppMngt_get_users => ", a), t && t(a);
|
|
@@ -239,7 +239,7 @@ function Oe(e, t = void 0, n = void 0) {
|
|
|
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
|
+
f(i, {
|
|
243
243
|
onComplete(r, o, a) {
|
|
244
244
|
const c = JSON.parse(r);
|
|
245
245
|
n && n(c);
|
|
@@ -250,7 +250,7 @@ function $e(e, t, n = void 0, s = void 0) {
|
|
|
250
250
|
}
|
|
251
251
|
});
|
|
252
252
|
}
|
|
253
|
-
const
|
|
253
|
+
const F = {
|
|
254
254
|
"Content-Type": "application/json",
|
|
255
255
|
Accept: "application/json,text/javascript,*/*"
|
|
256
256
|
};
|
|
@@ -269,23 +269,23 @@ function ve(e, t, n = void 0, s = void 0) {
|
|
|
269
269
|
}
|
|
270
270
|
]
|
|
271
271
|
};
|
|
272
|
-
|
|
272
|
+
f(a, {
|
|
273
273
|
method: "POST",
|
|
274
|
-
headers:
|
|
274
|
+
headers: F,
|
|
275
275
|
data: JSON.stringify(c),
|
|
276
276
|
onComplete(d) {
|
|
277
277
|
n && n(JSON.parse(d));
|
|
278
278
|
},
|
|
279
279
|
onFailure(d, p) {
|
|
280
280
|
console.log(d);
|
|
281
|
-
const
|
|
282
|
-
|
|
281
|
+
const u = d;
|
|
282
|
+
u.msg = p.errormsg, u.errCode = p.errorcode, console.log("❌ sendDirectMessage => ", u), s && s(u);
|
|
283
283
|
}
|
|
284
284
|
});
|
|
285
285
|
}
|
|
286
286
|
function Ne(e, t, n = void 0, s = void 0) {
|
|
287
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
|
+
f(d, {
|
|
289
289
|
opts: {
|
|
290
290
|
method: "GET",
|
|
291
291
|
headers: {
|
|
@@ -293,12 +293,12 @@ function Ne(e, t, n = void 0, s = void 0) {
|
|
|
293
293
|
Accept: "application/json,text/javascript,*/*"
|
|
294
294
|
}
|
|
295
295
|
},
|
|
296
|
-
onComplete(
|
|
297
|
-
n && n(JSON.parse(
|
|
296
|
+
onComplete(m) {
|
|
297
|
+
n && n(JSON.parse(m));
|
|
298
298
|
},
|
|
299
|
-
onFailure(
|
|
300
|
-
const g =
|
|
301
|
-
g.msg =
|
|
299
|
+
onFailure(m, l) {
|
|
300
|
+
const g = m;
|
|
301
|
+
g.msg = l.errormsg, g.errCode = l.errorcode, s && s(g);
|
|
302
302
|
}
|
|
303
303
|
});
|
|
304
304
|
}
|
|
@@ -307,14 +307,14 @@ function X(e, t = void 0, n = void 0) {
|
|
|
307
307
|
method: "GET",
|
|
308
308
|
Accept: "application/json,*/*,test/javascript"
|
|
309
309
|
}, d = `${r}${o}${a}`;
|
|
310
|
-
|
|
310
|
+
f(d, {
|
|
311
311
|
OPTsH: c,
|
|
312
312
|
onComplete(p) {
|
|
313
313
|
t && t(JSON.parse(p));
|
|
314
314
|
},
|
|
315
|
-
onFailure(p,
|
|
316
|
-
const
|
|
317
|
-
|
|
315
|
+
onFailure(p, u) {
|
|
316
|
+
const m = p;
|
|
317
|
+
m.msg = u.errormsg, m.errCode = u.errorcode, n && n(m);
|
|
318
318
|
}
|
|
319
319
|
});
|
|
320
320
|
}
|
|
@@ -324,16 +324,16 @@ function Ie(e, t = void 0, n = void 0) {
|
|
|
324
324
|
Accept: "application/json,text/javascript,*/*"
|
|
325
325
|
} };
|
|
326
326
|
try {
|
|
327
|
-
|
|
327
|
+
f(a, {
|
|
328
328
|
opts: d,
|
|
329
329
|
onComplete(p) {
|
|
330
|
-
const
|
|
330
|
+
const u = JSON.parse(p), m = {}, l = u.groups.filter((g) => g.uri.startsWith("uuid:"));
|
|
331
331
|
if (i && Object.keys(i).length > 0) {
|
|
332
|
-
const g =
|
|
333
|
-
|
|
332
|
+
const g = l.filter((y) => y.owner === i.email), h = l.filter((y) => y.members.includes(i.email)), S = g.concat(h);
|
|
333
|
+
m.iam = S, m.UG = l, m.iamMember = h, X(
|
|
334
334
|
e,
|
|
335
335
|
(y) => {
|
|
336
|
-
|
|
336
|
+
m.rules = y, t && t(m);
|
|
337
337
|
},
|
|
338
338
|
(y) => {
|
|
339
339
|
n && n(y);
|
|
@@ -351,7 +351,7 @@ function Ie(e, t = void 0, n = void 0) {
|
|
|
351
351
|
}
|
|
352
352
|
function Ae(e, t) {
|
|
353
353
|
const { space: n } = e, i = `${n}/3drdfpersist/resources/v1/usersgroup/${t}`;
|
|
354
|
-
|
|
354
|
+
f(i, {
|
|
355
355
|
method: "DELETE"
|
|
356
356
|
});
|
|
357
357
|
}
|
|
@@ -365,24 +365,24 @@ function Ue(e, t, n, s = void 0, i = void 0) {
|
|
|
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
|
-
|
|
369
|
-
headers:
|
|
368
|
+
f(d, {
|
|
369
|
+
headers: F,
|
|
370
370
|
method: "PATCH",
|
|
371
371
|
data: p,
|
|
372
372
|
type: "json",
|
|
373
|
-
onComplete(
|
|
374
|
-
s && s(
|
|
373
|
+
onComplete(u) {
|
|
374
|
+
s && s(u);
|
|
375
375
|
},
|
|
376
|
-
onFailure(
|
|
377
|
-
i && i(
|
|
376
|
+
onFailure(u) {
|
|
377
|
+
i && i(u);
|
|
378
378
|
}
|
|
379
379
|
});
|
|
380
380
|
}
|
|
381
381
|
function ke(e, t, n, s = void 0, i = void 0) {
|
|
382
382
|
const { space: r } = e, a = `${r}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
|
|
383
|
-
|
|
383
|
+
f(a, {
|
|
384
384
|
method: "PATCH",
|
|
385
|
-
headers:
|
|
385
|
+
headers: F,
|
|
386
386
|
data: JSON.stringify(n),
|
|
387
387
|
type: "json",
|
|
388
388
|
onComplete(d) {
|
|
@@ -393,9 +393,9 @@ function ke(e, t, n, s = void 0, i = void 0) {
|
|
|
393
393
|
}
|
|
394
394
|
});
|
|
395
395
|
}
|
|
396
|
-
function
|
|
396
|
+
function Fe(e, t, n = void 0, s = void 0) {
|
|
397
397
|
const { space: i } = e, o = `${i}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
|
|
398
|
-
|
|
398
|
+
f(o, {
|
|
399
399
|
opts: {
|
|
400
400
|
method: "GET",
|
|
401
401
|
headers: {
|
|
@@ -414,7 +414,7 @@ function je(e, t, n = void 0, s = void 0) {
|
|
|
414
414
|
async function Y(e, t, n) {
|
|
415
415
|
if (e.space) {
|
|
416
416
|
const s = `${e.space}/resources/v1/application/CSRF`;
|
|
417
|
-
|
|
417
|
+
f(s, {
|
|
418
418
|
onComplete(i) {
|
|
419
419
|
i = JSON.parse(i), t && t(i.csrf);
|
|
420
420
|
},
|
|
@@ -425,10 +425,10 @@ async function Y(e, t, n) {
|
|
|
425
425
|
}
|
|
426
426
|
}
|
|
427
427
|
var A = {};
|
|
428
|
-
function
|
|
428
|
+
function z(e, t) {
|
|
429
429
|
return Object.prototype.hasOwnProperty.call(e, t);
|
|
430
430
|
}
|
|
431
|
-
var
|
|
431
|
+
var H = function(e, t, n, s) {
|
|
432
432
|
t = t || "&", n = n || "=";
|
|
433
433
|
var i = {};
|
|
434
434
|
if (typeof e != "string" || e.length === 0)
|
|
@@ -440,8 +440,8 @@ var z = function(e, t, n, s) {
|
|
|
440
440
|
var a = e.length;
|
|
441
441
|
o > 0 && a > o && (a = o);
|
|
442
442
|
for (var c = 0; c < a; ++c) {
|
|
443
|
-
var d = e[c].replace(r, "%20"), p = d.indexOf(n),
|
|
444
|
-
p >= 0 ? (
|
|
443
|
+
var d = e[c].replace(r, "%20"), p = d.indexOf(n), u, m, l, g;
|
|
444
|
+
p >= 0 ? (u = d.substr(0, p), m = d.substr(p + 1)) : (u = d, m = ""), l = decodeURIComponent(u), g = decodeURIComponent(m), z(i, l) ? Array.isArray(i[l]) ? i[l].push(g) : i[l] = [i[l], g] : i[l] = g;
|
|
445
445
|
}
|
|
446
446
|
return i;
|
|
447
447
|
}, N = function(e) {
|
|
@@ -463,7 +463,7 @@ var z = function(e, t, n, s) {
|
|
|
463
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 =
|
|
466
|
+
A.decode = A.parse = H;
|
|
467
467
|
A.encode = A.stringify = q;
|
|
468
468
|
async function L(e, t = void 0, n = void 0, s = void 0) {
|
|
469
469
|
const i = e.space;
|
|
@@ -472,7 +472,7 @@ async function L(e, t = void 0, n = void 0, s = void 0) {
|
|
|
472
472
|
return;
|
|
473
473
|
}
|
|
474
474
|
const r = i + `/resources/v1/modeler/documents/${t}`;
|
|
475
|
-
|
|
475
|
+
f(r, {
|
|
476
476
|
onComplete(o, a, c) {
|
|
477
477
|
const d = JSON.parse(o);
|
|
478
478
|
n && n(d);
|
|
@@ -482,7 +482,7 @@ async function L(e, t = void 0, n = void 0, s = void 0) {
|
|
|
482
482
|
}
|
|
483
483
|
});
|
|
484
484
|
}
|
|
485
|
-
async function
|
|
485
|
+
async function Pe(e, t = void 0, n = void 0, s = void 0) {
|
|
486
486
|
const i = e.space;
|
|
487
487
|
if (t === void 0) {
|
|
488
488
|
console.log("Le paramètre docids est obligatoire");
|
|
@@ -491,7 +491,7 @@ async function Fe(e, t = void 0, n = void 0, s = void 0) {
|
|
|
491
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
|
-
|
|
494
|
+
f(r, {
|
|
495
495
|
method: "POST",
|
|
496
496
|
headers: {
|
|
497
497
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
@@ -509,7 +509,7 @@ async function Fe(e, t = void 0, n = void 0, s = void 0) {
|
|
|
509
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
|
+
f(s, {
|
|
513
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);
|
|
@@ -532,7 +532,7 @@ function U(e, t = void 0, n = void 0) {
|
|
|
532
532
|
function b(e, t = void 0, n = void 0) {
|
|
533
533
|
if (e.space) {
|
|
534
534
|
const s = e.space + "/resources/v1/application/CSRF";
|
|
535
|
-
|
|
535
|
+
f(s, {
|
|
536
536
|
onComplete(i, r, o) {
|
|
537
537
|
const a = JSON.parse(i);
|
|
538
538
|
t && t(a.csrf.value);
|
|
@@ -548,12 +548,12 @@ 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 P(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
|
+
f(s, {
|
|
557
557
|
method: "PUT",
|
|
558
558
|
headers: {
|
|
559
559
|
ENO_CSRF_TOKEN: e.token
|
|
@@ -572,9 +572,9 @@ function F(e, t = void 0, n = void 0) {
|
|
|
572
572
|
}
|
|
573
573
|
);
|
|
574
574
|
}
|
|
575
|
-
function
|
|
575
|
+
function je(e, t, n, s = void 0, i = void 0) {
|
|
576
576
|
const r = `${e.space}/resources/v1/modeler/documents/${t}/files/DownloadTicket`;
|
|
577
|
-
n || (n = e.token),
|
|
577
|
+
n || (n = e.token), f(r, {
|
|
578
578
|
method: "PUT",
|
|
579
579
|
headers: {
|
|
580
580
|
ENO_CSRF_TOKEN: n
|
|
@@ -615,17 +615,17 @@ function M(e, t, n, s, i, r = void 0, o = void 0) {
|
|
|
615
615
|
}
|
|
616
616
|
function Q(e, t, n, s, i, r, o = void 0, a = void 0) {
|
|
617
617
|
const c = e.space + `/resources/v1/modeler/documents/${t}/files/CheckinTicket`;
|
|
618
|
-
|
|
618
|
+
f(c, {
|
|
619
619
|
method: "PUT",
|
|
620
620
|
headers: {
|
|
621
621
|
ENO_CSRF_TOKEN: e.token
|
|
622
622
|
},
|
|
623
|
-
onComplete(d, p,
|
|
624
|
-
const
|
|
623
|
+
onComplete(d, p, u) {
|
|
624
|
+
const m = JSON.parse(d).csrf, l = JSON.parse(d).data[0].dataelements, g = new FormData();
|
|
625
625
|
let h;
|
|
626
626
|
s instanceof Blob ? h = s : h = new Blob([s], {
|
|
627
627
|
type: "text/plain"
|
|
628
|
-
}), g.append("__fcs__jobTicket",
|
|
628
|
+
}), g.append("__fcs__jobTicket", l.ticket), g.append("file_0", h, i);
|
|
629
629
|
const S = {};
|
|
630
630
|
S.method = "POST", S.data = g, S.onComplete = function(y) {
|
|
631
631
|
let _ = {
|
|
@@ -634,7 +634,7 @@ function Q(e, t, n, s, i, r, o = void 0, a = void 0) {
|
|
|
634
634
|
SecurityContext: "ctx::" + e.ctx
|
|
635
635
|
},
|
|
636
636
|
data: JSON.stringify({
|
|
637
|
-
csrf:
|
|
637
|
+
csrf: m,
|
|
638
638
|
data: [
|
|
639
639
|
{
|
|
640
640
|
relateddata: {
|
|
@@ -649,6 +649,8 @@ function Q(e, t, n, s, i, r, o = void 0, a = void 0) {
|
|
|
649
649
|
]
|
|
650
650
|
},
|
|
651
651
|
id: t,
|
|
652
|
+
updateAction: "NONE",
|
|
653
|
+
id: t,
|
|
652
654
|
updateAction: "NONE"
|
|
653
655
|
}
|
|
654
656
|
]
|
|
@@ -660,18 +662,18 @@ function Q(e, t, n, s, i, r, o = void 0, a = void 0) {
|
|
|
660
662
|
onFailure(v) {
|
|
661
663
|
a && a(v);
|
|
662
664
|
}
|
|
663
|
-
},
|
|
664
|
-
|
|
665
|
-
e.space + `/resources/v1/modeler/documents/?$include=versions&tenant=${
|
|
665
|
+
}, C = e.tenant.toUpperCase();
|
|
666
|
+
f(
|
|
667
|
+
e.space + `/resources/v1/modeler/documents/?$include=versions&tenant=${C}&e6w-lang=en&e6w-timezone=-120&xrequestedwith=xmlhttprequest`,
|
|
666
668
|
_
|
|
667
669
|
);
|
|
668
670
|
}, S.onFailure = function(y) {
|
|
669
671
|
a && a(y);
|
|
670
|
-
}, S.timeout = 0,
|
|
672
|
+
}, S.timeout = 0, f(l.ticketURL, S);
|
|
671
673
|
}
|
|
672
674
|
});
|
|
673
675
|
}
|
|
674
|
-
async function
|
|
676
|
+
async function xe(e, t, n, s = void 0, i = void 0) {
|
|
675
677
|
e.space, e.token, e.ctx, L(
|
|
676
678
|
e,
|
|
677
679
|
t,
|
|
@@ -700,22 +702,22 @@ async function Re(e, t, n, s, i = void 0, r = void 0) {
|
|
|
700
702
|
const o = e.space, a = e.token, c = e.ctx;
|
|
701
703
|
if (o !== "") {
|
|
702
704
|
let d = `${o}/resources/v1/modeler/documents/files/CheckinTicket`;
|
|
703
|
-
|
|
705
|
+
f(d, {
|
|
704
706
|
method: "PUT",
|
|
705
707
|
headers: {
|
|
706
708
|
ENO_CSRF_TOKEN: a
|
|
707
709
|
},
|
|
708
|
-
onComplete(p,
|
|
709
|
-
let
|
|
710
|
+
onComplete(p, u, m) {
|
|
711
|
+
let l = JSON.parse(p).data[0].dataelements, g = new FormData(), h;
|
|
710
712
|
t instanceof Blob ? h = t : h = new Blob([t], {
|
|
711
713
|
type: "text/plain"
|
|
712
|
-
}), g.append("__fcs__jobTicket",
|
|
714
|
+
}), g.append("__fcs__jobTicket", l.ticket), g.append("filename", h, n);
|
|
713
715
|
const S = (_) => _.indexOf(".") === -1 ? _ : _.split(".").slice(0, -1).join(".");
|
|
714
716
|
let y = {
|
|
715
717
|
method: "POST",
|
|
716
718
|
data: g,
|
|
717
719
|
onComplete(_) {
|
|
718
|
-
let
|
|
720
|
+
let C = D(), v = {
|
|
719
721
|
method: "POST",
|
|
720
722
|
headers: {
|
|
721
723
|
ENO_CSRF_TOKEN: a,
|
|
@@ -741,7 +743,7 @@ async function Re(e, t, n, s, i = void 0, r = void 0) {
|
|
|
741
743
|
}
|
|
742
744
|
]
|
|
743
745
|
},
|
|
744
|
-
tempId:
|
|
746
|
+
tempId: C
|
|
745
747
|
}
|
|
746
748
|
]
|
|
747
749
|
}),
|
|
@@ -753,7 +755,7 @@ async function Re(e, t, n, s, i = void 0, r = void 0) {
|
|
|
753
755
|
r && r(k);
|
|
754
756
|
}
|
|
755
757
|
};
|
|
756
|
-
|
|
758
|
+
f(
|
|
757
759
|
o + "/resources/v1/modeler/documents/?SecurityContext=ctx::" + c,
|
|
758
760
|
v
|
|
759
761
|
);
|
|
@@ -763,51 +765,51 @@ async function Re(e, t, n, s, i = void 0, r = void 0) {
|
|
|
763
765
|
},
|
|
764
766
|
timeout: 0
|
|
765
767
|
};
|
|
766
|
-
|
|
768
|
+
f(l.ticketURL, y);
|
|
767
769
|
}
|
|
768
770
|
});
|
|
769
771
|
}
|
|
770
772
|
}
|
|
771
773
|
function $(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0, o = !1) {
|
|
772
774
|
const a = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
|
|
773
|
-
|
|
775
|
+
f(a, {
|
|
774
776
|
method: "GET",
|
|
775
777
|
onComplete(c) {
|
|
776
778
|
const d = JSON.parse(c);
|
|
777
|
-
let p = "",
|
|
779
|
+
let p = "", u, m, l;
|
|
778
780
|
if (t) {
|
|
779
781
|
let g = d.collabspaces.find((h) => h.title === t);
|
|
780
782
|
if (g) {
|
|
781
|
-
|
|
783
|
+
u = t;
|
|
782
784
|
let h = g.couples;
|
|
783
785
|
h = h.filter(
|
|
784
786
|
(S, y, _) => y === _.findIndex(
|
|
785
|
-
(
|
|
787
|
+
(C) => C.organization.pid === S.organization.pid && C.role.pid === S.role.pid
|
|
786
788
|
)
|
|
787
789
|
), n && (Array.isArray(n) ? n.forEach((S) => {
|
|
788
|
-
|
|
790
|
+
l || h.forEach((y) => {
|
|
789
791
|
if (S === y.role.name && s === y.organization.title)
|
|
790
|
-
|
|
792
|
+
l = S, m = s;
|
|
791
793
|
else if (S === y.role.name) {
|
|
792
794
|
let _ = h.filter(
|
|
793
|
-
(
|
|
795
|
+
(C) => C.role.name === S
|
|
794
796
|
);
|
|
795
|
-
_.length === 1 ? (
|
|
797
|
+
_.length === 1 ? (l = _[0].role.name, m = _[0].organization.title) : r(_);
|
|
796
798
|
}
|
|
797
799
|
});
|
|
798
800
|
}) : h.forEach((S) => {
|
|
799
801
|
if (n === S.role.name && s === S.organization.title)
|
|
800
|
-
|
|
802
|
+
l = n, m = s;
|
|
801
803
|
else if (n === S.role.name) {
|
|
802
804
|
let y = h.filter(
|
|
803
805
|
(_) => _.role.name === n
|
|
804
806
|
);
|
|
805
|
-
y.length === 1 ? (
|
|
807
|
+
y.length === 1 ? (l = y[0].role.name, m = y[0].organization.title) : r(y);
|
|
806
808
|
}
|
|
807
809
|
}));
|
|
808
810
|
}
|
|
809
811
|
}
|
|
810
|
-
|
|
812
|
+
u && m && l ? (p = l + "." + m + "." + u, i(p)) : d.preferredcredentials && o ? (p = d.preferredcredentials.role.name + "." + d.preferredcredentials.organization.title + "." + d.preferredcredentials.collabspace.title, i(p)) : r && (p = l + "." + m + "." + u, r(p));
|
|
811
813
|
},
|
|
812
814
|
onFailure(c, d) {
|
|
813
815
|
console.warn("Erreur de récupération du contexte de sécurité. => ", {
|
|
@@ -833,14 +835,14 @@ async function J(e, t = void 0, n = void 0) {
|
|
|
833
835
|
console.log("☠️ error => ", s);
|
|
834
836
|
}
|
|
835
837
|
), new Promise((s, i) => {
|
|
836
|
-
|
|
838
|
+
P(
|
|
837
839
|
e,
|
|
838
840
|
(r) => {
|
|
839
841
|
e?.returnType === "blob" ? (console.log("ticketURL blob", r), fetch(r).then((o) => o.blob()).then((o) => {
|
|
840
842
|
t && t(o);
|
|
841
843
|
}).catch((o) => {
|
|
842
844
|
n && n(o);
|
|
843
|
-
})) :
|
|
845
|
+
})) : f(r, {
|
|
844
846
|
onComplete(o) {
|
|
845
847
|
let a;
|
|
846
848
|
try {
|
|
@@ -911,7 +913,7 @@ function ee(e, t, n = void 0, s = void 0, i = void 0) {
|
|
|
911
913
|
data: r
|
|
912
914
|
});
|
|
913
915
|
const a = `${e.space}/resources/v1/modeler/documents/DownloadTicket?tenant=${e.tenant}&e6w-lang=fr&e6w-timezone=-120`;
|
|
914
|
-
|
|
916
|
+
f(a, {
|
|
915
917
|
method: "PUT",
|
|
916
918
|
data: o,
|
|
917
919
|
type: "json",
|
|
@@ -919,28 +921,28 @@ function ee(e, t, n = void 0, s = void 0, i = void 0) {
|
|
|
919
921
|
const d = c.data;
|
|
920
922
|
c.success === !0 && (n && n(), d.forEach((p) => {
|
|
921
923
|
try {
|
|
922
|
-
const
|
|
923
|
-
m
|
|
924
|
-
onComplete: (
|
|
924
|
+
const u = p.dataelements.fileName, m = p.dataelements.ticketURL;
|
|
925
|
+
f(m, {
|
|
926
|
+
onComplete: (l, g) => {
|
|
925
927
|
let h;
|
|
926
928
|
try {
|
|
927
|
-
h = JSON.parse(
|
|
929
|
+
h = JSON.parse(l);
|
|
928
930
|
} catch {
|
|
929
|
-
h =
|
|
931
|
+
h = l.blob();
|
|
930
932
|
}
|
|
931
933
|
s && s({
|
|
932
934
|
objectId: p.id,
|
|
933
935
|
headers: g,
|
|
934
|
-
fileName:
|
|
936
|
+
fileName: u,
|
|
935
937
|
data: h
|
|
936
938
|
});
|
|
937
939
|
},
|
|
938
|
-
onFailure: (
|
|
939
|
-
console.log("error http",
|
|
940
|
+
onFailure: (l) => {
|
|
941
|
+
console.log("error http", l);
|
|
940
942
|
}
|
|
941
943
|
});
|
|
942
|
-
} catch (
|
|
943
|
-
console.log(
|
|
944
|
+
} catch (u) {
|
|
945
|
+
console.log(u), i && i(u);
|
|
944
946
|
}
|
|
945
947
|
}));
|
|
946
948
|
},
|
|
@@ -986,7 +988,7 @@ function De(e, t, n = void 0, s = void 0) {
|
|
|
986
988
|
s && s(a);
|
|
987
989
|
}
|
|
988
990
|
};
|
|
989
|
-
|
|
991
|
+
f(r, o);
|
|
990
992
|
}
|
|
991
993
|
});
|
|
992
994
|
}
|
|
@@ -1028,7 +1030,7 @@ function Le(e, t, n, s = void 0, i = void 0) {
|
|
|
1028
1030
|
i && i(c);
|
|
1029
1031
|
}
|
|
1030
1032
|
};
|
|
1031
|
-
|
|
1033
|
+
f(o, a);
|
|
1032
1034
|
}
|
|
1033
1035
|
});
|
|
1034
1036
|
}
|
|
@@ -1069,7 +1071,7 @@ function Me(e, t, n = void 0, s = void 0) {
|
|
|
1069
1071
|
s && s(a);
|
|
1070
1072
|
}
|
|
1071
1073
|
};
|
|
1072
|
-
|
|
1074
|
+
f(r, o);
|
|
1073
1075
|
}
|
|
1074
1076
|
});
|
|
1075
1077
|
}
|
|
@@ -1116,7 +1118,7 @@ function Je(e, t, n = void 0, s = void 0) {
|
|
|
1116
1118
|
s && s(a);
|
|
1117
1119
|
}
|
|
1118
1120
|
};
|
|
1119
|
-
|
|
1121
|
+
f(r, o);
|
|
1120
1122
|
}
|
|
1121
1123
|
});
|
|
1122
1124
|
}
|
|
@@ -1163,7 +1165,7 @@ function Ge(e, t, n, s = void 0, i = void 0) {
|
|
|
1163
1165
|
i && i(c);
|
|
1164
1166
|
}
|
|
1165
1167
|
};
|
|
1166
|
-
|
|
1168
|
+
f(o, a);
|
|
1167
1169
|
}
|
|
1168
1170
|
});
|
|
1169
1171
|
}
|
|
@@ -1190,14 +1192,14 @@ function Ee(e, t, n, s, i = void 0, r = void 0) {
|
|
|
1190
1192
|
},
|
|
1191
1193
|
data: JSON.stringify(d),
|
|
1192
1194
|
type: "json",
|
|
1193
|
-
onComplete(
|
|
1194
|
-
i && i(
|
|
1195
|
+
onComplete(u) {
|
|
1196
|
+
i && i(u);
|
|
1195
1197
|
},
|
|
1196
|
-
onFailure(
|
|
1197
|
-
r && r(
|
|
1198
|
+
onFailure(u) {
|
|
1199
|
+
r && r(u);
|
|
1198
1200
|
}
|
|
1199
1201
|
};
|
|
1200
|
-
|
|
1202
|
+
f(a, p);
|
|
1201
1203
|
});
|
|
1202
1204
|
}
|
|
1203
1205
|
function Ke(e, t, n, s, i = void 0, r = void 0) {
|
|
@@ -1224,13 +1226,13 @@ function Ke(e, t, n, s, i = void 0, r = void 0) {
|
|
|
1224
1226
|
});
|
|
1225
1227
|
}
|
|
1226
1228
|
//!SECTION
|
|
1227
|
-
function
|
|
1229
|
+
function Be(e, t = void 0, n = void 0) {
|
|
1228
1230
|
const s = {
|
|
1229
1231
|
base: `${e.space}`,
|
|
1230
1232
|
uri: "/resources/bps/cspaces",
|
|
1231
1233
|
optTenant: `tenant=${e.tenant}`
|
|
1232
1234
|
}, i = `${s.base}${s.uri}?${s.optTenant}`;
|
|
1233
|
-
|
|
1235
|
+
f(i, {
|
|
1234
1236
|
method: "GET",
|
|
1235
1237
|
headers: {
|
|
1236
1238
|
Accept: "application/json,text/javascript,*/*",
|
|
@@ -1245,12 +1247,12 @@ function Ve(e, t = void 0, n = void 0) {
|
|
|
1245
1247
|
}
|
|
1246
1248
|
});
|
|
1247
1249
|
}
|
|
1248
|
-
function
|
|
1249
|
-
|
|
1250
|
+
function Ve(e, t, n, s) {
|
|
1251
|
+
P(
|
|
1250
1252
|
e.space,
|
|
1251
1253
|
t,
|
|
1252
1254
|
(i) => {
|
|
1253
|
-
|
|
1255
|
+
f(i, {
|
|
1254
1256
|
header: { ENO_CSRF_TOKEN: e.token },
|
|
1255
1257
|
onComplete: (r) => {
|
|
1256
1258
|
n && n(r);
|
|
@@ -1264,8 +1266,8 @@ function Be(e, t, n, s) {
|
|
|
1264
1266
|
}
|
|
1265
1267
|
async function We(e, t, n = void 0, s = void 0) {
|
|
1266
1268
|
return new Promise((i) => {
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
+
P(e, t, (r) => {
|
|
1270
|
+
f(r, {
|
|
1269
1271
|
onComplete: (o, a, c) => (i(JSON.parse(o)), n && n(JSON.parse(o), a, c), i),
|
|
1270
1272
|
onFailure: (o, a, c) => {
|
|
1271
1273
|
s && s(o, a, c), console.log(o, a?.errormsg);
|
|
@@ -1298,7 +1300,7 @@ function Xe(e, t, n, s = void 0, i = void 0) {
|
|
|
1298
1300
|
);
|
|
1299
1301
|
}
|
|
1300
1302
|
let G, E;
|
|
1301
|
-
const
|
|
1303
|
+
const j = [];
|
|
1302
1304
|
async function Ye(e, t = void 0, n = void 0) {
|
|
1303
1305
|
e.objID && e.objID !== "" ? U(
|
|
1304
1306
|
e,
|
|
@@ -1318,7 +1320,7 @@ async function Ye(e, t = void 0, n = void 0) {
|
|
|
1318
1320
|
}
|
|
1319
1321
|
);
|
|
1320
1322
|
}
|
|
1321
|
-
async function
|
|
1323
|
+
async function ze(e, t = void 0, n = void 0) {
|
|
1322
1324
|
console.log("getDatasByTenant (getDocuments)", e), await J(
|
|
1323
1325
|
e,
|
|
1324
1326
|
(s) => {
|
|
@@ -1330,7 +1332,7 @@ async function He(e, t = void 0, n = void 0) {
|
|
|
1330
1332
|
}
|
|
1331
1333
|
);
|
|
1332
1334
|
}
|
|
1333
|
-
function
|
|
1335
|
+
function He(e, t = void 0, n = void 0) {
|
|
1334
1336
|
const s = [];
|
|
1335
1337
|
if (!e.objIds && !Array.isArray(e.objIds) && e.objIds.length === 0) {
|
|
1336
1338
|
console.warn("la liste est vide ou n'est pas un tableau");
|
|
@@ -1352,7 +1354,7 @@ function te(e, t, n = void 0, s = void 0) {
|
|
|
1352
1354
|
G,
|
|
1353
1355
|
(i) => {
|
|
1354
1356
|
const r = [...t];
|
|
1355
|
-
r.find((o) => o.objectID === i.objectId).data = i.data, E = r,
|
|
1357
|
+
r.find((o) => o.objectID === i.objectId).data = i.data, E = r, j.push(i.data), n && n(j);
|
|
1356
1358
|
},
|
|
1357
1359
|
(i) => {
|
|
1358
1360
|
s && (s(i), console.log(i));
|
|
@@ -1384,7 +1386,7 @@ function qe(e, t, n = void 0, s = void 0) {
|
|
|
1384
1386
|
uri: "/resources/6w/tags",
|
|
1385
1387
|
otpCTX: "SecurityContext=preferred",
|
|
1386
1388
|
optTenant: `tenant=${r}`
|
|
1387
|
-
}, p = `${i}${d.uri}?${d.otpCTX}&${d.optTenant}`,
|
|
1389
|
+
}, p = `${i}${d.uri}?${d.otpCTX}&${d.optTenant}`, u = {
|
|
1388
1390
|
tag: [
|
|
1389
1391
|
{
|
|
1390
1392
|
subject: [
|
|
@@ -1399,23 +1401,23 @@ function qe(e, t, n = void 0, s = void 0) {
|
|
|
1399
1401
|
}
|
|
1400
1402
|
]
|
|
1401
1403
|
};
|
|
1402
|
-
|
|
1404
|
+
f(p, {
|
|
1403
1405
|
method: "PUT",
|
|
1404
1406
|
headers: {
|
|
1405
1407
|
"Content-Type": "application/json",
|
|
1406
1408
|
Accept: "application/json"
|
|
1407
1409
|
},
|
|
1408
|
-
data: JSON.stringify(
|
|
1409
|
-
onComplete(
|
|
1410
|
-
JSON.parse(
|
|
1411
|
-
const
|
|
1410
|
+
data: JSON.stringify(u),
|
|
1411
|
+
onComplete(m) {
|
|
1412
|
+
JSON.parse(m);
|
|
1413
|
+
const l = {};
|
|
1412
1414
|
setTimeout(() => {
|
|
1413
1415
|
L(
|
|
1414
1416
|
e,
|
|
1415
1417
|
o,
|
|
1416
1418
|
(g) => {
|
|
1417
1419
|
const h = g.data[0].dataelements.title, S = g.data[0].dataelements.fileExtension !== void 0 ? g.data[0].dataelements.fileExtension : "", y = g.data[0].relateddata.ownerInfo[0].dataelements.name;
|
|
1418
|
-
|
|
1420
|
+
l.name = h, l.ext = S, l.createBy = y, t.info = { ...l }, ae(
|
|
1419
1421
|
e,
|
|
1420
1422
|
t,
|
|
1421
1423
|
(_) => {
|
|
@@ -1433,9 +1435,9 @@ function qe(e, t, n = void 0, s = void 0) {
|
|
|
1433
1435
|
);
|
|
1434
1436
|
}, 2e3);
|
|
1435
1437
|
},
|
|
1436
|
-
onFailure(
|
|
1437
|
-
const g =
|
|
1438
|
-
g.msg =
|
|
1438
|
+
onFailure(m, l) {
|
|
1439
|
+
const g = m;
|
|
1440
|
+
g.msg = l.errormsg, g.errCode = l.errorcode, console.log("❌ sendDirectMessage => ", g), s && s(g);
|
|
1439
1441
|
}
|
|
1440
1442
|
});
|
|
1441
1443
|
}
|
|
@@ -1508,17 +1510,17 @@ function ae(e, t, n = void 0, s = void 0) {
|
|
|
1508
1510
|
}
|
|
1509
1511
|
}
|
|
1510
1512
|
};
|
|
1511
|
-
console.log("dataPattern => ", d),
|
|
1513
|
+
console.log("dataPattern => ", d), f(o, {
|
|
1512
1514
|
method: "POST",
|
|
1513
1515
|
headers: a,
|
|
1514
1516
|
data: JSON.stringify(d),
|
|
1515
1517
|
onComplete(p) {
|
|
1516
|
-
const
|
|
1517
|
-
n(
|
|
1518
|
+
const u = JSON.parse(p);
|
|
1519
|
+
n(u);
|
|
1518
1520
|
},
|
|
1519
|
-
onFailure(p,
|
|
1520
|
-
const
|
|
1521
|
-
|
|
1521
|
+
onFailure(p, u) {
|
|
1522
|
+
const m = p;
|
|
1523
|
+
m.msg = u.errormsg, m.errCode = u.errorcode, console.log("❌ sendDirectMessage => ", m), s && s(m), console.log("Erreur de recuperation d'id du doc et des tags", p);
|
|
1522
1524
|
}
|
|
1523
1525
|
});
|
|
1524
1526
|
}
|
|
@@ -1542,7 +1544,7 @@ function Qe(e, t, n = void 0, s = void 0) {
|
|
|
1542
1544
|
}
|
|
1543
1545
|
]
|
|
1544
1546
|
};
|
|
1545
|
-
|
|
1547
|
+
f(c, {
|
|
1546
1548
|
method: "DELETE",
|
|
1547
1549
|
data: JSON.stringify(d),
|
|
1548
1550
|
headers: {
|
|
@@ -1552,9 +1554,9 @@ function Qe(e, t, n = void 0, s = void 0) {
|
|
|
1552
1554
|
onComplete(p) {
|
|
1553
1555
|
n && n(p);
|
|
1554
1556
|
},
|
|
1555
|
-
onFailure(p,
|
|
1556
|
-
const
|
|
1557
|
-
|
|
1557
|
+
onFailure(p, u) {
|
|
1558
|
+
const m = p;
|
|
1559
|
+
m.msg = u.errormsg, m.errCode = u.errorcode, console.log("❌ sendDirectMessage => ", m), s && s(m);
|
|
1558
1560
|
}
|
|
1559
1561
|
});
|
|
1560
1562
|
}
|
|
@@ -1568,7 +1570,7 @@ function Ze(e, t = "", n = void 0, s = void 0) {
|
|
|
1568
1570
|
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
|
|
1569
1571
|
Accept: "application/json,text/javascript,*/*"
|
|
1570
1572
|
}, 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}`;
|
|
1571
|
-
|
|
1573
|
+
f(a, {
|
|
1572
1574
|
method: "POST",
|
|
1573
1575
|
headers: o,
|
|
1574
1576
|
data: c,
|
|
@@ -1576,14 +1578,14 @@ function Ze(e, t = "", n = void 0, s = void 0) {
|
|
|
1576
1578
|
n && n(JSON.parse(d));
|
|
1577
1579
|
},
|
|
1578
1580
|
onFailure(d, p) {
|
|
1579
|
-
const
|
|
1580
|
-
|
|
1581
|
+
const u = d;
|
|
1582
|
+
u.msg = p.error, s && s(u);
|
|
1581
1583
|
}
|
|
1582
1584
|
});
|
|
1583
1585
|
}
|
|
1584
1586
|
async function w(e, t = void 0, n = void 0) {
|
|
1585
|
-
const s = e.
|
|
1586
|
-
return
|
|
1587
|
+
const s = e.space + "/api/index/tk";
|
|
1588
|
+
return f(s, {
|
|
1587
1589
|
onComplete(i, r, o) {
|
|
1588
1590
|
const a = JSON.parse(i);
|
|
1589
1591
|
if (t)
|
|
@@ -1606,7 +1608,7 @@ function et(e, t = void 0, n = void 0) {
|
|
|
1606
1608
|
}
|
|
1607
1609
|
};
|
|
1608
1610
|
w(e, (r) => {
|
|
1609
|
-
|
|
1611
|
+
f(s, {
|
|
1610
1612
|
method: "POST",
|
|
1611
1613
|
headers: {
|
|
1612
1614
|
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken,
|
|
@@ -1635,7 +1637,7 @@ function tt(e, t = void 0, n = void 0) {
|
|
|
1635
1637
|
}
|
|
1636
1638
|
};
|
|
1637
1639
|
w(e, (r) => {
|
|
1638
|
-
|
|
1640
|
+
f(s, {
|
|
1639
1641
|
method: "POST",
|
|
1640
1642
|
headers: {
|
|
1641
1643
|
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken,
|
|
@@ -1662,28 +1664,28 @@ function nt(e, t = void 0, n = void 0) {
|
|
|
1662
1664
|
page: `/page/${e.page ? e.page : "1"}`
|
|
1663
1665
|
}, i = `${s.base}${s.uri}${s.limit}${s.page}`, r = [];
|
|
1664
1666
|
w(e, (o) => {
|
|
1665
|
-
|
|
1667
|
+
f(i, {
|
|
1666
1668
|
method: "GET",
|
|
1667
1669
|
headers: {
|
|
1668
1670
|
"X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
|
|
1669
1671
|
},
|
|
1670
1672
|
onComplete(a, c, d) {
|
|
1671
|
-
const
|
|
1672
|
-
let
|
|
1673
|
-
|
|
1673
|
+
const u = JSON.parse(a).result;
|
|
1674
|
+
let m = 0;
|
|
1675
|
+
u.forEach((l) => {
|
|
1674
1676
|
const g = {
|
|
1675
|
-
description:
|
|
1676
|
-
id:
|
|
1677
|
-
title:
|
|
1678
|
-
owner:
|
|
1679
|
-
role:
|
|
1680
|
-
access:
|
|
1677
|
+
description: l.description,
|
|
1678
|
+
id: l.id,
|
|
1679
|
+
title: l.title,
|
|
1680
|
+
owner: l.owner,
|
|
1681
|
+
role: l.role,
|
|
1682
|
+
access: l.access
|
|
1681
1683
|
};
|
|
1682
1684
|
oe(
|
|
1683
1685
|
e,
|
|
1684
|
-
|
|
1686
|
+
l.id,
|
|
1685
1687
|
(h) => {
|
|
1686
|
-
|
|
1688
|
+
m++, g.members = h, r.push(g), m === u.length && t && t(r);
|
|
1687
1689
|
},
|
|
1688
1690
|
(h) => n(h)
|
|
1689
1691
|
);
|
|
@@ -1705,7 +1707,7 @@ function oe(e, t, n, s) {
|
|
|
1705
1707
|
}
|
|
1706
1708
|
};
|
|
1707
1709
|
w(e, (o) => {
|
|
1708
|
-
|
|
1710
|
+
f(i, {
|
|
1709
1711
|
method: "POST",
|
|
1710
1712
|
headers: {
|
|
1711
1713
|
"Content-type": "application/json;charset=UTF-8",
|
|
@@ -1729,7 +1731,7 @@ function st(e, t = void 0, n = void 0) {
|
|
|
1729
1731
|
e.commu_id || (e.commu_id = s);
|
|
1730
1732
|
const i = `${e.space}/api/v2/communities/${e.commu_id}/ideas/statuses`;
|
|
1731
1733
|
w(e, (r) => {
|
|
1732
|
-
|
|
1734
|
+
f(i, {
|
|
1733
1735
|
method: "GET",
|
|
1734
1736
|
headers: {
|
|
1735
1737
|
"Content-type": "application/json;charset=UTF-8",
|
|
@@ -1762,14 +1764,14 @@ function it(e, t, n = void 0, s = void 0) {
|
|
|
1762
1764
|
re(
|
|
1763
1765
|
a.users,
|
|
1764
1766
|
(p) => {
|
|
1765
|
-
p !== void 0 && (c.id_msg = p.id, d = !0,
|
|
1767
|
+
p !== void 0 && (c.id_msg = p.id, d = !0, x(e, c));
|
|
1766
1768
|
},
|
|
1767
1769
|
(p) => {
|
|
1768
1770
|
d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", p), s && s(p), c.id_msg = "";
|
|
1769
1771
|
}
|
|
1770
1772
|
), d === !1 && setTimeout(() => {
|
|
1771
1773
|
d === !1 && w(e, (p) => {
|
|
1772
|
-
|
|
1774
|
+
f(o, {
|
|
1773
1775
|
method: "POST",
|
|
1774
1776
|
headers: {
|
|
1775
1777
|
"Content-Type": "application/json",
|
|
@@ -1778,13 +1780,13 @@ function it(e, t, n = void 0, s = void 0) {
|
|
|
1778
1780
|
},
|
|
1779
1781
|
data: JSON.stringify(a),
|
|
1780
1782
|
type: "json",
|
|
1781
|
-
onComplete(
|
|
1782
|
-
const g =
|
|
1783
|
-
g.reponse = JSON.parse(
|
|
1783
|
+
onComplete(u, m, l) {
|
|
1784
|
+
const g = u;
|
|
1785
|
+
g.reponse = JSON.parse(l.response), g.status = l.status, n && n(g), c.id_msg = g.result.id, x(e, c);
|
|
1784
1786
|
},
|
|
1785
|
-
onFailure(
|
|
1786
|
-
const g =
|
|
1787
|
-
g.msg =
|
|
1787
|
+
onFailure(u, m, l) {
|
|
1788
|
+
const g = u;
|
|
1789
|
+
g.msg = m.errormsg, g.status = m.status, s && s(g);
|
|
1788
1790
|
}
|
|
1789
1791
|
});
|
|
1790
1792
|
});
|
|
@@ -1793,7 +1795,7 @@ function it(e, t, n = void 0, s = void 0) {
|
|
|
1793
1795
|
function re(e, t, n, s) {
|
|
1794
1796
|
const i = `${e.space}/api/directmessages/lite?with_favorites=false`;
|
|
1795
1797
|
w(e, (r) => {
|
|
1796
|
-
|
|
1798
|
+
f(i, {
|
|
1797
1799
|
method: "GET",
|
|
1798
1800
|
headers: {
|
|
1799
1801
|
Accept: "application/json,text/javascript,*/*",
|
|
@@ -1801,14 +1803,14 @@ function re(e, t, n, s) {
|
|
|
1801
1803
|
},
|
|
1802
1804
|
onComplete(o) {
|
|
1803
1805
|
const a = JSON.parse(o), c = [];
|
|
1804
|
-
a.result.forEach((
|
|
1805
|
-
|
|
1806
|
+
a.result.forEach((u) => {
|
|
1807
|
+
u.users = u.users.sort((m, l) => m.login.localeCompare(l.login)), u.users.length === t.length && c.push(u);
|
|
1806
1808
|
});
|
|
1807
|
-
const d = t.sort(), p = c.find((
|
|
1808
|
-
const
|
|
1809
|
-
return
|
|
1810
|
-
|
|
1811
|
-
}), JSON.stringify(
|
|
1809
|
+
const d = t.sort(), p = c.find((u) => {
|
|
1810
|
+
const m = [];
|
|
1811
|
+
return u.users.forEach((l) => {
|
|
1812
|
+
m.push(l.login);
|
|
1813
|
+
}), JSON.stringify(m) === JSON.stringify(d);
|
|
1812
1814
|
});
|
|
1813
1815
|
n && p !== void 0 ? n(p) : (s || p === void 0) && s(p);
|
|
1814
1816
|
},
|
|
@@ -1819,7 +1821,7 @@ function re(e, t, n, s) {
|
|
|
1819
1821
|
});
|
|
1820
1822
|
});
|
|
1821
1823
|
}
|
|
1822
|
-
function
|
|
1824
|
+
function x(e, t, n = void 0, s = void 0) {
|
|
1823
1825
|
const i = {
|
|
1824
1826
|
base: e.space,
|
|
1825
1827
|
uri: "/api/community",
|
|
@@ -1836,7 +1838,7 @@ function P(e, t, n = void 0, s = void 0) {
|
|
|
1836
1838
|
richMessage: t.msg
|
|
1837
1839
|
};
|
|
1838
1840
|
console.log("_3dSwym_sendDirectMessageData url ", r), w(e, (a) => {
|
|
1839
|
-
|
|
1841
|
+
f(r, {
|
|
1840
1842
|
method: "POST",
|
|
1841
1843
|
headers: {
|
|
1842
1844
|
"Content-Type": "application/json",
|
|
@@ -1846,8 +1848,8 @@ function P(e, t, n = void 0, s = void 0) {
|
|
|
1846
1848
|
data: JSON.stringify(o),
|
|
1847
1849
|
type: "json",
|
|
1848
1850
|
onComplete(c, d, p) {
|
|
1849
|
-
const
|
|
1850
|
-
|
|
1851
|
+
const u = c;
|
|
1852
|
+
u.status = p.status, u.response = JSON.parse(p.response), console.log("✅ _3dSwym_sendDirectMessageData => ", u), n && n(u);
|
|
1851
1853
|
},
|
|
1852
1854
|
onFailure(c, d) {
|
|
1853
1855
|
const p = c;
|
|
@@ -1896,23 +1898,65 @@ function at(e, t, n = void 0, s = void 0) {
|
|
|
1896
1898
|
Accept: "application/json",
|
|
1897
1899
|
"X-DS-SWYM-CSRFTOKEN": c.result.ServerToken
|
|
1898
1900
|
};
|
|
1899
|
-
|
|
1901
|
+
f(i, {
|
|
1900
1902
|
method: "POST",
|
|
1901
1903
|
headers: d,
|
|
1902
1904
|
data: JSON.stringify(a),
|
|
1903
1905
|
type: "json",
|
|
1904
|
-
onComplete(p,
|
|
1905
|
-
const
|
|
1906
|
-
|
|
1906
|
+
onComplete(p, u, m) {
|
|
1907
|
+
const l = JSON.parse(p);
|
|
1908
|
+
l.status = m.status, l.response = m.response, n && n(l);
|
|
1907
1909
|
},
|
|
1908
|
-
onFailure(p,
|
|
1909
|
-
const
|
|
1910
|
-
|
|
1910
|
+
onFailure(p, u, m) {
|
|
1911
|
+
const l = p;
|
|
1912
|
+
l.status = u.status, l.response = u.errormsg, s && s(l);
|
|
1911
1913
|
}
|
|
1912
1914
|
});
|
|
1913
1915
|
});
|
|
1914
1916
|
}
|
|
1915
|
-
function ot(e, t
|
|
1917
|
+
function ot(e, t = void 0, n = void 0) {
|
|
1918
|
+
const s = { base: e.baseURL, uri: "/api/idea/add" };
|
|
1919
|
+
if (e.swymCommunities.findIndex(
|
|
1920
|
+
(o) => o.id === e.community_id
|
|
1921
|
+
) === -1) {
|
|
1922
|
+
console.log(
|
|
1923
|
+
"la communauté n'existe pas dans la liste des communautés du Swym"
|
|
1924
|
+
);
|
|
1925
|
+
return;
|
|
1926
|
+
}
|
|
1927
|
+
const r = {
|
|
1928
|
+
params: {
|
|
1929
|
+
title: e.title,
|
|
1930
|
+
// String, le nom de l'affaire
|
|
1931
|
+
community_id: e.community_id,
|
|
1932
|
+
// String, l'id de la communauté
|
|
1933
|
+
message: e.message,
|
|
1934
|
+
// templateAffaireMessage(), // STRING => le contenu du message doit être au format HTML
|
|
1935
|
+
published: 1
|
|
1936
|
+
// 1 publier, 0 brouillon
|
|
1937
|
+
}
|
|
1938
|
+
};
|
|
1939
|
+
w((o) => {
|
|
1940
|
+
const a = {
|
|
1941
|
+
headers: {
|
|
1942
|
+
"Content-type": "application/json;charset=UTF-8",
|
|
1943
|
+
Accept: "application/json",
|
|
1944
|
+
"X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
|
|
1945
|
+
},
|
|
1946
|
+
method: "POST",
|
|
1947
|
+
data: JSON.stringify(r),
|
|
1948
|
+
onComplete(c, d, p) {
|
|
1949
|
+
const u = { response: c };
|
|
1950
|
+
typeof u.response == "string" && (u.response = JSON.parse(u.response)), u.status = p.status, t && t(u);
|
|
1951
|
+
},
|
|
1952
|
+
onFailure(c, d, p) {
|
|
1953
|
+
n && n({ response: c, headers: d, xhr: p });
|
|
1954
|
+
}
|
|
1955
|
+
};
|
|
1956
|
+
f(s.base + s.uri, a);
|
|
1957
|
+
});
|
|
1958
|
+
}
|
|
1959
|
+
function rt(e, t, n = void 0, s = void 0) {
|
|
1916
1960
|
const i = `${e.space}/api/idea/delete`, r = {
|
|
1917
1961
|
params: {
|
|
1918
1962
|
community_id: t.community_id,
|
|
@@ -1920,7 +1964,7 @@ function ot(e, t, n = void 0, s = void 0) {
|
|
|
1920
1964
|
}
|
|
1921
1965
|
};
|
|
1922
1966
|
w(e, (o) => {
|
|
1923
|
-
|
|
1967
|
+
f(i, {
|
|
1924
1968
|
method: "POST",
|
|
1925
1969
|
headers: {
|
|
1926
1970
|
"Content-type": "application/json;charset=UTF-8",
|
|
@@ -1939,43 +1983,80 @@ function ot(e, t, n = void 0, s = void 0) {
|
|
|
1939
1983
|
});
|
|
1940
1984
|
});
|
|
1941
1985
|
}
|
|
1942
|
-
function
|
|
1943
|
-
const
|
|
1944
|
-
|
|
1945
|
-
|
|
1986
|
+
function ct(e, t = void 0, n = void 0) {
|
|
1987
|
+
const s = `${e.space}/api/idea/get`;
|
|
1988
|
+
if (e.idPost === "") {
|
|
1989
|
+
const r = "☠️ idPost est vide, vous devez renseigner un identifiant de post";
|
|
1990
|
+
throw new Error(`Erreur sur cette requête : ${s}`, { cause: r });
|
|
1991
|
+
}
|
|
1992
|
+
const i = {
|
|
1946
1993
|
params: {
|
|
1947
|
-
id:
|
|
1994
|
+
id: e.idPost
|
|
1948
1995
|
}
|
|
1949
1996
|
};
|
|
1950
|
-
w(e, (
|
|
1951
|
-
|
|
1997
|
+
w(e, (r) => {
|
|
1998
|
+
f(s, {
|
|
1952
1999
|
method: "POST",
|
|
1953
2000
|
headers: {
|
|
1954
2001
|
"Content-type": "application/json;charset=UTF-8",
|
|
1955
2002
|
Accept: "application/json",
|
|
1956
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
2003
|
+
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
|
|
1957
2004
|
},
|
|
1958
|
-
data: JSON.stringify(
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
d.msg = d.result.message, n && n(d);
|
|
2005
|
+
data: JSON.stringify(i),
|
|
2006
|
+
onComplete(o) {
|
|
2007
|
+
const a = { response: o };
|
|
2008
|
+
a.msg = a.result.message, t && t(a);
|
|
1963
2009
|
},
|
|
1964
|
-
onFailure(
|
|
1965
|
-
const
|
|
1966
|
-
|
|
2010
|
+
onFailure(o) {
|
|
2011
|
+
const a = o;
|
|
2012
|
+
a.status = headers.status, a.response = headers.errormsg, n && n(a);
|
|
1967
2013
|
}
|
|
1968
2014
|
});
|
|
1969
2015
|
});
|
|
1970
2016
|
}
|
|
1971
|
-
function
|
|
2017
|
+
function dt(e, t, n) {
|
|
2018
|
+
const s = {
|
|
2019
|
+
base: `${e.space}/api/idea/edit`,
|
|
2020
|
+
uri: "/api/idea/edit"
|
|
2021
|
+
}, i = {
|
|
2022
|
+
params: {
|
|
2023
|
+
out: "false",
|
|
2024
|
+
id: e.post_id,
|
|
2025
|
+
title: e.title,
|
|
2026
|
+
community_id: e.community_id,
|
|
2027
|
+
status_comment: e.status_comment,
|
|
2028
|
+
status_id: e.status_id,
|
|
2029
|
+
message: e.message,
|
|
2030
|
+
published: "1"
|
|
2031
|
+
}
|
|
2032
|
+
};
|
|
2033
|
+
console.log("body", i), _3DSwym_getToken((r) => {
|
|
2034
|
+
const o = {
|
|
2035
|
+
method: "POST",
|
|
2036
|
+
headers: {
|
|
2037
|
+
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken,
|
|
2038
|
+
"Content-type": "application/json;charset=UTF-8"
|
|
2039
|
+
},
|
|
2040
|
+
data: JSON.stringify(i),
|
|
2041
|
+
onComplete(a) {
|
|
2042
|
+
const c = JSON.parse(a);
|
|
2043
|
+
t && t(c);
|
|
2044
|
+
},
|
|
2045
|
+
onFailure(a) {
|
|
2046
|
+
n && n(a);
|
|
2047
|
+
}
|
|
2048
|
+
};
|
|
2049
|
+
f(s.base + s.uri, o);
|
|
2050
|
+
});
|
|
2051
|
+
}
|
|
2052
|
+
function pt(e, t = de, n = void 0, s = void 0) {
|
|
1972
2053
|
const i = {
|
|
1973
2054
|
uri: "/api/idea/list",
|
|
1974
2055
|
comId: `/community_id/${e.tenant.toLowerCase() === "r1132101716373" ? t.community_id : "bgnIsG74SUWswyGzS6NC6g"}`,
|
|
1975
2056
|
limit: `/limit/${t.limit ? t.limit : 10}`
|
|
1976
2057
|
}, r = `${e.space}${i.uri}${i.comId}${i.limit}`;
|
|
1977
2058
|
w(e, (o) => {
|
|
1978
|
-
|
|
2059
|
+
f(r, {
|
|
1979
2060
|
method: "GET",
|
|
1980
2061
|
headers: {
|
|
1981
2062
|
"X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
|
|
@@ -2066,10 +2147,10 @@ function pe(e) {
|
|
|
2066
2147
|
<p>
|
|
2067
2148
|
</p>` : e;
|
|
2068
2149
|
}
|
|
2069
|
-
function
|
|
2150
|
+
function ut(e, t = void 0, n = void 0) {
|
|
2070
2151
|
const s = e.space + "/api/user/getcurrent/";
|
|
2071
2152
|
w(e, (i) => {
|
|
2072
|
-
|
|
2153
|
+
f(s, {
|
|
2073
2154
|
method: "GET",
|
|
2074
2155
|
headers: {
|
|
2075
2156
|
"X-DS-SWYM-CSRFTOKEN": i.result.ServerToken
|
|
@@ -2085,12 +2166,12 @@ function dt(e, t = void 0, n = void 0) {
|
|
|
2085
2166
|
});
|
|
2086
2167
|
});
|
|
2087
2168
|
}
|
|
2088
|
-
function
|
|
2169
|
+
function lt(e, t, n = void 0, s = void 0) {
|
|
2089
2170
|
const i = e.space + "/api/user/find/login/" + t;
|
|
2090
2171
|
w(
|
|
2091
2172
|
e,
|
|
2092
2173
|
(r) => {
|
|
2093
|
-
|
|
2174
|
+
f(i, {
|
|
2094
2175
|
method: "GET",
|
|
2095
2176
|
headers: { "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken },
|
|
2096
2177
|
onComplete(o, a, c) {
|
|
@@ -2105,18 +2186,18 @@ function pt(e, t, n = void 0, s = void 0) {
|
|
|
2105
2186
|
s
|
|
2106
2187
|
);
|
|
2107
2188
|
}
|
|
2108
|
-
function
|
|
2109
|
-
e.tenant &&
|
|
2189
|
+
function ft(e, t = void 0, n = void 0) {
|
|
2190
|
+
e.tenant && T(e, (s) => {
|
|
2110
2191
|
console.log("serviceUrls", s);
|
|
2111
2192
|
const i = s.services.find((r) => r.id === "businessprocess")?.url + "/api/v2";
|
|
2112
2193
|
return t && t(i), i;
|
|
2113
2194
|
});
|
|
2114
2195
|
}
|
|
2115
|
-
function
|
|
2116
|
-
e.tenant &&
|
|
2196
|
+
function mt(e, t = void 0, n = void 0) {
|
|
2197
|
+
e.tenant && T(e, (s) => {
|
|
2117
2198
|
console.log("serviceUrls", s);
|
|
2118
2199
|
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`;
|
|
2119
|
-
|
|
2200
|
+
f(o, {
|
|
2120
2201
|
async onComplete(a) {
|
|
2121
2202
|
console.log("response", a);
|
|
2122
2203
|
const c = typeof a == "string" ? JSON.parse(a)?.x3ds_service_redirect_url : a?.x3ds_service_redirect_url;
|
|
@@ -2132,7 +2213,7 @@ function ut(e, t = void 0, n = void 0) {
|
|
|
2132
2213
|
});
|
|
2133
2214
|
});
|
|
2134
2215
|
}
|
|
2135
|
-
function
|
|
2216
|
+
function gt(e, t = void 0, n = void 0) {
|
|
2136
2217
|
if (e.tenant) {
|
|
2137
2218
|
const s = e.tenant.toLowerCase();
|
|
2138
2219
|
fetch(`https://api.uixhome.fr/${s}/iterop/jwtuser`, {
|
|
@@ -2144,8 +2225,8 @@ function ft(e, t = void 0, n = void 0) {
|
|
|
2144
2225
|
});
|
|
2145
2226
|
}
|
|
2146
2227
|
}
|
|
2147
|
-
async function
|
|
2148
|
-
e.tenant &&
|
|
2228
|
+
async function ht(e, t, n = void 0, s = void 0) {
|
|
2229
|
+
e.tenant && T(e, (i) => {
|
|
2149
2230
|
const o = `${i.services.find((c) => c.id === "businessprocess")?.url + "/api/v2"}/identity/users`, a = e.tenant.toLowerCase();
|
|
2150
2231
|
fetch(`https://api.uixhome.fr/${a}/iterop/listusers?t=${t}&s=${o}`, {
|
|
2151
2232
|
method: "POST"
|
|
@@ -2156,8 +2237,8 @@ async function mt(e, t, n = void 0, s = void 0) {
|
|
|
2156
2237
|
});
|
|
2157
2238
|
});
|
|
2158
2239
|
}
|
|
2159
|
-
async function
|
|
2160
|
-
e.tenant &&
|
|
2240
|
+
async function St(e, t, n = void 0, s = void 0) {
|
|
2241
|
+
e.tenant && T(e, (i) => {
|
|
2161
2242
|
const o = `${i.services.find((c) => c.id === "businessprocess")?.url + "/api/v2"}/repository/data/tables`, a = e.tenant.toLowerCase();
|
|
2162
2243
|
fetch(`https://api.uixhome.fr/${a}/iterop/repository/data/tables?t=${t}&s=${o}`, {
|
|
2163
2244
|
method: "GET"
|
|
@@ -2168,7 +2249,7 @@ async function gt(e, t, n = void 0, s = void 0) {
|
|
|
2168
2249
|
});
|
|
2169
2250
|
});
|
|
2170
2251
|
}
|
|
2171
|
-
async function
|
|
2252
|
+
async function yt(e, t, n, s = void 0, i = void 0) {
|
|
2172
2253
|
if (e.tenant) {
|
|
2173
2254
|
const r = e.tenant.toLowerCase();
|
|
2174
2255
|
fetch(`https://api.uixhome.fr/${r}/iterop//businesstable/${n}?t=${t}`, {
|
|
@@ -2180,7 +2261,7 @@ async function ht(e, t, n, s = void 0, i = void 0) {
|
|
|
2180
2261
|
});
|
|
2181
2262
|
}
|
|
2182
2263
|
}
|
|
2183
|
-
async function
|
|
2264
|
+
async function _t(e, t, n, s = void 0, i = void 0) {
|
|
2184
2265
|
if (e.tenant) {
|
|
2185
2266
|
const r = e.tenant.toLowerCase();
|
|
2186
2267
|
fetch(`https://api.uixhome.fr/${r}/iterop//businesstable/${n}/rows/?t=${t}`, {
|
|
@@ -2192,8 +2273,8 @@ async function St(e, t, n, s = void 0, i = void 0) {
|
|
|
2192
2273
|
});
|
|
2193
2274
|
}
|
|
2194
2275
|
}
|
|
2195
|
-
async function
|
|
2196
|
-
e.tenant &&
|
|
2276
|
+
async function wt(e, t, n, s, i = void 0, r = void 0) {
|
|
2277
|
+
e.tenant && T(e, (o) => {
|
|
2197
2278
|
o.services.find((c) => c.id === "businessprocess")?.url + "";
|
|
2198
2279
|
const a = e.tenant.toLowerCase();
|
|
2199
2280
|
fetch(
|
|
@@ -2208,8 +2289,8 @@ async function yt(e, t, n, s, i = void 0, r = void 0) {
|
|
|
2208
2289
|
});
|
|
2209
2290
|
});
|
|
2210
2291
|
}
|
|
2211
|
-
async function
|
|
2212
|
-
e.tenant &&
|
|
2292
|
+
async function Tt(e, t, n, s, i, r = void 0, o = void 0) {
|
|
2293
|
+
e.tenant && T(e, (a) => {
|
|
2213
2294
|
a.services.find((d) => d.id === "businessprocess")?.url + "";
|
|
2214
2295
|
const c = e.tenant.toLowerCase();
|
|
2215
2296
|
fetch(
|
|
@@ -2224,8 +2305,8 @@ async function _t(e, t, n, s, i, r = void 0, o = void 0) {
|
|
|
2224
2305
|
});
|
|
2225
2306
|
});
|
|
2226
2307
|
}
|
|
2227
|
-
async function
|
|
2228
|
-
e.tenant &&
|
|
2308
|
+
async function Ct(e, t, n, s = void 0, i = void 0) {
|
|
2309
|
+
e.tenant && T(e, (r) => {
|
|
2229
2310
|
r.services.find((a) => a.id === "businessprocess")?.url + "";
|
|
2230
2311
|
const o = e.tenant.toLowerCase();
|
|
2231
2312
|
fetch(
|
|
@@ -2240,8 +2321,8 @@ async function wt(e, t, n, s = void 0, i = void 0) {
|
|
|
2240
2321
|
});
|
|
2241
2322
|
});
|
|
2242
2323
|
}
|
|
2243
|
-
async function
|
|
2244
|
-
e.tenant &&
|
|
2324
|
+
async function bt(e, t, n, s, i, r = void 0, o = void 0) {
|
|
2325
|
+
e.tenant && T(e, (a) => {
|
|
2245
2326
|
a.services.find((d) => d.id === "businessprocess")?.url + "";
|
|
2246
2327
|
const c = e.tenant.toLowerCase();
|
|
2247
2328
|
fetch(
|
|
@@ -2256,8 +2337,8 @@ async function Ct(e, t, n, s, i, r = void 0, o = void 0) {
|
|
|
2256
2337
|
});
|
|
2257
2338
|
});
|
|
2258
2339
|
}
|
|
2259
|
-
async function
|
|
2260
|
-
e.tenant &&
|
|
2340
|
+
async function Ot(e, t, n, s, i = void 0, r = void 0) {
|
|
2341
|
+
e.tenant && T(e, (o) => {
|
|
2261
2342
|
o.services.find((c) => c.id === "businessprocess")?.url + "";
|
|
2262
2343
|
const a = e.tenant.toLowerCase();
|
|
2263
2344
|
fetch(
|
|
@@ -2272,11 +2353,11 @@ async function Tt(e, t, n, s, i = void 0, r = void 0) {
|
|
|
2272
2353
|
});
|
|
2273
2354
|
});
|
|
2274
2355
|
}
|
|
2275
|
-
function
|
|
2356
|
+
function $t(e) {
|
|
2276
2357
|
const t = "Hello " + e;
|
|
2277
2358
|
return console.log(t), t;
|
|
2278
2359
|
}
|
|
2279
|
-
function
|
|
2360
|
+
function vt(e, t = void 0, n = void 0) {
|
|
2280
2361
|
return console.log("credentials", e), new Promise((s) => {
|
|
2281
2362
|
if (e.token === "" && b(e), !e.space || e.space === "") {
|
|
2282
2363
|
const o = W();
|
|
@@ -2294,13 +2375,13 @@ function Ot(e, t = void 0, n = void 0) {
|
|
|
2294
2375
|
!0
|
|
2295
2376
|
);
|
|
2296
2377
|
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
|
-
|
|
2378
|
+
f(r, {
|
|
2298
2379
|
onComplete(o) {
|
|
2299
2380
|
if (Array.isArray(JSON.parse(o))) {
|
|
2300
2381
|
const a = JSON.parse(o);
|
|
2301
2382
|
console.log("serviceId=3dsearch", a);
|
|
2302
2383
|
const c = `${a[0].services[0].url}/search?xrequestedwith=xmlhttprequest`;
|
|
2303
|
-
|
|
2384
|
+
f(c, {
|
|
2304
2385
|
method: "POST",
|
|
2305
2386
|
headers: {
|
|
2306
2387
|
Accept: "application/json",
|
|
@@ -2357,9 +2438,9 @@ function Ot(e, t = void 0, n = void 0) {
|
|
|
2357
2438
|
}
|
|
2358
2439
|
export {
|
|
2359
2440
|
D as UUID,
|
|
2360
|
-
|
|
2441
|
+
vt as _3DSearch_usersGroup,
|
|
2361
2442
|
Re as _3DSpace_Create_Doc,
|
|
2362
|
-
|
|
2443
|
+
xe as _3DSpace_Update_Doc,
|
|
2363
2444
|
Ke as _3DSpace_bookmark_addSubsciptions,
|
|
2364
2445
|
Ee as _3DSpace_bookmark_newWorkspace,
|
|
2365
2446
|
b as _3DSpace_csrf,
|
|
@@ -2367,70 +2448,72 @@ export {
|
|
|
2367
2448
|
Z as _3DSpace_download_multidoc,
|
|
2368
2449
|
M as _3DSpace_file_update,
|
|
2369
2450
|
Q as _3DSpace_file_update_csr,
|
|
2370
|
-
|
|
2451
|
+
je as _3DSpace_file_url_csr,
|
|
2371
2452
|
U as _3DSpace_get_csrf,
|
|
2372
2453
|
L as _3DSpace_get_docInfo,
|
|
2373
2454
|
ee as _3DSpace_get_downloadTicket_multidoc,
|
|
2374
|
-
|
|
2455
|
+
Pe as _3DSpace_get_multiDocInfo,
|
|
2375
2456
|
$ as _3DSpace_get_securityContexts,
|
|
2376
|
-
|
|
2457
|
+
P as _3DSpace_get_ticket,
|
|
2377
2458
|
Ge as _3DSpace_lifecycle_changeRevision,
|
|
2378
2459
|
Le as _3DSpace_lifecycle_changeState,
|
|
2379
2460
|
Me as _3DSpace_lifecycle_getGraph,
|
|
2380
2461
|
Je as _3DSpace_lifecycle_getNextRevision,
|
|
2381
2462
|
De as _3DSpace_lifecycle_getNextStates,
|
|
2382
2463
|
it as _3DSwym_buildDirectMessage,
|
|
2383
|
-
|
|
2464
|
+
rt as _3DSwym_deleteIdea,
|
|
2465
|
+
dt as _3DSwym_editIdea,
|
|
2384
2466
|
re as _3DSwym_findCommunityToInstantMSG,
|
|
2385
2467
|
nt as _3DSwym_getAllCommunities,
|
|
2386
2468
|
et as _3DSwym_getAllNews,
|
|
2387
2469
|
tt as _3DSwym_getFamiliarPeople,
|
|
2388
2470
|
st as _3DSwym_getIdeaStatusMaturity,
|
|
2389
2471
|
oe as _3DSwym_getMembersCommunity,
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2472
|
+
ct as _3DSwym_getOneIdea,
|
|
2473
|
+
pt as _3DSwym_get_AllSWYMIdeas,
|
|
2474
|
+
w as _3DSwym_get_Token,
|
|
2475
|
+
ut as _3DSwym_get_currentUser,
|
|
2476
|
+
lt as _3DSwym_get_findUser,
|
|
2477
|
+
ot as _3DSwym_postIdea,
|
|
2478
|
+
at as _3DSwym_postIdeaTemplate,
|
|
2479
|
+
x as _3DSwym_sendMessageData,
|
|
2397
2480
|
$e as _AppMngt_get_info_user,
|
|
2398
2481
|
Oe as _AppMngt_get_users,
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2482
|
+
Tt as _Iterop_AddOrRemoveRows,
|
|
2483
|
+
mt as _Iterop_Auth_CAS,
|
|
2484
|
+
Ct as _Iterop_GetOneDependencyTable,
|
|
2485
|
+
ht as _Iterop_ListUsers,
|
|
2486
|
+
bt as _Iterop_PatchDependencyTable,
|
|
2487
|
+
Ot as _Iterop_PutDependencyTable,
|
|
2488
|
+
St as _Iterop_getAllBusinessTables,
|
|
2489
|
+
yt as _Iterop_getOneBusinessTable,
|
|
2490
|
+
_t as _Iterop_getOneBusinessTableRows,
|
|
2491
|
+
gt as _Iterop_jwtUser,
|
|
2492
|
+
wt as _Iterop_runProcess,
|
|
2410
2493
|
W as _getPlateformInfos,
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2494
|
+
Te as _getPlatformServices,
|
|
2495
|
+
T as _getServiceUrl,
|
|
2496
|
+
Ce as _getServiceUrl_3DPassport,
|
|
2497
|
+
ft as _getServiceUrl_Iterop,
|
|
2498
|
+
f as _httpCallAuthenticated,
|
|
2416
2499
|
ye as _setDraggable,
|
|
2417
2500
|
we as _setDroppable,
|
|
2418
2501
|
_e as _setupTagger,
|
|
2419
2502
|
qe as addTagToDoc,
|
|
2420
2503
|
be as compass_getListAdditionalApps,
|
|
2421
|
-
|
|
2504
|
+
V as couleurs,
|
|
2422
2505
|
ve as createUserGroups,
|
|
2423
2506
|
te as dataMixing,
|
|
2424
2507
|
Ae as deleteUserGroups,
|
|
2425
2508
|
ge as findAdresse,
|
|
2426
|
-
|
|
2509
|
+
Be as getAllContextSecurity,
|
|
2427
2510
|
Y as getCSRFToken,
|
|
2428
2511
|
me as getCommunes,
|
|
2429
2512
|
Ne as getComplementUG,
|
|
2430
|
-
|
|
2513
|
+
Ve as getDataFrom3DSpace,
|
|
2431
2514
|
he as getDataFromGouvFr,
|
|
2432
|
-
|
|
2433
|
-
|
|
2515
|
+
ze as getDatasByTenant,
|
|
2516
|
+
He as getDatasFrom3DSpace,
|
|
2434
2517
|
We as getDownloadDocument,
|
|
2435
2518
|
Ze as getInfoDocTags,
|
|
2436
2519
|
Ie as getUserGroupsList,
|
|
@@ -2439,9 +2522,9 @@ export {
|
|
|
2439
2522
|
Ue as patchUserGroups,
|
|
2440
2523
|
ke as patchUserGroupsControl,
|
|
2441
2524
|
Xe as pushDataIn3DSpace,
|
|
2442
|
-
|
|
2525
|
+
Fe as readUserGroupControl,
|
|
2443
2526
|
Qe as removeTagToDoc,
|
|
2444
|
-
|
|
2527
|
+
$t as sayHello,
|
|
2445
2528
|
Se as updateEvent
|
|
2446
2529
|
};
|
|
2447
2530
|
//# sourceMappingURL=wb3Api.js.map
|