@beam3_dev/api_module 0.0.182 → 0.0.184
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 +343 -265
- 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 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,11 +351,11 @@ 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
|
}
|
|
358
|
-
function
|
|
358
|
+
function Ue(e, t, n, s = void 0, i = void 0) {
|
|
359
359
|
const { space: r, tenant: o } = e, a = {
|
|
360
360
|
URITI: "/3drdfpersist/resources/v1/template-instances",
|
|
361
361
|
URIUGr: "/3drdfpersist/resources/v1/usersgroup",
|
|
@@ -365,24 +365,24 @@ function ke(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
|
-
function
|
|
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 Ue(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 Pe(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
|
},
|
|
@@ -440,8 +440,8 @@ var H = 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) {
|
|
@@ -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 je(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"
|
|
@@ -506,10 +506,10 @@ async function je(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
|
+
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 k(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 j(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
|
|
@@ -605,7 +605,7 @@ function M(e, t, n, s, i, r = void 0, o = void 0) {
|
|
|
605
605
|
r,
|
|
606
606
|
o
|
|
607
607
|
);
|
|
608
|
-
e.token ? a() :
|
|
608
|
+
e.token ? a() : U(
|
|
609
609
|
e,
|
|
610
610
|
t,
|
|
611
611
|
(c) => {
|
|
@@ -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: {
|
|
@@ -662,14 +662,14 @@ function Q(e, t, n, s, i, r, o = void 0, a = void 0) {
|
|
|
662
662
|
onFailure(v) {
|
|
663
663
|
a && a(v);
|
|
664
664
|
}
|
|
665
|
-
},
|
|
666
|
-
|
|
667
|
-
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`,
|
|
668
668
|
_
|
|
669
669
|
);
|
|
670
670
|
}, S.onFailure = function(y) {
|
|
671
671
|
a && a(y);
|
|
672
|
-
}, S.timeout = 0,
|
|
672
|
+
}, S.timeout = 0, f(l.ticketURL, S);
|
|
673
673
|
}
|
|
674
674
|
});
|
|
675
675
|
}
|
|
@@ -702,22 +702,22 @@ async function Re(e, t, n, s, i = void 0, r = void 0) {
|
|
|
702
702
|
const o = e.space, a = e.token, c = e.ctx;
|
|
703
703
|
if (o !== "") {
|
|
704
704
|
let d = `${o}/resources/v1/modeler/documents/files/CheckinTicket`;
|
|
705
|
-
|
|
705
|
+
f(d, {
|
|
706
706
|
method: "PUT",
|
|
707
707
|
headers: {
|
|
708
708
|
ENO_CSRF_TOKEN: a
|
|
709
709
|
},
|
|
710
|
-
onComplete(p,
|
|
711
|
-
let
|
|
710
|
+
onComplete(p, u, m) {
|
|
711
|
+
let l = JSON.parse(p).data[0].dataelements, g = new FormData(), h;
|
|
712
712
|
t instanceof Blob ? h = t : h = new Blob([t], {
|
|
713
713
|
type: "text/plain"
|
|
714
|
-
}), g.append("__fcs__jobTicket",
|
|
714
|
+
}), g.append("__fcs__jobTicket", l.ticket), g.append("filename", h, n);
|
|
715
715
|
const S = (_) => _.indexOf(".") === -1 ? _ : _.split(".").slice(0, -1).join(".");
|
|
716
716
|
let y = {
|
|
717
717
|
method: "POST",
|
|
718
718
|
data: g,
|
|
719
719
|
onComplete(_) {
|
|
720
|
-
let
|
|
720
|
+
let C = D(), v = {
|
|
721
721
|
method: "POST",
|
|
722
722
|
headers: {
|
|
723
723
|
ENO_CSRF_TOKEN: a,
|
|
@@ -743,19 +743,19 @@ async function Re(e, t, n, s, i = void 0, r = void 0) {
|
|
|
743
743
|
}
|
|
744
744
|
]
|
|
745
745
|
},
|
|
746
|
-
tempId:
|
|
746
|
+
tempId: C
|
|
747
747
|
}
|
|
748
748
|
]
|
|
749
749
|
}),
|
|
750
750
|
type: "json",
|
|
751
|
-
onComplete(
|
|
752
|
-
i && i(
|
|
751
|
+
onComplete(k) {
|
|
752
|
+
i && i(k);
|
|
753
753
|
},
|
|
754
|
-
onFailure(
|
|
755
|
-
r && r(
|
|
754
|
+
onFailure(k) {
|
|
755
|
+
r && r(k);
|
|
756
756
|
}
|
|
757
757
|
};
|
|
758
|
-
|
|
758
|
+
f(
|
|
759
759
|
o + "/resources/v1/modeler/documents/?SecurityContext=ctx::" + c,
|
|
760
760
|
v
|
|
761
761
|
);
|
|
@@ -765,51 +765,51 @@ async function Re(e, t, n, s, i = void 0, r = void 0) {
|
|
|
765
765
|
},
|
|
766
766
|
timeout: 0
|
|
767
767
|
};
|
|
768
|
-
|
|
768
|
+
f(l.ticketURL, y);
|
|
769
769
|
}
|
|
770
770
|
});
|
|
771
771
|
}
|
|
772
772
|
}
|
|
773
773
|
function $(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0, o = !1) {
|
|
774
774
|
const a = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
|
|
775
|
-
|
|
775
|
+
f(a, {
|
|
776
776
|
method: "GET",
|
|
777
777
|
onComplete(c) {
|
|
778
778
|
const d = JSON.parse(c);
|
|
779
|
-
let p = "",
|
|
779
|
+
let p = "", u, m, l;
|
|
780
780
|
if (t) {
|
|
781
781
|
let g = d.collabspaces.find((h) => h.title === t);
|
|
782
782
|
if (g) {
|
|
783
|
-
|
|
783
|
+
u = t;
|
|
784
784
|
let h = g.couples;
|
|
785
785
|
h = h.filter(
|
|
786
786
|
(S, y, _) => y === _.findIndex(
|
|
787
|
-
(
|
|
787
|
+
(C) => C.organization.pid === S.organization.pid && C.role.pid === S.role.pid
|
|
788
788
|
)
|
|
789
789
|
), n && (Array.isArray(n) ? n.forEach((S) => {
|
|
790
|
-
|
|
790
|
+
l || h.forEach((y) => {
|
|
791
791
|
if (S === y.role.name && s === y.organization.title)
|
|
792
|
-
|
|
792
|
+
l = S, m = s;
|
|
793
793
|
else if (S === y.role.name) {
|
|
794
794
|
let _ = h.filter(
|
|
795
|
-
(
|
|
795
|
+
(C) => C.role.name === S
|
|
796
796
|
);
|
|
797
|
-
_.length === 1 ? (
|
|
797
|
+
_.length === 1 ? (l = _[0].role.name, m = _[0].organization.title) : r(_);
|
|
798
798
|
}
|
|
799
799
|
});
|
|
800
800
|
}) : h.forEach((S) => {
|
|
801
801
|
if (n === S.role.name && s === S.organization.title)
|
|
802
|
-
|
|
802
|
+
l = n, m = s;
|
|
803
803
|
else if (n === S.role.name) {
|
|
804
804
|
let y = h.filter(
|
|
805
805
|
(_) => _.role.name === n
|
|
806
806
|
);
|
|
807
|
-
y.length === 1 ? (
|
|
807
|
+
y.length === 1 ? (l = y[0].role.name, m = y[0].organization.title) : r(y);
|
|
808
808
|
}
|
|
809
809
|
}));
|
|
810
810
|
}
|
|
811
811
|
}
|
|
812
|
-
|
|
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));
|
|
813
813
|
},
|
|
814
814
|
onFailure(c, d) {
|
|
815
815
|
console.warn("Erreur de récupération du contexte de sécurité. => ", {
|
|
@@ -835,14 +835,14 @@ async function J(e, t = void 0, n = void 0) {
|
|
|
835
835
|
console.log("☠️ error => ", s);
|
|
836
836
|
}
|
|
837
837
|
), new Promise((s, i) => {
|
|
838
|
-
|
|
838
|
+
P(
|
|
839
839
|
e,
|
|
840
840
|
(r) => {
|
|
841
841
|
e?.returnType === "blob" ? (console.log("ticketURL blob", r), fetch(r).then((o) => o.blob()).then((o) => {
|
|
842
842
|
t && t(o);
|
|
843
843
|
}).catch((o) => {
|
|
844
844
|
n && n(o);
|
|
845
|
-
})) :
|
|
845
|
+
})) : f(r, {
|
|
846
846
|
onComplete(o) {
|
|
847
847
|
let a;
|
|
848
848
|
try {
|
|
@@ -913,7 +913,7 @@ function ee(e, t, n = void 0, s = void 0, i = void 0) {
|
|
|
913
913
|
data: r
|
|
914
914
|
});
|
|
915
915
|
const a = `${e.space}/resources/v1/modeler/documents/DownloadTicket?tenant=${e.tenant}&e6w-lang=fr&e6w-timezone=-120`;
|
|
916
|
-
|
|
916
|
+
f(a, {
|
|
917
917
|
method: "PUT",
|
|
918
918
|
data: o,
|
|
919
919
|
type: "json",
|
|
@@ -921,28 +921,28 @@ function ee(e, t, n = void 0, s = void 0, i = void 0) {
|
|
|
921
921
|
const d = c.data;
|
|
922
922
|
c.success === !0 && (n && n(), d.forEach((p) => {
|
|
923
923
|
try {
|
|
924
|
-
const
|
|
925
|
-
m
|
|
926
|
-
onComplete: (
|
|
924
|
+
const u = p.dataelements.fileName, m = p.dataelements.ticketURL;
|
|
925
|
+
f(m, {
|
|
926
|
+
onComplete: (l, g) => {
|
|
927
927
|
let h;
|
|
928
928
|
try {
|
|
929
|
-
h = JSON.parse(
|
|
929
|
+
h = JSON.parse(l);
|
|
930
930
|
} catch {
|
|
931
|
-
h =
|
|
931
|
+
h = l.blob();
|
|
932
932
|
}
|
|
933
933
|
s && s({
|
|
934
934
|
objectId: p.id,
|
|
935
935
|
headers: g,
|
|
936
|
-
fileName:
|
|
936
|
+
fileName: u,
|
|
937
937
|
data: h
|
|
938
938
|
});
|
|
939
939
|
},
|
|
940
|
-
onFailure: (
|
|
941
|
-
console.log("error http",
|
|
940
|
+
onFailure: (l) => {
|
|
941
|
+
console.log("error http", l);
|
|
942
942
|
}
|
|
943
943
|
});
|
|
944
|
-
} catch (
|
|
945
|
-
console.log(
|
|
944
|
+
} catch (u) {
|
|
945
|
+
console.log(u), i && i(u);
|
|
946
946
|
}
|
|
947
947
|
}));
|
|
948
948
|
},
|
|
@@ -988,7 +988,7 @@ function De(e, t, n = void 0, s = void 0) {
|
|
|
988
988
|
s && s(a);
|
|
989
989
|
}
|
|
990
990
|
};
|
|
991
|
-
|
|
991
|
+
f(r, o);
|
|
992
992
|
}
|
|
993
993
|
});
|
|
994
994
|
}
|
|
@@ -1030,7 +1030,7 @@ function Le(e, t, n, s = void 0, i = void 0) {
|
|
|
1030
1030
|
i && i(c);
|
|
1031
1031
|
}
|
|
1032
1032
|
};
|
|
1033
|
-
|
|
1033
|
+
f(o, a);
|
|
1034
1034
|
}
|
|
1035
1035
|
});
|
|
1036
1036
|
}
|
|
@@ -1071,7 +1071,7 @@ function Me(e, t, n = void 0, s = void 0) {
|
|
|
1071
1071
|
s && s(a);
|
|
1072
1072
|
}
|
|
1073
1073
|
};
|
|
1074
|
-
|
|
1074
|
+
f(r, o);
|
|
1075
1075
|
}
|
|
1076
1076
|
});
|
|
1077
1077
|
}
|
|
@@ -1118,7 +1118,7 @@ function Je(e, t, n = void 0, s = void 0) {
|
|
|
1118
1118
|
s && s(a);
|
|
1119
1119
|
}
|
|
1120
1120
|
};
|
|
1121
|
-
|
|
1121
|
+
f(r, o);
|
|
1122
1122
|
}
|
|
1123
1123
|
});
|
|
1124
1124
|
}
|
|
@@ -1165,7 +1165,7 @@ function Ge(e, t, n, s = void 0, i = void 0) {
|
|
|
1165
1165
|
i && i(c);
|
|
1166
1166
|
}
|
|
1167
1167
|
};
|
|
1168
|
-
|
|
1168
|
+
f(o, a);
|
|
1169
1169
|
}
|
|
1170
1170
|
});
|
|
1171
1171
|
}
|
|
@@ -1192,14 +1192,14 @@ function Ee(e, t, n, s, i = void 0, r = void 0) {
|
|
|
1192
1192
|
},
|
|
1193
1193
|
data: JSON.stringify(d),
|
|
1194
1194
|
type: "json",
|
|
1195
|
-
onComplete(
|
|
1196
|
-
i && i(
|
|
1195
|
+
onComplete(u) {
|
|
1196
|
+
i && i(u);
|
|
1197
1197
|
},
|
|
1198
|
-
onFailure(
|
|
1199
|
-
r && r(
|
|
1198
|
+
onFailure(u) {
|
|
1199
|
+
r && r(u);
|
|
1200
1200
|
}
|
|
1201
1201
|
};
|
|
1202
|
-
|
|
1202
|
+
f(a, p);
|
|
1203
1203
|
});
|
|
1204
1204
|
}
|
|
1205
1205
|
function Ke(e, t, n, s, i = void 0, r = void 0) {
|
|
@@ -1226,13 +1226,13 @@ function Ke(e, t, n, s, i = void 0, r = void 0) {
|
|
|
1226
1226
|
});
|
|
1227
1227
|
}
|
|
1228
1228
|
//!SECTION
|
|
1229
|
-
function
|
|
1229
|
+
function Be(e, t = void 0, n = void 0) {
|
|
1230
1230
|
const s = {
|
|
1231
1231
|
base: `${e.space}`,
|
|
1232
1232
|
uri: "/resources/bps/cspaces",
|
|
1233
1233
|
optTenant: `tenant=${e.tenant}`
|
|
1234
1234
|
}, i = `${s.base}${s.uri}?${s.optTenant}`;
|
|
1235
|
-
|
|
1235
|
+
f(i, {
|
|
1236
1236
|
method: "GET",
|
|
1237
1237
|
headers: {
|
|
1238
1238
|
Accept: "application/json,text/javascript,*/*",
|
|
@@ -1247,12 +1247,12 @@ function Ve(e, t = void 0, n = void 0) {
|
|
|
1247
1247
|
}
|
|
1248
1248
|
});
|
|
1249
1249
|
}
|
|
1250
|
-
function
|
|
1251
|
-
|
|
1250
|
+
function Ve(e, t, n, s) {
|
|
1251
|
+
P(
|
|
1252
1252
|
e.space,
|
|
1253
1253
|
t,
|
|
1254
1254
|
(i) => {
|
|
1255
|
-
|
|
1255
|
+
f(i, {
|
|
1256
1256
|
header: { ENO_CSRF_TOKEN: e.token },
|
|
1257
1257
|
onComplete: (r) => {
|
|
1258
1258
|
n && n(r);
|
|
@@ -1266,8 +1266,8 @@ function Be(e, t, n, s) {
|
|
|
1266
1266
|
}
|
|
1267
1267
|
async function We(e, t, n = void 0, s = void 0) {
|
|
1268
1268
|
return new Promise((i) => {
|
|
1269
|
-
|
|
1270
|
-
|
|
1269
|
+
P(e, t, (r) => {
|
|
1270
|
+
f(r, {
|
|
1271
1271
|
onComplete: (o, a, c) => (i(JSON.parse(o)), n && n(JSON.parse(o), a, c), i),
|
|
1272
1272
|
onFailure: (o, a, c) => {
|
|
1273
1273
|
s && s(o, a, c), console.log(o, a?.errormsg);
|
|
@@ -1278,7 +1278,7 @@ async function We(e, t, n = void 0, s = void 0) {
|
|
|
1278
1278
|
}
|
|
1279
1279
|
function Xe(e, t, n, s = void 0, i = void 0) {
|
|
1280
1280
|
const r = new Blob([JSON.stringify(t)], { type: "text/plain" });
|
|
1281
|
-
|
|
1281
|
+
U(
|
|
1282
1282
|
e,
|
|
1283
1283
|
n,
|
|
1284
1284
|
(o) => {
|
|
@@ -1300,9 +1300,9 @@ function Xe(e, t, n, s = void 0, i = void 0) {
|
|
|
1300
1300
|
);
|
|
1301
1301
|
}
|
|
1302
1302
|
let G, E;
|
|
1303
|
-
const
|
|
1303
|
+
const j = [];
|
|
1304
1304
|
async function Ye(e, t = void 0, n = void 0) {
|
|
1305
|
-
e.objID && e.objID !== "" ?
|
|
1305
|
+
e.objID && e.objID !== "" ? U(
|
|
1306
1306
|
e,
|
|
1307
1307
|
(s) => {
|
|
1308
1308
|
t && t(s);
|
|
@@ -1354,7 +1354,7 @@ function te(e, t, n = void 0, s = void 0) {
|
|
|
1354
1354
|
G,
|
|
1355
1355
|
(i) => {
|
|
1356
1356
|
const r = [...t];
|
|
1357
|
-
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);
|
|
1358
1358
|
},
|
|
1359
1359
|
(i) => {
|
|
1360
1360
|
s && (s(i), console.log(i));
|
|
@@ -1386,7 +1386,7 @@ function qe(e, t, n = void 0, s = void 0) {
|
|
|
1386
1386
|
uri: "/resources/6w/tags",
|
|
1387
1387
|
otpCTX: "SecurityContext=preferred",
|
|
1388
1388
|
optTenant: `tenant=${r}`
|
|
1389
|
-
}, p = `${i}${d.uri}?${d.otpCTX}&${d.optTenant}`,
|
|
1389
|
+
}, p = `${i}${d.uri}?${d.otpCTX}&${d.optTenant}`, u = {
|
|
1390
1390
|
tag: [
|
|
1391
1391
|
{
|
|
1392
1392
|
subject: [
|
|
@@ -1401,23 +1401,23 @@ function qe(e, t, n = void 0, s = void 0) {
|
|
|
1401
1401
|
}
|
|
1402
1402
|
]
|
|
1403
1403
|
};
|
|
1404
|
-
|
|
1404
|
+
f(p, {
|
|
1405
1405
|
method: "PUT",
|
|
1406
1406
|
headers: {
|
|
1407
1407
|
"Content-Type": "application/json",
|
|
1408
1408
|
Accept: "application/json"
|
|
1409
1409
|
},
|
|
1410
|
-
data: JSON.stringify(
|
|
1411
|
-
onComplete(
|
|
1412
|
-
JSON.parse(
|
|
1413
|
-
const
|
|
1410
|
+
data: JSON.stringify(u),
|
|
1411
|
+
onComplete(m) {
|
|
1412
|
+
JSON.parse(m);
|
|
1413
|
+
const l = {};
|
|
1414
1414
|
setTimeout(() => {
|
|
1415
1415
|
L(
|
|
1416
1416
|
e,
|
|
1417
1417
|
o,
|
|
1418
1418
|
(g) => {
|
|
1419
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;
|
|
1420
|
-
|
|
1420
|
+
l.name = h, l.ext = S, l.createBy = y, t.info = { ...l }, ae(
|
|
1421
1421
|
e,
|
|
1422
1422
|
t,
|
|
1423
1423
|
(_) => {
|
|
@@ -1435,9 +1435,9 @@ function qe(e, t, n = void 0, s = void 0) {
|
|
|
1435
1435
|
);
|
|
1436
1436
|
}, 2e3);
|
|
1437
1437
|
},
|
|
1438
|
-
onFailure(
|
|
1439
|
-
const g =
|
|
1440
|
-
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);
|
|
1441
1441
|
}
|
|
1442
1442
|
});
|
|
1443
1443
|
}
|
|
@@ -1510,17 +1510,17 @@ function ae(e, t, n = void 0, s = void 0) {
|
|
|
1510
1510
|
}
|
|
1511
1511
|
}
|
|
1512
1512
|
};
|
|
1513
|
-
console.log("dataPattern => ", d),
|
|
1513
|
+
console.log("dataPattern => ", d), f(o, {
|
|
1514
1514
|
method: "POST",
|
|
1515
1515
|
headers: a,
|
|
1516
1516
|
data: JSON.stringify(d),
|
|
1517
1517
|
onComplete(p) {
|
|
1518
|
-
const
|
|
1519
|
-
n(
|
|
1518
|
+
const u = JSON.parse(p);
|
|
1519
|
+
n(u);
|
|
1520
1520
|
},
|
|
1521
|
-
onFailure(p,
|
|
1522
|
-
const
|
|
1523
|
-
|
|
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);
|
|
1524
1524
|
}
|
|
1525
1525
|
});
|
|
1526
1526
|
}
|
|
@@ -1544,7 +1544,7 @@ function Qe(e, t, n = void 0, s = void 0) {
|
|
|
1544
1544
|
}
|
|
1545
1545
|
]
|
|
1546
1546
|
};
|
|
1547
|
-
|
|
1547
|
+
f(c, {
|
|
1548
1548
|
method: "DELETE",
|
|
1549
1549
|
data: JSON.stringify(d),
|
|
1550
1550
|
headers: {
|
|
@@ -1554,9 +1554,9 @@ function Qe(e, t, n = void 0, s = void 0) {
|
|
|
1554
1554
|
onComplete(p) {
|
|
1555
1555
|
n && n(p);
|
|
1556
1556
|
},
|
|
1557
|
-
onFailure(p,
|
|
1558
|
-
const
|
|
1559
|
-
|
|
1557
|
+
onFailure(p, u) {
|
|
1558
|
+
const m = p;
|
|
1559
|
+
m.msg = u.errormsg, m.errCode = u.errorcode, console.log("❌ sendDirectMessage => ", m), s && s(m);
|
|
1560
1560
|
}
|
|
1561
1561
|
});
|
|
1562
1562
|
}
|
|
@@ -1570,7 +1570,7 @@ function Ze(e, t = "", n = void 0, s = void 0) {
|
|
|
1570
1570
|
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
|
|
1571
1571
|
Accept: "application/json,text/javascript,*/*"
|
|
1572
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}`;
|
|
1573
|
-
|
|
1573
|
+
f(a, {
|
|
1574
1574
|
method: "POST",
|
|
1575
1575
|
headers: o,
|
|
1576
1576
|
data: c,
|
|
@@ -1578,14 +1578,14 @@ function Ze(e, t = "", n = void 0, s = void 0) {
|
|
|
1578
1578
|
n && n(JSON.parse(d));
|
|
1579
1579
|
},
|
|
1580
1580
|
onFailure(d, p) {
|
|
1581
|
-
const
|
|
1582
|
-
|
|
1581
|
+
const u = d;
|
|
1582
|
+
u.msg = p.error, s && s(u);
|
|
1583
1583
|
}
|
|
1584
1584
|
});
|
|
1585
1585
|
}
|
|
1586
1586
|
async function w(e, t = void 0, n = void 0) {
|
|
1587
1587
|
const s = e.space + "/api/index/tk";
|
|
1588
|
-
return
|
|
1588
|
+
return f(s, {
|
|
1589
1589
|
onComplete(i, r, o) {
|
|
1590
1590
|
const a = JSON.parse(i);
|
|
1591
1591
|
if (t)
|
|
@@ -1608,7 +1608,7 @@ function et(e, t = void 0, n = void 0) {
|
|
|
1608
1608
|
}
|
|
1609
1609
|
};
|
|
1610
1610
|
w(e, (r) => {
|
|
1611
|
-
|
|
1611
|
+
f(s, {
|
|
1612
1612
|
method: "POST",
|
|
1613
1613
|
headers: {
|
|
1614
1614
|
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken,
|
|
@@ -1637,7 +1637,7 @@ function tt(e, t = void 0, n = void 0) {
|
|
|
1637
1637
|
}
|
|
1638
1638
|
};
|
|
1639
1639
|
w(e, (r) => {
|
|
1640
|
-
|
|
1640
|
+
f(s, {
|
|
1641
1641
|
method: "POST",
|
|
1642
1642
|
headers: {
|
|
1643
1643
|
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken,
|
|
@@ -1664,28 +1664,28 @@ function nt(e, t = void 0, n = void 0) {
|
|
|
1664
1664
|
page: `/page/${e.page ? e.page : "1"}`
|
|
1665
1665
|
}, i = `${s.base}${s.uri}${s.limit}${s.page}`, r = [];
|
|
1666
1666
|
w(e, (o) => {
|
|
1667
|
-
|
|
1667
|
+
f(i, {
|
|
1668
1668
|
method: "GET",
|
|
1669
1669
|
headers: {
|
|
1670
1670
|
"X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
|
|
1671
1671
|
},
|
|
1672
1672
|
onComplete(a, c, d) {
|
|
1673
|
-
const
|
|
1674
|
-
let
|
|
1675
|
-
|
|
1673
|
+
const u = JSON.parse(a).result;
|
|
1674
|
+
let m = 0;
|
|
1675
|
+
u.forEach((l) => {
|
|
1676
1676
|
const g = {
|
|
1677
|
-
description:
|
|
1678
|
-
id:
|
|
1679
|
-
title:
|
|
1680
|
-
owner:
|
|
1681
|
-
role:
|
|
1682
|
-
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
|
|
1683
1683
|
};
|
|
1684
1684
|
oe(
|
|
1685
1685
|
e,
|
|
1686
|
-
|
|
1686
|
+
l.id,
|
|
1687
1687
|
(h) => {
|
|
1688
|
-
|
|
1688
|
+
m++, g.members = h, r.push(g), m === u.length && t && t(r);
|
|
1689
1689
|
},
|
|
1690
1690
|
(h) => n(h)
|
|
1691
1691
|
);
|
|
@@ -1707,7 +1707,7 @@ function oe(e, t, n, s) {
|
|
|
1707
1707
|
}
|
|
1708
1708
|
};
|
|
1709
1709
|
w(e, (o) => {
|
|
1710
|
-
|
|
1710
|
+
f(i, {
|
|
1711
1711
|
method: "POST",
|
|
1712
1712
|
headers: {
|
|
1713
1713
|
"Content-type": "application/json;charset=UTF-8",
|
|
@@ -1731,7 +1731,7 @@ function st(e, t = void 0, n = void 0) {
|
|
|
1731
1731
|
e.commu_id || (e.commu_id = s);
|
|
1732
1732
|
const i = `${e.space}/api/v2/communities/${e.commu_id}/ideas/statuses`;
|
|
1733
1733
|
w(e, (r) => {
|
|
1734
|
-
|
|
1734
|
+
f(i, {
|
|
1735
1735
|
method: "GET",
|
|
1736
1736
|
headers: {
|
|
1737
1737
|
"Content-type": "application/json;charset=UTF-8",
|
|
@@ -1771,7 +1771,7 @@ function it(e, t, n = void 0, s = void 0) {
|
|
|
1771
1771
|
}
|
|
1772
1772
|
), d === !1 && setTimeout(() => {
|
|
1773
1773
|
d === !1 && w(e, (p) => {
|
|
1774
|
-
|
|
1774
|
+
f(o, {
|
|
1775
1775
|
method: "POST",
|
|
1776
1776
|
headers: {
|
|
1777
1777
|
"Content-Type": "application/json",
|
|
@@ -1780,13 +1780,13 @@ function it(e, t, n = void 0, s = void 0) {
|
|
|
1780
1780
|
},
|
|
1781
1781
|
data: JSON.stringify(a),
|
|
1782
1782
|
type: "json",
|
|
1783
|
-
onComplete(
|
|
1784
|
-
const g =
|
|
1785
|
-
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);
|
|
1786
1786
|
},
|
|
1787
|
-
onFailure(
|
|
1788
|
-
const g =
|
|
1789
|
-
g.msg =
|
|
1787
|
+
onFailure(u, m, l) {
|
|
1788
|
+
const g = u;
|
|
1789
|
+
g.msg = m.errormsg, g.status = m.status, s && s(g);
|
|
1790
1790
|
}
|
|
1791
1791
|
});
|
|
1792
1792
|
});
|
|
@@ -1795,7 +1795,7 @@ function it(e, t, n = void 0, s = void 0) {
|
|
|
1795
1795
|
function re(e, t, n, s) {
|
|
1796
1796
|
const i = `${e.space}/api/directmessages/lite?with_favorites=false`;
|
|
1797
1797
|
w(e, (r) => {
|
|
1798
|
-
|
|
1798
|
+
f(i, {
|
|
1799
1799
|
method: "GET",
|
|
1800
1800
|
headers: {
|
|
1801
1801
|
Accept: "application/json,text/javascript,*/*",
|
|
@@ -1803,14 +1803,14 @@ function re(e, t, n, s) {
|
|
|
1803
1803
|
},
|
|
1804
1804
|
onComplete(o) {
|
|
1805
1805
|
const a = JSON.parse(o), c = [];
|
|
1806
|
-
a.result.forEach((
|
|
1807
|
-
|
|
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);
|
|
1808
1808
|
});
|
|
1809
|
-
const d = t.sort(), p = c.find((
|
|
1810
|
-
const
|
|
1811
|
-
return
|
|
1812
|
-
|
|
1813
|
-
}), 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);
|
|
1814
1814
|
});
|
|
1815
1815
|
n && p !== void 0 ? n(p) : (s || p === void 0) && s(p);
|
|
1816
1816
|
},
|
|
@@ -1838,7 +1838,7 @@ function x(e, t, n = void 0, s = void 0) {
|
|
|
1838
1838
|
richMessage: t.msg
|
|
1839
1839
|
};
|
|
1840
1840
|
console.log("_3dSwym_sendDirectMessageData url ", r), w(e, (a) => {
|
|
1841
|
-
|
|
1841
|
+
f(r, {
|
|
1842
1842
|
method: "POST",
|
|
1843
1843
|
headers: {
|
|
1844
1844
|
"Content-Type": "application/json",
|
|
@@ -1848,8 +1848,8 @@ function x(e, t, n = void 0, s = void 0) {
|
|
|
1848
1848
|
data: JSON.stringify(o),
|
|
1849
1849
|
type: "json",
|
|
1850
1850
|
onComplete(c, d, p) {
|
|
1851
|
-
const
|
|
1852
|
-
|
|
1851
|
+
const u = c;
|
|
1852
|
+
u.status = p.status, u.response = JSON.parse(p.response), console.log("✅ _3dSwym_sendDirectMessageData => ", u), n && n(u);
|
|
1853
1853
|
},
|
|
1854
1854
|
onFailure(c, d) {
|
|
1855
1855
|
const p = c;
|
|
@@ -1898,23 +1898,65 @@ function at(e, t, n = void 0, s = void 0) {
|
|
|
1898
1898
|
Accept: "application/json",
|
|
1899
1899
|
"X-DS-SWYM-CSRFTOKEN": c.result.ServerToken
|
|
1900
1900
|
};
|
|
1901
|
-
|
|
1901
|
+
f(i, {
|
|
1902
1902
|
method: "POST",
|
|
1903
1903
|
headers: d,
|
|
1904
1904
|
data: JSON.stringify(a),
|
|
1905
1905
|
type: "json",
|
|
1906
|
-
onComplete(p,
|
|
1907
|
-
const
|
|
1908
|
-
|
|
1906
|
+
onComplete(p, u, m) {
|
|
1907
|
+
const l = JSON.parse(p);
|
|
1908
|
+
l.status = m.status, l.response = m.response, n && n(l);
|
|
1909
1909
|
},
|
|
1910
|
-
onFailure(p,
|
|
1911
|
-
const
|
|
1912
|
-
|
|
1910
|
+
onFailure(p, u, m) {
|
|
1911
|
+
const l = p;
|
|
1912
|
+
l.status = u.status, l.response = u.errormsg, s && s(l);
|
|
1913
1913
|
}
|
|
1914
1914
|
});
|
|
1915
1915
|
});
|
|
1916
1916
|
}
|
|
1917
|
-
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) {
|
|
1918
1960
|
const i = `${e.space}/api/idea/delete`, r = {
|
|
1919
1961
|
params: {
|
|
1920
1962
|
community_id: t.community_id,
|
|
@@ -1922,7 +1964,7 @@ function ot(e, t, n = void 0, s = void 0) {
|
|
|
1922
1964
|
}
|
|
1923
1965
|
};
|
|
1924
1966
|
w(e, (o) => {
|
|
1925
|
-
|
|
1967
|
+
f(i, {
|
|
1926
1968
|
method: "POST",
|
|
1927
1969
|
headers: {
|
|
1928
1970
|
"Content-type": "application/json;charset=UTF-8",
|
|
@@ -1941,7 +1983,7 @@ function ot(e, t, n = void 0, s = void 0) {
|
|
|
1941
1983
|
});
|
|
1942
1984
|
});
|
|
1943
1985
|
}
|
|
1944
|
-
function
|
|
1986
|
+
function ct(e, t = void 0, n = void 0) {
|
|
1945
1987
|
const s = `${e.space}/api/idea/get`;
|
|
1946
1988
|
if (e.idPost === "") {
|
|
1947
1989
|
const r = "☠️ idPost est vide, vous devez renseigner un identifiant de post";
|
|
@@ -1953,7 +1995,7 @@ function rt(e, t = void 0, n = void 0) {
|
|
|
1953
1995
|
}
|
|
1954
1996
|
};
|
|
1955
1997
|
w(e, (r) => {
|
|
1956
|
-
|
|
1998
|
+
f(s, {
|
|
1957
1999
|
method: "POST",
|
|
1958
2000
|
headers: {
|
|
1959
2001
|
"Content-type": "application/json;charset=UTF-8",
|
|
@@ -1962,8 +2004,7 @@ function rt(e, t = void 0, n = void 0) {
|
|
|
1962
2004
|
},
|
|
1963
2005
|
data: JSON.stringify(i),
|
|
1964
2006
|
onComplete(o) {
|
|
1965
|
-
|
|
1966
|
-
a.msg = a.result.message, t && t(a);
|
|
2007
|
+
t && t({ response: o });
|
|
1967
2008
|
},
|
|
1968
2009
|
onFailure(o) {
|
|
1969
2010
|
const a = o;
|
|
@@ -1972,14 +2013,49 @@ function rt(e, t = void 0, n = void 0) {
|
|
|
1972
2013
|
});
|
|
1973
2014
|
});
|
|
1974
2015
|
}
|
|
1975
|
-
function
|
|
2016
|
+
function dt(e, t, n) {
|
|
2017
|
+
const s = {
|
|
2018
|
+
base: `${e.space}/api/idea/edit`,
|
|
2019
|
+
uri: "/api/idea/edit"
|
|
2020
|
+
}, i = {
|
|
2021
|
+
params: {
|
|
2022
|
+
out: "false",
|
|
2023
|
+
id: e.post_id,
|
|
2024
|
+
title: e.title,
|
|
2025
|
+
community_id: e.community_id,
|
|
2026
|
+
status_comment: e.status_comment,
|
|
2027
|
+
status_id: e.status_id,
|
|
2028
|
+
message: e.message,
|
|
2029
|
+
published: "1"
|
|
2030
|
+
}
|
|
2031
|
+
};
|
|
2032
|
+
console.log("body", i), _3DSwym_getToken((r) => {
|
|
2033
|
+
const o = {
|
|
2034
|
+
method: "POST",
|
|
2035
|
+
headers: {
|
|
2036
|
+
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken,
|
|
2037
|
+
"Content-type": "application/json;charset=UTF-8"
|
|
2038
|
+
},
|
|
2039
|
+
data: JSON.stringify(i),
|
|
2040
|
+
onComplete(a) {
|
|
2041
|
+
const c = JSON.parse(a);
|
|
2042
|
+
t && t(c);
|
|
2043
|
+
},
|
|
2044
|
+
onFailure(a) {
|
|
2045
|
+
n && n(a);
|
|
2046
|
+
}
|
|
2047
|
+
};
|
|
2048
|
+
f(s.base + s.uri, o);
|
|
2049
|
+
});
|
|
2050
|
+
}
|
|
2051
|
+
function pt(e, t = de, n = void 0, s = void 0) {
|
|
1976
2052
|
const i = {
|
|
1977
2053
|
uri: "/api/idea/list",
|
|
1978
2054
|
comId: `/community_id/${e.tenant.toLowerCase() === "r1132101716373" ? t.community_id : "bgnIsG74SUWswyGzS6NC6g"}`,
|
|
1979
2055
|
limit: `/limit/${t.limit ? t.limit : 10}`
|
|
1980
2056
|
}, r = `${e.space}${i.uri}${i.comId}${i.limit}`;
|
|
1981
2057
|
w(e, (o) => {
|
|
1982
|
-
|
|
2058
|
+
f(r, {
|
|
1983
2059
|
method: "GET",
|
|
1984
2060
|
headers: {
|
|
1985
2061
|
"X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
|
|
@@ -2070,10 +2146,10 @@ function pe(e) {
|
|
|
2070
2146
|
<p>
|
|
2071
2147
|
</p>` : e;
|
|
2072
2148
|
}
|
|
2073
|
-
function
|
|
2149
|
+
function ut(e, t = void 0, n = void 0) {
|
|
2074
2150
|
const s = e.space + "/api/user/getcurrent/";
|
|
2075
2151
|
w(e, (i) => {
|
|
2076
|
-
|
|
2152
|
+
f(s, {
|
|
2077
2153
|
method: "GET",
|
|
2078
2154
|
headers: {
|
|
2079
2155
|
"X-DS-SWYM-CSRFTOKEN": i.result.ServerToken
|
|
@@ -2089,12 +2165,12 @@ function dt(e, t = void 0, n = void 0) {
|
|
|
2089
2165
|
});
|
|
2090
2166
|
});
|
|
2091
2167
|
}
|
|
2092
|
-
function
|
|
2168
|
+
function lt(e, t, n = void 0, s = void 0) {
|
|
2093
2169
|
const i = e.space + "/api/user/find/login/" + t;
|
|
2094
2170
|
w(
|
|
2095
2171
|
e,
|
|
2096
2172
|
(r) => {
|
|
2097
|
-
|
|
2173
|
+
f(i, {
|
|
2098
2174
|
method: "GET",
|
|
2099
2175
|
headers: { "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken },
|
|
2100
2176
|
onComplete(o, a, c) {
|
|
@@ -2109,18 +2185,18 @@ function pt(e, t, n = void 0, s = void 0) {
|
|
|
2109
2185
|
s
|
|
2110
2186
|
);
|
|
2111
2187
|
}
|
|
2112
|
-
function
|
|
2113
|
-
e.tenant &&
|
|
2188
|
+
function ft(e, t = void 0, n = void 0) {
|
|
2189
|
+
e.tenant && T(e, (s) => {
|
|
2114
2190
|
console.log("serviceUrls", s);
|
|
2115
2191
|
const i = s.services.find((r) => r.id === "businessprocess")?.url + "/api/v2";
|
|
2116
2192
|
return t && t(i), i;
|
|
2117
2193
|
});
|
|
2118
2194
|
}
|
|
2119
|
-
function
|
|
2120
|
-
e.tenant &&
|
|
2195
|
+
function mt(e, t = void 0, n = void 0) {
|
|
2196
|
+
e.tenant && T(e, (s) => {
|
|
2121
2197
|
console.log("serviceUrls", s);
|
|
2122
2198
|
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`;
|
|
2123
|
-
|
|
2199
|
+
f(o, {
|
|
2124
2200
|
async onComplete(a) {
|
|
2125
2201
|
console.log("response", a);
|
|
2126
2202
|
const c = typeof a == "string" ? JSON.parse(a)?.x3ds_service_redirect_url : a?.x3ds_service_redirect_url;
|
|
@@ -2136,7 +2212,7 @@ function ut(e, t = void 0, n = void 0) {
|
|
|
2136
2212
|
});
|
|
2137
2213
|
});
|
|
2138
2214
|
}
|
|
2139
|
-
function
|
|
2215
|
+
function gt(e, t = void 0, n = void 0) {
|
|
2140
2216
|
if (e.tenant) {
|
|
2141
2217
|
const s = e.tenant.toLowerCase();
|
|
2142
2218
|
fetch(`https://api.uixhome.fr/${s}/iterop/jwtuser`, {
|
|
@@ -2148,8 +2224,8 @@ function ft(e, t = void 0, n = void 0) {
|
|
|
2148
2224
|
});
|
|
2149
2225
|
}
|
|
2150
2226
|
}
|
|
2151
|
-
async function
|
|
2152
|
-
e.tenant &&
|
|
2227
|
+
async function ht(e, t, n = void 0, s = void 0) {
|
|
2228
|
+
e.tenant && T(e, (i) => {
|
|
2153
2229
|
const o = `${i.services.find((c) => c.id === "businessprocess")?.url + "/api/v2"}/identity/users`, a = e.tenant.toLowerCase();
|
|
2154
2230
|
fetch(`https://api.uixhome.fr/${a}/iterop/listusers?t=${t}&s=${o}`, {
|
|
2155
2231
|
method: "POST"
|
|
@@ -2160,8 +2236,8 @@ async function mt(e, t, n = void 0, s = void 0) {
|
|
|
2160
2236
|
});
|
|
2161
2237
|
});
|
|
2162
2238
|
}
|
|
2163
|
-
async function
|
|
2164
|
-
e.tenant &&
|
|
2239
|
+
async function St(e, t, n = void 0, s = void 0) {
|
|
2240
|
+
e.tenant && T(e, (i) => {
|
|
2165
2241
|
const o = `${i.services.find((c) => c.id === "businessprocess")?.url + "/api/v2"}/repository/data/tables`, a = e.tenant.toLowerCase();
|
|
2166
2242
|
fetch(`https://api.uixhome.fr/${a}/iterop/repository/data/tables?t=${t}&s=${o}`, {
|
|
2167
2243
|
method: "GET"
|
|
@@ -2172,7 +2248,7 @@ async function gt(e, t, n = void 0, s = void 0) {
|
|
|
2172
2248
|
});
|
|
2173
2249
|
});
|
|
2174
2250
|
}
|
|
2175
|
-
async function
|
|
2251
|
+
async function yt(e, t, n, s = void 0, i = void 0) {
|
|
2176
2252
|
if (e.tenant) {
|
|
2177
2253
|
const r = e.tenant.toLowerCase();
|
|
2178
2254
|
fetch(`https://api.uixhome.fr/${r}/iterop//businesstable/${n}?t=${t}`, {
|
|
@@ -2184,7 +2260,7 @@ async function ht(e, t, n, s = void 0, i = void 0) {
|
|
|
2184
2260
|
});
|
|
2185
2261
|
}
|
|
2186
2262
|
}
|
|
2187
|
-
async function
|
|
2263
|
+
async function _t(e, t, n, s = void 0, i = void 0) {
|
|
2188
2264
|
if (e.tenant) {
|
|
2189
2265
|
const r = e.tenant.toLowerCase();
|
|
2190
2266
|
fetch(`https://api.uixhome.fr/${r}/iterop//businesstable/${n}/rows/?t=${t}`, {
|
|
@@ -2196,8 +2272,8 @@ async function St(e, t, n, s = void 0, i = void 0) {
|
|
|
2196
2272
|
});
|
|
2197
2273
|
}
|
|
2198
2274
|
}
|
|
2199
|
-
async function
|
|
2200
|
-
e.tenant &&
|
|
2275
|
+
async function wt(e, t, n, s, i = void 0, r = void 0) {
|
|
2276
|
+
e.tenant && T(e, (o) => {
|
|
2201
2277
|
o.services.find((c) => c.id === "businessprocess")?.url + "";
|
|
2202
2278
|
const a = e.tenant.toLowerCase();
|
|
2203
2279
|
fetch(
|
|
@@ -2212,8 +2288,8 @@ async function yt(e, t, n, s, i = void 0, r = void 0) {
|
|
|
2212
2288
|
});
|
|
2213
2289
|
});
|
|
2214
2290
|
}
|
|
2215
|
-
async function
|
|
2216
|
-
e.tenant &&
|
|
2291
|
+
async function Tt(e, t, n, s, i, r = void 0, o = void 0) {
|
|
2292
|
+
e.tenant && T(e, (a) => {
|
|
2217
2293
|
a.services.find((d) => d.id === "businessprocess")?.url + "";
|
|
2218
2294
|
const c = e.tenant.toLowerCase();
|
|
2219
2295
|
fetch(
|
|
@@ -2228,8 +2304,8 @@ async function _t(e, t, n, s, i, r = void 0, o = void 0) {
|
|
|
2228
2304
|
});
|
|
2229
2305
|
});
|
|
2230
2306
|
}
|
|
2231
|
-
async function
|
|
2232
|
-
e.tenant &&
|
|
2307
|
+
async function Ct(e, t, n, s = void 0, i = void 0) {
|
|
2308
|
+
e.tenant && T(e, (r) => {
|
|
2233
2309
|
r.services.find((a) => a.id === "businessprocess")?.url + "";
|
|
2234
2310
|
const o = e.tenant.toLowerCase();
|
|
2235
2311
|
fetch(
|
|
@@ -2244,8 +2320,8 @@ async function wt(e, t, n, s = void 0, i = void 0) {
|
|
|
2244
2320
|
});
|
|
2245
2321
|
});
|
|
2246
2322
|
}
|
|
2247
|
-
async function
|
|
2248
|
-
e.tenant &&
|
|
2323
|
+
async function bt(e, t, n, s, i, r = void 0, o = void 0) {
|
|
2324
|
+
e.tenant && T(e, (a) => {
|
|
2249
2325
|
a.services.find((d) => d.id === "businessprocess")?.url + "";
|
|
2250
2326
|
const c = e.tenant.toLowerCase();
|
|
2251
2327
|
fetch(
|
|
@@ -2260,8 +2336,8 @@ async function Ct(e, t, n, s, i, r = void 0, o = void 0) {
|
|
|
2260
2336
|
});
|
|
2261
2337
|
});
|
|
2262
2338
|
}
|
|
2263
|
-
async function
|
|
2264
|
-
e.tenant &&
|
|
2339
|
+
async function Ot(e, t, n, s, i = void 0, r = void 0) {
|
|
2340
|
+
e.tenant && T(e, (o) => {
|
|
2265
2341
|
o.services.find((c) => c.id === "businessprocess")?.url + "";
|
|
2266
2342
|
const a = e.tenant.toLowerCase();
|
|
2267
2343
|
fetch(
|
|
@@ -2276,11 +2352,11 @@ async function Tt(e, t, n, s, i = void 0, r = void 0) {
|
|
|
2276
2352
|
});
|
|
2277
2353
|
});
|
|
2278
2354
|
}
|
|
2279
|
-
function
|
|
2355
|
+
function $t(e) {
|
|
2280
2356
|
const t = "Hello " + e;
|
|
2281
2357
|
return console.log(t), t;
|
|
2282
2358
|
}
|
|
2283
|
-
function
|
|
2359
|
+
function vt(e, t = void 0, n = void 0) {
|
|
2284
2360
|
return console.log("credentials", e), new Promise((s) => {
|
|
2285
2361
|
if (e.token === "" && b(e), !e.space || e.space === "") {
|
|
2286
2362
|
const o = W();
|
|
@@ -2298,13 +2374,13 @@ function Ot(e, t = void 0, n = void 0) {
|
|
|
2298
2374
|
!0
|
|
2299
2375
|
);
|
|
2300
2376
|
const i = I.now().ts, r = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dsearch&platformId=${e.tenant}`;
|
|
2301
|
-
|
|
2377
|
+
f(r, {
|
|
2302
2378
|
onComplete(o) {
|
|
2303
2379
|
if (Array.isArray(JSON.parse(o))) {
|
|
2304
2380
|
const a = JSON.parse(o);
|
|
2305
2381
|
console.log("serviceId=3dsearch", a);
|
|
2306
2382
|
const c = `${a[0].services[0].url}/search?xrequestedwith=xmlhttprequest`;
|
|
2307
|
-
|
|
2383
|
+
f(c, {
|
|
2308
2384
|
method: "POST",
|
|
2309
2385
|
headers: {
|
|
2310
2386
|
Accept: "application/json",
|
|
@@ -2361,7 +2437,7 @@ function Ot(e, t = void 0, n = void 0) {
|
|
|
2361
2437
|
}
|
|
2362
2438
|
export {
|
|
2363
2439
|
D as UUID,
|
|
2364
|
-
|
|
2440
|
+
vt as _3DSearch_usersGroup,
|
|
2365
2441
|
Re as _3DSpace_Create_Doc,
|
|
2366
2442
|
xe as _3DSpace_Update_Doc,
|
|
2367
2443
|
Ke as _3DSpace_bookmark_addSubsciptions,
|
|
@@ -2371,67 +2447,69 @@ export {
|
|
|
2371
2447
|
Z as _3DSpace_download_multidoc,
|
|
2372
2448
|
M as _3DSpace_file_update,
|
|
2373
2449
|
Q as _3DSpace_file_update_csr,
|
|
2374
|
-
|
|
2375
|
-
|
|
2450
|
+
je as _3DSpace_file_url_csr,
|
|
2451
|
+
U as _3DSpace_get_csrf,
|
|
2376
2452
|
L as _3DSpace_get_docInfo,
|
|
2377
2453
|
ee as _3DSpace_get_downloadTicket_multidoc,
|
|
2378
|
-
|
|
2454
|
+
Pe as _3DSpace_get_multiDocInfo,
|
|
2379
2455
|
$ as _3DSpace_get_securityContexts,
|
|
2380
|
-
|
|
2456
|
+
P as _3DSpace_get_ticket,
|
|
2381
2457
|
Ge as _3DSpace_lifecycle_changeRevision,
|
|
2382
2458
|
Le as _3DSpace_lifecycle_changeState,
|
|
2383
2459
|
Me as _3DSpace_lifecycle_getGraph,
|
|
2384
2460
|
Je as _3DSpace_lifecycle_getNextRevision,
|
|
2385
2461
|
De as _3DSpace_lifecycle_getNextStates,
|
|
2386
2462
|
it as _3DSwym_buildDirectMessage,
|
|
2387
|
-
|
|
2463
|
+
rt as _3DSwym_deleteIdea,
|
|
2464
|
+
dt as _3DSwym_editIdea,
|
|
2388
2465
|
re as _3DSwym_findCommunityToInstantMSG,
|
|
2389
2466
|
nt as _3DSwym_getAllCommunities,
|
|
2390
2467
|
et as _3DSwym_getAllNews,
|
|
2391
2468
|
tt as _3DSwym_getFamiliarPeople,
|
|
2392
2469
|
st as _3DSwym_getIdeaStatusMaturity,
|
|
2393
2470
|
oe as _3DSwym_getMembersCommunity,
|
|
2394
|
-
|
|
2395
|
-
|
|
2471
|
+
ct as _3DSwym_getOneIdea,
|
|
2472
|
+
pt as _3DSwym_get_AllSWYMIdeas,
|
|
2396
2473
|
w as _3DSwym_get_Token,
|
|
2397
|
-
|
|
2398
|
-
|
|
2474
|
+
ut as _3DSwym_get_currentUser,
|
|
2475
|
+
lt as _3DSwym_get_findUser,
|
|
2476
|
+
ot as _3DSwym_postIdea,
|
|
2399
2477
|
at as _3DSwym_postIdeaTemplate,
|
|
2400
2478
|
x as _3DSwym_sendMessageData,
|
|
2401
2479
|
$e as _AppMngt_get_info_user,
|
|
2402
2480
|
Oe as _AppMngt_get_users,
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2481
|
+
Tt as _Iterop_AddOrRemoveRows,
|
|
2482
|
+
mt as _Iterop_Auth_CAS,
|
|
2483
|
+
Ct as _Iterop_GetOneDependencyTable,
|
|
2484
|
+
ht as _Iterop_ListUsers,
|
|
2485
|
+
bt as _Iterop_PatchDependencyTable,
|
|
2486
|
+
Ot as _Iterop_PutDependencyTable,
|
|
2487
|
+
St as _Iterop_getAllBusinessTables,
|
|
2488
|
+
yt as _Iterop_getOneBusinessTable,
|
|
2489
|
+
_t as _Iterop_getOneBusinessTableRows,
|
|
2490
|
+
gt as _Iterop_jwtUser,
|
|
2491
|
+
wt as _Iterop_runProcess,
|
|
2414
2492
|
W as _getPlateformInfos,
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2493
|
+
Te as _getPlatformServices,
|
|
2494
|
+
T as _getServiceUrl,
|
|
2495
|
+
Ce as _getServiceUrl_3DPassport,
|
|
2496
|
+
ft as _getServiceUrl_Iterop,
|
|
2497
|
+
f as _httpCallAuthenticated,
|
|
2420
2498
|
ye as _setDraggable,
|
|
2421
2499
|
we as _setDroppable,
|
|
2422
2500
|
_e as _setupTagger,
|
|
2423
2501
|
qe as addTagToDoc,
|
|
2424
2502
|
be as compass_getListAdditionalApps,
|
|
2425
|
-
|
|
2503
|
+
V as couleurs,
|
|
2426
2504
|
ve as createUserGroups,
|
|
2427
2505
|
te as dataMixing,
|
|
2428
2506
|
Ae as deleteUserGroups,
|
|
2429
2507
|
ge as findAdresse,
|
|
2430
|
-
|
|
2508
|
+
Be as getAllContextSecurity,
|
|
2431
2509
|
Y as getCSRFToken,
|
|
2432
2510
|
me as getCommunes,
|
|
2433
2511
|
Ne as getComplementUG,
|
|
2434
|
-
|
|
2512
|
+
Ve as getDataFrom3DSpace,
|
|
2435
2513
|
he as getDataFromGouvFr,
|
|
2436
2514
|
ze as getDatasByTenant,
|
|
2437
2515
|
He as getDatasFrom3DSpace,
|
|
@@ -2440,12 +2518,12 @@ export {
|
|
|
2440
2518
|
Ie as getUserGroupsList,
|
|
2441
2519
|
X as getUsersGroupRules,
|
|
2442
2520
|
Ye as get_3DSpace_csrf,
|
|
2443
|
-
|
|
2444
|
-
|
|
2521
|
+
Ue as patchUserGroups,
|
|
2522
|
+
ke as patchUserGroupsControl,
|
|
2445
2523
|
Xe as pushDataIn3DSpace,
|
|
2446
|
-
|
|
2524
|
+
Fe as readUserGroupControl,
|
|
2447
2525
|
Qe as removeTagToDoc,
|
|
2448
|
-
|
|
2526
|
+
$t as sayHello,
|
|
2449
2527
|
Se as updateEvent
|
|
2450
2528
|
};
|
|
2451
2529
|
//# sourceMappingURL=wb3Api.js.map
|