@beam3_dev/api_module 0.0.237 → 0.0.238
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 +440 -427
- package/dist/wb3Api.js.map +1 -1
- package/dist/wb3Api.umd.cjs +7 -7
- package/dist/wb3Api.umd.cjs.map +1 -1
- package/package.json +1 -1
package/dist/wb3Api.js
CHANGED
|
@@ -67,13 +67,13 @@ async function _e(e, t = void 0, n = void 0) {
|
|
|
67
67
|
}
|
|
68
68
|
async function we(e, t = V) {
|
|
69
69
|
let n = $.now().year;
|
|
70
|
-
const s = e, i = [], r = (
|
|
71
|
-
for (let c in
|
|
72
|
-
i.push({ date: c, comment:
|
|
70
|
+
const s = e, i = [], r = (a) => {
|
|
71
|
+
for (let c in a)
|
|
72
|
+
i.push({ date: c, comment: a[c] });
|
|
73
73
|
};
|
|
74
|
-
for (let
|
|
74
|
+
for (let a = n; a <= n + 1; a++)
|
|
75
75
|
await fetch(
|
|
76
|
-
"https://calendrier.api.gouv.fr/jours-feries/metropole/" +
|
|
76
|
+
"https://calendrier.api.gouv.fr/jours-feries/metropole/" + a + ".json",
|
|
77
77
|
{
|
|
78
78
|
method: "GET",
|
|
79
79
|
headers: {
|
|
@@ -84,30 +84,30 @@ async function we(e, t = V) {
|
|
|
84
84
|
r(c);
|
|
85
85
|
}).catch((c) => console.error("Erreur : " + c));
|
|
86
86
|
return (() => {
|
|
87
|
-
const
|
|
87
|
+
const a = s.length === 0 ? {
|
|
88
88
|
events: []
|
|
89
89
|
} : s;
|
|
90
90
|
for (let c of i)
|
|
91
|
-
|
|
91
|
+
a.events.findIndex(
|
|
92
92
|
(u) => u.start === $.fromISO(c.date).toISODate() && u.name === "Férié : " + c.comment
|
|
93
|
-
) === -1 &&
|
|
93
|
+
) === -1 && a.events.push({
|
|
94
94
|
name: "Férié : " + c.comment,
|
|
95
95
|
start: $.fromISO(c.date).toISODate(),
|
|
96
96
|
end: $.fromISO(c.date).toISODate(),
|
|
97
97
|
color: t.b3BusinnessDays,
|
|
98
98
|
timed: !1
|
|
99
99
|
});
|
|
100
|
-
return
|
|
100
|
+
return a;
|
|
101
101
|
})();
|
|
102
102
|
}
|
|
103
103
|
function W(e, t, n) {
|
|
104
|
-
const { credentials: s, myArray: i, chunk: r, fn_to_call:
|
|
104
|
+
const { credentials: s, myArray: i, chunk: r, fn_to_call: o } = e, a = [];
|
|
105
105
|
for (let c = 0; c < i.length; c += r) {
|
|
106
106
|
const d = i.slice(c, c + r);
|
|
107
|
-
|
|
107
|
+
a.push(d);
|
|
108
108
|
}
|
|
109
109
|
X(
|
|
110
|
-
{ credentials: s, chunks:
|
|
110
|
+
{ credentials: s, chunks: a, initLoop: 0, fn: o },
|
|
111
111
|
(c) => {
|
|
112
112
|
t && t(c);
|
|
113
113
|
},
|
|
@@ -117,12 +117,12 @@ function W(e, t, n) {
|
|
|
117
117
|
);
|
|
118
118
|
}
|
|
119
119
|
function X(e, t, n) {
|
|
120
|
-
const { credentials: s, chunks: i, initLoop: r, fn:
|
|
121
|
-
|
|
120
|
+
const { credentials: s, chunks: i, initLoop: r, fn: o } = e, a = (c) => {
|
|
121
|
+
o(
|
|
122
122
|
s,
|
|
123
123
|
i[c],
|
|
124
124
|
() => {
|
|
125
|
-
c++, c < i.length &&
|
|
125
|
+
c++, c < i.length && a(c);
|
|
126
126
|
},
|
|
127
127
|
(d) => {
|
|
128
128
|
t && t(d);
|
|
@@ -132,7 +132,7 @@ function X(e, t, n) {
|
|
|
132
132
|
}
|
|
133
133
|
);
|
|
134
134
|
};
|
|
135
|
-
|
|
135
|
+
a(r);
|
|
136
136
|
}
|
|
137
137
|
async function Ce(e, t, n = !0) {
|
|
138
138
|
const s = e.events.findIndex((i) => i.uuid === t.uuid);
|
|
@@ -202,10 +202,10 @@ function b(e, t = void 0, n = void 0) {
|
|
|
202
202
|
onComplete(i) {
|
|
203
203
|
const r = typeof i == "string" ? JSON.parse(i) : i;
|
|
204
204
|
if (r && "platforms" in r) {
|
|
205
|
-
const
|
|
206
|
-
(
|
|
205
|
+
const o = r.platforms.find(
|
|
206
|
+
(a) => a.id === e.tenant.toUpperCase()
|
|
207
207
|
);
|
|
208
|
-
t &&
|
|
208
|
+
t && o ? t(o) : n && n("_getServiceUrl return listServiceUrl = undefined");
|
|
209
209
|
} else
|
|
210
210
|
n && n("_getServiceUrl return oResponse = undefined");
|
|
211
211
|
},
|
|
@@ -222,8 +222,8 @@ function Ie(e, t = void 0, n = void 0) {
|
|
|
222
222
|
onComplete(i) {
|
|
223
223
|
const r = JSON.parse(i);
|
|
224
224
|
if (console.log("serviceId=3dpassport", r), Array.isArray(r) && r.length > 0) {
|
|
225
|
-
const
|
|
226
|
-
t && t(
|
|
225
|
+
const o = `${r[0].services[0].url}`;
|
|
226
|
+
t && t(o);
|
|
227
227
|
}
|
|
228
228
|
},
|
|
229
229
|
onFailure(i) {
|
|
@@ -245,51 +245,51 @@ function Ne(e, t, n) {
|
|
|
245
245
|
"Content-Type": "application/json",
|
|
246
246
|
Accept: "application/json"
|
|
247
247
|
},
|
|
248
|
-
onComplete(r,
|
|
248
|
+
onComplete(r, o, a) {
|
|
249
249
|
const c = JSON.parse(r), d = c.data.map((u) => {
|
|
250
250
|
const p = u.attributes.name, f = u.id;
|
|
251
251
|
return { name: p, id: f };
|
|
252
252
|
});
|
|
253
253
|
t && t(d, c);
|
|
254
254
|
},
|
|
255
|
-
onFailure(r,
|
|
256
|
-
const
|
|
257
|
-
|
|
255
|
+
onFailure(r, o) {
|
|
256
|
+
const a = r;
|
|
257
|
+
a.msg = o.errormsg, a.errCode = o.errorcode, n && n(a);
|
|
258
258
|
}
|
|
259
259
|
});
|
|
260
260
|
}
|
|
261
261
|
function ve(e, t = void 0, n = void 0) {
|
|
262
262
|
let s = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&limit=-1`;
|
|
263
263
|
m(s, {
|
|
264
|
-
onComplete(i, r,
|
|
265
|
-
const
|
|
266
|
-
console.log("_AppMngt_get_users => ",
|
|
264
|
+
onComplete(i, r, o) {
|
|
265
|
+
const a = JSON.parse(i);
|
|
266
|
+
console.log("_AppMngt_get_users => ", a), t && t(a);
|
|
267
267
|
},
|
|
268
268
|
onFailure(i, r) {
|
|
269
|
-
const
|
|
270
|
-
|
|
269
|
+
const o = i;
|
|
270
|
+
o.msg = r.errormsg, o.errCode = r.errorcode, n && n(o);
|
|
271
271
|
}
|
|
272
272
|
});
|
|
273
273
|
}
|
|
274
274
|
function Fe(e, t, n = void 0, s = void 0) {
|
|
275
275
|
let i = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&id=${t}`;
|
|
276
276
|
m(i, {
|
|
277
|
-
onComplete(r,
|
|
277
|
+
onComplete(r, o, a) {
|
|
278
278
|
const c = JSON.parse(r);
|
|
279
279
|
n && n(c);
|
|
280
280
|
},
|
|
281
|
-
onFailure(r,
|
|
282
|
-
const
|
|
283
|
-
|
|
281
|
+
onFailure(r, o) {
|
|
282
|
+
const a = r;
|
|
283
|
+
a.msg = o.errormsg, a.errCode = o.errorcode, s && s(a);
|
|
284
284
|
}
|
|
285
285
|
});
|
|
286
286
|
}
|
|
287
|
-
const
|
|
287
|
+
const k = {
|
|
288
288
|
"Content-Type": "application/json",
|
|
289
289
|
Accept: "application/json,text/javascript,*/*"
|
|
290
290
|
};
|
|
291
|
-
function
|
|
292
|
-
const { space: i, currentUser: r } = e,
|
|
291
|
+
function Ae(e, t, n = void 0, s = void 0) {
|
|
292
|
+
const { space: i, currentUser: r } = e, a = `${i}${{
|
|
293
293
|
URIUGr: "/3drdfpersist/resources/v1/usersgroup"
|
|
294
294
|
}.URIUGr}`, c = {
|
|
295
295
|
groups: [
|
|
@@ -303,9 +303,9 @@ function ke(e, t, n = void 0, s = void 0) {
|
|
|
303
303
|
}
|
|
304
304
|
]
|
|
305
305
|
};
|
|
306
|
-
m(
|
|
306
|
+
m(a, {
|
|
307
307
|
method: "POST",
|
|
308
|
-
headers:
|
|
308
|
+
headers: k,
|
|
309
309
|
data: JSON.stringify(c),
|
|
310
310
|
onComplete(d) {
|
|
311
311
|
n && n(JSON.parse(d));
|
|
@@ -317,8 +317,8 @@ function ke(e, t, n = void 0, s = void 0) {
|
|
|
317
317
|
}
|
|
318
318
|
});
|
|
319
319
|
}
|
|
320
|
-
function
|
|
321
|
-
const { space: i, tenant: r } = e,
|
|
320
|
+
function ke(e, t, n = void 0, s = void 0) {
|
|
321
|
+
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}`;
|
|
322
322
|
m(d, {
|
|
323
323
|
opts: {
|
|
324
324
|
method: "GET",
|
|
@@ -337,10 +337,10 @@ function Ae(e, t, n = void 0, s = void 0) {
|
|
|
337
337
|
});
|
|
338
338
|
}
|
|
339
339
|
function Y(e, t = void 0, n = void 0) {
|
|
340
|
-
const { space: s, tenant: i } = e, r = s,
|
|
340
|
+
const { space: s, tenant: i } = e, r = s, o = "/3drdfpersist/resources/v1/option-sets/dsusergroup:ListOfGroupResponsibilities/options", a = `?tenant=dstenant:${i}`, c = {
|
|
341
341
|
method: "GET",
|
|
342
342
|
Accept: "application/json,*/*,test/javascript"
|
|
343
|
-
}, d = `${r}${
|
|
343
|
+
}, d = `${r}${o}${a}`;
|
|
344
344
|
m(d, {
|
|
345
345
|
OPTsH: c,
|
|
346
346
|
onComplete(u) {
|
|
@@ -352,13 +352,13 @@ function Y(e, t = void 0, n = void 0) {
|
|
|
352
352
|
}
|
|
353
353
|
});
|
|
354
354
|
}
|
|
355
|
-
function
|
|
356
|
-
const { space: s, currentUser: i } = e,
|
|
355
|
+
function je(e, t = void 0, n = void 0) {
|
|
356
|
+
const { space: s, currentUser: i } = e, a = `${s}/3drdfpersist/resources/v1/usersgroup?select=uri,title,description,owner,members,pending_members,creation_date,modification_date,visibility`, d = { method: "GET", headers: {
|
|
357
357
|
"Content-Type": "application/json",
|
|
358
358
|
Accept: "application/json,text/javascript,*/*"
|
|
359
359
|
} };
|
|
360
360
|
try {
|
|
361
|
-
m(
|
|
361
|
+
m(a, {
|
|
362
362
|
opts: d,
|
|
363
363
|
onComplete(u) {
|
|
364
364
|
const p = JSON.parse(u), f = {}, l = p.groups.filter((g) => g.uri.startsWith("uuid:"));
|
|
@@ -383,24 +383,24 @@ function Ue(e, t = void 0, n = void 0) {
|
|
|
383
383
|
console.log(u);
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
|
-
function
|
|
386
|
+
function Ue(e, t) {
|
|
387
387
|
const { space: n } = e, i = `${n}/3drdfpersist/resources/v1/usersgroup/${t}`;
|
|
388
388
|
m(i, {
|
|
389
389
|
method: "DELETE"
|
|
390
390
|
});
|
|
391
391
|
}
|
|
392
392
|
function xe(e, t, n, s = void 0, i = void 0) {
|
|
393
|
-
const { space: r, tenant:
|
|
393
|
+
const { space: r, tenant: o } = e, a = {
|
|
394
394
|
URITI: "/3drdfpersist/resources/v1/template-instances",
|
|
395
395
|
URIUGr: "/3drdfpersist/resources/v1/usersgroup",
|
|
396
396
|
nextURICh: "/characteristics",
|
|
397
397
|
nextURIGr: "/group",
|
|
398
398
|
nexURImem: "/members",
|
|
399
399
|
OPTsTI: "?$mask=dsaccess:Mask.GroupUI.Properties",
|
|
400
|
-
OPTsTenant: `tenant=dstenant:${
|
|
401
|
-
}, c = n, d = `${r}${
|
|
400
|
+
OPTsTenant: `tenant=dstenant:${o}`
|
|
401
|
+
}, c = n, d = `${r}${a.URIUGr}/${t}`, u = JSON.stringify(c);
|
|
402
402
|
m(d, {
|
|
403
|
-
headers:
|
|
403
|
+
headers: k,
|
|
404
404
|
method: "PATCH",
|
|
405
405
|
data: u,
|
|
406
406
|
type: "json",
|
|
@@ -413,10 +413,10 @@ function xe(e, t, n, s = void 0, i = void 0) {
|
|
|
413
413
|
});
|
|
414
414
|
}
|
|
415
415
|
function Pe(e, t, n, s = void 0, i = void 0) {
|
|
416
|
-
const { space: r } = e,
|
|
417
|
-
m(
|
|
416
|
+
const { space: r } = e, a = `${r}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
|
|
417
|
+
m(a, {
|
|
418
418
|
method: "PATCH",
|
|
419
|
-
headers:
|
|
419
|
+
headers: k,
|
|
420
420
|
data: JSON.stringify(n),
|
|
421
421
|
type: "json",
|
|
422
422
|
onComplete(d) {
|
|
@@ -428,8 +428,8 @@ function Pe(e, t, n, s = void 0, i = void 0) {
|
|
|
428
428
|
});
|
|
429
429
|
}
|
|
430
430
|
function Re(e, t, n = void 0, s = void 0) {
|
|
431
|
-
const { space: i } = e,
|
|
432
|
-
m(
|
|
431
|
+
const { space: i } = e, o = `${i}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
|
|
432
|
+
m(o, {
|
|
433
433
|
opts: {
|
|
434
434
|
method: "GET",
|
|
435
435
|
headers: {
|
|
@@ -452,8 +452,8 @@ async function H(e, t, n) {
|
|
|
452
452
|
onComplete(i) {
|
|
453
453
|
i = JSON.parse(i), t && t(i.csrf);
|
|
454
454
|
},
|
|
455
|
-
onFailure(i, r,
|
|
456
|
-
n && n({ error: i, headers: r, xhr:
|
|
455
|
+
onFailure(i, r, o) {
|
|
456
|
+
n && n({ error: i, headers: r, xhr: o });
|
|
457
457
|
}
|
|
458
458
|
});
|
|
459
459
|
}
|
|
@@ -469,11 +469,11 @@ var Q = function(e, t, n, s) {
|
|
|
469
469
|
return i;
|
|
470
470
|
var r = /\+/g;
|
|
471
471
|
e = e.split(t);
|
|
472
|
-
var
|
|
473
|
-
s && typeof s.maxKeys == "number" && (
|
|
474
|
-
var
|
|
475
|
-
|
|
476
|
-
for (var c = 0; c <
|
|
472
|
+
var o = 1e3;
|
|
473
|
+
s && typeof s.maxKeys == "number" && (o = s.maxKeys);
|
|
474
|
+
var a = e.length;
|
|
475
|
+
o > 0 && a > o && (a = o);
|
|
476
|
+
for (var c = 0; c < a; ++c) {
|
|
477
477
|
var d = e[c].replace(r, "%20"), u = d.indexOf(n), p, f, l, g;
|
|
478
478
|
u >= 0 ? (p = d.substr(0, u), f = d.substr(u + 1)) : (p = d, f = ""), l = decodeURIComponent(p), g = decodeURIComponent(f), z(i, l) ? Array.isArray(i[l]) ? i[l].push(g) : i[l] = [i[l], g] : i[l] = g;
|
|
479
479
|
}
|
|
@@ -492,8 +492,8 @@ var Q = function(e, t, n, s) {
|
|
|
492
492
|
}, Z = function(e, t, n, s) {
|
|
493
493
|
return t = t || "&", n = n || "=", e === null && (e = void 0), typeof e == "object" ? Object.keys(e).map(function(i) {
|
|
494
494
|
var r = encodeURIComponent(N(i)) + n;
|
|
495
|
-
return Array.isArray(e[i]) ? e[i].map(function(
|
|
496
|
-
return r + encodeURIComponent(N(
|
|
495
|
+
return Array.isArray(e[i]) ? e[i].map(function(o) {
|
|
496
|
+
return r + encodeURIComponent(N(o));
|
|
497
497
|
}).join(t) : r + encodeURIComponent(N(e[i]));
|
|
498
498
|
}).filter(Boolean).join(t) : s ? encodeURIComponent(N(s)) + n + encodeURIComponent(N(e)) : "";
|
|
499
499
|
};
|
|
@@ -507,12 +507,12 @@ async function R(e, t = void 0, n = void 0, s = void 0) {
|
|
|
507
507
|
}
|
|
508
508
|
const r = i + `/resources/v1/modeler/documents/${t}`;
|
|
509
509
|
m(r, {
|
|
510
|
-
onComplete(
|
|
511
|
-
const d = JSON.parse(
|
|
510
|
+
onComplete(o, a, c) {
|
|
511
|
+
const d = JSON.parse(o);
|
|
512
512
|
n && n(d);
|
|
513
513
|
},
|
|
514
|
-
onFailure(
|
|
515
|
-
s && s(
|
|
514
|
+
onFailure(o) {
|
|
515
|
+
s && s(o);
|
|
516
516
|
}
|
|
517
517
|
});
|
|
518
518
|
}
|
|
@@ -522,7 +522,7 @@ async function De(e, t = void 0, n = void 0, s = void 0) {
|
|
|
522
522
|
console.log("Le paramètre docids est obligatoire");
|
|
523
523
|
return;
|
|
524
524
|
}
|
|
525
|
-
let r = `${i}/resources/v1/modeler/documents/ids?$include=!files,!ownerInfo,!originatorInfo,!relOwnerInfo'`,
|
|
525
|
+
let r = `${i}/resources/v1/modeler/documents/ids?$include=!files,!ownerInfo,!originatorInfo,!relOwnerInfo'`, o = v.stringify({
|
|
526
526
|
$ids: t.toString().replace('"', "").replace("[", "").replace("]", "")
|
|
527
527
|
});
|
|
528
528
|
m(r, {
|
|
@@ -530,13 +530,13 @@ async function De(e, t = void 0, n = void 0, s = void 0) {
|
|
|
530
530
|
headers: {
|
|
531
531
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
532
532
|
},
|
|
533
|
-
data:
|
|
534
|
-
onComplete(
|
|
535
|
-
const u = JSON.parse(
|
|
533
|
+
data: o,
|
|
534
|
+
onComplete(a, c, d) {
|
|
535
|
+
const u = JSON.parse(a);
|
|
536
536
|
n && n(u);
|
|
537
537
|
},
|
|
538
|
-
onFailure(
|
|
539
|
-
s && s(
|
|
538
|
+
onFailure(a) {
|
|
539
|
+
s && s(a);
|
|
540
540
|
}
|
|
541
541
|
});
|
|
542
542
|
}
|
|
@@ -544,9 +544,9 @@ function F(e, t = void 0, n = void 0) {
|
|
|
544
544
|
if (e.objID && e.objID !== "") {
|
|
545
545
|
let s = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
|
|
546
546
|
m(s, {
|
|
547
|
-
onComplete(i, r,
|
|
548
|
-
const
|
|
549
|
-
e.token =
|
|
547
|
+
onComplete(i, r, o) {
|
|
548
|
+
const a = JSON.parse(i);
|
|
549
|
+
e.token = a?.csrf?.value, e.datas = a?.data[0], t && t(e);
|
|
550
550
|
},
|
|
551
551
|
onFailure(i) {
|
|
552
552
|
n && n(i);
|
|
@@ -567,22 +567,22 @@ function O(e, t = void 0, n = void 0) {
|
|
|
567
567
|
if (e.space) {
|
|
568
568
|
const s = e.space + "/resources/v1/application/CSRF";
|
|
569
569
|
m(s, {
|
|
570
|
-
onComplete(i, r,
|
|
571
|
-
const
|
|
572
|
-
t && t(
|
|
570
|
+
onComplete(i, r, o) {
|
|
571
|
+
const a = JSON.parse(i);
|
|
572
|
+
t && t(a.csrf.value);
|
|
573
573
|
},
|
|
574
|
-
onFailure(i, r,
|
|
574
|
+
onFailure(i, r, o) {
|
|
575
575
|
n && n({
|
|
576
576
|
response: i,
|
|
577
577
|
headers: r,
|
|
578
|
-
xhr:
|
|
578
|
+
xhr: o
|
|
579
579
|
});
|
|
580
580
|
}
|
|
581
581
|
});
|
|
582
582
|
} else
|
|
583
583
|
n && n("ERROR : url du 3DSpace non défini.");
|
|
584
584
|
}
|
|
585
|
-
function
|
|
585
|
+
function j(e, t = void 0, n = void 0) {
|
|
586
586
|
let s = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
|
|
587
587
|
F(
|
|
588
588
|
e,
|
|
@@ -592,12 +592,12 @@ function U(e, t = void 0, n = void 0) {
|
|
|
592
592
|
headers: {
|
|
593
593
|
ENO_CSRF_TOKEN: e.token
|
|
594
594
|
},
|
|
595
|
-
onComplete(r,
|
|
595
|
+
onComplete(r, o) {
|
|
596
596
|
const c = JSON.parse(r).data[0].dataelements.ticketURL;
|
|
597
|
-
t && t(c,
|
|
597
|
+
t && t(c, o);
|
|
598
598
|
},
|
|
599
|
-
onFailure(r,
|
|
600
|
-
console.warn("☠️ error => ", r,
|
|
599
|
+
onFailure(r, o) {
|
|
600
|
+
console.warn("☠️ error => ", r, o), n && n(r, o);
|
|
601
601
|
}
|
|
602
602
|
});
|
|
603
603
|
},
|
|
@@ -613,23 +613,23 @@ function Le(e, t, n, s = void 0, i = void 0) {
|
|
|
613
613
|
headers: {
|
|
614
614
|
ENO_CSRF_TOKEN: n
|
|
615
615
|
},
|
|
616
|
-
onComplete(
|
|
617
|
-
let
|
|
618
|
-
if (console.log("☠️ info => ",
|
|
616
|
+
onComplete(o) {
|
|
617
|
+
let a = JSON.parse(o);
|
|
618
|
+
if (console.log("☠️ info => ", a), a.success === !0)
|
|
619
619
|
try {
|
|
620
|
-
const c =
|
|
620
|
+
const c = a.data[0].dataelements.ticketURL;
|
|
621
621
|
s && s(c);
|
|
622
622
|
} catch (c) {
|
|
623
623
|
i && i(c);
|
|
624
624
|
}
|
|
625
625
|
},
|
|
626
|
-
onFailure(
|
|
627
|
-
i && i(
|
|
626
|
+
onFailure(o) {
|
|
627
|
+
i && i(o);
|
|
628
628
|
}
|
|
629
629
|
});
|
|
630
630
|
}
|
|
631
|
-
function D(e, t, n, s, i, r = void 0,
|
|
632
|
-
const
|
|
631
|
+
function D(e, t, n, s, i, r = void 0, o = void 0) {
|
|
632
|
+
const a = () => ee(
|
|
633
633
|
e,
|
|
634
634
|
t,
|
|
635
635
|
n,
|
|
@@ -637,17 +637,17 @@ function D(e, t, n, s, i, r = void 0, a = void 0) {
|
|
|
637
637
|
i,
|
|
638
638
|
e.token,
|
|
639
639
|
r,
|
|
640
|
-
|
|
640
|
+
o
|
|
641
641
|
);
|
|
642
|
-
e.token ?
|
|
642
|
+
e.token ? a() : F(
|
|
643
643
|
e,
|
|
644
644
|
t,
|
|
645
645
|
(c) => {
|
|
646
|
-
e.token = c.csrf.value,
|
|
646
|
+
e.token = c.csrf.value, a();
|
|
647
647
|
}
|
|
648
648
|
);
|
|
649
649
|
}
|
|
650
|
-
function ee(e, t, n, s, i, r,
|
|
650
|
+
function ee(e, t, n, s, i, r, o = void 0, a = void 0) {
|
|
651
651
|
const c = e.space + `/resources/v1/modeler/documents/${t}/files/CheckinTicket`;
|
|
652
652
|
m(c, {
|
|
653
653
|
method: "PUT",
|
|
@@ -689,10 +689,10 @@ function ee(e, t, n, s, i, r, a = void 0, o = void 0) {
|
|
|
689
689
|
}),
|
|
690
690
|
type: "json",
|
|
691
691
|
onComplete(T) {
|
|
692
|
-
|
|
692
|
+
o && o(T);
|
|
693
693
|
},
|
|
694
694
|
onFailure(T) {
|
|
695
|
-
|
|
695
|
+
a && a(T);
|
|
696
696
|
}
|
|
697
697
|
}, C = e.tenant.toUpperCase();
|
|
698
698
|
m(
|
|
@@ -700,7 +700,7 @@ function ee(e, t, n, s, i, r, a = void 0, o = void 0) {
|
|
|
700
700
|
_
|
|
701
701
|
);
|
|
702
702
|
}, y.onFailure = function(S) {
|
|
703
|
-
|
|
703
|
+
a && a(S);
|
|
704
704
|
}, y.timeout = 0, m(l.ticketURL, y);
|
|
705
705
|
}
|
|
706
706
|
});
|
|
@@ -710,13 +710,13 @@ async function Me(e, t, n, s = void 0, i = void 0) {
|
|
|
710
710
|
e,
|
|
711
711
|
t,
|
|
712
712
|
(r) => {
|
|
713
|
-
const
|
|
713
|
+
const o = r.data[0].relateddata.files[0].id, a = r.data[0].dataelements.secondaryTitle && r.data[0].dataelements.secondaryTitle !== "" ? r.data[0].dataelements.secondaryTitle : r.data[0].dataelements.title;
|
|
714
714
|
D(
|
|
715
715
|
e,
|
|
716
716
|
t,
|
|
717
|
-
a,
|
|
718
|
-
n,
|
|
719
717
|
o,
|
|
718
|
+
n,
|
|
719
|
+
a,
|
|
720
720
|
(c) => {
|
|
721
721
|
s && s(c);
|
|
722
722
|
},
|
|
@@ -733,10 +733,10 @@ async function Me(e, t, n, s = void 0, i = void 0) {
|
|
|
733
733
|
async function Je(e, t, n, s, i = void 0, r = void 0) {
|
|
734
734
|
te(
|
|
735
735
|
e,
|
|
736
|
-
(
|
|
737
|
-
console.log("resultCheckinTicket", n,
|
|
736
|
+
(o) => {
|
|
737
|
+
console.log("resultCheckinTicket", n, o), o?.items >= 1 && o.data.forEach((a) => {
|
|
738
738
|
ne(
|
|
739
|
-
|
|
739
|
+
a,
|
|
740
740
|
t,
|
|
741
741
|
n,
|
|
742
742
|
(c) => {
|
|
@@ -755,7 +755,7 @@ async function Je(e, t, n, s, i = void 0, r = void 0) {
|
|
|
755
755
|
);
|
|
756
756
|
});
|
|
757
757
|
},
|
|
758
|
-
(
|
|
758
|
+
(o) => console.warn(o)
|
|
759
759
|
);
|
|
760
760
|
}
|
|
761
761
|
function te(e, t = void 0, n = void 0) {
|
|
@@ -769,7 +769,7 @@ function te(e, t = void 0, n = void 0) {
|
|
|
769
769
|
"Content-Type": "application/json",
|
|
770
770
|
SecurityContext: e.ctx
|
|
771
771
|
},
|
|
772
|
-
onComplete(i, r,
|
|
772
|
+
onComplete(i, r, o) {
|
|
773
773
|
try {
|
|
774
774
|
i = JSON.parse(i);
|
|
775
775
|
} catch {
|
|
@@ -788,22 +788,22 @@ function ne(e, t, n, s = void 0, i = void 0) {
|
|
|
788
788
|
t instanceof Blob || (t = new Blob([t], {
|
|
789
789
|
type: "text/plain"
|
|
790
790
|
})), r.append("__fcs__jobTicket", e.dataelements.ticket), r.append("file_0", t, n);
|
|
791
|
-
let
|
|
792
|
-
m(
|
|
791
|
+
let o = e.dataelements.ticketURL;
|
|
792
|
+
m(o, {
|
|
793
793
|
method: "POST",
|
|
794
794
|
data: r,
|
|
795
|
-
onComplete(
|
|
796
|
-
s && s(
|
|
795
|
+
onComplete(a) {
|
|
796
|
+
s && s(a.replace(/[\n\r]/g, ""));
|
|
797
797
|
},
|
|
798
|
-
onFailure(
|
|
799
|
-
i && i(
|
|
798
|
+
onFailure(a) {
|
|
799
|
+
i && i(a);
|
|
800
800
|
}
|
|
801
801
|
});
|
|
802
802
|
}
|
|
803
803
|
function se(e, t, n, s = void 0, i = void 0, r = void 0) {
|
|
804
804
|
console.log("relatedDocAndFile", { credentials: e, receipt: t, filename: n });
|
|
805
|
-
const
|
|
806
|
-
let
|
|
805
|
+
const o = (d) => d.indexOf(".") === -1 ? d : d.split(".").slice(0, -1).join(".");
|
|
806
|
+
let a = "temp_" + $.now().ts, c = e.space + "/resources/v1/modeler/documents/?e6w-lang=fr&e6w-timezone=-120&xrequestedwith=xmlhttprequest";
|
|
807
807
|
m(c, {
|
|
808
808
|
method: "POST",
|
|
809
809
|
headers: {
|
|
@@ -817,7 +817,7 @@ function se(e, t, n, s = void 0, i = void 0, r = void 0) {
|
|
|
817
817
|
{
|
|
818
818
|
type: "Document",
|
|
819
819
|
dataelements: {
|
|
820
|
-
title:
|
|
820
|
+
title: o(n),
|
|
821
821
|
description: s
|
|
822
822
|
},
|
|
823
823
|
relateddata: {
|
|
@@ -831,7 +831,7 @@ function se(e, t, n, s = void 0, i = void 0, r = void 0) {
|
|
|
831
831
|
}
|
|
832
832
|
]
|
|
833
833
|
},
|
|
834
|
-
tempId:
|
|
834
|
+
tempId: a
|
|
835
835
|
}
|
|
836
836
|
]
|
|
837
837
|
}),
|
|
@@ -847,9 +847,9 @@ function se(e, t, n, s = void 0, i = void 0, r = void 0) {
|
|
|
847
847
|
}
|
|
848
848
|
});
|
|
849
849
|
}
|
|
850
|
-
function
|
|
851
|
-
const
|
|
852
|
-
m(
|
|
850
|
+
function A(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0, o = !1) {
|
|
851
|
+
const a = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
|
|
852
|
+
m(a, {
|
|
853
853
|
method: "GET",
|
|
854
854
|
onComplete(c) {
|
|
855
855
|
const d = JSON.parse(c);
|
|
@@ -886,7 +886,7 @@ function k(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0, a = !1
|
|
|
886
886
|
}));
|
|
887
887
|
}
|
|
888
888
|
}
|
|
889
|
-
p && f && l ? (u = l + "." + f + "." + p, i(u)) : d.preferredcredentials &&
|
|
889
|
+
p && f && l ? (u = l + "." + f + "." + p, i(u)) : d.preferredcredentials && o ? (u = d.preferredcredentials.role.name + "." + d.preferredcredentials.organization.title + "." + d.preferredcredentials.collabspace.title, i(u)) : r && (u = l + "." + f + "." + p, r(u));
|
|
890
890
|
},
|
|
891
891
|
onFailure(c, d) {
|
|
892
892
|
console.warn("Erreur de récupération du contexte de sécurité. => ", {
|
|
@@ -912,31 +912,31 @@ async function L(e, t = void 0, n = void 0) {
|
|
|
912
912
|
console.log("☠️ error => ", s);
|
|
913
913
|
}
|
|
914
914
|
), new Promise((s, i) => {
|
|
915
|
-
|
|
915
|
+
j(
|
|
916
916
|
e,
|
|
917
917
|
(r) => {
|
|
918
|
-
e?.returnType === "blob" ? (console.log("ticketURL blob", r), fetch(r).then((
|
|
919
|
-
t && t(
|
|
920
|
-
}).catch((
|
|
921
|
-
n && n(
|
|
918
|
+
e?.returnType === "blob" ? (console.log("ticketURL blob", r), fetch(r).then((o) => o.blob()).then((o) => {
|
|
919
|
+
t && t(o);
|
|
920
|
+
}).catch((o) => {
|
|
921
|
+
n && n(o);
|
|
922
922
|
})) : m(r, {
|
|
923
|
-
onComplete(
|
|
924
|
-
let
|
|
923
|
+
onComplete(o) {
|
|
924
|
+
let a;
|
|
925
925
|
try {
|
|
926
|
-
|
|
926
|
+
a = JSON.parse(o);
|
|
927
927
|
} catch {
|
|
928
|
-
|
|
928
|
+
a = o;
|
|
929
929
|
}
|
|
930
|
-
t && typeof t == "function" && t(
|
|
930
|
+
t && typeof t == "function" && t(a), s(a);
|
|
931
931
|
},
|
|
932
|
-
onFailure(
|
|
933
|
-
n && (console.log("error http",
|
|
934
|
-
msg: JSON.parse(
|
|
935
|
-
headers:
|
|
932
|
+
onFailure(o, a, c) {
|
|
933
|
+
n && (console.log("error http", o), n({
|
|
934
|
+
msg: JSON.parse(o),
|
|
935
|
+
headers: a,
|
|
936
936
|
xhr: c
|
|
937
937
|
}), i({
|
|
938
|
-
msg: JSON.parse(
|
|
939
|
-
headers:
|
|
938
|
+
msg: JSON.parse(o),
|
|
939
|
+
headers: a,
|
|
940
940
|
xhr: c
|
|
941
941
|
}));
|
|
942
942
|
}
|
|
@@ -969,17 +969,17 @@ function ae(e, t, n = void 0, s = void 0, i = void 0) {
|
|
|
969
969
|
id: c
|
|
970
970
|
});
|
|
971
971
|
});
|
|
972
|
-
let
|
|
972
|
+
let o = JSON.stringify({
|
|
973
973
|
csrf: {
|
|
974
974
|
name: "ENO_CSRF_TOKEN",
|
|
975
975
|
value: e.token
|
|
976
976
|
},
|
|
977
977
|
data: r
|
|
978
978
|
});
|
|
979
|
-
const
|
|
980
|
-
m(
|
|
979
|
+
const a = `${e.space}/resources/v1/modeler/documents/DownloadTicket?tenant=${e.tenant}&e6w-lang=fr&e6w-timezone=-120`;
|
|
980
|
+
m(a, {
|
|
981
981
|
method: "PUT",
|
|
982
|
-
data:
|
|
982
|
+
data: o,
|
|
983
983
|
type: "json",
|
|
984
984
|
onComplete(c) {
|
|
985
985
|
const d = c.data;
|
|
@@ -1019,7 +1019,7 @@ function Ge(e, t, n = void 0, s = void 0) {
|
|
|
1019
1019
|
return new Promise((i) => {
|
|
1020
1020
|
if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
|
|
1021
1021
|
const r = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
|
|
1022
|
-
let
|
|
1022
|
+
let o = {
|
|
1023
1023
|
method: "POST",
|
|
1024
1024
|
headers: {
|
|
1025
1025
|
SecurityContext: "ctx::" + e.ctx,
|
|
@@ -1035,22 +1035,22 @@ function Ge(e, t, n = void 0, s = void 0) {
|
|
|
1035
1035
|
]
|
|
1036
1036
|
}),
|
|
1037
1037
|
type: "json",
|
|
1038
|
-
onComplete(
|
|
1039
|
-
n && n(
|
|
1038
|
+
onComplete(a) {
|
|
1039
|
+
n && n(a);
|
|
1040
1040
|
},
|
|
1041
|
-
onFailure(
|
|
1042
|
-
s && s(
|
|
1041
|
+
onFailure(a) {
|
|
1042
|
+
s && s(a);
|
|
1043
1043
|
}
|
|
1044
1044
|
};
|
|
1045
|
-
m(r,
|
|
1045
|
+
m(r, o);
|
|
1046
1046
|
}
|
|
1047
1047
|
});
|
|
1048
1048
|
}
|
|
1049
1049
|
function Ee(e, t, n, s = void 0, i = void 0) {
|
|
1050
1050
|
return new Promise((r) => {
|
|
1051
1051
|
if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
|
|
1052
|
-
const
|
|
1053
|
-
let
|
|
1052
|
+
const o = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
|
|
1053
|
+
let a = {
|
|
1054
1054
|
method: "POST",
|
|
1055
1055
|
headers: {
|
|
1056
1056
|
SecurityContext: "ctx::" + e.ctx,
|
|
@@ -1074,7 +1074,7 @@ function Ee(e, t, n, s = void 0, i = void 0) {
|
|
|
1074
1074
|
i && i(c);
|
|
1075
1075
|
}
|
|
1076
1076
|
};
|
|
1077
|
-
m(
|
|
1077
|
+
m(o, a);
|
|
1078
1078
|
}
|
|
1079
1079
|
});
|
|
1080
1080
|
}
|
|
@@ -1082,17 +1082,17 @@ function Ke(e, t, n = void 0, s = void 0) {
|
|
|
1082
1082
|
return new Promise((i) => {
|
|
1083
1083
|
if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
|
|
1084
1084
|
const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
|
|
1085
|
-
|
|
1085
|
+
A(
|
|
1086
1086
|
e.space,
|
|
1087
1087
|
"ESPACE COMMUN",
|
|
1088
1088
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
1089
1089
|
void 0,
|
|
1090
|
-
(
|
|
1091
|
-
(
|
|
1092
|
-
console.log("onError =>",
|
|
1090
|
+
(a) => e.ctx = a,
|
|
1091
|
+
(a) => {
|
|
1092
|
+
console.log("onError =>", a);
|
|
1093
1093
|
}
|
|
1094
1094
|
);
|
|
1095
|
-
let
|
|
1095
|
+
let o = {
|
|
1096
1096
|
method: "POST",
|
|
1097
1097
|
headers: {
|
|
1098
1098
|
securitycontext: "ctx::" + e.ctx,
|
|
@@ -1108,14 +1108,14 @@ function Ke(e, t, n = void 0, s = void 0) {
|
|
|
1108
1108
|
]
|
|
1109
1109
|
}),
|
|
1110
1110
|
type: "json",
|
|
1111
|
-
onComplete(
|
|
1112
|
-
n && n(
|
|
1111
|
+
onComplete(a) {
|
|
1112
|
+
n && n(a);
|
|
1113
1113
|
},
|
|
1114
|
-
onFailure(
|
|
1115
|
-
s && s(
|
|
1114
|
+
onFailure(a) {
|
|
1115
|
+
s && s(a);
|
|
1116
1116
|
}
|
|
1117
1117
|
};
|
|
1118
|
-
m(r,
|
|
1118
|
+
m(r, o);
|
|
1119
1119
|
}
|
|
1120
1120
|
});
|
|
1121
1121
|
}
|
|
@@ -1123,17 +1123,17 @@ function Be(e, t, n = void 0, s = void 0) {
|
|
|
1123
1123
|
return new Promise((i) => {
|
|
1124
1124
|
if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
|
|
1125
1125
|
const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
|
|
1126
|
-
|
|
1126
|
+
A(
|
|
1127
1127
|
e.space,
|
|
1128
1128
|
"ESPACE COMMUN",
|
|
1129
1129
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
1130
1130
|
void 0,
|
|
1131
|
-
(
|
|
1132
|
-
(
|
|
1133
|
-
console.log("onError =>",
|
|
1131
|
+
(a) => e.ctx = a,
|
|
1132
|
+
(a) => {
|
|
1133
|
+
console.log("onError =>", a);
|
|
1134
1134
|
}
|
|
1135
1135
|
);
|
|
1136
|
-
let
|
|
1136
|
+
let o = {
|
|
1137
1137
|
method: "POST",
|
|
1138
1138
|
headers: {
|
|
1139
1139
|
SecurityContext: "ctx::" + e.ctx,
|
|
@@ -1155,22 +1155,22 @@ function Be(e, t, n = void 0, s = void 0) {
|
|
|
1155
1155
|
]
|
|
1156
1156
|
}),
|
|
1157
1157
|
type: "json",
|
|
1158
|
-
onComplete(
|
|
1159
|
-
n && n(
|
|
1158
|
+
onComplete(a) {
|
|
1159
|
+
n && n(a);
|
|
1160
1160
|
},
|
|
1161
|
-
onFailure(
|
|
1162
|
-
s && s(
|
|
1161
|
+
onFailure(a) {
|
|
1162
|
+
s && s(a);
|
|
1163
1163
|
}
|
|
1164
1164
|
};
|
|
1165
|
-
m(r,
|
|
1165
|
+
m(r, o);
|
|
1166
1166
|
}
|
|
1167
1167
|
});
|
|
1168
1168
|
}
|
|
1169
1169
|
function Ve(e, t, n, s = void 0, i = void 0) {
|
|
1170
1170
|
return new Promise((r) => {
|
|
1171
1171
|
if (e.token === "" && O(e), t !== void 0 && t !== "" && t !== null) {
|
|
1172
|
-
const
|
|
1173
|
-
|
|
1172
|
+
const o = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
|
|
1173
|
+
A(
|
|
1174
1174
|
e.space,
|
|
1175
1175
|
"ESPACE COMMUN",
|
|
1176
1176
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -1180,7 +1180,7 @@ function Ve(e, t, n, s = void 0, i = void 0) {
|
|
|
1180
1180
|
console.log("onError =>", c);
|
|
1181
1181
|
}
|
|
1182
1182
|
);
|
|
1183
|
-
let
|
|
1183
|
+
let a = {
|
|
1184
1184
|
method: "POST",
|
|
1185
1185
|
headers: {
|
|
1186
1186
|
securitycontext: "ctx::" + e.ctx,
|
|
@@ -1209,13 +1209,13 @@ function Ve(e, t, n, s = void 0, i = void 0) {
|
|
|
1209
1209
|
i && i(c);
|
|
1210
1210
|
}
|
|
1211
1211
|
};
|
|
1212
|
-
m(
|
|
1212
|
+
m(o, a);
|
|
1213
1213
|
}
|
|
1214
1214
|
});
|
|
1215
1215
|
}
|
|
1216
1216
|
function We(e, t, n, s, i = void 0, r = void 0) {
|
|
1217
|
-
return new Promise((
|
|
1218
|
-
const
|
|
1217
|
+
return new Promise((o) => {
|
|
1218
|
+
const a = `${e.space}/resources/v1/modeler/dsbks/dsbks:Bookmark`;
|
|
1219
1219
|
let c = {
|
|
1220
1220
|
attributes: {
|
|
1221
1221
|
title: n,
|
|
@@ -1243,11 +1243,11 @@ function We(e, t, n, s, i = void 0, r = void 0) {
|
|
|
1243
1243
|
r && r(p);
|
|
1244
1244
|
}
|
|
1245
1245
|
};
|
|
1246
|
-
m(
|
|
1246
|
+
m(a, u);
|
|
1247
1247
|
});
|
|
1248
1248
|
}
|
|
1249
1249
|
function Xe(e, t, n, s, i = void 0, r = void 0) {
|
|
1250
|
-
return console.log("credentials", e), new Promise((
|
|
1250
|
+
return console.log("credentials", e), new Promise((o) => {
|
|
1251
1251
|
`${e.space}`, JSON.stringify({
|
|
1252
1252
|
csrf: {
|
|
1253
1253
|
name: "ENO_CSRF_TOKEN",
|
|
@@ -1282,17 +1282,17 @@ function qe(e, t = void 0, n = void 0) {
|
|
|
1282
1282
|
Accept: "application/json,text/javascript,*/*",
|
|
1283
1283
|
"Content-Type": "application/ds-json"
|
|
1284
1284
|
},
|
|
1285
|
-
onComplete(r,
|
|
1286
|
-
const
|
|
1287
|
-
t && t(
|
|
1285
|
+
onComplete(r, o) {
|
|
1286
|
+
const a = JSON.parse(r);
|
|
1287
|
+
t && t(a, o);
|
|
1288
1288
|
},
|
|
1289
|
-
onFailure(r,
|
|
1290
|
-
n && n({ response: r, headers:
|
|
1289
|
+
onFailure(r, o, a) {
|
|
1290
|
+
n && n({ response: r, headers: o, xhr: a });
|
|
1291
1291
|
}
|
|
1292
1292
|
});
|
|
1293
1293
|
}
|
|
1294
1294
|
function Ye(e, t, n, s) {
|
|
1295
|
-
|
|
1295
|
+
j(
|
|
1296
1296
|
e.space,
|
|
1297
1297
|
t,
|
|
1298
1298
|
(i) => {
|
|
@@ -1310,11 +1310,11 @@ function Ye(e, t, n, s) {
|
|
|
1310
1310
|
}
|
|
1311
1311
|
async function He(e, t, n = void 0, s = void 0) {
|
|
1312
1312
|
return new Promise((i) => {
|
|
1313
|
-
|
|
1313
|
+
j(e, t, (r) => {
|
|
1314
1314
|
m(r, {
|
|
1315
|
-
onComplete: (
|
|
1316
|
-
onFailure: (
|
|
1317
|
-
s && s(
|
|
1315
|
+
onComplete: (o, a, c) => (i(JSON.parse(o)), n && n(JSON.parse(o), a, c), i),
|
|
1316
|
+
onFailure: (o, a, c) => {
|
|
1317
|
+
s && s(o, a, c), console.log(o, a?.errormsg);
|
|
1318
1318
|
}
|
|
1319
1319
|
});
|
|
1320
1320
|
});
|
|
@@ -1325,12 +1325,12 @@ function ze(e, t, n, s = void 0, i = void 0) {
|
|
|
1325
1325
|
F(
|
|
1326
1326
|
e,
|
|
1327
1327
|
n,
|
|
1328
|
-
(
|
|
1329
|
-
const
|
|
1328
|
+
(o) => {
|
|
1329
|
+
const a = o.data[0].relateddata.files[0].id, c = o.data[0].dataelements.secondaryTitle !== "" ? o.data[0].dataelements.secondaryTitle : o.data[0].dataelements.title;
|
|
1330
1330
|
D(
|
|
1331
1331
|
e,
|
|
1332
1332
|
n,
|
|
1333
|
-
|
|
1333
|
+
a,
|
|
1334
1334
|
r,
|
|
1335
1335
|
c,
|
|
1336
1336
|
(d) => {
|
|
@@ -1344,7 +1344,7 @@ function ze(e, t, n, s = void 0, i = void 0) {
|
|
|
1344
1344
|
);
|
|
1345
1345
|
}
|
|
1346
1346
|
let M, J;
|
|
1347
|
-
const
|
|
1347
|
+
const U = [];
|
|
1348
1348
|
async function Qe(e, t = void 0, n = void 0) {
|
|
1349
1349
|
e.objID && e.objID !== "" ? F(
|
|
1350
1350
|
e,
|
|
@@ -1386,8 +1386,8 @@ function et(e, t = void 0, n = void 0) {
|
|
|
1386
1386
|
L(
|
|
1387
1387
|
e,
|
|
1388
1388
|
i.objID,
|
|
1389
|
-
(
|
|
1390
|
-
s.push({ [i.name]:
|
|
1389
|
+
(o) => {
|
|
1390
|
+
s.push({ [i.name]: o }), i.name === "dbProjets" && (M = o.affaires.map((a) => a.objectID), oe(e, J)), r === e.objIds.length - 1 && (t && t(s), delete e.objIds, delete e.datas);
|
|
1391
1391
|
}
|
|
1392
1392
|
);
|
|
1393
1393
|
});
|
|
@@ -1398,7 +1398,7 @@ function oe(e, t, n = void 0, s = void 0) {
|
|
|
1398
1398
|
M,
|
|
1399
1399
|
(i) => {
|
|
1400
1400
|
const r = [...t];
|
|
1401
|
-
r.find((
|
|
1401
|
+
r.find((o) => o.objectID === i.objectId).data = i.data, J = r, U.push(i.data), n && n(U);
|
|
1402
1402
|
},
|
|
1403
1403
|
(i) => {
|
|
1404
1404
|
s && (s(i), console.log(i));
|
|
@@ -1426,7 +1426,7 @@ const re = "FA35FB9B177A280065800EA0000F599C", ce = [
|
|
|
1426
1426
|
tag: "testTag"
|
|
1427
1427
|
};
|
|
1428
1428
|
function tt(e, t, n = void 0, s = void 0) {
|
|
1429
|
-
const { space: i, tenant: r } = e, { objId:
|
|
1429
|
+
const { space: i, tenant: r } = e, { objId: o, pred: a, tag: c } = t, d = {
|
|
1430
1430
|
uri: "/resources/6w/tags",
|
|
1431
1431
|
otpCTX: "SecurityContext=preferred",
|
|
1432
1432
|
optTenant: `tenant=${r}`
|
|
@@ -1435,10 +1435,10 @@ function tt(e, t, n = void 0, s = void 0) {
|
|
|
1435
1435
|
{
|
|
1436
1436
|
subject: [
|
|
1437
1437
|
{
|
|
1438
|
-
uri: `pid://${
|
|
1438
|
+
uri: `pid://${o}`
|
|
1439
1439
|
}
|
|
1440
1440
|
],
|
|
1441
|
-
predicate: G[
|
|
1441
|
+
predicate: G[a],
|
|
1442
1442
|
object: {
|
|
1443
1443
|
literal: c
|
|
1444
1444
|
}
|
|
@@ -1458,7 +1458,7 @@ function tt(e, t, n = void 0, s = void 0) {
|
|
|
1458
1458
|
setTimeout(() => {
|
|
1459
1459
|
R(
|
|
1460
1460
|
e,
|
|
1461
|
-
|
|
1461
|
+
o,
|
|
1462
1462
|
(g) => {
|
|
1463
1463
|
const h = g.data[0].dataelements.title, y = g.data[0].dataelements.fileExtension !== void 0 ? g.data[0].dataelements.fileExtension : "", S = g.data[0].relateddata.ownerInfo[0].dataelements.name;
|
|
1464
1464
|
l.name = h, l.ext = y, l.createBy = S, t.info = { ...l }, ue(
|
|
@@ -1490,7 +1490,7 @@ function ue(e, t, n = void 0, s = void 0) {
|
|
|
1490
1490
|
const i = t.info.name, r = {
|
|
1491
1491
|
baseUrl: `https://${e.tenant.toLowerCase()}-eu1-fedsearch.3dexperience.3ds.com`,
|
|
1492
1492
|
uri: "/federated/search"
|
|
1493
|
-
},
|
|
1493
|
+
}, o = `${r.baseUrl}${r.uri}`, a = {
|
|
1494
1494
|
"Content-Type": "application/json",
|
|
1495
1495
|
Accept: "application/json,text/javascript,*/*"
|
|
1496
1496
|
}, c = B(), d = {
|
|
@@ -1554,9 +1554,9 @@ function ue(e, t, n = void 0, s = void 0) {
|
|
|
1554
1554
|
}
|
|
1555
1555
|
}
|
|
1556
1556
|
};
|
|
1557
|
-
console.log("dataPattern => ", d), m(
|
|
1557
|
+
console.log("dataPattern => ", d), m(o, {
|
|
1558
1558
|
method: "POST",
|
|
1559
|
-
headers:
|
|
1559
|
+
headers: a,
|
|
1560
1560
|
data: JSON.stringify(d),
|
|
1561
1561
|
onComplete(u) {
|
|
1562
1562
|
const p = JSON.parse(u);
|
|
@@ -1569,11 +1569,11 @@ function ue(e, t, n = void 0, s = void 0) {
|
|
|
1569
1569
|
});
|
|
1570
1570
|
}
|
|
1571
1571
|
function nt(e, t, n = void 0, s = void 0) {
|
|
1572
|
-
const { objId: i, pred: r, tag:
|
|
1572
|
+
const { objId: i, pred: r, tag: o } = t, a = {
|
|
1573
1573
|
uri: "/resources/6w/tags",
|
|
1574
1574
|
otpCTX: "SecurityContext=preferred",
|
|
1575
1575
|
optTenant: `tenant=${e.tenant}`
|
|
1576
|
-
}, c = `${e.space}${
|
|
1576
|
+
}, c = `${e.space}${a.uri}?${a.otpCTX}&${a.optTenant}`, d = {
|
|
1577
1577
|
tag: [
|
|
1578
1578
|
{
|
|
1579
1579
|
subject: [
|
|
@@ -1583,7 +1583,7 @@ function nt(e, t, n = void 0, s = void 0) {
|
|
|
1583
1583
|
],
|
|
1584
1584
|
predicate: G[r],
|
|
1585
1585
|
object: {
|
|
1586
|
-
literal:
|
|
1586
|
+
literal: o
|
|
1587
1587
|
}
|
|
1588
1588
|
}
|
|
1589
1589
|
]
|
|
@@ -1610,13 +1610,13 @@ function st(e, t = "", n = void 0, s = void 0) {
|
|
|
1610
1610
|
return;
|
|
1611
1611
|
const r = {
|
|
1612
1612
|
uri: "/resources/v1/modeler/documents"
|
|
1613
|
-
},
|
|
1613
|
+
}, o = {
|
|
1614
1614
|
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
|
|
1615
1615
|
Accept: "application/json,text/javascript,*/*"
|
|
1616
|
-
},
|
|
1617
|
-
m(
|
|
1616
|
+
}, 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}`;
|
|
1617
|
+
m(a, {
|
|
1618
1618
|
method: "POST",
|
|
1619
|
-
headers:
|
|
1619
|
+
headers: o,
|
|
1620
1620
|
data: c,
|
|
1621
1621
|
onComplete(d) {
|
|
1622
1622
|
n && n(JSON.parse(d));
|
|
@@ -1630,10 +1630,10 @@ function st(e, t = "", n = void 0, s = void 0) {
|
|
|
1630
1630
|
async function w(e, t = void 0, n = void 0) {
|
|
1631
1631
|
const s = e._3DSwym + "/api/index/tk";
|
|
1632
1632
|
return m(s, {
|
|
1633
|
-
onComplete(i, r,
|
|
1634
|
-
const
|
|
1633
|
+
onComplete(i, r, o) {
|
|
1634
|
+
const a = JSON.parse(i);
|
|
1635
1635
|
if (t)
|
|
1636
|
-
return t(
|
|
1636
|
+
return t(a), e.token = a?.result?.ServerToken;
|
|
1637
1637
|
},
|
|
1638
1638
|
onFailure(i) {
|
|
1639
1639
|
n && n(i);
|
|
@@ -1661,11 +1661,11 @@ function it(e, t = void 0, n = void 0) {
|
|
|
1661
1661
|
},
|
|
1662
1662
|
data: JSON.stringify(i),
|
|
1663
1663
|
type: "json",
|
|
1664
|
-
onComplete(
|
|
1665
|
-
t && t(
|
|
1664
|
+
onComplete(o, a) {
|
|
1665
|
+
t && t(o, a);
|
|
1666
1666
|
},
|
|
1667
|
-
onFailure(
|
|
1668
|
-
n && n(
|
|
1667
|
+
onFailure(o, a) {
|
|
1668
|
+
n && n(o, a);
|
|
1669
1669
|
}
|
|
1670
1670
|
});
|
|
1671
1671
|
});
|
|
@@ -1690,12 +1690,12 @@ function at(e, t = void 0, n = void 0) {
|
|
|
1690
1690
|
},
|
|
1691
1691
|
data: JSON.stringify(i),
|
|
1692
1692
|
type: "json",
|
|
1693
|
-
onComplete(
|
|
1694
|
-
const c =
|
|
1695
|
-
t && t(c,
|
|
1693
|
+
onComplete(o, a) {
|
|
1694
|
+
const c = o.result.hits.map((d) => ({ login: d.login, fullName: d.name }));
|
|
1695
|
+
t && t(c, o);
|
|
1696
1696
|
},
|
|
1697
|
-
onFailure(
|
|
1698
|
-
n && n(
|
|
1697
|
+
onFailure(o, a) {
|
|
1698
|
+
n && n(o, a);
|
|
1699
1699
|
}
|
|
1700
1700
|
});
|
|
1701
1701
|
});
|
|
@@ -1707,14 +1707,14 @@ function ot(e, t = void 0, n = void 0) {
|
|
|
1707
1707
|
limit: `/limit/${e.limit ? e.limit : 500}`,
|
|
1708
1708
|
page: `/page/${e.page ? e.page : "1"}`
|
|
1709
1709
|
}, i = `${s.base}${s.uri}${s.limit}${s.page}`, r = [];
|
|
1710
|
-
w(e, (
|
|
1710
|
+
w(e, (o) => {
|
|
1711
1711
|
m(i, {
|
|
1712
1712
|
method: "GET",
|
|
1713
1713
|
headers: {
|
|
1714
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1714
|
+
"X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
|
|
1715
1715
|
},
|
|
1716
|
-
onComplete(
|
|
1717
|
-
const p = JSON.parse(
|
|
1716
|
+
onComplete(a, c, d) {
|
|
1717
|
+
const p = JSON.parse(a).result;
|
|
1718
1718
|
let f = 0;
|
|
1719
1719
|
p.forEach((l) => {
|
|
1720
1720
|
const g = {
|
|
@@ -1735,8 +1735,8 @@ function ot(e, t = void 0, n = void 0) {
|
|
|
1735
1735
|
);
|
|
1736
1736
|
});
|
|
1737
1737
|
},
|
|
1738
|
-
onFailure(
|
|
1739
|
-
const d =
|
|
1738
|
+
onFailure(a, c) {
|
|
1739
|
+
const d = a;
|
|
1740
1740
|
d.status = c.status, d.response = c.errormsg, n && n(d);
|
|
1741
1741
|
}
|
|
1742
1742
|
});
|
|
@@ -1750,21 +1750,21 @@ function pe(e, t, n, s) {
|
|
|
1750
1750
|
community_id: t
|
|
1751
1751
|
}
|
|
1752
1752
|
};
|
|
1753
|
-
w(e, (
|
|
1753
|
+
w(e, (o) => {
|
|
1754
1754
|
m(i, {
|
|
1755
1755
|
method: "POST",
|
|
1756
1756
|
headers: {
|
|
1757
1757
|
"Content-type": "application/json;charset=UTF-8",
|
|
1758
1758
|
Accept: "application/json",
|
|
1759
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1759
|
+
"X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
|
|
1760
1760
|
},
|
|
1761
1761
|
data: JSON.stringify(r),
|
|
1762
1762
|
type: "json",
|
|
1763
|
-
onComplete(
|
|
1764
|
-
n && n(
|
|
1763
|
+
onComplete(a, c, d) {
|
|
1764
|
+
n && n(a);
|
|
1765
1765
|
},
|
|
1766
|
-
onFailure(
|
|
1767
|
-
const d =
|
|
1766
|
+
onFailure(a, c) {
|
|
1767
|
+
const d = a;
|
|
1768
1768
|
d.status = c.status, d.response = c.errormsg, s && s(d);
|
|
1769
1769
|
}
|
|
1770
1770
|
});
|
|
@@ -1782,21 +1782,21 @@ function rt(e, t = void 0, n = void 0) {
|
|
|
1782
1782
|
Accept: "application/json",
|
|
1783
1783
|
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
|
|
1784
1784
|
},
|
|
1785
|
-
onComplete(
|
|
1786
|
-
const
|
|
1787
|
-
t && t(
|
|
1785
|
+
onComplete(o) {
|
|
1786
|
+
const a = JSON.parse(o);
|
|
1787
|
+
t && t(a);
|
|
1788
1788
|
},
|
|
1789
|
-
onFailure(
|
|
1790
|
-
const c =
|
|
1791
|
-
c.status =
|
|
1789
|
+
onFailure(o, a) {
|
|
1790
|
+
const c = o;
|
|
1791
|
+
c.status = a.status, c.response = a.errormsg, n && n(c);
|
|
1792
1792
|
}
|
|
1793
1793
|
});
|
|
1794
1794
|
});
|
|
1795
1795
|
}
|
|
1796
1796
|
function ct(e, t, n = void 0, s = void 0) {
|
|
1797
|
-
const { listAllContacts: i, currentUser: r, _3DSwym:
|
|
1797
|
+
const { listAllContacts: i, currentUser: r, _3DSwym: o } = e;
|
|
1798
1798
|
console.log("__listAllContacts", i.hits);
|
|
1799
|
-
const
|
|
1799
|
+
const a = `${o}/api/directmessages`, c = {
|
|
1800
1800
|
users: [r.login].concat(t.receipt)
|
|
1801
1801
|
}, d = {
|
|
1802
1802
|
id_msg: "",
|
|
@@ -1815,7 +1815,7 @@ function ct(e, t, n = void 0, s = void 0) {
|
|
|
1815
1815
|
}
|
|
1816
1816
|
), u === !1 && setTimeout(() => {
|
|
1817
1817
|
u === !1 && w(e, (p) => {
|
|
1818
|
-
m(
|
|
1818
|
+
m(a, {
|
|
1819
1819
|
method: "POST",
|
|
1820
1820
|
headers: {
|
|
1821
1821
|
"Content-Type": "application/json",
|
|
@@ -1845,9 +1845,9 @@ function le(e, t, n, s) {
|
|
|
1845
1845
|
Accept: "application/json,text/javascript,*/*",
|
|
1846
1846
|
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
|
|
1847
1847
|
},
|
|
1848
|
-
onComplete(
|
|
1849
|
-
const
|
|
1850
|
-
|
|
1848
|
+
onComplete(o) {
|
|
1849
|
+
const a = JSON.parse(o), c = [];
|
|
1850
|
+
a.result.forEach((p) => {
|
|
1851
1851
|
p.users = p.users.sort((f, l) => f.login.localeCompare(l.login)), p.users.length === t.length && c.push(p);
|
|
1852
1852
|
});
|
|
1853
1853
|
const d = t.sort(), u = c.find((p) => {
|
|
@@ -1858,9 +1858,9 @@ function le(e, t, n, s) {
|
|
|
1858
1858
|
});
|
|
1859
1859
|
n && u !== void 0 ? n(u) : (s || u === void 0) && s(u);
|
|
1860
1860
|
},
|
|
1861
|
-
onFailure(
|
|
1862
|
-
const
|
|
1863
|
-
|
|
1861
|
+
onFailure(o) {
|
|
1862
|
+
const a = o;
|
|
1863
|
+
a.msg = headers.errormsg, a.errCode = headers.errorcode, console.log("❌ sendDirectMessageLite => ", a), s && s(a);
|
|
1864
1864
|
}
|
|
1865
1865
|
});
|
|
1866
1866
|
});
|
|
@@ -1871,7 +1871,7 @@ function x(e, t, n = void 0, s = void 0) {
|
|
|
1871
1871
|
uri: "/api/community",
|
|
1872
1872
|
id_msg: `${t.id_msg}`,
|
|
1873
1873
|
endUri: "/instantmessages"
|
|
1874
|
-
}, r = `${i.base}${i.uri}/${i.id_msg}${i.endUri}`,
|
|
1874
|
+
}, r = `${i.base}${i.uri}/${i.id_msg}${i.endUri}`, o = {
|
|
1875
1875
|
author: { login: t.senderId, displayName: t.senderName },
|
|
1876
1876
|
accessState: null,
|
|
1877
1877
|
commentUri: null,
|
|
@@ -1881,15 +1881,15 @@ function x(e, t, n = void 0, s = void 0) {
|
|
|
1881
1881
|
parentCommentUri: null,
|
|
1882
1882
|
richMessage: t.msg
|
|
1883
1883
|
};
|
|
1884
|
-
console.log("_3dSwym_sendDirectMessageData url ", r), w(e, (
|
|
1884
|
+
console.log("_3dSwym_sendDirectMessageData url ", r), w(e, (a) => {
|
|
1885
1885
|
m(r, {
|
|
1886
1886
|
method: "POST",
|
|
1887
1887
|
headers: {
|
|
1888
1888
|
"Content-Type": "application/json",
|
|
1889
1889
|
Accept: "application/json",
|
|
1890
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1890
|
+
"X-DS-SWYM-CSRFTOKEN": a.result.ServerToken
|
|
1891
1891
|
},
|
|
1892
|
-
data: JSON.stringify(
|
|
1892
|
+
data: JSON.stringify(o),
|
|
1893
1893
|
type: "json",
|
|
1894
1894
|
onComplete(c, d, u) {
|
|
1895
1895
|
const p = c;
|
|
@@ -1912,13 +1912,13 @@ function fe(e) {
|
|
|
1912
1912
|
function dt(e, t, n = void 0, s = void 0) {
|
|
1913
1913
|
const i = `${e.space}/api/idea/add`, r = e.swymCommunities.find(
|
|
1914
1914
|
(c) => c.id === t.community_id
|
|
1915
|
-
),
|
|
1915
|
+
), o = e.swymCommunities.find(
|
|
1916
1916
|
(c) => c.title.toLowerCase() === t.community_title.toLowerCase()
|
|
1917
|
-
),
|
|
1917
|
+
), a = {
|
|
1918
1918
|
params: {
|
|
1919
1919
|
title: t.title,
|
|
1920
1920
|
// String, le nom de l'affaire
|
|
1921
|
-
community_id: r?.id !== void 0 ? r.id :
|
|
1921
|
+
community_id: r?.id !== void 0 ? r.id : o.id,
|
|
1922
1922
|
// String, l'id de la communauté
|
|
1923
1923
|
message: me(t.text_html),
|
|
1924
1924
|
// STRING => le contenue du message doit être au format HTML
|
|
@@ -1935,7 +1935,7 @@ function dt(e, t, n = void 0, s = void 0) {
|
|
|
1935
1935
|
m(i, {
|
|
1936
1936
|
method: "POST",
|
|
1937
1937
|
headers: d,
|
|
1938
|
-
data: JSON.stringify(
|
|
1938
|
+
data: JSON.stringify(a),
|
|
1939
1939
|
type: "json",
|
|
1940
1940
|
onComplete(u, p, f) {
|
|
1941
1941
|
const l = JSON.parse(u);
|
|
@@ -1951,29 +1951,29 @@ function dt(e, t, n = void 0, s = void 0) {
|
|
|
1951
1951
|
function ut(e, t = void 0, n = void 0) {
|
|
1952
1952
|
const s = { base: e.space, uri: "/api/idea/add" };
|
|
1953
1953
|
if (!Array.isArray(e.swymCommunities)) {
|
|
1954
|
-
const
|
|
1954
|
+
const o = "☠️ swymCommunities doit être un tableau d'objets de communautés";
|
|
1955
1955
|
throw new Error(`Erreur sur cette requête : ${s.base + s.uri}`, {
|
|
1956
|
-
cause:
|
|
1956
|
+
cause: o
|
|
1957
1957
|
});
|
|
1958
1958
|
}
|
|
1959
1959
|
if (e.swymCommunities.findIndex(
|
|
1960
|
-
(
|
|
1960
|
+
(o) => o.id === e.community_id
|
|
1961
1961
|
) === -1) {
|
|
1962
|
-
const
|
|
1962
|
+
const o = "la communauté n'existe pas dans la liste des communautés du Swym";
|
|
1963
1963
|
throw new Error(`Erreur sur cette requête : ${s.base + s.uri}`, {
|
|
1964
|
-
cause:
|
|
1964
|
+
cause: o
|
|
1965
1965
|
});
|
|
1966
1966
|
}
|
|
1967
1967
|
if (e.community_id && e.community_id === "") {
|
|
1968
|
-
const
|
|
1968
|
+
const o = "☠️ community_id doit être un String qui contient l'id de la communauté dans laquelle on souhaite publier l'idée.";
|
|
1969
1969
|
throw new Error(`Erreur sur cette requête : ${s.base + s.uri}`, {
|
|
1970
|
-
cause:
|
|
1970
|
+
cause: o
|
|
1971
1971
|
});
|
|
1972
1972
|
}
|
|
1973
1973
|
if (e.title && e.title === "") {
|
|
1974
|
-
const
|
|
1974
|
+
const o = "☠️ title doit être un String.";
|
|
1975
1975
|
throw new Error(`Erreur sur cette requête : ${s.base + s.uri}`, {
|
|
1976
|
-
cause:
|
|
1976
|
+
cause: o
|
|
1977
1977
|
});
|
|
1978
1978
|
}
|
|
1979
1979
|
const r = {
|
|
@@ -1988,19 +1988,19 @@ function ut(e, t = void 0, n = void 0) {
|
|
|
1988
1988
|
// 1 publier, 0 brouillon
|
|
1989
1989
|
}
|
|
1990
1990
|
};
|
|
1991
|
-
w(e, (
|
|
1992
|
-
if (!
|
|
1991
|
+
w(e, (o) => {
|
|
1992
|
+
if (!o)
|
|
1993
1993
|
throw new Error(
|
|
1994
1994
|
`☠️ token n'est pas disponible pour cette requête : ${s.base + s.uri}`,
|
|
1995
1995
|
{
|
|
1996
|
-
cause:
|
|
1996
|
+
cause: o
|
|
1997
1997
|
}
|
|
1998
1998
|
);
|
|
1999
|
-
const
|
|
1999
|
+
const a = {
|
|
2000
2000
|
headers: {
|
|
2001
2001
|
"Content-type": "application/json;charset=UTF-8",
|
|
2002
2002
|
Accept: "application/json",
|
|
2003
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
2003
|
+
"X-DS-SWYM-CSRFTOKEN": o?.result?.ServerToken
|
|
2004
2004
|
},
|
|
2005
2005
|
method: "POST",
|
|
2006
2006
|
data: JSON.stringify(r),
|
|
@@ -2018,7 +2018,7 @@ function ut(e, t = void 0, n = void 0) {
|
|
|
2018
2018
|
n && n(l);
|
|
2019
2019
|
}
|
|
2020
2020
|
};
|
|
2021
|
-
m(s.base + s.uri,
|
|
2021
|
+
m(s.base + s.uri, a);
|
|
2022
2022
|
});
|
|
2023
2023
|
}
|
|
2024
2024
|
function pt(e, t, n = void 0, s = void 0) {
|
|
@@ -2028,102 +2028,110 @@ function pt(e, t, n = void 0, s = void 0) {
|
|
|
2028
2028
|
ideationIds: [t.idee_id]
|
|
2029
2029
|
}
|
|
2030
2030
|
};
|
|
2031
|
-
w(e, (
|
|
2031
|
+
w(e, (o) => {
|
|
2032
2032
|
m(i, {
|
|
2033
2033
|
method: "POST",
|
|
2034
2034
|
headers: {
|
|
2035
2035
|
"Content-type": "application/json;charset=UTF-8",
|
|
2036
2036
|
Accept: "application/json",
|
|
2037
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
2037
|
+
"X-DS-SWYM-CSRFTOKEN": o?.result?.ServerToken
|
|
2038
2038
|
},
|
|
2039
2039
|
data: JSON.stringify(r),
|
|
2040
2040
|
type: "json",
|
|
2041
|
-
onComplete(
|
|
2042
|
-
n && n(
|
|
2041
|
+
onComplete(a, c, d) {
|
|
2042
|
+
n && n(a);
|
|
2043
2043
|
},
|
|
2044
|
-
onFailure(
|
|
2045
|
-
const u =
|
|
2044
|
+
onFailure(a, c, d) {
|
|
2045
|
+
const u = a;
|
|
2046
2046
|
u.status = c.status, u.response = c.errormsg, s && s(u);
|
|
2047
2047
|
}
|
|
2048
2048
|
});
|
|
2049
2049
|
});
|
|
2050
2050
|
}
|
|
2051
2051
|
function lt(e, t = void 0, n = void 0) {
|
|
2052
|
-
const s = `${
|
|
2052
|
+
const { _3DSwym: s, _3DSwym_token: i } = e, r = `${s}/api/idea/get`;
|
|
2053
2053
|
if (e.idPost === "") {
|
|
2054
|
-
const
|
|
2055
|
-
throw new Error(`Erreur sur cette requête : ${
|
|
2054
|
+
const a = "☠️ idPost est vide, vous devez renseigner un identifiant de post";
|
|
2055
|
+
throw new Error(`Erreur sur cette requête : ${r}`, { cause: a });
|
|
2056
2056
|
}
|
|
2057
|
-
const
|
|
2057
|
+
const o = {
|
|
2058
2058
|
params: {
|
|
2059
2059
|
id: e.idPost
|
|
2060
2060
|
}
|
|
2061
2061
|
};
|
|
2062
|
-
m(
|
|
2062
|
+
m(r, {
|
|
2063
2063
|
method: "POST",
|
|
2064
2064
|
headers: {
|
|
2065
2065
|
"Content-type": "application/json;charset=UTF-8",
|
|
2066
2066
|
Accept: "application/json",
|
|
2067
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
2067
|
+
"X-DS-SWYM-CSRFTOKEN": i
|
|
2068
2068
|
},
|
|
2069
|
-
data: JSON.stringify(
|
|
2070
|
-
onComplete(
|
|
2071
|
-
t && t({ response:
|
|
2069
|
+
data: JSON.stringify(o),
|
|
2070
|
+
onComplete(a) {
|
|
2071
|
+
t && t({ response: a });
|
|
2072
2072
|
},
|
|
2073
|
-
onFailure(
|
|
2074
|
-
const
|
|
2075
|
-
|
|
2073
|
+
onFailure(a) {
|
|
2074
|
+
const c = a;
|
|
2075
|
+
c.status = headers.status, c.response = headers.errormsg, n && n(c);
|
|
2076
2076
|
}
|
|
2077
2077
|
});
|
|
2078
2078
|
}
|
|
2079
2079
|
function ft(e, t, n) {
|
|
2080
|
-
const
|
|
2081
|
-
|
|
2080
|
+
const {
|
|
2081
|
+
_3DSwym: s,
|
|
2082
|
+
_3DSwym_token: i,
|
|
2083
|
+
idPost: r,
|
|
2084
|
+
title: o,
|
|
2085
|
+
community_id: a,
|
|
2086
|
+
status_comment: c,
|
|
2087
|
+
status_id: d,
|
|
2088
|
+
message: u
|
|
2089
|
+
} = e, p = {
|
|
2090
|
+
base: `${s}/api/idea/edit`,
|
|
2082
2091
|
uri: "/api/idea/edit"
|
|
2083
|
-
},
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2092
|
+
}, l = {
|
|
2093
|
+
method: "POST",
|
|
2094
|
+
headers: {
|
|
2095
|
+
"Content-type": "application/json;charset=UTF-8",
|
|
2096
|
+
Accept: "application/json",
|
|
2097
|
+
"X-DS-SWYM-CSRFTOKEN": i
|
|
2098
|
+
},
|
|
2099
|
+
data: JSON.stringify({
|
|
2100
|
+
params: {
|
|
2101
|
+
out: "false",
|
|
2102
|
+
id: r,
|
|
2103
|
+
title: o,
|
|
2104
|
+
community_id: a,
|
|
2105
|
+
status_comment: c,
|
|
2106
|
+
status_id: d,
|
|
2107
|
+
message: u,
|
|
2108
|
+
published: "1"
|
|
2109
|
+
}
|
|
2110
|
+
}),
|
|
2111
|
+
type: "json",
|
|
2112
|
+
onComplete(g, h, y) {
|
|
2113
|
+
const S = {
|
|
2114
|
+
response: typeof g == "string" ? JSON.parse(g) : g
|
|
2115
|
+
};
|
|
2116
|
+
S.status = y.status, t && t(S);
|
|
2117
|
+
},
|
|
2118
|
+
onFailure(g) {
|
|
2119
|
+
n && n(g);
|
|
2093
2120
|
}
|
|
2094
2121
|
};
|
|
2095
|
-
|
|
2096
|
-
const a = {
|
|
2097
|
-
method: "POST",
|
|
2098
|
-
headers: {
|
|
2099
|
-
"X-DS-SWYM-CSRFTOKEN": r?.result?.ServerToken,
|
|
2100
|
-
"Content-type": "application/json;charset=UTF-8"
|
|
2101
|
-
},
|
|
2102
|
-
data: JSON.stringify(i),
|
|
2103
|
-
onComplete(o, c, d) {
|
|
2104
|
-
const u = {
|
|
2105
|
-
response: typeof o == "string" ? JSON.parse(o) : o
|
|
2106
|
-
};
|
|
2107
|
-
u.status = d.status, t && t(u);
|
|
2108
|
-
},
|
|
2109
|
-
onFailure(o) {
|
|
2110
|
-
n && n(o);
|
|
2111
|
-
}
|
|
2112
|
-
};
|
|
2113
|
-
m(s.base + s.uri, a);
|
|
2114
|
-
});
|
|
2122
|
+
m(p.base + p.uri, l);
|
|
2115
2123
|
}
|
|
2116
2124
|
function mt(e, t, n = void 0, s = void 0) {
|
|
2117
2125
|
const { _3DSwym: i } = e;
|
|
2118
|
-
let { community_id: r, limit:
|
|
2126
|
+
let { community_id: r, limit: o, page: a, search: c } = t;
|
|
2119
2127
|
const d = [], u = 1;
|
|
2120
2128
|
let p = !1, f = 2;
|
|
2121
|
-
|
|
2129
|
+
a || (a = u), o || (o = 100);
|
|
2122
2130
|
const l = {
|
|
2123
2131
|
uri: "/api/idea/list",
|
|
2124
2132
|
comId: `/community_id/${r}`,
|
|
2125
|
-
limit: `/limit/${
|
|
2126
|
-
page: `/page/${
|
|
2133
|
+
limit: `/limit/${o}`,
|
|
2134
|
+
page: `/page/${a}`
|
|
2127
2135
|
};
|
|
2128
2136
|
let g = `${i}${l.uri}${l.comId}${l.limit}${l.page}`;
|
|
2129
2137
|
w(e, (h) => {
|
|
@@ -2135,8 +2143,8 @@ function mt(e, t, n = void 0, s = void 0) {
|
|
|
2135
2143
|
},
|
|
2136
2144
|
onComplete(_) {
|
|
2137
2145
|
const C = { response: JSON.parse(_) };
|
|
2138
|
-
if (f = Math.ceil(Number(C.response.nb_result) / 100), _ && f >=
|
|
2139
|
-
if (
|
|
2146
|
+
if (f = Math.ceil(Number(C.response.nb_result) / 100), _ && f >= a) {
|
|
2147
|
+
if (a++, l.page = `/page/${a}`, S = `${i}${l.uri}${l.comId}${l.limit}${l.page}`, !c)
|
|
2140
2148
|
d.push(C.response.result);
|
|
2141
2149
|
else {
|
|
2142
2150
|
const T = C.response.result.find(
|
|
@@ -2147,7 +2155,7 @@ function mt(e, t, n = void 0, s = void 0) {
|
|
|
2147
2155
|
return;
|
|
2148
2156
|
}
|
|
2149
2157
|
}
|
|
2150
|
-
if (n && f <
|
|
2158
|
+
if (n && f < a && !c) {
|
|
2151
2159
|
p = !0, n(d);
|
|
2152
2160
|
return;
|
|
2153
2161
|
}
|
|
@@ -2239,8 +2247,8 @@ function me(e) {
|
|
|
2239
2247
|
</p>` : e;
|
|
2240
2248
|
}
|
|
2241
2249
|
function gt(e, t = void 0, n = void 0) {
|
|
2242
|
-
const { tenant: s, _3DSwym: i, _3DSwym_token: r, community_id:
|
|
2243
|
-
if (s && i && r &&
|
|
2250
|
+
const { tenant: s, _3DSwym: i, _3DSwym_token: r, community_id: o, idea_id: a } = e;
|
|
2251
|
+
if (s && i && r && o && a) {
|
|
2244
2252
|
const c = `${i}/api/idea/forward`;
|
|
2245
2253
|
m(c, {
|
|
2246
2254
|
method: "POST",
|
|
@@ -2250,8 +2258,8 @@ function gt(e, t = void 0, n = void 0) {
|
|
|
2250
2258
|
"X-DS-SWYM-CSRFTOKEN": r
|
|
2251
2259
|
},
|
|
2252
2260
|
data: JSON.stringify({
|
|
2253
|
-
community_uri: `swym:prd:${s.toUpperCase()}:community:${
|
|
2254
|
-
content_uri: `swym:prd:${s.toUpperCase()}:idea:${
|
|
2261
|
+
community_uri: `swym:prd:${s.toUpperCase()}:community:${o}`,
|
|
2262
|
+
content_uri: `swym:prd:${s.toUpperCase()}:idea:${a}`,
|
|
2255
2263
|
timeout: 3e4
|
|
2256
2264
|
}),
|
|
2257
2265
|
type: "json",
|
|
@@ -2264,7 +2272,12 @@ function gt(e, t = void 0, n = void 0) {
|
|
|
2264
2272
|
}
|
|
2265
2273
|
});
|
|
2266
2274
|
} else
|
|
2267
|
-
n && n({
|
|
2275
|
+
n && n({
|
|
2276
|
+
status: "error",
|
|
2277
|
+
msg: "Credentials incomplet !",
|
|
2278
|
+
attend: "tenant, _3DSwym , _3DSwym_token, community_id, idea_id",
|
|
2279
|
+
credentials: e
|
|
2280
|
+
});
|
|
2268
2281
|
}
|
|
2269
2282
|
function ht(e, t = void 0, n = void 0) {
|
|
2270
2283
|
const s = e._3DSwym + "/api/user/getcurrent/";
|
|
@@ -2274,12 +2287,12 @@ function ht(e, t = void 0, n = void 0) {
|
|
|
2274
2287
|
headers: {
|
|
2275
2288
|
"X-DS-SWYM-CSRFTOKEN": i.result.ServerToken
|
|
2276
2289
|
},
|
|
2277
|
-
onComplete(r,
|
|
2290
|
+
onComplete(r, o, a) {
|
|
2278
2291
|
const c = JSON.parse(r);
|
|
2279
2292
|
t && t(c.result);
|
|
2280
2293
|
},
|
|
2281
|
-
onFailure(r,
|
|
2282
|
-
const c = { erreur: JSON.parse(r), headers:
|
|
2294
|
+
onFailure(r, o, a) {
|
|
2295
|
+
const c = { erreur: JSON.parse(r), headers: o, xhr: a };
|
|
2283
2296
|
n && n(c);
|
|
2284
2297
|
}
|
|
2285
2298
|
});
|
|
@@ -2293,12 +2306,12 @@ function yt(e, t, n = void 0, s = void 0) {
|
|
|
2293
2306
|
m(i, {
|
|
2294
2307
|
method: "GET",
|
|
2295
2308
|
headers: { "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken },
|
|
2296
|
-
onComplete(
|
|
2297
|
-
const d = JSON.parse(
|
|
2309
|
+
onComplete(o, a, c) {
|
|
2310
|
+
const d = JSON.parse(o);
|
|
2298
2311
|
n && n(d);
|
|
2299
2312
|
},
|
|
2300
|
-
onFailure(
|
|
2301
|
-
s && s(
|
|
2313
|
+
onFailure(o) {
|
|
2314
|
+
s && s(o);
|
|
2302
2315
|
}
|
|
2303
2316
|
});
|
|
2304
2317
|
},
|
|
@@ -2313,18 +2326,18 @@ function St(e, t = void 0, n = void 0) {
|
|
|
2313
2326
|
}
|
|
2314
2327
|
function _t(e, t = void 0, n = void 0) {
|
|
2315
2328
|
e.tenant && b(e, (s) => {
|
|
2316
|
-
const i = s.services.find((
|
|
2317
|
-
m(
|
|
2318
|
-
async onComplete(
|
|
2319
|
-
const c = typeof
|
|
2329
|
+
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`;
|
|
2330
|
+
m(o, {
|
|
2331
|
+
async onComplete(a) {
|
|
2332
|
+
const c = typeof a == "string" ? JSON.parse(a)?.x3ds_service_redirect_url : a?.x3ds_service_redirect_url;
|
|
2320
2333
|
await fetch(c, {
|
|
2321
2334
|
method: "POST"
|
|
2322
2335
|
}).then((d) => d.json()).then(async (d) => {
|
|
2323
2336
|
t && t(d?.token);
|
|
2324
2337
|
});
|
|
2325
2338
|
},
|
|
2326
|
-
onFailure(
|
|
2327
|
-
n && n(
|
|
2339
|
+
onFailure(a) {
|
|
2340
|
+
n && n(a);
|
|
2328
2341
|
}
|
|
2329
2342
|
});
|
|
2330
2343
|
});
|
|
@@ -2343,8 +2356,8 @@ function wt(e, t = void 0, n = void 0) {
|
|
|
2343
2356
|
}
|
|
2344
2357
|
async function Ct(e, t, n = void 0, s = void 0) {
|
|
2345
2358
|
e.tenant && b(e, (i) => {
|
|
2346
|
-
const
|
|
2347
|
-
fetch(`https://api.uixhome.fr/${
|
|
2359
|
+
const o = `${i.services.find((c) => c.id === "businessprocess")?.url + "/api/v2"}/identity/users`, a = e.tenant.toLowerCase();
|
|
2360
|
+
fetch(`https://api.uixhome.fr/${a}/iterop/listusers?t=${t}&s=${o}`, {
|
|
2348
2361
|
method: "POST"
|
|
2349
2362
|
}).then((c) => c.json()).then((c) => {
|
|
2350
2363
|
n && n(c);
|
|
@@ -2355,8 +2368,8 @@ async function Ct(e, t, n = void 0, s = void 0) {
|
|
|
2355
2368
|
}
|
|
2356
2369
|
async function Tt(e, t, n = void 0, s = void 0) {
|
|
2357
2370
|
e.tenant && b(e, (i) => {
|
|
2358
|
-
const
|
|
2359
|
-
fetch(`https://api.uixhome.fr/${
|
|
2371
|
+
const o = `${i.services.find((c) => c.id === "businessprocess")?.url + "/api/v2"}/repository/data/tables`, a = e.tenant.toLowerCase();
|
|
2372
|
+
fetch(`https://api.uixhome.fr/${a}/iterop/repository/data/tables?t=${t}&s=${o}`, {
|
|
2360
2373
|
method: "GET"
|
|
2361
2374
|
}).then((c) => c.json()).then((c) => {
|
|
2362
2375
|
n && n(c);
|
|
@@ -2370,10 +2383,10 @@ async function bt(e, t, n, s = void 0, i = void 0) {
|
|
|
2370
2383
|
const r = e.tenant.toLowerCase();
|
|
2371
2384
|
fetch(`https://api.uixhome.fr/${r}/iterop/businesstable/${n}?t=${t}`, {
|
|
2372
2385
|
method: "POST"
|
|
2373
|
-
}).then((
|
|
2374
|
-
s && s(
|
|
2375
|
-
}).catch((
|
|
2376
|
-
i && i(
|
|
2386
|
+
}).then((o) => o.json()).then((o) => {
|
|
2387
|
+
s && s(o);
|
|
2388
|
+
}).catch((o) => {
|
|
2389
|
+
i && i(o);
|
|
2377
2390
|
});
|
|
2378
2391
|
}
|
|
2379
2392
|
}
|
|
@@ -2382,18 +2395,18 @@ async function Ot(e, t, n, s = void 0, i = void 0) {
|
|
|
2382
2395
|
const r = e.tenant.toLowerCase();
|
|
2383
2396
|
fetch(`https://api.uixhome.fr/${r}/iterop/businesstable/rows/${n}/?t=${t}`, {
|
|
2384
2397
|
method: "POST"
|
|
2385
|
-
}).then((
|
|
2386
|
-
s && s(
|
|
2387
|
-
}).catch((
|
|
2388
|
-
i && i(
|
|
2398
|
+
}).then((o) => o.json()).then((o) => {
|
|
2399
|
+
s && s(o);
|
|
2400
|
+
}).catch((o) => {
|
|
2401
|
+
i && i(o);
|
|
2389
2402
|
});
|
|
2390
2403
|
}
|
|
2391
2404
|
}
|
|
2392
2405
|
async function $t(e, t, n, s, i = void 0, r = void 0) {
|
|
2393
|
-
e.tenant && b(e, (
|
|
2394
|
-
|
|
2395
|
-
const
|
|
2396
|
-
fetch(`https://api.uixhome.fr/${
|
|
2406
|
+
e.tenant && b(e, (o) => {
|
|
2407
|
+
o.services.find((c) => c.id === "businessprocess")?.url + "";
|
|
2408
|
+
const a = e.tenant.toLowerCase();
|
|
2409
|
+
fetch(`https://api.uixhome.fr/${a}/iterop/businesstable/patch/rows/${n}/?t=${t}&b=${s}`, {
|
|
2397
2410
|
method: "POST"
|
|
2398
2411
|
}).then((c) => c.json()).then((c) => {
|
|
2399
2412
|
i && i(c);
|
|
@@ -2402,17 +2415,17 @@ async function $t(e, t, n, s, i = void 0, r = void 0) {
|
|
|
2402
2415
|
});
|
|
2403
2416
|
});
|
|
2404
2417
|
}
|
|
2405
|
-
async function It(e, t, n, s, i, r = void 0,
|
|
2418
|
+
async function It(e, t, n, s, i, r = void 0, o = void 0) {
|
|
2406
2419
|
if (e.tenant) {
|
|
2407
|
-
const
|
|
2420
|
+
const a = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/search/rows/${n}?t=${t}&c=${encodeURIComponent(
|
|
2408
2421
|
s
|
|
2409
2422
|
)}&b=${encodeURIComponent(i)}`;
|
|
2410
|
-
fetch(
|
|
2423
|
+
fetch(a, {
|
|
2411
2424
|
method: "POST"
|
|
2412
2425
|
}).then((c) => c.json()).then((c) => {
|
|
2413
|
-
c.url =
|
|
2426
|
+
c.url = a, r && r(c);
|
|
2414
2427
|
}).catch((c) => {
|
|
2415
|
-
|
|
2428
|
+
o && o({
|
|
2416
2429
|
error: c,
|
|
2417
2430
|
tableId: n,
|
|
2418
2431
|
columns: s,
|
|
@@ -2423,27 +2436,27 @@ async function It(e, t, n, s, i, r = void 0, a = void 0) {
|
|
|
2423
2436
|
}
|
|
2424
2437
|
async function Nt(e, t, n, s, i = void 0, r = void 0) {
|
|
2425
2438
|
if (e.tenant) {
|
|
2426
|
-
const
|
|
2439
|
+
const o = `https://api.uixhome.fr/${e.tenant.toLowerCase()}/iterop/businesstable/post/update/${n}?t=${t}&b=${encodeURIComponent(
|
|
2427
2440
|
s
|
|
2428
2441
|
)}`;
|
|
2429
|
-
fetch(
|
|
2442
|
+
fetch(o, {
|
|
2430
2443
|
method: "POST"
|
|
2431
|
-
}).then((
|
|
2432
|
-
i && i(
|
|
2433
|
-
}).catch((
|
|
2444
|
+
}).then((a) => a.json()).then((a) => {
|
|
2445
|
+
i && i(a);
|
|
2446
|
+
}).catch((a) => {
|
|
2434
2447
|
r && r({
|
|
2435
|
-
error:
|
|
2436
|
-
url:
|
|
2448
|
+
error: a,
|
|
2449
|
+
url: o
|
|
2437
2450
|
});
|
|
2438
2451
|
});
|
|
2439
2452
|
}
|
|
2440
2453
|
}
|
|
2441
2454
|
async function vt(e, t, n, s, i = void 0, r = void 0) {
|
|
2442
|
-
e.tenant && b(e, (
|
|
2443
|
-
|
|
2444
|
-
const
|
|
2455
|
+
e.tenant && b(e, (o) => {
|
|
2456
|
+
o.services.find((c) => c.id === "businessprocess")?.url + "";
|
|
2457
|
+
const a = e.tenant.toLowerCase();
|
|
2445
2458
|
fetch(
|
|
2446
|
-
`https://api.uixhome.fr/${
|
|
2459
|
+
`https://api.uixhome.fr/${a}/iterop/runtime/processes/${n}?t=${t}&b=${s}`,
|
|
2447
2460
|
{
|
|
2448
2461
|
method: "POST"
|
|
2449
2462
|
}
|
|
@@ -2456,23 +2469,23 @@ async function vt(e, t, n, s, i = void 0, r = void 0) {
|
|
|
2456
2469
|
}
|
|
2457
2470
|
async function Ft(e, t, n, s = void 0, i = void 0) {
|
|
2458
2471
|
e.tenant && b(e, (r) => {
|
|
2459
|
-
r.services.find((
|
|
2460
|
-
const
|
|
2472
|
+
r.services.find((a) => a.id === "businessprocess")?.url + "";
|
|
2473
|
+
const o = e.tenant.toLowerCase();
|
|
2461
2474
|
fetch(
|
|
2462
|
-
`https://api.uixhome.fr/${
|
|
2475
|
+
`https://api.uixhome.fr/${o}/iterop/dependencytable/one/${n}/?t=${t}`,
|
|
2463
2476
|
{
|
|
2464
2477
|
method: "POST"
|
|
2465
2478
|
}
|
|
2466
|
-
).then((
|
|
2467
|
-
s && s(
|
|
2468
|
-
}).catch((
|
|
2469
|
-
i && i(
|
|
2479
|
+
).then((a) => a.json()).then((a) => {
|
|
2480
|
+
s && s(a);
|
|
2481
|
+
}).catch((a) => {
|
|
2482
|
+
i && i(a);
|
|
2470
2483
|
});
|
|
2471
2484
|
});
|
|
2472
2485
|
}
|
|
2473
|
-
async function
|
|
2474
|
-
e.tenant && b(e, (
|
|
2475
|
-
|
|
2486
|
+
async function At(e, t, n, s, i, r = void 0, o = void 0) {
|
|
2487
|
+
e.tenant && b(e, (a) => {
|
|
2488
|
+
a.services.find((d) => d.id === "businessprocess")?.url + "";
|
|
2476
2489
|
const c = e.tenant.toLowerCase();
|
|
2477
2490
|
fetch(
|
|
2478
2491
|
`https://api.uixhome.fr/${c}/iterop/dependencytable/patch/${n}/?t=${t}&cli=${s}&b=${i}`,
|
|
@@ -2482,16 +2495,16 @@ async function kt(e, t, n, s, i, r = void 0, a = void 0) {
|
|
|
2482
2495
|
).then((d) => d.json()).then((d) => {
|
|
2483
2496
|
r && r(d);
|
|
2484
2497
|
}).catch((d) => {
|
|
2485
|
-
|
|
2498
|
+
o && o(d);
|
|
2486
2499
|
});
|
|
2487
2500
|
});
|
|
2488
2501
|
}
|
|
2489
|
-
async function
|
|
2490
|
-
e.tenant && b(e, (
|
|
2491
|
-
|
|
2492
|
-
const
|
|
2502
|
+
async function kt(e, t, n, s, i = void 0, r = void 0) {
|
|
2503
|
+
e.tenant && b(e, (o) => {
|
|
2504
|
+
o.services.find((c) => c.id === "businessprocess")?.url + "";
|
|
2505
|
+
const a = e.tenant.toLowerCase();
|
|
2493
2506
|
fetch(
|
|
2494
|
-
`https://api.uixhome.fr/${
|
|
2507
|
+
`https://api.uixhome.fr/${a}/iterop/dependencytable/put/${n}/?t=${t}&b=${s}`,
|
|
2495
2508
|
{
|
|
2496
2509
|
method: "POST"
|
|
2497
2510
|
}
|
|
@@ -2503,7 +2516,7 @@ async function At(e, t, n, s, i = void 0, r = void 0) {
|
|
|
2503
2516
|
});
|
|
2504
2517
|
}
|
|
2505
2518
|
//!SECTION
|
|
2506
|
-
async function
|
|
2519
|
+
async function jt(e, t, n, s = void 0, i = void 0) {
|
|
2507
2520
|
if (e.tenant) {
|
|
2508
2521
|
const r = e.tenant.toLowerCase();
|
|
2509
2522
|
fetch(
|
|
@@ -2511,42 +2524,42 @@ async function Ut(e, t, n, s = void 0, i = void 0) {
|
|
|
2511
2524
|
{
|
|
2512
2525
|
method: "POST"
|
|
2513
2526
|
}
|
|
2514
|
-
).then((
|
|
2515
|
-
s && s(
|
|
2516
|
-
}).catch((
|
|
2517
|
-
i && i(
|
|
2527
|
+
).then((o) => o.json()).then((o) => {
|
|
2528
|
+
s && s(o);
|
|
2529
|
+
}).catch((o) => {
|
|
2530
|
+
i && i(o);
|
|
2518
2531
|
});
|
|
2519
2532
|
}
|
|
2520
2533
|
}
|
|
2521
2534
|
//!SECTION
|
|
2522
|
-
function
|
|
2535
|
+
function Ut(e) {
|
|
2523
2536
|
const t = "Hello " + e;
|
|
2524
2537
|
return console.log(t), t;
|
|
2525
2538
|
}
|
|
2526
2539
|
function xt(e, t = void 0, n = void 0) {
|
|
2527
2540
|
return console.log("credentials", e), new Promise((s) => {
|
|
2528
2541
|
if (e.token === "" && O(e), !e.space || e.space === "") {
|
|
2529
|
-
const
|
|
2530
|
-
console.log("platformeInfo",
|
|
2542
|
+
const o = q();
|
|
2543
|
+
console.log("platformeInfo", o);
|
|
2531
2544
|
}
|
|
2532
|
-
|
|
2545
|
+
A(
|
|
2533
2546
|
e,
|
|
2534
2547
|
"Common space",
|
|
2535
2548
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
2536
2549
|
void 0,
|
|
2537
|
-
(
|
|
2538
|
-
(
|
|
2539
|
-
console.log("onError =>",
|
|
2550
|
+
(o) => e.ctx = o,
|
|
2551
|
+
(o) => {
|
|
2552
|
+
console.log("onError =>", o);
|
|
2540
2553
|
},
|
|
2541
2554
|
!0
|
|
2542
2555
|
);
|
|
2543
2556
|
const i = $.now().ts, r = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dsearch&platformId=${e.tenant}`;
|
|
2544
2557
|
m(r, {
|
|
2545
|
-
onComplete(
|
|
2546
|
-
if (Array.isArray(JSON.parse(
|
|
2547
|
-
const
|
|
2548
|
-
console.log("serviceId=3dsearch",
|
|
2549
|
-
const c = `${
|
|
2558
|
+
onComplete(o) {
|
|
2559
|
+
if (Array.isArray(JSON.parse(o))) {
|
|
2560
|
+
const a = JSON.parse(o);
|
|
2561
|
+
console.log("serviceId=3dsearch", a);
|
|
2562
|
+
const c = `${a[0].services[0].url}/search?xrequestedwith=xmlhttprequest`;
|
|
2550
2563
|
m(c, {
|
|
2551
2564
|
method: "POST",
|
|
2552
2565
|
headers: {
|
|
@@ -2596,8 +2609,8 @@ function xt(e, t = void 0, n = void 0) {
|
|
|
2596
2609
|
});
|
|
2597
2610
|
}
|
|
2598
2611
|
},
|
|
2599
|
-
onFailure(
|
|
2600
|
-
n && n(
|
|
2612
|
+
onFailure(o) {
|
|
2613
|
+
n && n(o);
|
|
2601
2614
|
}
|
|
2602
2615
|
});
|
|
2603
2616
|
});
|
|
@@ -2619,8 +2632,8 @@ export {
|
|
|
2619
2632
|
R as _3DSpace_get_docInfo,
|
|
2620
2633
|
ae as _3DSpace_get_downloadTicket_multidoc,
|
|
2621
2634
|
De as _3DSpace_get_multiDocInfo,
|
|
2622
|
-
|
|
2623
|
-
|
|
2635
|
+
A as _3DSpace_get_securityContexts,
|
|
2636
|
+
j as _3DSpace_get_ticket,
|
|
2624
2637
|
Ve as _3DSpace_lifecycle_changeRevision,
|
|
2625
2638
|
Ee as _3DSpace_lifecycle_changeState,
|
|
2626
2639
|
Ke as _3DSpace_lifecycle_getGraph,
|
|
@@ -2649,10 +2662,10 @@ export {
|
|
|
2649
2662
|
$t as _Iterop_AddOrRemoveRows,
|
|
2650
2663
|
_t as _Iterop_Auth_CAS,
|
|
2651
2664
|
Ft as _Iterop_GetOneDependencyTable,
|
|
2652
|
-
|
|
2665
|
+
jt as _Iterop_GetOneList,
|
|
2653
2666
|
Ct as _Iterop_ListUsers,
|
|
2654
|
-
|
|
2655
|
-
|
|
2667
|
+
At as _Iterop_PatchDependencyTable,
|
|
2668
|
+
kt as _Iterop_PutDependencyTable,
|
|
2656
2669
|
It as _Iterop_businessTableSearchInRows,
|
|
2657
2670
|
Tt as _Iterop_getAllBusinessTables,
|
|
2658
2671
|
bt as _Iterop_getOneBusinessTable,
|
|
@@ -2673,21 +2686,21 @@ export {
|
|
|
2673
2686
|
W as chunkArray,
|
|
2674
2687
|
Ne as compass_getListAdditionalApps,
|
|
2675
2688
|
V as couleurs,
|
|
2676
|
-
|
|
2689
|
+
Ae as createUserGroups,
|
|
2677
2690
|
oe as dataMixing,
|
|
2678
|
-
|
|
2691
|
+
Ue as deleteUserGroups,
|
|
2679
2692
|
_e as findAdresse,
|
|
2680
2693
|
qe as getAllContextSecurity,
|
|
2681
2694
|
H as getCSRFToken,
|
|
2682
2695
|
Se as getCommunes,
|
|
2683
|
-
|
|
2696
|
+
ke as getComplementUG,
|
|
2684
2697
|
Ye as getDataFrom3DSpace,
|
|
2685
2698
|
we as getDataFromGouvFr,
|
|
2686
2699
|
Ze as getDatasByTenant,
|
|
2687
2700
|
et as getDatasFrom3DSpace,
|
|
2688
2701
|
He as getDownloadDocument,
|
|
2689
2702
|
st as getInfoDocTags,
|
|
2690
|
-
|
|
2703
|
+
je as getUserGroupsList,
|
|
2691
2704
|
Y as getUsersGroupRules,
|
|
2692
2705
|
Qe as get_3DSpace_csrf,
|
|
2693
2706
|
xe as patchUserGroups,
|
|
@@ -2695,7 +2708,7 @@ export {
|
|
|
2695
2708
|
ze as pushDataIn3DSpace,
|
|
2696
2709
|
Re as readUserGroupControl,
|
|
2697
2710
|
nt as removeTagToDoc,
|
|
2698
|
-
|
|
2711
|
+
Ut as sayHello,
|
|
2699
2712
|
Ce as updateEvent
|
|
2700
2713
|
};
|
|
2701
2714
|
//# sourceMappingURL=wb3Api.js.map
|