@beam3_dev/api_module 0.0.84 → 0.0.85
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 +534 -465
- package/dist/wb3Api.js.map +1 -1
- package/dist/wb3Api.umd.cjs +5 -5
- package/dist/wb3Api.umd.cjs.map +1 -1
- package/package.json +1 -1
package/dist/wb3Api.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { v4 as M } from "uuid";
|
|
2
|
-
import { DateTime as
|
|
3
|
-
import { requirejs as O, widget as
|
|
4
|
-
function
|
|
2
|
+
import { DateTime as b } from "luxon";
|
|
3
|
+
import { requirejs as O, widget as j } from "@widget-lab/3ddashboard-utils";
|
|
4
|
+
function R() {
|
|
5
5
|
return M();
|
|
6
6
|
}
|
|
7
7
|
const L = {
|
|
@@ -34,7 +34,7 @@ const L = {
|
|
|
34
34
|
b3Edit8: "#616161",
|
|
35
35
|
b3Edit9: "#795548"
|
|
36
36
|
};
|
|
37
|
-
async function
|
|
37
|
+
async function ie(e, t = void 0, s = void 0) {
|
|
38
38
|
const n = parseInt(e);
|
|
39
39
|
await fetch(
|
|
40
40
|
"https://apicarto.ign.fr/api/codes-postaux/communes/" + n,
|
|
@@ -44,10 +44,10 @@ async function oe(e, t = void 0, s = void 0) {
|
|
|
44
44
|
Accept: "application/json"
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
).then((
|
|
48
|
-
t && t(
|
|
49
|
-
}).catch((
|
|
50
|
-
s && s(
|
|
47
|
+
).then((o) => o.json()).then((o) => {
|
|
48
|
+
t && t(o);
|
|
49
|
+
}).catch((o) => {
|
|
50
|
+
s && s(o), console.error("Erreur : " + o);
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
53
|
async function re(e, t = void 0, s = void 0) {
|
|
@@ -66,10 +66,10 @@ async function re(e, t = void 0, s = void 0) {
|
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
async function ce(e, t = L) {
|
|
69
|
-
let s =
|
|
70
|
-
const n = e,
|
|
71
|
-
for (let
|
|
72
|
-
|
|
69
|
+
let s = b.now().year;
|
|
70
|
+
const n = e, o = [], r = (a) => {
|
|
71
|
+
for (let i in a)
|
|
72
|
+
o.push({ date: i, comment: a[i] });
|
|
73
73
|
};
|
|
74
74
|
for (let a = s; a <= s + 1; a++)
|
|
75
75
|
await fetch(
|
|
@@ -80,20 +80,20 @@ async function ce(e, t = L) {
|
|
|
80
80
|
Accept: "application/json"
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
).then((
|
|
84
|
-
|
|
85
|
-
}).catch((
|
|
83
|
+
).then((i) => i.json()).then((i) => {
|
|
84
|
+
r(i);
|
|
85
|
+
}).catch((i) => console.error("Erreur : " + i));
|
|
86
86
|
return (() => {
|
|
87
87
|
const a = n.length === 0 ? {
|
|
88
88
|
events: []
|
|
89
89
|
} : n;
|
|
90
|
-
for (let
|
|
90
|
+
for (let i of o)
|
|
91
91
|
a.events.findIndex(
|
|
92
|
-
(l) => l.start ===
|
|
92
|
+
(l) => l.start === b.fromISO(i.date).toISODate() && l.name === "Férié : " + i.comment
|
|
93
93
|
) === -1 && a.events.push({
|
|
94
|
-
name: "Férié : " +
|
|
95
|
-
start:
|
|
96
|
-
end:
|
|
94
|
+
name: "Férié : " + i.comment,
|
|
95
|
+
start: b.fromISO(i.date).toISODate(),
|
|
96
|
+
end: b.fromISO(i.date).toISODate(),
|
|
97
97
|
color: t.b3BusinnessDays,
|
|
98
98
|
timed: !1
|
|
99
99
|
});
|
|
@@ -101,8 +101,8 @@ async function ce(e, t = L) {
|
|
|
101
101
|
})();
|
|
102
102
|
}
|
|
103
103
|
async function de(e, t, s = !0) {
|
|
104
|
-
const n = e.events.findIndex((
|
|
105
|
-
return n === -1 ? e.events.push(t) : s ? e.events[n] = t : e.events.splice(n, 1), e.length > 0 && e.sort((
|
|
104
|
+
const n = e.events.findIndex((o) => o.uuid === t.uuid);
|
|
105
|
+
return n === -1 ? e.events.push(t) : s ? e.events[n] = t : e.events.splice(n, 1), e.length > 0 && e.sort((o, r) => o.start - r.start), e;
|
|
106
106
|
}
|
|
107
107
|
function m(e, t) {
|
|
108
108
|
O(["DS/WAFData/WAFData"], (s) => {
|
|
@@ -118,7 +118,7 @@ function pe(e, t = void 0) {
|
|
|
118
118
|
O(["DS/TagNavigatorProxy/TagNavigatorProxy"], (s) => {
|
|
119
119
|
let n;
|
|
120
120
|
n === void 0 && (n = s.createProxy({
|
|
121
|
-
widgetId:
|
|
121
|
+
widgetId: j.id,
|
|
122
122
|
filteringMode: "WithFilteringServices"
|
|
123
123
|
}), t !== void 0 && n.addEvent("onFilterSubjectsChange", t)), n.setSubjectsTags(e);
|
|
124
124
|
});
|
|
@@ -132,7 +132,7 @@ async function fe(e, t = void 0, s = void 0) {
|
|
|
132
132
|
await O(
|
|
133
133
|
["DS/i3DXCompassServices/i3DXCompassServices"],
|
|
134
134
|
(n) => {
|
|
135
|
-
(!e || e === "") && (e =
|
|
135
|
+
(!e || e === "") && (e = j.getValue("PlatFormInstanceId")), (!e || e === "") && (e = void 0), t && t(
|
|
136
136
|
n.getPlatformServices({
|
|
137
137
|
platformId: e,
|
|
138
138
|
onComplete: t,
|
|
@@ -145,14 +145,14 @@ async function fe(e, t = void 0, s = void 0) {
|
|
|
145
145
|
function me() {
|
|
146
146
|
let e = {};
|
|
147
147
|
return O(["DS/PlatformAPI/PlatformAPI"], (t) => {
|
|
148
|
-
const s = t.getTenant(), n = t.getUser(),
|
|
148
|
+
const s = t.getTenant(), n = t.getUser(), o = t.getAllApplicationConfigurations(), r = t.getApplicationConfiguration(
|
|
149
149
|
"com.3ds.wp.passport.cors"
|
|
150
150
|
);
|
|
151
151
|
e = {
|
|
152
152
|
tenant: s,
|
|
153
153
|
user: n,
|
|
154
|
-
appsConfiguration:
|
|
155
|
-
appConf:
|
|
154
|
+
appsConfiguration: o,
|
|
155
|
+
appConf: r
|
|
156
156
|
};
|
|
157
157
|
}), console.log("%cRETOUR API :", "color:blue", e), e;
|
|
158
158
|
}
|
|
@@ -162,49 +162,49 @@ function ge(e, t, s) {
|
|
|
162
162
|
uri: "/resources/AppsMngt/api/custom/applications",
|
|
163
163
|
option: `?filter=${e.tenant}`
|
|
164
164
|
// facultatif
|
|
165
|
-
},
|
|
166
|
-
m(
|
|
165
|
+
}, o = `${n.base}${n.uri}${n.option}`;
|
|
166
|
+
m(o, {
|
|
167
167
|
method: "GET",
|
|
168
168
|
headers: {
|
|
169
169
|
"Content-Type": "application/json",
|
|
170
170
|
Accept: "application/json"
|
|
171
171
|
},
|
|
172
|
-
onComplete(
|
|
173
|
-
const
|
|
172
|
+
onComplete(r, c, a) {
|
|
173
|
+
const i = JSON.parse(r), d = i.data.map((l) => {
|
|
174
174
|
const p = l.attributes.name, u = l.id;
|
|
175
175
|
return { name: p, id: u };
|
|
176
176
|
});
|
|
177
|
-
t && t(d,
|
|
177
|
+
t && t(d, i);
|
|
178
178
|
},
|
|
179
|
-
onFailure(
|
|
180
|
-
const a =
|
|
181
|
-
a.msg =
|
|
179
|
+
onFailure(r, c) {
|
|
180
|
+
const a = r;
|
|
181
|
+
a.msg = c.errormsg, a.errCode = c.errorcode, s && s(a);
|
|
182
182
|
}
|
|
183
183
|
});
|
|
184
184
|
}
|
|
185
185
|
function he(e, t = void 0, s = void 0) {
|
|
186
186
|
let n = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&limit=-1`;
|
|
187
187
|
m(n, {
|
|
188
|
-
onComplete(
|
|
189
|
-
const a = JSON.parse(
|
|
188
|
+
onComplete(o, r, c) {
|
|
189
|
+
const a = JSON.parse(o);
|
|
190
190
|
console.log("_AppMngt_get_users => ", a), t && t(a);
|
|
191
191
|
},
|
|
192
|
-
onFailure(
|
|
193
|
-
const
|
|
194
|
-
|
|
192
|
+
onFailure(o, r) {
|
|
193
|
+
const c = o;
|
|
194
|
+
c.msg = r.errormsg, c.errCode = r.errorcode, s && s(c);
|
|
195
195
|
}
|
|
196
196
|
});
|
|
197
197
|
}
|
|
198
198
|
function Se(e, t, s = void 0, n = void 0) {
|
|
199
|
-
let
|
|
200
|
-
m(
|
|
201
|
-
onComplete(
|
|
202
|
-
const
|
|
203
|
-
s && s(
|
|
199
|
+
let o = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&id=${t}`;
|
|
200
|
+
m(o, {
|
|
201
|
+
onComplete(r, c, a) {
|
|
202
|
+
const i = JSON.parse(r);
|
|
203
|
+
s && s(i);
|
|
204
204
|
},
|
|
205
|
-
onFailure(
|
|
206
|
-
const a =
|
|
207
|
-
a.msg =
|
|
205
|
+
onFailure(r, c) {
|
|
206
|
+
const a = r;
|
|
207
|
+
a.msg = c.errormsg, a.errCode = c.errorcode, n && n(a);
|
|
208
208
|
}
|
|
209
209
|
});
|
|
210
210
|
}
|
|
@@ -213,14 +213,14 @@ const F = {
|
|
|
213
213
|
Accept: "application/json,text/javascript,*/*"
|
|
214
214
|
};
|
|
215
215
|
function _e(e, t, s = void 0, n = void 0) {
|
|
216
|
-
const { space:
|
|
216
|
+
const { space: o, currentUser: r } = e, a = `${o}${{
|
|
217
217
|
URIUGr: "/3drdfpersist/resources/v1/usersgroup"
|
|
218
|
-
}.URIUGr}`,
|
|
218
|
+
}.URIUGr}`, i = {
|
|
219
219
|
groups: [
|
|
220
220
|
{
|
|
221
221
|
title: t.title,
|
|
222
222
|
description: t.description,
|
|
223
|
-
members: t.members || [
|
|
223
|
+
members: t.members || [r.email, "samuel.mureau@beam3.fr"],
|
|
224
224
|
pending_members: [],
|
|
225
225
|
sharing: t.sharing,
|
|
226
226
|
visibility: t.visibility
|
|
@@ -230,7 +230,7 @@ function _e(e, t, s = void 0, n = void 0) {
|
|
|
230
230
|
m(a, {
|
|
231
231
|
method: "POST",
|
|
232
232
|
headers: F,
|
|
233
|
-
data: JSON.stringify(
|
|
233
|
+
data: JSON.stringify(i),
|
|
234
234
|
onComplete(d) {
|
|
235
235
|
s && s(JSON.parse(d));
|
|
236
236
|
},
|
|
@@ -242,7 +242,7 @@ function _e(e, t, s = void 0, n = void 0) {
|
|
|
242
242
|
});
|
|
243
243
|
}
|
|
244
244
|
function ye(e, t, s = void 0, n = void 0) {
|
|
245
|
-
const { space:
|
|
245
|
+
const { space: o, tenant: r } = e, c = o, a = `/3drdfpersist/v1/resources/${t}`, i = `?$mask=dsaccess:Mask.GroupUI.Properties&tenant=dstenant:${r}`, d = `${c}${a}${i}`;
|
|
246
246
|
m(d, {
|
|
247
247
|
opts: {
|
|
248
248
|
method: "GET",
|
|
@@ -261,12 +261,12 @@ function ye(e, t, s = void 0, n = void 0) {
|
|
|
261
261
|
});
|
|
262
262
|
}
|
|
263
263
|
function J(e, t = void 0, s = void 0) {
|
|
264
|
-
const { space: n, tenant:
|
|
264
|
+
const { space: n, tenant: o } = e, r = n, c = "/3drdfpersist/resources/v1/option-sets/dsusergroup:ListOfGroupResponsibilities/options", a = `?tenant=dstenant:${o}`, i = {
|
|
265
265
|
method: "GET",
|
|
266
266
|
Accept: "application/json,*/*,test/javascript"
|
|
267
|
-
}, d = `${
|
|
267
|
+
}, d = `${r}${c}${a}`;
|
|
268
268
|
m(d, {
|
|
269
|
-
OPTsH:
|
|
269
|
+
OPTsH: i,
|
|
270
270
|
onComplete(l) {
|
|
271
271
|
t && t(JSON.parse(l));
|
|
272
272
|
},
|
|
@@ -277,7 +277,7 @@ function J(e, t = void 0, s = void 0) {
|
|
|
277
277
|
});
|
|
278
278
|
}
|
|
279
279
|
function we(e, t = void 0, s = void 0) {
|
|
280
|
-
const { space: n, currentUser:
|
|
280
|
+
const { space: n, currentUser: o } = e, a = `${n}/3drdfpersist/resources/v1/usersgroup?select=uri,title,description,owner,members,pending_members,creation_date,modification_date,visibility`, d = { method: "GET", headers: {
|
|
281
281
|
"Content-Type": "application/json",
|
|
282
282
|
Accept: "application/json,text/javascript,*/*"
|
|
283
283
|
} };
|
|
@@ -286,8 +286,8 @@ function we(e, t = void 0, s = void 0) {
|
|
|
286
286
|
opts: d,
|
|
287
287
|
onComplete(l) {
|
|
288
288
|
const p = JSON.parse(l), u = {}, f = p.groups.filter((g) => g.uri.startsWith("uuid:"));
|
|
289
|
-
if (
|
|
290
|
-
const g = f.filter((_) => _.owner ===
|
|
289
|
+
if (o && Object.keys(o).length > 0) {
|
|
290
|
+
const g = f.filter((_) => _.owner === o.email), h = f.filter((_) => _.members.includes(o.email)), S = g.concat(h);
|
|
291
291
|
u.iam = S, u.UG = f, u.iamMember = h, J(
|
|
292
292
|
e,
|
|
293
293
|
(_) => {
|
|
@@ -308,21 +308,21 @@ function we(e, t = void 0, s = void 0) {
|
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
310
|
function Te(e, t) {
|
|
311
|
-
const { space: s } = e,
|
|
312
|
-
m(
|
|
311
|
+
const { space: s } = e, o = `${s}/3drdfpersist/resources/v1/usersgroup/${t}`;
|
|
312
|
+
m(o, {
|
|
313
313
|
method: "DELETE"
|
|
314
314
|
});
|
|
315
315
|
}
|
|
316
|
-
function Ce(e, t, s, n = void 0,
|
|
317
|
-
const { space:
|
|
316
|
+
function Ce(e, t, s, n = void 0, o = void 0) {
|
|
317
|
+
const { space: r, tenant: c } = e, a = {
|
|
318
318
|
URITI: "/3drdfpersist/resources/v1/template-instances",
|
|
319
319
|
URIUGr: "/3drdfpersist/resources/v1/usersgroup",
|
|
320
320
|
nextURICh: "/characteristics",
|
|
321
321
|
nextURIGr: "/group",
|
|
322
322
|
nexURImem: "/members",
|
|
323
323
|
OPTsTI: "?$mask=dsaccess:Mask.GroupUI.Properties",
|
|
324
|
-
OPTsTenant: `tenant=dstenant:${
|
|
325
|
-
},
|
|
324
|
+
OPTsTenant: `tenant=dstenant:${c}`
|
|
325
|
+
}, i = s, d = `${r}${a.URIUGr}/${t}`, l = JSON.stringify(i);
|
|
326
326
|
m(d, {
|
|
327
327
|
headers: F,
|
|
328
328
|
method: "PATCH",
|
|
@@ -332,12 +332,12 @@ function Ce(e, t, s, n = void 0, i = void 0) {
|
|
|
332
332
|
n && n(p);
|
|
333
333
|
},
|
|
334
334
|
onFailure(p) {
|
|
335
|
-
|
|
335
|
+
o && o(p);
|
|
336
336
|
}
|
|
337
337
|
});
|
|
338
338
|
}
|
|
339
|
-
function Oe(e, t, s, n = void 0,
|
|
340
|
-
const { space:
|
|
339
|
+
function Oe(e, t, s, n = void 0, o = void 0) {
|
|
340
|
+
const { space: r } = e, a = `${r}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
|
|
341
341
|
m(a, {
|
|
342
342
|
method: "PATCH",
|
|
343
343
|
headers: F,
|
|
@@ -347,13 +347,13 @@ function Oe(e, t, s, n = void 0, i = void 0) {
|
|
|
347
347
|
n && n(d);
|
|
348
348
|
},
|
|
349
349
|
onFailure(d) {
|
|
350
|
-
|
|
350
|
+
o && o(d);
|
|
351
351
|
}
|
|
352
352
|
});
|
|
353
353
|
}
|
|
354
354
|
function be(e, t, s = void 0, n = void 0) {
|
|
355
|
-
const { space:
|
|
356
|
-
m(
|
|
355
|
+
const { space: o } = e, c = `${o}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
|
|
356
|
+
m(c, {
|
|
357
357
|
opts: {
|
|
358
358
|
method: "GET",
|
|
359
359
|
headers: {
|
|
@@ -373,29 +373,29 @@ async function E(e, t, s) {
|
|
|
373
373
|
if (e.space) {
|
|
374
374
|
const n = `${e.space}/resources/v1/application/CSRF`;
|
|
375
375
|
m(n, {
|
|
376
|
-
onComplete(
|
|
377
|
-
|
|
376
|
+
onComplete(o) {
|
|
377
|
+
o = JSON.parse(o), t && t(o.csrf);
|
|
378
378
|
},
|
|
379
|
-
onFailure(
|
|
380
|
-
s && s({ error:
|
|
379
|
+
onFailure(o, r, c) {
|
|
380
|
+
s && s({ error: o, headers: r, xhr: c });
|
|
381
381
|
}
|
|
382
382
|
});
|
|
383
383
|
}
|
|
384
384
|
}
|
|
385
385
|
async function G(e, t = void 0, s = void 0, n = void 0) {
|
|
386
|
-
const
|
|
386
|
+
const o = e.space;
|
|
387
387
|
if (t === void 0) {
|
|
388
388
|
console.log("Le paramètre docid est obligatoire");
|
|
389
389
|
return;
|
|
390
390
|
}
|
|
391
|
-
const
|
|
392
|
-
m(
|
|
393
|
-
onComplete(
|
|
394
|
-
const d = JSON.parse(
|
|
391
|
+
const r = o + `/resources/v1/modeler/documents/${t}`;
|
|
392
|
+
m(r, {
|
|
393
|
+
onComplete(c, a, i) {
|
|
394
|
+
const d = JSON.parse(c);
|
|
395
395
|
s && s(d);
|
|
396
396
|
},
|
|
397
|
-
onFailure(
|
|
398
|
-
n && n(
|
|
397
|
+
onFailure(c) {
|
|
398
|
+
n && n(c);
|
|
399
399
|
}
|
|
400
400
|
});
|
|
401
401
|
}
|
|
@@ -403,12 +403,12 @@ function k(e, t = void 0, s = void 0) {
|
|
|
403
403
|
if (e.objID && e.objID !== "") {
|
|
404
404
|
let n = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
|
|
405
405
|
m(n, {
|
|
406
|
-
onComplete(
|
|
407
|
-
const a = JSON.parse(
|
|
406
|
+
onComplete(o, r, c) {
|
|
407
|
+
const a = JSON.parse(o);
|
|
408
408
|
e.token = a?.csrf?.value, e.datas = a?.data[0], t && t(e);
|
|
409
409
|
},
|
|
410
|
-
onFailure(
|
|
411
|
-
s && s(
|
|
410
|
+
onFailure(o) {
|
|
411
|
+
s && s(o);
|
|
412
412
|
}
|
|
413
413
|
});
|
|
414
414
|
} else
|
|
@@ -426,101 +426,101 @@ function C(e, t = void 0, s = void 0) {
|
|
|
426
426
|
if (e.space) {
|
|
427
427
|
const n = e.space + "/resources/v1/application/CSRF";
|
|
428
428
|
m(n, {
|
|
429
|
-
onComplete(
|
|
430
|
-
const a = JSON.parse(
|
|
429
|
+
onComplete(o, r, c) {
|
|
430
|
+
const a = JSON.parse(o);
|
|
431
431
|
t && t(a.csrf.value);
|
|
432
432
|
},
|
|
433
|
-
onFailure(
|
|
433
|
+
onFailure(o, r, c) {
|
|
434
434
|
s && s({
|
|
435
|
-
response:
|
|
436
|
-
headers:
|
|
437
|
-
xhr:
|
|
435
|
+
response: o,
|
|
436
|
+
headers: r,
|
|
437
|
+
xhr: c
|
|
438
438
|
});
|
|
439
439
|
}
|
|
440
440
|
});
|
|
441
441
|
} else
|
|
442
442
|
s && s("ERROR : url du 3DSpace non défini.");
|
|
443
443
|
}
|
|
444
|
-
function
|
|
444
|
+
function A(e, t = void 0, s = void 0) {
|
|
445
445
|
let n = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
|
|
446
446
|
k(
|
|
447
447
|
e,
|
|
448
|
-
(
|
|
448
|
+
(o) => {
|
|
449
449
|
m(n, {
|
|
450
450
|
method: "PUT",
|
|
451
451
|
headers: {
|
|
452
452
|
ENO_CSRF_TOKEN: e.token
|
|
453
453
|
},
|
|
454
|
-
onComplete(
|
|
455
|
-
const a = JSON.parse(
|
|
454
|
+
onComplete(r) {
|
|
455
|
+
const a = JSON.parse(r).data[0].dataelements.ticketURL;
|
|
456
456
|
t && t(a);
|
|
457
457
|
},
|
|
458
|
-
onFailure(
|
|
459
|
-
console.warn("☠️ error => ",
|
|
458
|
+
onFailure(r, c) {
|
|
459
|
+
console.warn("☠️ error => ", r, c), s && s(r, c);
|
|
460
460
|
}
|
|
461
461
|
});
|
|
462
462
|
},
|
|
463
|
-
(
|
|
464
|
-
console.warn("_3DSpace_get_ticket / error => ",
|
|
463
|
+
(o) => {
|
|
464
|
+
console.warn("_3DSpace_get_ticket / error => ", o), s && s(o);
|
|
465
465
|
}
|
|
466
466
|
);
|
|
467
467
|
}
|
|
468
|
-
function Ne(e, t, s, n = void 0,
|
|
469
|
-
const
|
|
470
|
-
s || (s = e.token), m(
|
|
468
|
+
function Ne(e, t, s, n = void 0, o = void 0) {
|
|
469
|
+
const r = `${e.space}/resources/v1/modeler/documents/${t}/files/DownloadTicket`;
|
|
470
|
+
s || (s = e.token), m(r, {
|
|
471
471
|
method: "PUT",
|
|
472
472
|
headers: {
|
|
473
473
|
ENO_CSRF_TOKEN: s
|
|
474
474
|
},
|
|
475
|
-
onComplete(
|
|
476
|
-
let a = JSON.parse(
|
|
475
|
+
onComplete(c) {
|
|
476
|
+
let a = JSON.parse(c);
|
|
477
477
|
if (console.log("☠️ info => ", a), a.success === !0)
|
|
478
478
|
try {
|
|
479
|
-
const
|
|
480
|
-
n && n(
|
|
481
|
-
} catch (
|
|
482
|
-
|
|
479
|
+
const i = a.data[0].dataelements.ticketURL;
|
|
480
|
+
n && n(i);
|
|
481
|
+
} catch (i) {
|
|
482
|
+
o && o(i);
|
|
483
483
|
}
|
|
484
484
|
},
|
|
485
|
-
onFailure(
|
|
486
|
-
|
|
485
|
+
onFailure(c) {
|
|
486
|
+
o && o(c);
|
|
487
487
|
}
|
|
488
488
|
});
|
|
489
489
|
}
|
|
490
|
-
function K(e, t, s, n,
|
|
490
|
+
function K(e, t, s, n, o, r = void 0, c = void 0) {
|
|
491
491
|
k(
|
|
492
492
|
e,
|
|
493
493
|
t,
|
|
494
494
|
(a) => {
|
|
495
|
-
|
|
495
|
+
X(
|
|
496
496
|
e,
|
|
497
497
|
t,
|
|
498
498
|
s,
|
|
499
499
|
n,
|
|
500
|
-
|
|
500
|
+
o,
|
|
501
501
|
a.csrf.value,
|
|
502
|
-
|
|
503
|
-
|
|
502
|
+
r,
|
|
503
|
+
c
|
|
504
504
|
);
|
|
505
505
|
}
|
|
506
506
|
);
|
|
507
507
|
}
|
|
508
|
-
function
|
|
509
|
-
const
|
|
510
|
-
m(
|
|
508
|
+
function X(e, t, s, n, o, r, c = void 0, a = void 0) {
|
|
509
|
+
const i = e.space + `/resources/v1/modeler/documents/${t}/files/CheckinTicket`;
|
|
510
|
+
m(i, {
|
|
511
511
|
method: "PUT",
|
|
512
512
|
headers: {
|
|
513
|
-
ENO_CSRF_TOKEN:
|
|
513
|
+
ENO_CSRF_TOKEN: r
|
|
514
514
|
},
|
|
515
515
|
onComplete(d, l, p) {
|
|
516
516
|
const u = JSON.parse(d).data[0].dataelements, f = new FormData();
|
|
517
|
-
f.append("__fcs__jobTicket", u.ticket), f.append("file_0", n,
|
|
517
|
+
f.append("__fcs__jobTicket", u.ticket), f.append("file_0", n, o);
|
|
518
518
|
const g = {};
|
|
519
519
|
g.method = "POST", g.data = f, g.onComplete = function(h) {
|
|
520
520
|
let S = "temp_" + Date.now(), _ = {
|
|
521
521
|
method: "PUT",
|
|
522
522
|
headers: {
|
|
523
|
-
ENO_CSRF_TOKEN:
|
|
523
|
+
ENO_CSRF_TOKEN: r
|
|
524
524
|
},
|
|
525
525
|
data: JSON.stringify({
|
|
526
526
|
data: [{
|
|
@@ -529,7 +529,7 @@ function W(e, t, s, n, i, c, r = void 0, a = void 0) {
|
|
|
529
529
|
files: [{
|
|
530
530
|
id: s,
|
|
531
531
|
dataelements: {
|
|
532
|
-
title:
|
|
532
|
+
title: o,
|
|
533
533
|
receipt: h
|
|
534
534
|
},
|
|
535
535
|
updateAction: "REVISE"
|
|
@@ -540,7 +540,7 @@ function W(e, t, s, n, i, c, r = void 0, a = void 0) {
|
|
|
540
540
|
}),
|
|
541
541
|
type: "json",
|
|
542
542
|
onComplete(y) {
|
|
543
|
-
|
|
543
|
+
c && c(y);
|
|
544
544
|
},
|
|
545
545
|
onFailure(y) {
|
|
546
546
|
a && a(y);
|
|
@@ -556,14 +556,14 @@ function W(e, t, s, n, i, c, r = void 0, a = void 0) {
|
|
|
556
556
|
}
|
|
557
557
|
});
|
|
558
558
|
}
|
|
559
|
-
async function ke(e, t, s, n,
|
|
560
|
-
const
|
|
559
|
+
async function ke(e, t, s, n, o = void 0, r = void 0) {
|
|
560
|
+
const c = e.space, a = e.token, i = e.ctx, d = new FormData(), l = new Blob([JSON.stringify(t)], {
|
|
561
561
|
type: "text/plain"
|
|
562
562
|
}), p = {
|
|
563
|
-
url_Ticket: `${
|
|
564
|
-
url_Post: `${
|
|
563
|
+
url_Ticket: `${c}/resources/v1/modeler/documents/files/CheckinTicket`,
|
|
564
|
+
url_Post: `${c}/resources/v1/modeler/documents/?SecurityContext=ctx::${i}`
|
|
565
565
|
};
|
|
566
|
-
if (!
|
|
566
|
+
if (!c && c !== "") {
|
|
567
567
|
console.log("le store._3DSpace est vide");
|
|
568
568
|
return;
|
|
569
569
|
}
|
|
@@ -579,7 +579,7 @@ async function ke(e, t, s, n, i = void 0, c = void 0) {
|
|
|
579
579
|
method: "POST",
|
|
580
580
|
data: d,
|
|
581
581
|
onComplete(T) {
|
|
582
|
-
if (
|
|
582
|
+
if (i !== "" && a !== "") {
|
|
583
583
|
const D = {
|
|
584
584
|
method: "POST",
|
|
585
585
|
headers: {
|
|
@@ -603,7 +603,7 @@ async function ke(e, t, s, n, i = void 0, c = void 0) {
|
|
|
603
603
|
}
|
|
604
604
|
}]
|
|
605
605
|
},
|
|
606
|
-
tempId:
|
|
606
|
+
tempId: R()
|
|
607
607
|
}]
|
|
608
608
|
}),
|
|
609
609
|
type: "json",
|
|
@@ -611,29 +611,29 @@ async function ke(e, t, s, n, i = void 0, c = void 0) {
|
|
|
611
611
|
onComplete: _,
|
|
612
612
|
onFailure: y
|
|
613
613
|
};
|
|
614
|
-
|
|
614
|
+
i !== "" && m(p.url_Post, D);
|
|
615
615
|
} else
|
|
616
616
|
console.warn("le store est vide");
|
|
617
617
|
},
|
|
618
618
|
onFailure: y
|
|
619
619
|
};
|
|
620
620
|
function _(T) {
|
|
621
|
-
console.log("Success -- response ", T.data[0]),
|
|
621
|
+
console.log("Success -- response ", T.data[0]), o && o(T);
|
|
622
622
|
}
|
|
623
623
|
function y(T, D) {
|
|
624
624
|
console.log("Erreur -- response ", T, `
|
|
625
|
-
headers `, D),
|
|
625
|
+
headers `, D), r && r(T);
|
|
626
626
|
}
|
|
627
627
|
m(h.ticketURL, S);
|
|
628
628
|
}
|
|
629
629
|
});
|
|
630
630
|
}
|
|
631
|
-
function
|
|
631
|
+
function N(e, t = void 0, s = void 0, n = void 0, o = void 0, r = void 0, c = !1) {
|
|
632
632
|
const a = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
|
|
633
633
|
m(a, {
|
|
634
634
|
method: "GET",
|
|
635
|
-
onComplete(
|
|
636
|
-
const d = JSON.parse(
|
|
635
|
+
onComplete(i) {
|
|
636
|
+
const d = JSON.parse(i);
|
|
637
637
|
let l = "", p, u, f;
|
|
638
638
|
if (t) {
|
|
639
639
|
let g = d.collabspaces.find((h) => h.title === t);
|
|
@@ -652,7 +652,7 @@ function b(e, t = void 0, s = void 0, n = void 0, i = void 0, c = void 0, r = !1
|
|
|
652
652
|
let y = h.filter(
|
|
653
653
|
(T) => T.role.name === S
|
|
654
654
|
);
|
|
655
|
-
y.length === 1 ? (f = y[0].role.name, u = y[0].organization.title) :
|
|
655
|
+
y.length === 1 ? (f = y[0].role.name, u = y[0].organization.title) : r(y);
|
|
656
656
|
}
|
|
657
657
|
});
|
|
658
658
|
}) : h.forEach((S) => {
|
|
@@ -662,22 +662,22 @@ function b(e, t = void 0, s = void 0, n = void 0, i = void 0, c = void 0, r = !1
|
|
|
662
662
|
let _ = h.filter(
|
|
663
663
|
(y) => y.role.name === s
|
|
664
664
|
);
|
|
665
|
-
_.length === 1 ? (f = _[0].role.name, u = _[0].organization.title) :
|
|
665
|
+
_.length === 1 ? (f = _[0].role.name, u = _[0].organization.title) : r(_);
|
|
666
666
|
}
|
|
667
667
|
}));
|
|
668
668
|
}
|
|
669
669
|
}
|
|
670
|
-
p && u && f ? (l = f + "." + u + "." + p,
|
|
670
|
+
p && u && f ? (l = f + "." + u + "." + p, o(l)) : d.preferredcredentials && c ? (l = d.preferredcredentials.role.name + "." + d.preferredcredentials.organization.title + "." + d.preferredcredentials.collabspace.title, o(l)) : r && (l = f + "." + u + "." + p, r(l));
|
|
671
671
|
},
|
|
672
|
-
onFailure(
|
|
672
|
+
onFailure(i, d) {
|
|
673
673
|
console.log("Erreur de récupération du contexte de sécurité. => ", {
|
|
674
|
-
err:
|
|
674
|
+
err: i,
|
|
675
675
|
headers: d
|
|
676
676
|
});
|
|
677
677
|
}
|
|
678
678
|
});
|
|
679
679
|
}
|
|
680
|
-
async function
|
|
680
|
+
async function I(e, t = void 0, s = void 0) {
|
|
681
681
|
return (!e.objID || e.objID === "") && console.warn(
|
|
682
682
|
"_3DSpace_download_doc() / Le paramètre objectId est obligatoire"
|
|
683
683
|
), (e.space === "" || !e.space) && console.warn(
|
|
@@ -692,88 +692,88 @@ async function R(e, t = void 0, s = void 0) {
|
|
|
692
692
|
}
|
|
693
693
|
), console.warn(
|
|
694
694
|
"_3DSpace_download_doc() / Le paramètre token est obligatoire"
|
|
695
|
-
)), new Promise((n,
|
|
696
|
-
|
|
695
|
+
)), new Promise((n, o) => {
|
|
696
|
+
A(
|
|
697
697
|
e,
|
|
698
|
-
(
|
|
699
|
-
m(
|
|
698
|
+
(r) => {
|
|
699
|
+
m(r, {
|
|
700
700
|
headers: {
|
|
701
701
|
"Content-Type": "application/json",
|
|
702
702
|
Accept: "application/json"
|
|
703
703
|
},
|
|
704
704
|
onComplete(a) {
|
|
705
|
-
let
|
|
705
|
+
let i;
|
|
706
706
|
try {
|
|
707
|
-
|
|
707
|
+
i = JSON.parse(a);
|
|
708
708
|
} catch {
|
|
709
|
-
|
|
709
|
+
i = a;
|
|
710
710
|
}
|
|
711
|
-
t && t(
|
|
711
|
+
t && t(i), n(i);
|
|
712
712
|
},
|
|
713
|
-
onFailure(a,
|
|
713
|
+
onFailure(a, i, d) {
|
|
714
714
|
s && (console.log("error http", a), s({
|
|
715
715
|
msg: JSON.parse(a),
|
|
716
|
-
headers:
|
|
716
|
+
headers: i,
|
|
717
717
|
xhr: d
|
|
718
|
-
}),
|
|
718
|
+
}), o({
|
|
719
719
|
msg: JSON.parse(a),
|
|
720
|
-
headers:
|
|
720
|
+
headers: i,
|
|
721
721
|
xhr: d
|
|
722
722
|
}));
|
|
723
723
|
}
|
|
724
724
|
});
|
|
725
725
|
},
|
|
726
|
-
(
|
|
727
|
-
s && s(
|
|
726
|
+
(r) => {
|
|
727
|
+
s && s(r), console.log("*_3dspace_download_doc / error file URL *", r), o(r);
|
|
728
728
|
}
|
|
729
729
|
);
|
|
730
730
|
});
|
|
731
731
|
}
|
|
732
|
-
async function
|
|
733
|
-
let
|
|
732
|
+
async function W(e, t, s = void 0, n = void 0) {
|
|
733
|
+
let o = [];
|
|
734
734
|
if (typeof t < "u" && Array.isArray(t) && t?.length > 0) {
|
|
735
735
|
for (let a = 0; a < t.length; a += 80) {
|
|
736
|
-
const
|
|
737
|
-
|
|
736
|
+
const i = t.slice(a, a + 80);
|
|
737
|
+
o.push(i);
|
|
738
738
|
}
|
|
739
|
-
const
|
|
739
|
+
const c = (a) => {
|
|
740
740
|
V(
|
|
741
741
|
e,
|
|
742
|
-
|
|
742
|
+
o[a],
|
|
743
743
|
() => {
|
|
744
|
-
a++, a <
|
|
744
|
+
a++, a < o.length && c(a);
|
|
745
745
|
},
|
|
746
|
-
(
|
|
747
|
-
s && s(
|
|
746
|
+
(i) => {
|
|
747
|
+
s && s(i);
|
|
748
748
|
}
|
|
749
749
|
);
|
|
750
750
|
};
|
|
751
|
-
|
|
751
|
+
c(0);
|
|
752
752
|
} else
|
|
753
753
|
console.warn("La liste d'objects dans la fonction _3DSpace_download_multidoc est vide ou non défini."), n && n("La liste d'objects dans la fonction _3DSpace_download_multidoc est vide ou non défini.");
|
|
754
754
|
}
|
|
755
|
-
function V(e, t, s = void 0, n = void 0,
|
|
756
|
-
const
|
|
757
|
-
t.forEach((
|
|
758
|
-
|
|
759
|
-
id:
|
|
755
|
+
function V(e, t, s = void 0, n = void 0, o = void 0) {
|
|
756
|
+
const r = [];
|
|
757
|
+
t.forEach((i) => {
|
|
758
|
+
r.push({
|
|
759
|
+
id: i
|
|
760
760
|
});
|
|
761
761
|
});
|
|
762
|
-
let
|
|
762
|
+
let c = JSON.stringify({
|
|
763
763
|
csrf: {
|
|
764
764
|
name: "ENO_CSRF_TOKEN",
|
|
765
765
|
value: e.token
|
|
766
766
|
},
|
|
767
|
-
data:
|
|
767
|
+
data: r
|
|
768
768
|
});
|
|
769
769
|
const a = `${e.space}/resources/v1/modeler/documents/DownloadTicket?tenant=${e.tenant}&e6w-lang=fr&e6w-timezone=-120`;
|
|
770
770
|
m(a, {
|
|
771
771
|
method: "PUT",
|
|
772
|
-
data:
|
|
772
|
+
data: c,
|
|
773
773
|
type: "json",
|
|
774
|
-
onComplete(
|
|
775
|
-
const d =
|
|
776
|
-
|
|
774
|
+
onComplete(i) {
|
|
775
|
+
const d = i.data;
|
|
776
|
+
i.success === !0 && (s && s(), d.forEach((l) => {
|
|
777
777
|
try {
|
|
778
778
|
const p = l.dataelements.fileName, u = l.dataelements.ticketURL;
|
|
779
779
|
m(u, {
|
|
@@ -789,20 +789,20 @@ function V(e, t, s = void 0, n = void 0, i = void 0) {
|
|
|
789
789
|
}
|
|
790
790
|
});
|
|
791
791
|
} catch (p) {
|
|
792
|
-
console.log(p),
|
|
792
|
+
console.log(p), o && o(p);
|
|
793
793
|
}
|
|
794
794
|
}));
|
|
795
795
|
},
|
|
796
|
-
onFailure(
|
|
797
|
-
console.log(
|
|
796
|
+
onFailure(i) {
|
|
797
|
+
console.log(i), o && o(i);
|
|
798
798
|
}
|
|
799
799
|
});
|
|
800
800
|
}
|
|
801
801
|
function De(e, t, s = void 0, n = void 0) {
|
|
802
|
-
return new Promise((
|
|
802
|
+
return new Promise((o) => {
|
|
803
803
|
if (e.token === "" && C(e), t !== void 0 && t !== "" && t !== null) {
|
|
804
|
-
const
|
|
805
|
-
|
|
804
|
+
const r = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
|
|
805
|
+
N(
|
|
806
806
|
e.space,
|
|
807
807
|
"ESPACE COMMUN",
|
|
808
808
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -812,7 +812,7 @@ function De(e, t, s = void 0, n = void 0) {
|
|
|
812
812
|
console.log("onError =>", a);
|
|
813
813
|
}
|
|
814
814
|
);
|
|
815
|
-
let
|
|
815
|
+
let c = {
|
|
816
816
|
method: "POST",
|
|
817
817
|
headers: {
|
|
818
818
|
SecurityContext: "ctx::" + e.ctx,
|
|
@@ -833,22 +833,22 @@ function De(e, t, s = void 0, n = void 0) {
|
|
|
833
833
|
n && n(a);
|
|
834
834
|
}
|
|
835
835
|
};
|
|
836
|
-
m(
|
|
836
|
+
m(r, c);
|
|
837
837
|
}
|
|
838
838
|
});
|
|
839
839
|
}
|
|
840
|
-
function Fe(e, t, s, n = void 0,
|
|
841
|
-
return new Promise((
|
|
840
|
+
function Fe(e, t, s, n = void 0, o = void 0) {
|
|
841
|
+
return new Promise((r) => {
|
|
842
842
|
if (e.token === "" && C(e), t !== void 0 && t !== "" && t !== null) {
|
|
843
|
-
const
|
|
844
|
-
|
|
843
|
+
const c = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
|
|
844
|
+
N(
|
|
845
845
|
e.space,
|
|
846
846
|
"ESPACE COMMUN",
|
|
847
847
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
848
848
|
void 0,
|
|
849
|
-
(
|
|
850
|
-
(
|
|
851
|
-
console.log("onError =>",
|
|
849
|
+
(i) => e.ctx = i,
|
|
850
|
+
(i) => {
|
|
851
|
+
console.log("onError =>", i);
|
|
852
852
|
}
|
|
853
853
|
);
|
|
854
854
|
let a = {
|
|
@@ -866,22 +866,22 @@ function Fe(e, t, s, n = void 0, i = void 0) {
|
|
|
866
866
|
}]
|
|
867
867
|
}),
|
|
868
868
|
type: "json",
|
|
869
|
-
onComplete(
|
|
870
|
-
n && n(
|
|
869
|
+
onComplete(i) {
|
|
870
|
+
n && n(i);
|
|
871
871
|
},
|
|
872
|
-
onFailure(
|
|
873
|
-
|
|
872
|
+
onFailure(i) {
|
|
873
|
+
o && o(i);
|
|
874
874
|
}
|
|
875
875
|
};
|
|
876
|
-
m(
|
|
876
|
+
m(c, a);
|
|
877
877
|
}
|
|
878
878
|
});
|
|
879
879
|
}
|
|
880
|
-
function
|
|
881
|
-
return new Promise((
|
|
880
|
+
function Ae(e, t, s = void 0, n = void 0) {
|
|
881
|
+
return new Promise((o) => {
|
|
882
882
|
if (e.token === "" && C(e), t !== void 0 && t !== "" && t !== null) {
|
|
883
|
-
const
|
|
884
|
-
|
|
883
|
+
const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
|
|
884
|
+
N(
|
|
885
885
|
e.space,
|
|
886
886
|
"ESPACE COMMUN",
|
|
887
887
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -891,7 +891,7 @@ function Ue(e, t, s = void 0, n = void 0) {
|
|
|
891
891
|
console.log("onError =>", a);
|
|
892
892
|
}
|
|
893
893
|
);
|
|
894
|
-
let
|
|
894
|
+
let c = {
|
|
895
895
|
method: "POST",
|
|
896
896
|
headers: {
|
|
897
897
|
securitycontext: "ctx::" + e.ctx,
|
|
@@ -912,15 +912,15 @@ function Ue(e, t, s = void 0, n = void 0) {
|
|
|
912
912
|
n && n(a);
|
|
913
913
|
}
|
|
914
914
|
};
|
|
915
|
-
m(
|
|
915
|
+
m(r, c);
|
|
916
916
|
}
|
|
917
917
|
});
|
|
918
918
|
}
|
|
919
|
-
function
|
|
920
|
-
return new Promise((
|
|
919
|
+
function $e(e, t, s = void 0, n = void 0) {
|
|
920
|
+
return new Promise((o) => {
|
|
921
921
|
if (e.token === "" && C(e), t !== void 0 && t !== "" && t !== null) {
|
|
922
|
-
const
|
|
923
|
-
|
|
922
|
+
const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
|
|
923
|
+
N(
|
|
924
924
|
e.space,
|
|
925
925
|
"ESPACE COMMUN",
|
|
926
926
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
@@ -930,7 +930,7 @@ function je(e, t, s = void 0, n = void 0) {
|
|
|
930
930
|
console.log("onError =>", a);
|
|
931
931
|
}
|
|
932
932
|
);
|
|
933
|
-
let
|
|
933
|
+
let c = {
|
|
934
934
|
method: "POST",
|
|
935
935
|
headers: {
|
|
936
936
|
SecurityContext: "ctx::" + e.ctx,
|
|
@@ -957,22 +957,22 @@ function je(e, t, s = void 0, n = void 0) {
|
|
|
957
957
|
n && n(a);
|
|
958
958
|
}
|
|
959
959
|
};
|
|
960
|
-
m(
|
|
960
|
+
m(r, c);
|
|
961
961
|
}
|
|
962
962
|
});
|
|
963
963
|
}
|
|
964
|
-
function
|
|
965
|
-
return new Promise((
|
|
964
|
+
function Ue(e, t, s, n = void 0, o = void 0) {
|
|
965
|
+
return new Promise((r) => {
|
|
966
966
|
if (e.token === "" && C(e), t !== void 0 && t !== "" && t !== null) {
|
|
967
|
-
const
|
|
968
|
-
|
|
967
|
+
const c = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
|
|
968
|
+
N(
|
|
969
969
|
e.space,
|
|
970
970
|
"ESPACE COMMUN",
|
|
971
971
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
972
972
|
void 0,
|
|
973
|
-
(
|
|
974
|
-
(
|
|
975
|
-
console.log("onError =>",
|
|
973
|
+
(i) => e.ctx = i,
|
|
974
|
+
(i) => {
|
|
975
|
+
console.log("onError =>", i);
|
|
976
976
|
}
|
|
977
977
|
);
|
|
978
978
|
let a = {
|
|
@@ -995,94 +995,162 @@ function Ae(e, t, s, n = void 0, i = void 0) {
|
|
|
995
995
|
notificationTimeout: 600
|
|
996
996
|
}),
|
|
997
997
|
type: "json",
|
|
998
|
-
onComplete(
|
|
999
|
-
n && n(
|
|
998
|
+
onComplete(i) {
|
|
999
|
+
n && n(i);
|
|
1000
|
+
},
|
|
1001
|
+
onFailure(i) {
|
|
1002
|
+
o && o(i);
|
|
1003
|
+
}
|
|
1004
|
+
};
|
|
1005
|
+
m(c, a);
|
|
1006
|
+
}
|
|
1007
|
+
});
|
|
1008
|
+
}
|
|
1009
|
+
function je(e, t, s = void 0, n = void 0) {
|
|
1010
|
+
return new Promise((o) => {
|
|
1011
|
+
if (e.token === "" && C(e), t !== void 0 && t !== "" && t !== null) {
|
|
1012
|
+
const r = b.now().ts;
|
|
1013
|
+
`${e.space}`;
|
|
1014
|
+
const c = `${e._3DSearch}/federated/search?xrequestedwith=xmlhttprequest&tenant=${e._platformId}×tamp=${r}`;
|
|
1015
|
+
let a = {
|
|
1016
|
+
method: "POST",
|
|
1017
|
+
headers: {
|
|
1018
|
+
Accept: "application/json",
|
|
1019
|
+
"Content-Type": "application/json"
|
|
1020
|
+
},
|
|
1021
|
+
data: JSON.stringify({
|
|
1022
|
+
with_indexing_date: !0,
|
|
1023
|
+
with_nls: !1,
|
|
1024
|
+
label: `yus-${r}`,
|
|
1025
|
+
locale: "en",
|
|
1026
|
+
select_predicate: [
|
|
1027
|
+
"ds6w:label",
|
|
1028
|
+
"ds6w:type",
|
|
1029
|
+
"ds6w:description",
|
|
1030
|
+
"ds6w:identifier",
|
|
1031
|
+
"ds6w:responsible",
|
|
1032
|
+
"ds6wg:fullname"
|
|
1033
|
+
],
|
|
1034
|
+
select_file: [
|
|
1035
|
+
icon,
|
|
1036
|
+
thumbnail_2d
|
|
1037
|
+
],
|
|
1038
|
+
query: '([ds6w:type]:(Group) AND [ds6w:status]:(Public)) OR (flattenedtaxonomies:"types/Person" AND current:"active")',
|
|
1039
|
+
order_by: "desc",
|
|
1040
|
+
order_field: "relevance",
|
|
1041
|
+
nresults: 1e3,
|
|
1042
|
+
start: "0",
|
|
1043
|
+
source: [
|
|
1044
|
+
"3dspace",
|
|
1045
|
+
"usersgroup"
|
|
1046
|
+
],
|
|
1047
|
+
tenant: e._platformId
|
|
1048
|
+
}),
|
|
1049
|
+
type: "json",
|
|
1050
|
+
onComplete(i) {
|
|
1051
|
+
console.log(i);
|
|
1000
1052
|
},
|
|
1001
|
-
onFailure(
|
|
1002
|
-
i
|
|
1053
|
+
onFailure(i) {
|
|
1054
|
+
console.warn(i);
|
|
1003
1055
|
}
|
|
1004
1056
|
};
|
|
1005
|
-
|
|
1057
|
+
JSON.stringify({
|
|
1058
|
+
csrf: {
|
|
1059
|
+
name: "ENO_CSRF_TOKEN",
|
|
1060
|
+
value: e.token
|
|
1061
|
+
},
|
|
1062
|
+
data: [{
|
|
1063
|
+
type: "Workspace",
|
|
1064
|
+
cestamp: "businessobject",
|
|
1065
|
+
relId: t,
|
|
1066
|
+
id: t,
|
|
1067
|
+
dataelements: {
|
|
1068
|
+
personList: "<uuid:5ca25b8e-98d0-46c3-ac43-3faa83c4295a>",
|
|
1069
|
+
eventsList: "NXFolderCreated,NXFolderDeleted,NXContentAdded,NXContentRemoved"
|
|
1070
|
+
},
|
|
1071
|
+
tenant: e.tenant
|
|
1072
|
+
}]
|
|
1073
|
+
}), m(c, a);
|
|
1006
1074
|
}
|
|
1007
1075
|
});
|
|
1008
1076
|
}
|
|
1009
1077
|
//!SECTION
|
|
1010
|
-
function
|
|
1078
|
+
function Re(e, t = void 0, s = void 0) {
|
|
1011
1079
|
const n = {
|
|
1012
1080
|
base: `${e.space}`,
|
|
1013
1081
|
uri: "/resources/bps/cspaces",
|
|
1014
1082
|
optTenant: `tenant=${e.tenant}`
|
|
1015
|
-
},
|
|
1016
|
-
m(
|
|
1083
|
+
}, o = `${n.base}${n.uri}?${n.optTenant}`;
|
|
1084
|
+
m(o, {
|
|
1017
1085
|
method: "GET",
|
|
1018
1086
|
headers: {
|
|
1019
1087
|
Accept: "application/json,text/javascript,*/*",
|
|
1020
1088
|
"Content-Type": "application/ds-json"
|
|
1021
1089
|
},
|
|
1022
|
-
onComplete(
|
|
1023
|
-
const a = JSON.parse(
|
|
1024
|
-
t && t(a,
|
|
1090
|
+
onComplete(r, c) {
|
|
1091
|
+
const a = JSON.parse(r);
|
|
1092
|
+
t && t(a, c);
|
|
1025
1093
|
},
|
|
1026
|
-
onFailure(
|
|
1027
|
-
s && s({ response:
|
|
1094
|
+
onFailure(r, c, a) {
|
|
1095
|
+
s && s({ response: r, headers: c, xhr: a });
|
|
1028
1096
|
}
|
|
1029
1097
|
});
|
|
1030
1098
|
}
|
|
1031
1099
|
function Ie(e, t, s, n) {
|
|
1032
|
-
|
|
1100
|
+
A(
|
|
1033
1101
|
e.space,
|
|
1034
1102
|
t,
|
|
1035
|
-
(
|
|
1036
|
-
m(
|
|
1103
|
+
(o) => {
|
|
1104
|
+
m(o, {
|
|
1037
1105
|
header: { ENO_CSRF_TOKEN: e.token },
|
|
1038
|
-
onComplete: (
|
|
1039
|
-
s && s(
|
|
1106
|
+
onComplete: (r) => {
|
|
1107
|
+
s && s(r);
|
|
1040
1108
|
},
|
|
1041
|
-
onFailure: (
|
|
1042
|
-
console.log("error http",
|
|
1109
|
+
onFailure: (r) => {
|
|
1110
|
+
console.log("error http", r), n && n(r);
|
|
1043
1111
|
}
|
|
1044
1112
|
});
|
|
1045
1113
|
}
|
|
1046
1114
|
);
|
|
1047
1115
|
}
|
|
1048
|
-
async function
|
|
1049
|
-
return new Promise((
|
|
1050
|
-
|
|
1051
|
-
m(
|
|
1052
|
-
onComplete: (
|
|
1053
|
-
onFailure: (
|
|
1054
|
-
n && n(
|
|
1116
|
+
async function ve(e, t, s = void 0, n = void 0) {
|
|
1117
|
+
return new Promise((o) => {
|
|
1118
|
+
A(e, t, (r) => {
|
|
1119
|
+
m(r, {
|
|
1120
|
+
onComplete: (c, a, i) => (o(JSON.parse(c)), s && s(JSON.parse(c), a, i), o),
|
|
1121
|
+
onFailure: (c, a, i) => {
|
|
1122
|
+
n && n(c, a, i), console.log(c, a?.errormsg);
|
|
1055
1123
|
}
|
|
1056
1124
|
});
|
|
1057
1125
|
});
|
|
1058
1126
|
});
|
|
1059
1127
|
}
|
|
1060
|
-
function
|
|
1061
|
-
const
|
|
1128
|
+
function Pe(e, t, s, n = void 0, o = void 0) {
|
|
1129
|
+
const r = new Blob([JSON.stringify(t)], { type: "text/plain" });
|
|
1062
1130
|
k(
|
|
1063
1131
|
e,
|
|
1064
1132
|
s,
|
|
1065
|
-
(
|
|
1066
|
-
const a =
|
|
1133
|
+
(c) => {
|
|
1134
|
+
const a = c.data[0].relateddata.files[0].id, i = c.data[0].dataelements.secondaryTitle !== "" ? c.data[0].dataelements.secondaryTitle : c.data[0].dataelements.title;
|
|
1067
1135
|
K(
|
|
1068
1136
|
e,
|
|
1069
1137
|
s,
|
|
1070
1138
|
a,
|
|
1071
|
-
|
|
1072
|
-
|
|
1139
|
+
r,
|
|
1140
|
+
i,
|
|
1073
1141
|
(d) => {
|
|
1074
1142
|
n && n(d);
|
|
1075
1143
|
},
|
|
1076
1144
|
(d) => {
|
|
1077
|
-
|
|
1145
|
+
o && o(d);
|
|
1078
1146
|
}
|
|
1079
1147
|
);
|
|
1080
1148
|
}
|
|
1081
1149
|
);
|
|
1082
1150
|
}
|
|
1083
1151
|
let v, P;
|
|
1084
|
-
const
|
|
1085
|
-
async function
|
|
1152
|
+
const $ = [];
|
|
1153
|
+
async function xe(e, t = void 0, s = void 0) {
|
|
1086
1154
|
e.objID && e.objID !== "" ? k(
|
|
1087
1155
|
e,
|
|
1088
1156
|
(n) => {
|
|
@@ -1101,48 +1169,48 @@ async function Pe(e, t = void 0, s = void 0) {
|
|
|
1101
1169
|
}
|
|
1102
1170
|
);
|
|
1103
1171
|
}
|
|
1104
|
-
async function
|
|
1105
|
-
console.log("getDatasByTenant (getDocuments)", e), await
|
|
1172
|
+
async function Me(e, t = void 0, s = void 0) {
|
|
1173
|
+
console.log("getDatasByTenant (getDocuments)", e), await I(
|
|
1106
1174
|
e,
|
|
1107
1175
|
(n) => {
|
|
1108
|
-
const
|
|
1109
|
-
|
|
1176
|
+
const o = {};
|
|
1177
|
+
o.obj = n, console.log("getDatasByTenant (getDocuments) _datas", o), t && t?.(o);
|
|
1110
1178
|
},
|
|
1111
1179
|
(n) => {
|
|
1112
1180
|
s && s?.(n);
|
|
1113
1181
|
}
|
|
1114
1182
|
);
|
|
1115
1183
|
}
|
|
1116
|
-
function
|
|
1184
|
+
function Le(e, t = void 0, s = void 0) {
|
|
1117
1185
|
const n = [];
|
|
1118
1186
|
if (!e.objIds && !Array.isArray(e.objIds) && e.objIds.length === 0) {
|
|
1119
1187
|
console.warn("la liste est vide ou n'est pas un tableau");
|
|
1120
1188
|
return;
|
|
1121
1189
|
}
|
|
1122
|
-
e.objIds.forEach((
|
|
1123
|
-
|
|
1190
|
+
e.objIds.forEach((o, r) => {
|
|
1191
|
+
I(
|
|
1124
1192
|
e,
|
|
1125
|
-
|
|
1126
|
-
(
|
|
1127
|
-
n.push({ [
|
|
1193
|
+
o.objID,
|
|
1194
|
+
(c) => {
|
|
1195
|
+
n.push({ [o.name]: c }), o.name === "dbProjets" && (v = c.affaires.map((a) => a.objectID), B(e, P)), r === e.objIds.length - 1 && (t && t(n), delete e.objIds, delete e.datas);
|
|
1128
1196
|
}
|
|
1129
1197
|
);
|
|
1130
1198
|
});
|
|
1131
1199
|
}
|
|
1132
1200
|
function B(e, t, s = void 0, n = void 0) {
|
|
1133
|
-
|
|
1201
|
+
W(
|
|
1134
1202
|
e,
|
|
1135
1203
|
v,
|
|
1136
|
-
(
|
|
1137
|
-
const
|
|
1138
|
-
|
|
1204
|
+
(o) => {
|
|
1205
|
+
const r = [...t];
|
|
1206
|
+
r.find((c) => c.objectID === o.objectId).data = o.data, P = r, $.push(o.data), s && s($);
|
|
1139
1207
|
},
|
|
1140
|
-
(
|
|
1141
|
-
n && (n(
|
|
1208
|
+
(o) => {
|
|
1209
|
+
n && (n(o), console.log(o));
|
|
1142
1210
|
}
|
|
1143
1211
|
);
|
|
1144
1212
|
}
|
|
1145
|
-
const Y = "FA35FB9B177A280065800EA0000F599C",
|
|
1213
|
+
const Y = "FA35FB9B177A280065800EA0000F599C", q = [
|
|
1146
1214
|
"swym",
|
|
1147
1215
|
"3dspace",
|
|
1148
1216
|
"drive",
|
|
@@ -1156,28 +1224,28 @@ const Y = "FA35FB9B177A280065800EA0000F599C", H = [
|
|
|
1156
1224
|
where: "ds6w:where",
|
|
1157
1225
|
who: "ds6w:who",
|
|
1158
1226
|
why: "ds6w:why"
|
|
1159
|
-
},
|
|
1227
|
+
}, H = {
|
|
1160
1228
|
objId: Y,
|
|
1161
1229
|
pred: "who",
|
|
1162
1230
|
order_by: "desc",
|
|
1163
1231
|
tag: "testTag"
|
|
1164
1232
|
};
|
|
1165
|
-
function
|
|
1166
|
-
const { space:
|
|
1233
|
+
function Je(e, t, s = void 0, n = void 0) {
|
|
1234
|
+
const { space: o, tenant: r } = e, { objId: c, pred: a, tag: i } = t, d = {
|
|
1167
1235
|
uri: "/resources/6w/tags",
|
|
1168
1236
|
otpCTX: "SecurityContext=preferred",
|
|
1169
|
-
optTenant: `tenant=${
|
|
1170
|
-
}, l = `${
|
|
1237
|
+
optTenant: `tenant=${r}`
|
|
1238
|
+
}, l = `${o}${d.uri}?${d.otpCTX}&${d.optTenant}`, p = {
|
|
1171
1239
|
tag: [
|
|
1172
1240
|
{
|
|
1173
1241
|
subject: [
|
|
1174
1242
|
{
|
|
1175
|
-
uri: `pid://${
|
|
1243
|
+
uri: `pid://${c}`
|
|
1176
1244
|
}
|
|
1177
1245
|
],
|
|
1178
1246
|
predicate: x[a],
|
|
1179
1247
|
object: {
|
|
1180
|
-
literal:
|
|
1248
|
+
literal: i
|
|
1181
1249
|
}
|
|
1182
1250
|
}
|
|
1183
1251
|
]
|
|
@@ -1195,10 +1263,10 @@ function Le(e, t, s = void 0, n = void 0) {
|
|
|
1195
1263
|
setTimeout(() => {
|
|
1196
1264
|
G(
|
|
1197
1265
|
e,
|
|
1198
|
-
|
|
1266
|
+
c,
|
|
1199
1267
|
(g) => {
|
|
1200
1268
|
const h = g.data[0].dataelements.title, S = g.data[0].dataelements.fileExtension !== void 0 ? g.data[0].dataelements.fileExtension : "", _ = g.data[0].relateddata.ownerInfo[0].dataelements.name;
|
|
1201
|
-
f.name = h, f.ext = S, f.createBy = _, t.info = { ...f },
|
|
1269
|
+
f.name = h, f.ext = S, f.createBy = _, t.info = { ...f }, z(
|
|
1202
1270
|
e,
|
|
1203
1271
|
t,
|
|
1204
1272
|
(y) => {
|
|
@@ -1222,19 +1290,19 @@ function Le(e, t, s = void 0, n = void 0) {
|
|
|
1222
1290
|
}
|
|
1223
1291
|
});
|
|
1224
1292
|
}
|
|
1225
|
-
function
|
|
1293
|
+
function z(e, t, s = void 0, n = void 0) {
|
|
1226
1294
|
console.log("obj ", t);
|
|
1227
|
-
const
|
|
1295
|
+
const o = t.info.name, r = {
|
|
1228
1296
|
baseUrl: `https://${e.tenant.toLowerCase()}-eu1-fedsearch.3dexperience.3ds.com`,
|
|
1229
1297
|
uri: "/federated/search"
|
|
1230
|
-
},
|
|
1298
|
+
}, c = `${r.baseUrl}${r.uri}`, a = {
|
|
1231
1299
|
"Content-Type": "application/json",
|
|
1232
1300
|
Accept: "application/json,text/javascript,*/*"
|
|
1233
|
-
},
|
|
1301
|
+
}, i = R(), d = {
|
|
1234
1302
|
with_indexing_date: !0,
|
|
1235
1303
|
with_synthesis: !0,
|
|
1236
1304
|
with_nls: !1,
|
|
1237
|
-
label: `3DSearch-${e.currentUser.username}-AjoutDeTagBeam-${
|
|
1305
|
+
label: `3DSearch-${e.currentUser.username}-AjoutDeTagBeam-${i}`,
|
|
1238
1306
|
locale: "fr",
|
|
1239
1307
|
select_predicate: [
|
|
1240
1308
|
"ds6w:label",
|
|
@@ -1262,7 +1330,7 @@ function q(e, t, s = void 0, n = void 0) {
|
|
|
1262
1330
|
],
|
|
1263
1331
|
with_synthesis_hierarchical: !0,
|
|
1264
1332
|
select_file: ["icon", "thumbnail_2d"],
|
|
1265
|
-
query:
|
|
1333
|
+
query: o,
|
|
1266
1334
|
specific_source_parameter: {
|
|
1267
1335
|
"3dspace": {
|
|
1268
1336
|
additional_query: ' AND NOT (owner:"ENOVIA_CLOUD" OR owner:"Service Creator" OR owner:"Corporate" OR owner:"User Agent" OR owner:"SLMInstallerAdmin" OR owner:"Creator" OR owner:"VPLMAdminUser") AND (ds6w_58_islastrevisionperstate:true OR NOT listoffields:ds6w_58_islastrevisionperstate)'
|
|
@@ -1272,7 +1340,7 @@ function q(e, t, s = void 0, n = void 0) {
|
|
|
1272
1340
|
}
|
|
1273
1341
|
},
|
|
1274
1342
|
select_exclude_synthesis: ["ds6w:what/ds6w:topic"],
|
|
1275
|
-
order_by:
|
|
1343
|
+
order_by: H.order_by,
|
|
1276
1344
|
order_field: "relevance",
|
|
1277
1345
|
select_snippets: [
|
|
1278
1346
|
"ds6w:snippet",
|
|
@@ -1283,7 +1351,7 @@ function q(e, t, s = void 0, n = void 0) {
|
|
|
1283
1351
|
],
|
|
1284
1352
|
nresults: 40,
|
|
1285
1353
|
start: "0",
|
|
1286
|
-
source:
|
|
1354
|
+
source: q,
|
|
1287
1355
|
tenant: e.tenant,
|
|
1288
1356
|
login: {
|
|
1289
1357
|
"3dspace": {
|
|
@@ -1291,7 +1359,7 @@ function q(e, t, s = void 0, n = void 0) {
|
|
|
1291
1359
|
}
|
|
1292
1360
|
}
|
|
1293
1361
|
};
|
|
1294
|
-
console.log("dataPattern => ", d), m(
|
|
1362
|
+
console.log("dataPattern => ", d), m(c, {
|
|
1295
1363
|
method: "POST",
|
|
1296
1364
|
headers: a,
|
|
1297
1365
|
data: JSON.stringify(d),
|
|
@@ -1305,27 +1373,27 @@ function q(e, t, s = void 0, n = void 0) {
|
|
|
1305
1373
|
}
|
|
1306
1374
|
});
|
|
1307
1375
|
}
|
|
1308
|
-
function
|
|
1309
|
-
const { objId:
|
|
1376
|
+
function Ee(e, t, s = void 0, n = void 0) {
|
|
1377
|
+
const { objId: o, pred: r, tag: c } = t, a = {
|
|
1310
1378
|
uri: "/resources/6w/tags",
|
|
1311
1379
|
otpCTX: "SecurityContext=preferred",
|
|
1312
1380
|
optTenant: `tenant=${e.tenant}`
|
|
1313
|
-
},
|
|
1381
|
+
}, i = `${e.space}${a.uri}?${a.otpCTX}&${a.optTenant}`, d = {
|
|
1314
1382
|
tag: [
|
|
1315
1383
|
{
|
|
1316
1384
|
subject: [
|
|
1317
1385
|
{
|
|
1318
|
-
uri: `pid://${
|
|
1386
|
+
uri: `pid://${o}`
|
|
1319
1387
|
}
|
|
1320
1388
|
],
|
|
1321
|
-
predicate: x[
|
|
1389
|
+
predicate: x[r],
|
|
1322
1390
|
object: {
|
|
1323
|
-
literal:
|
|
1391
|
+
literal: c
|
|
1324
1392
|
}
|
|
1325
1393
|
}
|
|
1326
1394
|
]
|
|
1327
1395
|
};
|
|
1328
|
-
m(
|
|
1396
|
+
m(i, {
|
|
1329
1397
|
method: "DELETE",
|
|
1330
1398
|
data: JSON.stringify(d),
|
|
1331
1399
|
headers: {
|
|
@@ -1341,20 +1409,20 @@ function Je(e, t, s = void 0, n = void 0) {
|
|
|
1341
1409
|
}
|
|
1342
1410
|
});
|
|
1343
1411
|
}
|
|
1344
|
-
function
|
|
1345
|
-
const { space:
|
|
1412
|
+
function Ge(e, t = "", s = void 0, n = void 0) {
|
|
1413
|
+
const { space: o } = e;
|
|
1346
1414
|
if (t === "")
|
|
1347
1415
|
return;
|
|
1348
|
-
const
|
|
1416
|
+
const r = {
|
|
1349
1417
|
uri: "/resources/v1/modeler/documents"
|
|
1350
|
-
},
|
|
1418
|
+
}, c = {
|
|
1351
1419
|
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
|
|
1352
1420
|
Accept: "application/json,text/javascript,*/*"
|
|
1353
|
-
}, a = `${
|
|
1421
|
+
}, a = `${o}${r.uri}`, i = `$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}`;
|
|
1354
1422
|
m(a, {
|
|
1355
1423
|
method: "POST",
|
|
1356
|
-
headers:
|
|
1357
|
-
data:
|
|
1424
|
+
headers: c,
|
|
1425
|
+
data: i,
|
|
1358
1426
|
onComplete(d) {
|
|
1359
1427
|
s && s(JSON.parse(d));
|
|
1360
1428
|
},
|
|
@@ -1367,18 +1435,18 @@ function Ee(e, t = "", s = void 0, n = void 0) {
|
|
|
1367
1435
|
async function w(e, t = void 0, s = void 0) {
|
|
1368
1436
|
const n = e.space + "/api/index/tk";
|
|
1369
1437
|
return m(n, {
|
|
1370
|
-
onComplete(
|
|
1371
|
-
const a = JSON.parse(
|
|
1438
|
+
onComplete(o, r, c) {
|
|
1439
|
+
const a = JSON.parse(o);
|
|
1372
1440
|
if (t)
|
|
1373
1441
|
return t(a), e.token = a?.result?.ServerToken;
|
|
1374
1442
|
},
|
|
1375
|
-
onFailure(
|
|
1376
|
-
s && s(
|
|
1443
|
+
onFailure(o) {
|
|
1444
|
+
s && s(o);
|
|
1377
1445
|
}
|
|
1378
1446
|
});
|
|
1379
1447
|
}
|
|
1380
|
-
function
|
|
1381
|
-
const n = `${e.space}/api/exalead/whatsnew`,
|
|
1448
|
+
function Ke(e, t = void 0, s = void 0) {
|
|
1449
|
+
const n = `${e.space}/api/exalead/whatsnew`, o = {
|
|
1382
1450
|
params: {
|
|
1383
1451
|
community_id: null,
|
|
1384
1452
|
hash_key: null,
|
|
@@ -1388,27 +1456,27 @@ function Ge(e, t = void 0, s = void 0) {
|
|
|
1388
1456
|
start: 0
|
|
1389
1457
|
}
|
|
1390
1458
|
};
|
|
1391
|
-
w(e, (
|
|
1459
|
+
w(e, (r) => {
|
|
1392
1460
|
m(n, {
|
|
1393
1461
|
method: "POST",
|
|
1394
1462
|
headers: {
|
|
1395
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1463
|
+
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken,
|
|
1396
1464
|
"Content-type": "application/json;charset=UTF-8",
|
|
1397
1465
|
Accept: "application/json"
|
|
1398
1466
|
},
|
|
1399
|
-
data: JSON.stringify(
|
|
1467
|
+
data: JSON.stringify(o),
|
|
1400
1468
|
type: "json",
|
|
1401
|
-
onComplete(
|
|
1402
|
-
t && t(
|
|
1469
|
+
onComplete(c, a) {
|
|
1470
|
+
t && t(c, a);
|
|
1403
1471
|
},
|
|
1404
|
-
onFailure(
|
|
1405
|
-
s && s(
|
|
1472
|
+
onFailure(c, a) {
|
|
1473
|
+
s && s(c, a);
|
|
1406
1474
|
}
|
|
1407
1475
|
});
|
|
1408
1476
|
});
|
|
1409
1477
|
}
|
|
1410
|
-
function
|
|
1411
|
-
const n = `${e.space}/api/Recommendation/getpeoplefamiliartocurrentuser`,
|
|
1478
|
+
function Xe(e, t = void 0, s = void 0) {
|
|
1479
|
+
const n = `${e.space}/api/Recommendation/getpeoplefamiliartocurrentuser`, o = {
|
|
1412
1480
|
params: {
|
|
1413
1481
|
idsToFilterArr: [],
|
|
1414
1482
|
mode: "offline",
|
|
@@ -1417,22 +1485,22 @@ function Ke(e, t = void 0, s = void 0) {
|
|
|
1417
1485
|
maxNbOfCommonElements: "5"
|
|
1418
1486
|
}
|
|
1419
1487
|
};
|
|
1420
|
-
w(e, (
|
|
1488
|
+
w(e, (r) => {
|
|
1421
1489
|
m(n, {
|
|
1422
1490
|
method: "POST",
|
|
1423
1491
|
headers: {
|
|
1424
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1492
|
+
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken,
|
|
1425
1493
|
"Content-type": "application/json;charset=UTF-8",
|
|
1426
1494
|
Accept: "application/json"
|
|
1427
1495
|
},
|
|
1428
|
-
data: JSON.stringify(
|
|
1496
|
+
data: JSON.stringify(o),
|
|
1429
1497
|
type: "json",
|
|
1430
|
-
onComplete(
|
|
1431
|
-
const
|
|
1432
|
-
t && t(
|
|
1498
|
+
onComplete(c, a) {
|
|
1499
|
+
const i = c.result.hits.map((d) => ({ login: d.login, fullName: d.name }));
|
|
1500
|
+
t && t(i, c);
|
|
1433
1501
|
},
|
|
1434
|
-
onFailure(
|
|
1435
|
-
s && s(
|
|
1502
|
+
onFailure(c, a) {
|
|
1503
|
+
s && s(c, a);
|
|
1436
1504
|
}
|
|
1437
1505
|
});
|
|
1438
1506
|
});
|
|
@@ -1443,14 +1511,14 @@ function We(e, t = void 0, s = void 0) {
|
|
|
1443
1511
|
uri: "/api/community/listmycommunities",
|
|
1444
1512
|
limit: `/limit/${e.limit ? e.limit : 128}`,
|
|
1445
1513
|
page: `/page/${e.page ? e.page : "1"}`
|
|
1446
|
-
},
|
|
1447
|
-
w(e, (
|
|
1448
|
-
m(
|
|
1514
|
+
}, o = `${n.base}${n.uri}${n.limit}${n.page}`, r = [];
|
|
1515
|
+
w(e, (c) => {
|
|
1516
|
+
m(o, {
|
|
1449
1517
|
method: "GET",
|
|
1450
1518
|
headers: {
|
|
1451
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1519
|
+
"X-DS-SWYM-CSRFTOKEN": c.result.ServerToken
|
|
1452
1520
|
},
|
|
1453
|
-
onComplete(a,
|
|
1521
|
+
onComplete(a, i, d) {
|
|
1454
1522
|
const p = JSON.parse(a).result;
|
|
1455
1523
|
let u = 0;
|
|
1456
1524
|
p.forEach((f) => {
|
|
@@ -1466,76 +1534,76 @@ function We(e, t = void 0, s = void 0) {
|
|
|
1466
1534
|
e,
|
|
1467
1535
|
f.id,
|
|
1468
1536
|
(h) => {
|
|
1469
|
-
u++, g.members = h,
|
|
1537
|
+
u++, g.members = h, r.push(g), u === p.length && t && t(r);
|
|
1470
1538
|
},
|
|
1471
1539
|
(h) => s(h)
|
|
1472
1540
|
);
|
|
1473
1541
|
});
|
|
1474
1542
|
},
|
|
1475
|
-
onFailure(a,
|
|
1543
|
+
onFailure(a, i) {
|
|
1476
1544
|
const d = a;
|
|
1477
|
-
d.status =
|
|
1545
|
+
d.status = i.status, d.response = i.errormsg, s && s(d);
|
|
1478
1546
|
}
|
|
1479
1547
|
});
|
|
1480
1548
|
});
|
|
1481
1549
|
}
|
|
1482
1550
|
function Q(e, t, s, n) {
|
|
1483
|
-
const
|
|
1551
|
+
const o = `${e.space}/api/community/listmembers`, r = {
|
|
1484
1552
|
params: {
|
|
1485
1553
|
page: e.page ? e.page : 1,
|
|
1486
1554
|
limit: e.limit ? e.limit : 50,
|
|
1487
1555
|
community_id: t
|
|
1488
1556
|
}
|
|
1489
1557
|
};
|
|
1490
|
-
w(e, (
|
|
1491
|
-
m(
|
|
1558
|
+
w(e, (c) => {
|
|
1559
|
+
m(o, {
|
|
1492
1560
|
method: "POST",
|
|
1493
1561
|
headers: {
|
|
1494
1562
|
"Content-type": "application/json;charset=UTF-8",
|
|
1495
1563
|
Accept: "application/json",
|
|
1496
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1564
|
+
"X-DS-SWYM-CSRFTOKEN": c.result.ServerToken
|
|
1497
1565
|
},
|
|
1498
|
-
data: JSON.stringify(
|
|
1566
|
+
data: JSON.stringify(r),
|
|
1499
1567
|
type: "json",
|
|
1500
|
-
onComplete(a,
|
|
1568
|
+
onComplete(a, i, d) {
|
|
1501
1569
|
s && s(a);
|
|
1502
1570
|
},
|
|
1503
|
-
onFailure(a,
|
|
1571
|
+
onFailure(a, i) {
|
|
1504
1572
|
const d = a;
|
|
1505
|
-
d.status =
|
|
1573
|
+
d.status = i.status, d.response = i.errormsg, n && n(d);
|
|
1506
1574
|
}
|
|
1507
1575
|
});
|
|
1508
1576
|
});
|
|
1509
1577
|
}
|
|
1510
|
-
function
|
|
1578
|
+
function Ve(e, t = void 0, s = void 0) {
|
|
1511
1579
|
const n = "YXdA5x4DSUKtlAi2wmnyTA";
|
|
1512
1580
|
e.commu_id || (e.commu_id = n);
|
|
1513
|
-
const
|
|
1514
|
-
w(e, (
|
|
1515
|
-
m(
|
|
1581
|
+
const o = `${e.space}/api/v2/communities/${e.commu_id}/ideas/statuses`;
|
|
1582
|
+
w(e, (r) => {
|
|
1583
|
+
m(o, {
|
|
1516
1584
|
method: "GET",
|
|
1517
1585
|
headers: {
|
|
1518
1586
|
"Content-type": "application/json;charset=UTF-8",
|
|
1519
1587
|
Accept: "application/json",
|
|
1520
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1588
|
+
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
|
|
1521
1589
|
},
|
|
1522
|
-
onComplete(
|
|
1523
|
-
const a = JSON.parse(
|
|
1590
|
+
onComplete(c) {
|
|
1591
|
+
const a = JSON.parse(c);
|
|
1524
1592
|
t && t(a);
|
|
1525
1593
|
},
|
|
1526
|
-
onFailure(
|
|
1527
|
-
const
|
|
1528
|
-
|
|
1594
|
+
onFailure(c, a) {
|
|
1595
|
+
const i = c;
|
|
1596
|
+
i.status = a.status, i.response = a.errormsg, s && s(i);
|
|
1529
1597
|
}
|
|
1530
1598
|
});
|
|
1531
1599
|
});
|
|
1532
1600
|
}
|
|
1533
|
-
function
|
|
1534
|
-
const { listAllContacts:
|
|
1535
|
-
console.log("__listAllContacts",
|
|
1536
|
-
const
|
|
1537
|
-
users: [
|
|
1538
|
-
},
|
|
1601
|
+
function Be(e, t, s = void 0, n = void 0) {
|
|
1602
|
+
const { listAllContacts: o, currentUser: r } = e;
|
|
1603
|
+
console.log("__listAllContacts", o.hits);
|
|
1604
|
+
const c = `${e.space}/api/directmessages`, a = {
|
|
1605
|
+
users: [r.login].concat(t.receipt)
|
|
1606
|
+
}, i = {
|
|
1539
1607
|
id_msg: "",
|
|
1540
1608
|
senderId: e.currentUser.login,
|
|
1541
1609
|
senderName: `${e.currentUser.first_name} ${e.currentUser.last_name}`,
|
|
@@ -1545,14 +1613,14 @@ function Ve(e, t, s = void 0, n = void 0) {
|
|
|
1545
1613
|
Z(
|
|
1546
1614
|
a.users,
|
|
1547
1615
|
(l) => {
|
|
1548
|
-
l !== void 0 && (
|
|
1616
|
+
l !== void 0 && (i.id_msg = l.id, d = !0, U(e, i));
|
|
1549
1617
|
},
|
|
1550
1618
|
(l) => {
|
|
1551
|
-
d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", l), n && n(l),
|
|
1619
|
+
d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", l), n && n(l), i.id_msg = "";
|
|
1552
1620
|
}
|
|
1553
1621
|
), d === !1 && setTimeout(() => {
|
|
1554
1622
|
d === !1 && w(e, (l) => {
|
|
1555
|
-
m(
|
|
1623
|
+
m(c, {
|
|
1556
1624
|
method: "POST",
|
|
1557
1625
|
headers: {
|
|
1558
1626
|
"Content-Type": "application/json",
|
|
@@ -1563,7 +1631,7 @@ function Ve(e, t, s = void 0, n = void 0) {
|
|
|
1563
1631
|
type: "json",
|
|
1564
1632
|
onComplete(p, u, f) {
|
|
1565
1633
|
const g = p;
|
|
1566
|
-
g.reponse = JSON.parse(f.response), g.status = f.status, s && s(g),
|
|
1634
|
+
g.reponse = JSON.parse(f.response), g.status = f.status, s && s(g), i.id_msg = g.result.id, U(e, i);
|
|
1567
1635
|
},
|
|
1568
1636
|
onFailure(p, u, f) {
|
|
1569
1637
|
const g = p;
|
|
@@ -1574,20 +1642,20 @@ function Ve(e, t, s = void 0, n = void 0) {
|
|
|
1574
1642
|
}, 500);
|
|
1575
1643
|
}
|
|
1576
1644
|
function Z(e, t, s, n) {
|
|
1577
|
-
const
|
|
1578
|
-
w(e, (
|
|
1579
|
-
m(
|
|
1645
|
+
const o = `${e.space}/api/directmessages/lite?with_favorites=false`;
|
|
1646
|
+
w(e, (r) => {
|
|
1647
|
+
m(o, {
|
|
1580
1648
|
method: "GET",
|
|
1581
1649
|
headers: {
|
|
1582
1650
|
Accept: "application/json,text/javascript,*/*",
|
|
1583
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1651
|
+
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
|
|
1584
1652
|
},
|
|
1585
|
-
onComplete(
|
|
1586
|
-
const a = JSON.parse(
|
|
1653
|
+
onComplete(c) {
|
|
1654
|
+
const a = JSON.parse(c), i = [];
|
|
1587
1655
|
a.result.forEach((p) => {
|
|
1588
|
-
p.users = p.users.sort((u, f) => u.login.localeCompare(f.login)), p.users.length === t.length &&
|
|
1656
|
+
p.users = p.users.sort((u, f) => u.login.localeCompare(f.login)), p.users.length === t.length && i.push(p);
|
|
1589
1657
|
});
|
|
1590
|
-
const d = t.sort(), l =
|
|
1658
|
+
const d = t.sort(), l = i.find((p) => {
|
|
1591
1659
|
const u = [];
|
|
1592
1660
|
return p.users.forEach((f) => {
|
|
1593
1661
|
u.push(f.login);
|
|
@@ -1595,20 +1663,20 @@ function Z(e, t, s, n) {
|
|
|
1595
1663
|
});
|
|
1596
1664
|
s && l !== void 0 ? s(l) : (n || l === void 0) && n(l);
|
|
1597
1665
|
},
|
|
1598
|
-
onFailure(
|
|
1599
|
-
const a =
|
|
1666
|
+
onFailure(c) {
|
|
1667
|
+
const a = c;
|
|
1600
1668
|
a.msg = headers.errormsg, a.errCode = headers.errorcode, console.log("❌ sendDirectMessageLite => ", a), n && n(a);
|
|
1601
1669
|
}
|
|
1602
1670
|
});
|
|
1603
1671
|
});
|
|
1604
1672
|
}
|
|
1605
|
-
function
|
|
1606
|
-
const
|
|
1673
|
+
function U(e, t, s = void 0, n = void 0) {
|
|
1674
|
+
const o = {
|
|
1607
1675
|
base: e.space,
|
|
1608
1676
|
uri: "/api/community",
|
|
1609
1677
|
id_msg: `${t.id_msg}`,
|
|
1610
1678
|
endUri: "/instantmessages"
|
|
1611
|
-
},
|
|
1679
|
+
}, r = `${o.base}${o.uri}/${o.id_msg}${o.endUri}`, c = {
|
|
1612
1680
|
author: { login: t.senderId, displayName: t.senderName },
|
|
1613
1681
|
accessState: null,
|
|
1614
1682
|
commentUri: null,
|
|
@@ -1618,22 +1686,22 @@ function A(e, t, s = void 0, n = void 0) {
|
|
|
1618
1686
|
parentCommentUri: null,
|
|
1619
1687
|
richMessage: t.msg
|
|
1620
1688
|
};
|
|
1621
|
-
console.log("_3dSwym_sendDirectMessageData url ",
|
|
1622
|
-
m(
|
|
1689
|
+
console.log("_3dSwym_sendDirectMessageData url ", r), w(e, (a) => {
|
|
1690
|
+
m(r, {
|
|
1623
1691
|
method: "POST",
|
|
1624
1692
|
headers: {
|
|
1625
1693
|
"Content-Type": "application/json",
|
|
1626
1694
|
Accept: "application/json",
|
|
1627
1695
|
"X-DS-SWYM-CSRFTOKEN": a.result.ServerToken
|
|
1628
1696
|
},
|
|
1629
|
-
data: JSON.stringify(
|
|
1697
|
+
data: JSON.stringify(c),
|
|
1630
1698
|
type: "json",
|
|
1631
|
-
onComplete(
|
|
1632
|
-
const p =
|
|
1699
|
+
onComplete(i, d, l) {
|
|
1700
|
+
const p = i;
|
|
1633
1701
|
p.status = l.status, p.response = JSON.parse(l.response), console.log("✅ _3dSwym_sendDirectMessageData => ", p), s && s(p);
|
|
1634
1702
|
},
|
|
1635
|
-
onFailure(
|
|
1636
|
-
const l =
|
|
1703
|
+
onFailure(i, d) {
|
|
1704
|
+
const l = i;
|
|
1637
1705
|
l.msg = d.errormsg, l.errCode = d.errorcode, console.log("❌ sendDirectMessage => ", l), n && n(l);
|
|
1638
1706
|
}
|
|
1639
1707
|
});
|
|
@@ -1656,16 +1724,16 @@ const te = {
|
|
|
1656
1724
|
idee_id: "THhRI8rlQNWKRxpv3Xqqug"
|
|
1657
1725
|
// id de l'idee qui est créer au post (_3dSwym_postIdea)
|
|
1658
1726
|
};
|
|
1659
|
-
function
|
|
1660
|
-
const
|
|
1661
|
-
(
|
|
1662
|
-
),
|
|
1663
|
-
(
|
|
1727
|
+
function Ye(e, t, s = void 0, n = void 0) {
|
|
1728
|
+
const o = `${e.space}/api/idea/add`, r = e.swymCommunities.find(
|
|
1729
|
+
(i) => i.id === t.community_id
|
|
1730
|
+
), c = e.swymCommunities.find(
|
|
1731
|
+
(i) => i.title.toLowerCase() === t.community_title.toLowerCase()
|
|
1664
1732
|
), a = {
|
|
1665
1733
|
params: {
|
|
1666
1734
|
title: t.title,
|
|
1667
1735
|
// String, le nom de l'affaire
|
|
1668
|
-
community_id:
|
|
1736
|
+
community_id: r?.id !== void 0 ? r.id : c.id,
|
|
1669
1737
|
// String, l'id de la communauté
|
|
1670
1738
|
message: ne(t.text_html),
|
|
1671
1739
|
// STRING => le contenue du message doit être au format HTML
|
|
@@ -1673,13 +1741,13 @@ function Be(e, t, s = void 0, n = void 0) {
|
|
|
1673
1741
|
// 1 publier, 0 non publier
|
|
1674
1742
|
}
|
|
1675
1743
|
};
|
|
1676
|
-
w(e, (
|
|
1744
|
+
w(e, (i) => {
|
|
1677
1745
|
const d = {
|
|
1678
1746
|
"Content-type": "application/json;charset=UTF-8",
|
|
1679
1747
|
Accept: "application/json",
|
|
1680
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1748
|
+
"X-DS-SWYM-CSRFTOKEN": i.result.ServerToken
|
|
1681
1749
|
};
|
|
1682
|
-
m(
|
|
1750
|
+
m(o, {
|
|
1683
1751
|
method: "POST",
|
|
1684
1752
|
headers: d,
|
|
1685
1753
|
data: JSON.stringify(a),
|
|
@@ -1695,81 +1763,81 @@ function Be(e, t, s = void 0, n = void 0) {
|
|
|
1695
1763
|
});
|
|
1696
1764
|
});
|
|
1697
1765
|
}
|
|
1698
|
-
function
|
|
1699
|
-
const
|
|
1766
|
+
function qe(e, t, s = void 0, n = void 0) {
|
|
1767
|
+
const o = `${e.space}/api/idea/delete`, r = {
|
|
1700
1768
|
params: {
|
|
1701
1769
|
community_id: t.community_id,
|
|
1702
1770
|
ideationIds: [t.idee_id]
|
|
1703
1771
|
}
|
|
1704
1772
|
};
|
|
1705
|
-
w(e, (
|
|
1706
|
-
m(
|
|
1773
|
+
w(e, (c) => {
|
|
1774
|
+
m(o, {
|
|
1707
1775
|
method: "POST",
|
|
1708
1776
|
headers: {
|
|
1709
1777
|
"Content-type": "application/json;charset=UTF-8",
|
|
1710
1778
|
Accept: "application/json",
|
|
1711
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1779
|
+
"X-DS-SWYM-CSRFTOKEN": c.result.ServerToken
|
|
1712
1780
|
},
|
|
1713
|
-
data: JSON.stringify(
|
|
1781
|
+
data: JSON.stringify(r),
|
|
1714
1782
|
type: "json",
|
|
1715
|
-
onComplete(a,
|
|
1783
|
+
onComplete(a, i, d) {
|
|
1716
1784
|
s && s(a);
|
|
1717
1785
|
},
|
|
1718
|
-
onFailure(a,
|
|
1786
|
+
onFailure(a, i, d) {
|
|
1719
1787
|
const l = a;
|
|
1720
|
-
l.status =
|
|
1788
|
+
l.status = i.status, l.response = i.errormsg, n && n(l);
|
|
1721
1789
|
}
|
|
1722
1790
|
});
|
|
1723
1791
|
});
|
|
1724
1792
|
}
|
|
1725
1793
|
function He(e, t = "", s = void 0, n = void 0) {
|
|
1726
|
-
const
|
|
1727
|
-
t === "" && (t =
|
|
1728
|
-
const
|
|
1794
|
+
const o = e.tenant.toLowerCase() === "r1132101716373" ? "tFtz0G4MR6qNtKgJjNfTog" : e.tenant.toLowerCase() === "r1132101286859" ? "Qpv3HN-tTDOsU-7_c5DnDg" : "Template_d'idée_à_créer";
|
|
1795
|
+
t === "" && (t = o);
|
|
1796
|
+
const r = `${e.space}/api/idea/get`, c = {
|
|
1729
1797
|
params: {
|
|
1730
1798
|
id: t
|
|
1731
1799
|
}
|
|
1732
1800
|
};
|
|
1733
1801
|
w(e, (a) => {
|
|
1734
|
-
m(
|
|
1802
|
+
m(r, {
|
|
1735
1803
|
method: "POST",
|
|
1736
1804
|
headers: {
|
|
1737
1805
|
"Content-type": "application/json;charset=UTF-8",
|
|
1738
1806
|
Accept: "application/json",
|
|
1739
1807
|
"X-DS-SWYM-CSRFTOKEN": a.result.ServerToken
|
|
1740
1808
|
},
|
|
1741
|
-
data: JSON.stringify(
|
|
1809
|
+
data: JSON.stringify(c),
|
|
1742
1810
|
type: "json",
|
|
1743
|
-
onComplete(
|
|
1744
|
-
const d =
|
|
1811
|
+
onComplete(i) {
|
|
1812
|
+
const d = i;
|
|
1745
1813
|
d.msg = d.result.message, s && s(d);
|
|
1746
1814
|
},
|
|
1747
|
-
onFailure(
|
|
1748
|
-
const d =
|
|
1815
|
+
onFailure(i) {
|
|
1816
|
+
const d = i;
|
|
1749
1817
|
d.status = headers.status, d.response = headers.errormsg, n && n(d);
|
|
1750
1818
|
}
|
|
1751
1819
|
});
|
|
1752
1820
|
});
|
|
1753
1821
|
}
|
|
1754
1822
|
function ze(e, t = te, s = void 0, n = void 0) {
|
|
1755
|
-
const
|
|
1823
|
+
const o = {
|
|
1756
1824
|
uri: "/api/idea/list",
|
|
1757
1825
|
comId: `/community_id/${e.tenant.toLowerCase() === "r1132101716373" ? t.community_id : "bgnIsG74SUWswyGzS6NC6g"}`,
|
|
1758
1826
|
limit: `/limit/${t.limit ? t.limit : 10}`
|
|
1759
|
-
},
|
|
1760
|
-
w(e, (
|
|
1761
|
-
m(
|
|
1827
|
+
}, r = `${e.space}${o.uri}${o.comId}${o.limit}`;
|
|
1828
|
+
w(e, (c) => {
|
|
1829
|
+
m(r, {
|
|
1762
1830
|
method: "GET",
|
|
1763
1831
|
headers: {
|
|
1764
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1832
|
+
"X-DS-SWYM-CSRFTOKEN": c.result.ServerToken
|
|
1765
1833
|
},
|
|
1766
1834
|
onComplete(a) {
|
|
1767
|
-
const
|
|
1768
|
-
s && s(
|
|
1835
|
+
const i = JSON.parse(a);
|
|
1836
|
+
s && s(i);
|
|
1769
1837
|
},
|
|
1770
|
-
onFailure(a,
|
|
1838
|
+
onFailure(a, i) {
|
|
1771
1839
|
const d = a;
|
|
1772
|
-
d.status =
|
|
1840
|
+
d.status = i.status, d.response = i.errormsg, n && n(d);
|
|
1773
1841
|
}
|
|
1774
1842
|
});
|
|
1775
1843
|
});
|
|
@@ -1849,83 +1917,84 @@ function ne(e) {
|
|
|
1849
1917
|
<p>
|
|
1850
1918
|
</p>` : e;
|
|
1851
1919
|
}
|
|
1852
|
-
function
|
|
1920
|
+
function Qe(e, t = void 0, s = void 0) {
|
|
1853
1921
|
const n = e.space + "/api/user/getcurrent/";
|
|
1854
|
-
w(e, (
|
|
1922
|
+
w(e, (o) => {
|
|
1855
1923
|
m(n, {
|
|
1856
1924
|
method: "GET",
|
|
1857
1925
|
headers: {
|
|
1858
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1926
|
+
"X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
|
|
1859
1927
|
},
|
|
1860
|
-
onComplete(
|
|
1861
|
-
const
|
|
1862
|
-
t && t(
|
|
1928
|
+
onComplete(r, c, a) {
|
|
1929
|
+
const i = JSON.parse(r);
|
|
1930
|
+
t && t(i.result);
|
|
1863
1931
|
},
|
|
1864
|
-
onFailure(
|
|
1865
|
-
const
|
|
1866
|
-
s && s(
|
|
1932
|
+
onFailure(r, c, a) {
|
|
1933
|
+
const i = { erreur: JSON.parse(r), headers: c, xhr: a };
|
|
1934
|
+
s && s(i);
|
|
1867
1935
|
}
|
|
1868
1936
|
});
|
|
1869
1937
|
});
|
|
1870
1938
|
}
|
|
1871
|
-
function
|
|
1872
|
-
const
|
|
1939
|
+
function Ze(e, t, s = void 0, n = void 0) {
|
|
1940
|
+
const o = e.space + "/api/user/find/login/" + t;
|
|
1873
1941
|
w(
|
|
1874
1942
|
e,
|
|
1875
|
-
(
|
|
1876
|
-
m(
|
|
1943
|
+
(r) => {
|
|
1944
|
+
m(o, {
|
|
1877
1945
|
method: "GET",
|
|
1878
|
-
headers: { "X-DS-SWYM-CSRFTOKEN":
|
|
1879
|
-
onComplete(
|
|
1880
|
-
const d = JSON.parse(
|
|
1946
|
+
headers: { "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken },
|
|
1947
|
+
onComplete(c, a, i) {
|
|
1948
|
+
const d = JSON.parse(c);
|
|
1881
1949
|
s && s(d);
|
|
1882
1950
|
},
|
|
1883
|
-
onFailure(
|
|
1884
|
-
n && n(
|
|
1951
|
+
onFailure(c) {
|
|
1952
|
+
n && n(c);
|
|
1885
1953
|
}
|
|
1886
1954
|
});
|
|
1887
1955
|
},
|
|
1888
1956
|
n
|
|
1889
1957
|
);
|
|
1890
1958
|
}
|
|
1891
|
-
function
|
|
1959
|
+
function et(e) {
|
|
1892
1960
|
const t = "Hello " + e;
|
|
1893
1961
|
return console.log(t), t;
|
|
1894
1962
|
}
|
|
1895
1963
|
export {
|
|
1896
|
-
|
|
1964
|
+
R as UUID,
|
|
1897
1965
|
ke as _3DSpace_Create_Doc,
|
|
1966
|
+
je as _3DSpace_bookmark_addSubsciptions,
|
|
1898
1967
|
C as _3DSpace_csrf,
|
|
1899
|
-
|
|
1900
|
-
|
|
1968
|
+
I as _3DSpace_download_doc,
|
|
1969
|
+
W as _3DSpace_download_multidoc,
|
|
1901
1970
|
K as _3DSpace_file_update,
|
|
1902
|
-
|
|
1971
|
+
X as _3DSpace_file_update_csr,
|
|
1903
1972
|
Ne as _3DSpace_file_url_csr,
|
|
1904
1973
|
k as _3DSpace_get_csrf,
|
|
1905
1974
|
G as _3DSpace_get_docInfo,
|
|
1906
1975
|
V as _3DSpace_get_downloadTicket_multidoc,
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1976
|
+
N as _3DSpace_get_securityContexts,
|
|
1977
|
+
A as _3DSpace_get_ticket,
|
|
1978
|
+
Ue as _3DSpace_lifecycle_changeRevision,
|
|
1910
1979
|
Fe as _3DSpace_lifecycle_changeState,
|
|
1911
|
-
|
|
1912
|
-
|
|
1980
|
+
Ae as _3DSpace_lifecycle_getGraph,
|
|
1981
|
+
$e as _3DSpace_lifecycle_getNextRevision,
|
|
1913
1982
|
De as _3DSpace_lifecycle_getNextStates,
|
|
1914
|
-
|
|
1915
|
-
|
|
1983
|
+
Be as _3DSwym_buildDirectMessage,
|
|
1984
|
+
qe as _3DSwym_deleteIdea,
|
|
1916
1985
|
Z as _3DSwym_findCommunityToInstantMSG,
|
|
1917
1986
|
We as _3DSwym_getAllCommunities,
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1987
|
+
Ke as _3DSwym_getAllNews,
|
|
1988
|
+
Xe as _3DSwym_getFamiliarPeople,
|
|
1989
|
+
Ve as _3DSwym_getIdeaStatusMaturity,
|
|
1921
1990
|
Q as _3DSwym_getMembersCommunity,
|
|
1922
1991
|
He as _3DSwym_getSWYMIdea,
|
|
1923
1992
|
ze as _3DSwym_get_AllSWYMIdeas,
|
|
1924
|
-
|
|
1925
|
-
|
|
1993
|
+
Qe as _3DSwym_get_currentUser,
|
|
1994
|
+
Ze as _3DSwym_get_findUser,
|
|
1926
1995
|
w as _3DSwym_get_version,
|
|
1927
|
-
|
|
1928
|
-
|
|
1996
|
+
Ye as _3DSwym_postIdea,
|
|
1997
|
+
U as _3DSwym_sendMessageData,
|
|
1929
1998
|
Se as _AppMngt_get_info_user,
|
|
1930
1999
|
he as _AppMngt_get_users,
|
|
1931
2000
|
me as _getPlateformInfos,
|
|
@@ -1934,32 +2003,32 @@ export {
|
|
|
1934
2003
|
le as _setDraggable,
|
|
1935
2004
|
ue as _setDroppable,
|
|
1936
2005
|
pe as _setupTagger,
|
|
1937
|
-
|
|
2006
|
+
Je as addTagToDoc,
|
|
1938
2007
|
ge as compass_getListAdditionalApps,
|
|
1939
2008
|
L as couleurs,
|
|
1940
2009
|
_e as createUserGroups,
|
|
1941
2010
|
B as dataMixing,
|
|
1942
2011
|
Te as deleteUserGroups,
|
|
1943
2012
|
re as findAdresse,
|
|
1944
|
-
|
|
2013
|
+
Re as getAllContextSecurity,
|
|
1945
2014
|
E as getCSRFToken,
|
|
1946
|
-
|
|
2015
|
+
ie as getCommunes,
|
|
1947
2016
|
ye as getComplementUG,
|
|
1948
2017
|
Ie as getDataFrom3DSpace,
|
|
1949
2018
|
ce as getDataFromGouvFr,
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
2019
|
+
Me as getDatasByTenant,
|
|
2020
|
+
Le as getDatasFrom3DSpace,
|
|
2021
|
+
ve as getDownloadDocument,
|
|
2022
|
+
Ge as getInfoDocTags,
|
|
1954
2023
|
we as getUserGroupsList,
|
|
1955
2024
|
J as getUsersGroupRules,
|
|
1956
|
-
|
|
2025
|
+
xe as get_3DSpace_csrf,
|
|
1957
2026
|
Ce as patchUserGroups,
|
|
1958
2027
|
Oe as patchUserGroupsControl,
|
|
1959
|
-
|
|
2028
|
+
Pe as pushDataIn3DSpace,
|
|
1960
2029
|
be as readUserGroupControl,
|
|
1961
|
-
|
|
1962
|
-
|
|
2030
|
+
Ee as removeTagToDoc,
|
|
2031
|
+
et as sayHello,
|
|
1963
2032
|
de as updateEvent
|
|
1964
2033
|
};
|
|
1965
2034
|
//# sourceMappingURL=wb3Api.js.map
|