@beam3_dev/api_module 0.0.161 → 0.0.162
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/package.json +1 -1
- package/dist/wb3Api.js +0 -2292
- package/dist/wb3Api.js.map +0 -1
- package/dist/wb3Api.umd.cjs +0 -79
- package/dist/wb3Api.umd.cjs.map +0 -1
package/dist/wb3Api.js
DELETED
|
@@ -1,2292 +0,0 @@
|
|
|
1
|
-
import { v4 as E } from "uuid";
|
|
2
|
-
import { DateTime as v } from "luxon";
|
|
3
|
-
import { requirejs as O, widget as P } from "@widget-lab/3ddashboard-utils";
|
|
4
|
-
function R() {
|
|
5
|
-
return E();
|
|
6
|
-
}
|
|
7
|
-
const G = {
|
|
8
|
-
b3M3Yellow: "#FFB300",
|
|
9
|
-
b3AboutageBlue: "#42A5F5",
|
|
10
|
-
b3UsinageGreen: "#689F38",
|
|
11
|
-
b3PanneauOrange: "#ff8000",
|
|
12
|
-
b3M350percent: "#fafa6e",
|
|
13
|
-
b3M380percent: "#aae479",
|
|
14
|
-
b3M390percent: "#64c987",
|
|
15
|
-
b3M3100percent: "#23aa8f",
|
|
16
|
-
b3M3105percent: "#00898a",
|
|
17
|
-
b3M3110percent: "#176877",
|
|
18
|
-
b3M3120percent: "#2a4858",
|
|
19
|
-
b3Aboutage50percent: "#fafa6e",
|
|
20
|
-
b3Aboutage80percent: "#aae479",
|
|
21
|
-
b3Aboutage90percent: "#64c987",
|
|
22
|
-
b3Aboutage100percent: "#23aa8f",
|
|
23
|
-
b3Aboutage105percent: "#00898a",
|
|
24
|
-
b3Aboutage110percent: "#176877",
|
|
25
|
-
b3Aboutage120percent: "#2a4858",
|
|
26
|
-
b3Warning: "#FF0000",
|
|
27
|
-
b3Edit1: "#AD1457",
|
|
28
|
-
b3Edit2: "#F4511E",
|
|
29
|
-
b3Edit3: "#009688",
|
|
30
|
-
b3Edit4: "#D50000",
|
|
31
|
-
b3Edit5: "#039BE5",
|
|
32
|
-
b3Edit6: "#9E69AF",
|
|
33
|
-
b3Edit7: "#A79B8E",
|
|
34
|
-
b3Edit8: "#616161",
|
|
35
|
-
b3Edit9: "#795548"
|
|
36
|
-
};
|
|
37
|
-
async function fe(e, t = void 0, n = void 0) {
|
|
38
|
-
const s = parseInt(e);
|
|
39
|
-
await fetch(
|
|
40
|
-
"https://apicarto.ign.fr/api/codes-postaux/communes/" + s,
|
|
41
|
-
{
|
|
42
|
-
method: "GET",
|
|
43
|
-
headers: {
|
|
44
|
-
Accept: "application/json"
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
).then((a) => a.json()).then((a) => {
|
|
48
|
-
t && t(a);
|
|
49
|
-
}).catch((a) => {
|
|
50
|
-
n && n(a), console.error("Erreur : " + a);
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
async function me(e, t = void 0, n = void 0) {
|
|
54
|
-
e = encodeURIComponent(e), await fetch(
|
|
55
|
-
"https://api-adresse.data.gouv.fr/search/?q=" + e + "&limit=15",
|
|
56
|
-
{
|
|
57
|
-
method: "GET",
|
|
58
|
-
headers: {
|
|
59
|
-
Accept: "application/json"
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
).then((s) => s.json()).then((s) => {
|
|
63
|
-
t && t(s);
|
|
64
|
-
}).catch((s) => {
|
|
65
|
-
n && n(s), console.error("Erreur : " + s);
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
async function ge(e, t = G) {
|
|
69
|
-
let n = v.now().year;
|
|
70
|
-
const s = e, a = [], r = (i) => {
|
|
71
|
-
for (let c in i)
|
|
72
|
-
a.push({ date: c, comment: i[c] });
|
|
73
|
-
};
|
|
74
|
-
for (let i = n; i <= n + 1; i++)
|
|
75
|
-
await fetch(
|
|
76
|
-
"https://calendrier.api.gouv.fr/jours-feries/metropole/" + i + ".json",
|
|
77
|
-
{
|
|
78
|
-
method: "GET",
|
|
79
|
-
headers: {
|
|
80
|
-
Accept: "application/json"
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
).then((c) => c.json()).then((c) => {
|
|
84
|
-
r(c);
|
|
85
|
-
}).catch((c) => console.error("Erreur : " + c));
|
|
86
|
-
return (() => {
|
|
87
|
-
const i = s.length === 0 ? {
|
|
88
|
-
events: []
|
|
89
|
-
} : s;
|
|
90
|
-
for (let c of a)
|
|
91
|
-
i.events.findIndex(
|
|
92
|
-
(l) => l.start === v.fromISO(c.date).toISODate() && l.name === "Férié : " + c.comment
|
|
93
|
-
) === -1 && i.events.push({
|
|
94
|
-
name: "Férié : " + c.comment,
|
|
95
|
-
start: v.fromISO(c.date).toISODate(),
|
|
96
|
-
end: v.fromISO(c.date).toISODate(),
|
|
97
|
-
color: t.b3BusinnessDays,
|
|
98
|
-
timed: !1
|
|
99
|
-
});
|
|
100
|
-
return i;
|
|
101
|
-
})();
|
|
102
|
-
}
|
|
103
|
-
async function he(e, t, n = !0) {
|
|
104
|
-
const s = e.events.findIndex((a) => a.uuid === t.uuid);
|
|
105
|
-
return s === -1 ? e.events.push(t) : n ? e.events[s] = t : e.events.splice(s, 1), e.length > 0 && e.sort((a, r) => a.start - r.start), e;
|
|
106
|
-
}
|
|
107
|
-
function m(e, t) {
|
|
108
|
-
O(["DS/WAFData/WAFData"], (n) => {
|
|
109
|
-
n.authenticatedRequest(e, t);
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
function Se(e, t, n) {
|
|
113
|
-
O(["DS/DataDragAndDrop/DataDragAndDrop"], (s) => {
|
|
114
|
-
s.draggable(e, {
|
|
115
|
-
data: t,
|
|
116
|
-
start: n
|
|
117
|
-
});
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
function _e(e, t = void 0) {
|
|
121
|
-
O(["DS/TagNavigatorProxy/TagNavigatorProxy"], (n) => {
|
|
122
|
-
let s;
|
|
123
|
-
s === void 0 && (s = n.createProxy({
|
|
124
|
-
widgetId: P.id,
|
|
125
|
-
filteringMode: "WithFilteringServices"
|
|
126
|
-
}), t !== void 0 && s.addEvent("onFilterSubjectsChange", t)), s.setSubjectsTags(e);
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
function ye(e, t) {
|
|
130
|
-
O(["DS/DataDragAndDrop/DataDragAndDrop"], (n) => {
|
|
131
|
-
n.droppable(e, {
|
|
132
|
-
drop: t
|
|
133
|
-
});
|
|
134
|
-
});
|
|
135
|
-
}
|
|
136
|
-
async function we(e, t = void 0, n = void 0) {
|
|
137
|
-
await O(
|
|
138
|
-
["DS/i3DXCompassServices/i3DXCompassServices"],
|
|
139
|
-
(s) => {
|
|
140
|
-
(!e || e === "") && (e = P.getValue("PlatFormInstanceId")), (!e || e === "") && (e = void 0), t && t(
|
|
141
|
-
s.getPlatformServices({
|
|
142
|
-
platformId: e,
|
|
143
|
-
onComplete: t,
|
|
144
|
-
onFailure: n
|
|
145
|
-
})
|
|
146
|
-
);
|
|
147
|
-
}
|
|
148
|
-
);
|
|
149
|
-
}
|
|
150
|
-
function K() {
|
|
151
|
-
let e = {};
|
|
152
|
-
return O(["DS/PlatformAPI/PlatformAPI"], (t) => {
|
|
153
|
-
const n = t.getTenant(), s = t.getUser(), a = t.getAllApplicationConfigurations(), r = t.getApplicationConfiguration(
|
|
154
|
-
"com.3ds.wp.passport.cors"
|
|
155
|
-
);
|
|
156
|
-
e = {
|
|
157
|
-
tenant: n,
|
|
158
|
-
user: s,
|
|
159
|
-
appsConfiguration: a,
|
|
160
|
-
appConf: r
|
|
161
|
-
};
|
|
162
|
-
}), console.log("%cRETOUR API :", "color:blue", e), e;
|
|
163
|
-
}
|
|
164
|
-
function $(e, t = void 0, n = void 0) {
|
|
165
|
-
if (e.tenant) {
|
|
166
|
-
const s = `https://${e.tenant}-eu1-apps.3dexperience.3ds.com/enovia/resources/AppsMngt/api/v1/services?tenant=${e.tenant}&cors=true&xrequestedwith=xmlhttprequest`;
|
|
167
|
-
m(s, {
|
|
168
|
-
onComplete(a) {
|
|
169
|
-
const r = typeof a == "string" ? JSON.parse(a) : a;
|
|
170
|
-
if (r && "platforms" in r) {
|
|
171
|
-
const o = r.platforms.find(
|
|
172
|
-
(i) => i.id === e.tenant.toUpperCase()
|
|
173
|
-
);
|
|
174
|
-
t && o ? t(o) : n && n("_getServiceUrl return listServiceUrl = undefined");
|
|
175
|
-
} else
|
|
176
|
-
n && n("_getServiceUrl return oResponse = undefined");
|
|
177
|
-
},
|
|
178
|
-
onFailure(a) {
|
|
179
|
-
n && n(a);
|
|
180
|
-
}
|
|
181
|
-
});
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
function Ce(e, t = void 0, n = void 0) {
|
|
185
|
-
if (e.tenant) {
|
|
186
|
-
const s = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dpassport&platformId=${e.tenant}`;
|
|
187
|
-
m(s, {
|
|
188
|
-
onComplete(a) {
|
|
189
|
-
const r = JSON.parse(a);
|
|
190
|
-
if (console.log("serviceId=3dpassport", r), Array.isArray(r) && r.length > 0) {
|
|
191
|
-
const o = `${r[0].services[0].url}`;
|
|
192
|
-
t && t(o);
|
|
193
|
-
}
|
|
194
|
-
},
|
|
195
|
-
onFailure(a) {
|
|
196
|
-
n && n(a);
|
|
197
|
-
}
|
|
198
|
-
});
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
function Te(e, t, n) {
|
|
202
|
-
const s = {
|
|
203
|
-
base: `${e.space}`,
|
|
204
|
-
uri: "/resources/AppsMngt/api/custom/applications",
|
|
205
|
-
option: `?filter=${e.tenant}`
|
|
206
|
-
// facultatif
|
|
207
|
-
}, a = `${s.base}${s.uri}${s.option}`;
|
|
208
|
-
m(a, {
|
|
209
|
-
method: "GET",
|
|
210
|
-
headers: {
|
|
211
|
-
"Content-Type": "application/json",
|
|
212
|
-
Accept: "application/json"
|
|
213
|
-
},
|
|
214
|
-
onComplete(r, o, i) {
|
|
215
|
-
const c = JSON.parse(r), d = c.data.map((l) => {
|
|
216
|
-
const p = l.attributes.name, f = l.id;
|
|
217
|
-
return { name: p, id: f };
|
|
218
|
-
});
|
|
219
|
-
t && t(d, c);
|
|
220
|
-
},
|
|
221
|
-
onFailure(r, o) {
|
|
222
|
-
const i = r;
|
|
223
|
-
i.msg = o.errormsg, i.errCode = o.errorcode, n && n(i);
|
|
224
|
-
}
|
|
225
|
-
});
|
|
226
|
-
}
|
|
227
|
-
function Oe(e, t = void 0, n = void 0) {
|
|
228
|
-
let s = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&limit=-1`;
|
|
229
|
-
m(s, {
|
|
230
|
-
onComplete(a, r, o) {
|
|
231
|
-
const i = JSON.parse(a);
|
|
232
|
-
console.log("_AppMngt_get_users => ", i), t && t(i);
|
|
233
|
-
},
|
|
234
|
-
onFailure(a, r) {
|
|
235
|
-
const o = a;
|
|
236
|
-
o.msg = r.errormsg, o.errCode = r.errorcode, n && n(o);
|
|
237
|
-
}
|
|
238
|
-
});
|
|
239
|
-
}
|
|
240
|
-
function be(e, t, n = void 0, s = void 0) {
|
|
241
|
-
let a = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&id=${t}`;
|
|
242
|
-
m(a, {
|
|
243
|
-
onComplete(r, o, i) {
|
|
244
|
-
const c = JSON.parse(r);
|
|
245
|
-
n && n(c);
|
|
246
|
-
},
|
|
247
|
-
onFailure(r, o) {
|
|
248
|
-
const i = r;
|
|
249
|
-
i.msg = o.errormsg, i.errCode = o.errorcode, s && s(i);
|
|
250
|
-
}
|
|
251
|
-
});
|
|
252
|
-
}
|
|
253
|
-
const F = {
|
|
254
|
-
"Content-Type": "application/json",
|
|
255
|
-
Accept: "application/json,text/javascript,*/*"
|
|
256
|
-
};
|
|
257
|
-
function Ne(e, t, n = void 0, s = void 0) {
|
|
258
|
-
const { space: a, currentUser: r } = e, i = `${a}${{
|
|
259
|
-
URIUGr: "/3drdfpersist/resources/v1/usersgroup"
|
|
260
|
-
}.URIUGr}`, c = {
|
|
261
|
-
groups: [
|
|
262
|
-
{
|
|
263
|
-
title: t.title,
|
|
264
|
-
description: t.description,
|
|
265
|
-
members: t.members || [r.email, "samuel.mureau@beam3.fr"],
|
|
266
|
-
pending_members: [],
|
|
267
|
-
sharing: t.sharing,
|
|
268
|
-
visibility: t.visibility
|
|
269
|
-
}
|
|
270
|
-
]
|
|
271
|
-
};
|
|
272
|
-
m(i, {
|
|
273
|
-
method: "POST",
|
|
274
|
-
headers: F,
|
|
275
|
-
data: JSON.stringify(c),
|
|
276
|
-
onComplete(d) {
|
|
277
|
-
n && n(JSON.parse(d));
|
|
278
|
-
},
|
|
279
|
-
onFailure(d, l) {
|
|
280
|
-
console.log(d);
|
|
281
|
-
const p = d;
|
|
282
|
-
p.msg = l.errormsg, p.errCode = l.errorcode, console.log("❌ sendDirectMessage => ", p), s && s(p);
|
|
283
|
-
}
|
|
284
|
-
});
|
|
285
|
-
}
|
|
286
|
-
function ve(e, t, n = void 0, s = void 0) {
|
|
287
|
-
const { space: a, tenant: r } = e, o = a, i = `/3drdfpersist/v1/resources/${t}`, c = `?$mask=dsaccess:Mask.GroupUI.Properties&tenant=dstenant:${r}`, d = `${o}${i}${c}`;
|
|
288
|
-
m(d, {
|
|
289
|
-
opts: {
|
|
290
|
-
method: "GET",
|
|
291
|
-
headers: {
|
|
292
|
-
"Content-Type": "application/json",
|
|
293
|
-
Accept: "application/json,text/javascript,*/*"
|
|
294
|
-
}
|
|
295
|
-
},
|
|
296
|
-
onComplete(f) {
|
|
297
|
-
n && n(JSON.parse(f));
|
|
298
|
-
},
|
|
299
|
-
onFailure(f, u) {
|
|
300
|
-
const g = f;
|
|
301
|
-
g.msg = u.errormsg, g.errCode = u.errorcode, s && s(g);
|
|
302
|
-
}
|
|
303
|
-
});
|
|
304
|
-
}
|
|
305
|
-
function V(e, t = void 0, n = void 0) {
|
|
306
|
-
const { space: s, tenant: a } = e, r = s, o = "/3drdfpersist/resources/v1/option-sets/dsusergroup:ListOfGroupResponsibilities/options", i = `?tenant=dstenant:${a}`, c = {
|
|
307
|
-
method: "GET",
|
|
308
|
-
Accept: "application/json,*/*,test/javascript"
|
|
309
|
-
}, d = `${r}${o}${i}`;
|
|
310
|
-
m(d, {
|
|
311
|
-
OPTsH: c,
|
|
312
|
-
onComplete(l) {
|
|
313
|
-
t && t(JSON.parse(l));
|
|
314
|
-
},
|
|
315
|
-
onFailure(l, p) {
|
|
316
|
-
const f = l;
|
|
317
|
-
f.msg = p.errormsg, f.errCode = p.errorcode, n && n(f);
|
|
318
|
-
}
|
|
319
|
-
});
|
|
320
|
-
}
|
|
321
|
-
function Ie(e, t = void 0, n = void 0) {
|
|
322
|
-
const { space: s, currentUser: a } = e, i = `${s}/3drdfpersist/resources/v1/usersgroup?select=uri,title,description,owner,members,pending_members,creation_date,modification_date,visibility`, d = { method: "GET", headers: {
|
|
323
|
-
"Content-Type": "application/json",
|
|
324
|
-
Accept: "application/json,text/javascript,*/*"
|
|
325
|
-
} };
|
|
326
|
-
try {
|
|
327
|
-
m(i, {
|
|
328
|
-
opts: d,
|
|
329
|
-
onComplete(l) {
|
|
330
|
-
const p = JSON.parse(l), f = {}, u = p.groups.filter((g) => g.uri.startsWith("uuid:"));
|
|
331
|
-
if (a && Object.keys(a).length > 0) {
|
|
332
|
-
const g = u.filter((_) => _.owner === a.email), h = u.filter((_) => _.members.includes(a.email)), S = g.concat(h);
|
|
333
|
-
f.iam = S, f.UG = u, f.iamMember = h, V(
|
|
334
|
-
e,
|
|
335
|
-
(_) => {
|
|
336
|
-
f.rules = _, t && t(f);
|
|
337
|
-
},
|
|
338
|
-
(_) => {
|
|
339
|
-
n && n(_);
|
|
340
|
-
}
|
|
341
|
-
);
|
|
342
|
-
}
|
|
343
|
-
},
|
|
344
|
-
onFailure(l) {
|
|
345
|
-
n && n(l);
|
|
346
|
-
}
|
|
347
|
-
});
|
|
348
|
-
} catch (l) {
|
|
349
|
-
console.log(l);
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
function $e(e, t) {
|
|
353
|
-
const { space: n } = e, a = `${n}/3drdfpersist/resources/v1/usersgroup/${t}`;
|
|
354
|
-
m(a, {
|
|
355
|
-
method: "DELETE"
|
|
356
|
-
});
|
|
357
|
-
}
|
|
358
|
-
function Ae(e, t, n, s = void 0, a = void 0) {
|
|
359
|
-
const { space: r, tenant: o } = e, i = {
|
|
360
|
-
URITI: "/3drdfpersist/resources/v1/template-instances",
|
|
361
|
-
URIUGr: "/3drdfpersist/resources/v1/usersgroup",
|
|
362
|
-
nextURICh: "/characteristics",
|
|
363
|
-
nextURIGr: "/group",
|
|
364
|
-
nexURImem: "/members",
|
|
365
|
-
OPTsTI: "?$mask=dsaccess:Mask.GroupUI.Properties",
|
|
366
|
-
OPTsTenant: `tenant=dstenant:${o}`
|
|
367
|
-
}, c = n, d = `${r}${i.URIUGr}/${t}`, l = JSON.stringify(c);
|
|
368
|
-
m(d, {
|
|
369
|
-
headers: F,
|
|
370
|
-
method: "PATCH",
|
|
371
|
-
data: l,
|
|
372
|
-
type: "json",
|
|
373
|
-
onComplete(p) {
|
|
374
|
-
s && s(p);
|
|
375
|
-
},
|
|
376
|
-
onFailure(p) {
|
|
377
|
-
a && a(p);
|
|
378
|
-
}
|
|
379
|
-
});
|
|
380
|
-
}
|
|
381
|
-
function ke(e, t, n, s = void 0, a = void 0) {
|
|
382
|
-
const { space: r } = e, i = `${r}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
|
|
383
|
-
m(i, {
|
|
384
|
-
method: "PATCH",
|
|
385
|
-
headers: F,
|
|
386
|
-
data: JSON.stringify(n),
|
|
387
|
-
type: "json",
|
|
388
|
-
onComplete(d) {
|
|
389
|
-
s && s(d);
|
|
390
|
-
},
|
|
391
|
-
onFailure(d) {
|
|
392
|
-
a && a(d);
|
|
393
|
-
}
|
|
394
|
-
});
|
|
395
|
-
}
|
|
396
|
-
function Fe(e, t, n = void 0, s = void 0) {
|
|
397
|
-
const { space: a } = e, o = `${a}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
|
|
398
|
-
m(o, {
|
|
399
|
-
opts: {
|
|
400
|
-
method: "GET",
|
|
401
|
-
headers: {
|
|
402
|
-
"Content-Type": "application/json",
|
|
403
|
-
Accept: "application/json,text/javascript,*/*"
|
|
404
|
-
}
|
|
405
|
-
},
|
|
406
|
-
onComplete(d) {
|
|
407
|
-
n && n(JSON.parse(d));
|
|
408
|
-
},
|
|
409
|
-
onFailure(d) {
|
|
410
|
-
s && s(d);
|
|
411
|
-
}
|
|
412
|
-
});
|
|
413
|
-
}
|
|
414
|
-
async function W(e, t, n) {
|
|
415
|
-
if (e.space) {
|
|
416
|
-
const s = `${e.space}/resources/v1/application/CSRF`;
|
|
417
|
-
m(s, {
|
|
418
|
-
onComplete(a) {
|
|
419
|
-
a = JSON.parse(a), t && t(a.csrf);
|
|
420
|
-
},
|
|
421
|
-
onFailure(a, r, o) {
|
|
422
|
-
n && n({ error: a, headers: r, xhr: o });
|
|
423
|
-
}
|
|
424
|
-
});
|
|
425
|
-
}
|
|
426
|
-
}
|
|
427
|
-
var I = {};
|
|
428
|
-
function B(e, t) {
|
|
429
|
-
return Object.prototype.hasOwnProperty.call(e, t);
|
|
430
|
-
}
|
|
431
|
-
var X = function(e, t, n, s) {
|
|
432
|
-
t = t || "&", n = n || "=";
|
|
433
|
-
var a = {};
|
|
434
|
-
if (typeof e != "string" || e.length === 0)
|
|
435
|
-
return a;
|
|
436
|
-
var r = /\+/g;
|
|
437
|
-
e = e.split(t);
|
|
438
|
-
var o = 1e3;
|
|
439
|
-
s && typeof s.maxKeys == "number" && (o = s.maxKeys);
|
|
440
|
-
var i = e.length;
|
|
441
|
-
o > 0 && i > o && (i = o);
|
|
442
|
-
for (var c = 0; c < i; ++c) {
|
|
443
|
-
var d = e[c].replace(r, "%20"), l = d.indexOf(n), p, f, u, g;
|
|
444
|
-
l >= 0 ? (p = d.substr(0, l), f = d.substr(l + 1)) : (p = d, f = ""), u = decodeURIComponent(p), g = decodeURIComponent(f), B(a, u) ? Array.isArray(a[u]) ? a[u].push(g) : a[u] = [a[u], g] : a[u] = g;
|
|
445
|
-
}
|
|
446
|
-
return a;
|
|
447
|
-
}, N = function(e) {
|
|
448
|
-
switch (typeof e) {
|
|
449
|
-
case "string":
|
|
450
|
-
return e;
|
|
451
|
-
case "boolean":
|
|
452
|
-
return e ? "true" : "false";
|
|
453
|
-
case "number":
|
|
454
|
-
return isFinite(e) ? e : "";
|
|
455
|
-
default:
|
|
456
|
-
return "";
|
|
457
|
-
}
|
|
458
|
-
}, Y = function(e, t, n, s) {
|
|
459
|
-
return t = t || "&", n = n || "=", e === null && (e = void 0), typeof e == "object" ? Object.keys(e).map(function(a) {
|
|
460
|
-
var r = encodeURIComponent(N(a)) + n;
|
|
461
|
-
return Array.isArray(e[a]) ? e[a].map(function(o) {
|
|
462
|
-
return r + encodeURIComponent(N(o));
|
|
463
|
-
}).join(t) : r + encodeURIComponent(N(e[a]));
|
|
464
|
-
}).filter(Boolean).join(t) : s ? encodeURIComponent(N(s)) + n + encodeURIComponent(N(e)) : "";
|
|
465
|
-
};
|
|
466
|
-
I.decode = I.parse = X;
|
|
467
|
-
I.encode = I.stringify = Y;
|
|
468
|
-
async function H(e, t = void 0, n = void 0, s = void 0) {
|
|
469
|
-
const a = e.space;
|
|
470
|
-
if (t === void 0) {
|
|
471
|
-
console.log("Le paramètre docid est obligatoire");
|
|
472
|
-
return;
|
|
473
|
-
}
|
|
474
|
-
const r = a + `/resources/v1/modeler/documents/${t}`;
|
|
475
|
-
m(r, {
|
|
476
|
-
onComplete(o, i, c) {
|
|
477
|
-
const d = JSON.parse(o);
|
|
478
|
-
n && n(d);
|
|
479
|
-
},
|
|
480
|
-
onFailure(o) {
|
|
481
|
-
s && s(o);
|
|
482
|
-
}
|
|
483
|
-
});
|
|
484
|
-
}
|
|
485
|
-
async function Ue(e, t = void 0, n = void 0, s = void 0) {
|
|
486
|
-
const a = e.space;
|
|
487
|
-
if (t === void 0) {
|
|
488
|
-
console.log("Le paramètre docids est obligatoire");
|
|
489
|
-
return;
|
|
490
|
-
}
|
|
491
|
-
let r = `${a}/resources/v1/modeler/documents/ids?$include=!files,!ownerInfo,!originatorInfo,!relOwnerInfo'`, o = I.stringify({
|
|
492
|
-
$ids: t.toString().replace('"', "").replace("[", "").replace("]", "")
|
|
493
|
-
});
|
|
494
|
-
m(r, {
|
|
495
|
-
method: "POST",
|
|
496
|
-
headers: {
|
|
497
|
-
"Content-Type": "application/x-www-form-urlencoded"
|
|
498
|
-
},
|
|
499
|
-
data: o,
|
|
500
|
-
onComplete(i, c, d) {
|
|
501
|
-
const l = JSON.parse(i);
|
|
502
|
-
n && n(l);
|
|
503
|
-
},
|
|
504
|
-
onFailure(i) {
|
|
505
|
-
s && s(i);
|
|
506
|
-
}
|
|
507
|
-
});
|
|
508
|
-
}
|
|
509
|
-
function A(e, t = void 0, n = void 0) {
|
|
510
|
-
if (e.objID && e.objID !== "") {
|
|
511
|
-
let s = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
|
|
512
|
-
m(s, {
|
|
513
|
-
onComplete(a, r, o) {
|
|
514
|
-
const i = JSON.parse(a);
|
|
515
|
-
e.token = i?.csrf?.value, e.datas = i?.data[0], t && t(e);
|
|
516
|
-
},
|
|
517
|
-
onFailure(a) {
|
|
518
|
-
n && n(a);
|
|
519
|
-
}
|
|
520
|
-
});
|
|
521
|
-
} else
|
|
522
|
-
T(
|
|
523
|
-
e,
|
|
524
|
-
(s) => {
|
|
525
|
-
console.log("_3DSpace_get_csrf / _3DSpace_csrf", s), t && t(s);
|
|
526
|
-
},
|
|
527
|
-
(s) => {
|
|
528
|
-
n && n(s);
|
|
529
|
-
}
|
|
530
|
-
);
|
|
531
|
-
}
|
|
532
|
-
function T(e, t = void 0, n = void 0) {
|
|
533
|
-
if (e.space) {
|
|
534
|
-
const s = e.space + "/resources/v1/application/CSRF";
|
|
535
|
-
m(s, {
|
|
536
|
-
onComplete(a, r, o) {
|
|
537
|
-
const i = JSON.parse(a);
|
|
538
|
-
t && t(i.csrf.value);
|
|
539
|
-
},
|
|
540
|
-
onFailure(a, r, o) {
|
|
541
|
-
n && n({
|
|
542
|
-
response: a,
|
|
543
|
-
headers: r,
|
|
544
|
-
xhr: o
|
|
545
|
-
});
|
|
546
|
-
}
|
|
547
|
-
});
|
|
548
|
-
} else
|
|
549
|
-
n && n("ERROR : url du 3DSpace non défini.");
|
|
550
|
-
}
|
|
551
|
-
function U(e, t = void 0, n = void 0) {
|
|
552
|
-
let s = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
|
|
553
|
-
A(
|
|
554
|
-
e,
|
|
555
|
-
(a) => {
|
|
556
|
-
m(s, {
|
|
557
|
-
method: "PUT",
|
|
558
|
-
headers: {
|
|
559
|
-
ENO_CSRF_TOKEN: e.token
|
|
560
|
-
},
|
|
561
|
-
onComplete(r, o) {
|
|
562
|
-
const c = JSON.parse(r).data[0].dataelements.ticketURL;
|
|
563
|
-
t && t(c, o);
|
|
564
|
-
},
|
|
565
|
-
onFailure(r, o) {
|
|
566
|
-
console.warn("☠️ error => ", r, o), n && n(r, o);
|
|
567
|
-
}
|
|
568
|
-
});
|
|
569
|
-
},
|
|
570
|
-
(a) => {
|
|
571
|
-
console.warn("_3DSpace_get_ticket / error => ", a), n && n(a);
|
|
572
|
-
}
|
|
573
|
-
);
|
|
574
|
-
}
|
|
575
|
-
function je(e, t, n, s = void 0, a = void 0) {
|
|
576
|
-
const r = `${e.space}/resources/v1/modeler/documents/${t}/files/DownloadTicket`;
|
|
577
|
-
n || (n = e.token), m(r, {
|
|
578
|
-
method: "PUT",
|
|
579
|
-
headers: {
|
|
580
|
-
ENO_CSRF_TOKEN: n
|
|
581
|
-
},
|
|
582
|
-
onComplete(o) {
|
|
583
|
-
let i = JSON.parse(o);
|
|
584
|
-
if (console.log("☠️ info => ", i), i.success === !0)
|
|
585
|
-
try {
|
|
586
|
-
const c = i.data[0].dataelements.ticketURL;
|
|
587
|
-
s && s(c);
|
|
588
|
-
} catch (c) {
|
|
589
|
-
a && a(c);
|
|
590
|
-
}
|
|
591
|
-
},
|
|
592
|
-
onFailure(o) {
|
|
593
|
-
a && a(o);
|
|
594
|
-
}
|
|
595
|
-
});
|
|
596
|
-
}
|
|
597
|
-
function z(e, t, n, s, a, r = void 0, o = void 0) {
|
|
598
|
-
const i = () => q(
|
|
599
|
-
e,
|
|
600
|
-
t,
|
|
601
|
-
n,
|
|
602
|
-
s,
|
|
603
|
-
a,
|
|
604
|
-
e.token,
|
|
605
|
-
r,
|
|
606
|
-
o
|
|
607
|
-
);
|
|
608
|
-
e.token ? i() : A(
|
|
609
|
-
e,
|
|
610
|
-
t,
|
|
611
|
-
(c) => {
|
|
612
|
-
e.token = c.csrf.value, i();
|
|
613
|
-
}
|
|
614
|
-
);
|
|
615
|
-
}
|
|
616
|
-
function q(e, t, n, s, a, r, o = void 0, i = void 0) {
|
|
617
|
-
const c = e.space + `/resources/v1/modeler/documents/${t}/files/CheckinTicket`;
|
|
618
|
-
m(c, {
|
|
619
|
-
method: "PUT",
|
|
620
|
-
headers: {
|
|
621
|
-
ENO_CSRF_TOKEN: r
|
|
622
|
-
},
|
|
623
|
-
onComplete(d, l, p) {
|
|
624
|
-
const f = JSON.parse(d).data[0].dataelements, u = new FormData();
|
|
625
|
-
u.append("__fcs__jobTicket", f.ticket), u.append("file_0", s, a);
|
|
626
|
-
const g = {};
|
|
627
|
-
g.method = "POST", g.data = u, g.onComplete = function(h) {
|
|
628
|
-
let S = "temp_" + Date.now(), _ = {
|
|
629
|
-
method: "PUT",
|
|
630
|
-
headers: {
|
|
631
|
-
ENO_CSRF_TOKEN: r
|
|
632
|
-
},
|
|
633
|
-
data: JSON.stringify({
|
|
634
|
-
data: [{
|
|
635
|
-
id: t,
|
|
636
|
-
relateddata: {
|
|
637
|
-
files: [{
|
|
638
|
-
id: n,
|
|
639
|
-
dataelements: {
|
|
640
|
-
title: a,
|
|
641
|
-
receipt: h
|
|
642
|
-
},
|
|
643
|
-
updateAction: "REVISE"
|
|
644
|
-
}]
|
|
645
|
-
},
|
|
646
|
-
tempId: S
|
|
647
|
-
}]
|
|
648
|
-
}),
|
|
649
|
-
type: "json",
|
|
650
|
-
onComplete(y) {
|
|
651
|
-
o && o(y);
|
|
652
|
-
},
|
|
653
|
-
onFailure(y) {
|
|
654
|
-
i && i(y);
|
|
655
|
-
}
|
|
656
|
-
};
|
|
657
|
-
m(
|
|
658
|
-
e.space + "/resources/v1/modeler/documents",
|
|
659
|
-
_
|
|
660
|
-
);
|
|
661
|
-
}, g.onFailure = function(h) {
|
|
662
|
-
i && i(h);
|
|
663
|
-
}, g.timeout = 0, m(f.ticketURL, g);
|
|
664
|
-
}
|
|
665
|
-
});
|
|
666
|
-
}
|
|
667
|
-
async function De(e, t, n, s, a = void 0, r = void 0) {
|
|
668
|
-
const o = e.space, i = e.token, c = e.ctx, d = new FormData(), l = new Blob([JSON.stringify(t)], {
|
|
669
|
-
type: "text/plain"
|
|
670
|
-
}), p = {
|
|
671
|
-
url_Ticket: `${o}/resources/v1/modeler/documents/files/CheckinTicket`,
|
|
672
|
-
url_Post: `${o}/resources/v1/modeler/documents/?SecurityContext=ctx::${c}`
|
|
673
|
-
};
|
|
674
|
-
if (!o && o !== "") {
|
|
675
|
-
console.log("le store._3DSpace est vide");
|
|
676
|
-
return;
|
|
677
|
-
}
|
|
678
|
-
m(p.url_Ticket, {
|
|
679
|
-
method: "PUT",
|
|
680
|
-
headers: {
|
|
681
|
-
ENO_CSRF_TOKEN: i.value
|
|
682
|
-
},
|
|
683
|
-
onComplete(f, u, g) {
|
|
684
|
-
const h = JSON.parse(f).data[0].dataelements;
|
|
685
|
-
d.append("__fcs__jobTicket", h.ticket), d.append("filename", l, n);
|
|
686
|
-
const S = {
|
|
687
|
-
method: "POST",
|
|
688
|
-
data: d,
|
|
689
|
-
onComplete(C) {
|
|
690
|
-
if (c !== "" && i !== "") {
|
|
691
|
-
const k = {
|
|
692
|
-
method: "POST",
|
|
693
|
-
headers: {
|
|
694
|
-
ENO_CSRF_TOKEN: i,
|
|
695
|
-
Accept: "application/json",
|
|
696
|
-
"Content-Type": "application/json"
|
|
697
|
-
},
|
|
698
|
-
data: JSON.stringify({
|
|
699
|
-
data: [{
|
|
700
|
-
type: "Document",
|
|
701
|
-
dataelements: {
|
|
702
|
-
title: `Title_${n.toLowerCase().split(" ").join("_")}`,
|
|
703
|
-
policy: "Document Release",
|
|
704
|
-
description: s
|
|
705
|
-
},
|
|
706
|
-
relateddata: {
|
|
707
|
-
files: [{
|
|
708
|
-
dataelements: {
|
|
709
|
-
title: `${n}.json`,
|
|
710
|
-
receipt: C
|
|
711
|
-
}
|
|
712
|
-
}]
|
|
713
|
-
},
|
|
714
|
-
tempId: R()
|
|
715
|
-
}]
|
|
716
|
-
}),
|
|
717
|
-
type: "json",
|
|
718
|
-
timeout: 0,
|
|
719
|
-
onComplete: _,
|
|
720
|
-
onFailure: y
|
|
721
|
-
};
|
|
722
|
-
c !== "" && m(p.url_Post, k);
|
|
723
|
-
} else
|
|
724
|
-
console.warn("le store est vide");
|
|
725
|
-
},
|
|
726
|
-
onFailure: y
|
|
727
|
-
};
|
|
728
|
-
function _(C) {
|
|
729
|
-
console.log("Success -- response ", C.data[0]), a && a(C);
|
|
730
|
-
}
|
|
731
|
-
function y(C, k) {
|
|
732
|
-
console.log("Erreur -- response ", C, `
|
|
733
|
-
headers `, k), r && r(C);
|
|
734
|
-
}
|
|
735
|
-
m(h.ticketURL, S);
|
|
736
|
-
}
|
|
737
|
-
});
|
|
738
|
-
}
|
|
739
|
-
function b(e, t = void 0, n = void 0, s = void 0, a = void 0, r = void 0, o = !1) {
|
|
740
|
-
const i = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
|
|
741
|
-
m(i, {
|
|
742
|
-
method: "GET",
|
|
743
|
-
onComplete(c) {
|
|
744
|
-
const d = JSON.parse(c);
|
|
745
|
-
let l = "", p, f, u;
|
|
746
|
-
if (t) {
|
|
747
|
-
let g = d.collabspaces.find((h) => h.title === t);
|
|
748
|
-
if (g) {
|
|
749
|
-
p = t;
|
|
750
|
-
let h = g.couples;
|
|
751
|
-
h = h.filter(
|
|
752
|
-
(S, _, y) => _ === y.findIndex(
|
|
753
|
-
(C) => C.organization.pid === S.organization.pid && C.role.pid === S.role.pid
|
|
754
|
-
)
|
|
755
|
-
), n && (Array.isArray(n) ? n.forEach((S) => {
|
|
756
|
-
u || h.forEach((_) => {
|
|
757
|
-
if (S === _.role.name && s === _.organization.title)
|
|
758
|
-
u = S, f = s;
|
|
759
|
-
else if (S === _.role.name) {
|
|
760
|
-
let y = h.filter(
|
|
761
|
-
(C) => C.role.name === S
|
|
762
|
-
);
|
|
763
|
-
y.length === 1 ? (u = y[0].role.name, f = y[0].organization.title) : r(y);
|
|
764
|
-
}
|
|
765
|
-
});
|
|
766
|
-
}) : h.forEach((S) => {
|
|
767
|
-
if (n === S.role.name && s === S.organization.title)
|
|
768
|
-
u = n, f = s;
|
|
769
|
-
else if (n === S.role.name) {
|
|
770
|
-
let _ = h.filter(
|
|
771
|
-
(y) => y.role.name === n
|
|
772
|
-
);
|
|
773
|
-
_.length === 1 ? (u = _[0].role.name, f = _[0].organization.title) : r(_);
|
|
774
|
-
}
|
|
775
|
-
}));
|
|
776
|
-
}
|
|
777
|
-
}
|
|
778
|
-
p && f && u ? (l = u + "." + f + "." + p, a(l)) : d.preferredcredentials && o ? (l = d.preferredcredentials.role.name + "." + d.preferredcredentials.organization.title + "." + d.preferredcredentials.collabspace.title, a(l)) : r && (l = u + "." + f + "." + p, r(l));
|
|
779
|
-
},
|
|
780
|
-
onFailure(c, d) {
|
|
781
|
-
console.log("Erreur de récupération du contexte de sécurité. => ", {
|
|
782
|
-
err: c,
|
|
783
|
-
headers: d
|
|
784
|
-
});
|
|
785
|
-
}
|
|
786
|
-
});
|
|
787
|
-
}
|
|
788
|
-
async function x(e, t = void 0, n = void 0) {
|
|
789
|
-
return (!e.objID || e.objID === "") && (console.warn(
|
|
790
|
-
"_3DSpace_download_doc() / Le paramètre objectId est obligatoire"
|
|
791
|
-
), n && n("_3DSpace_download_doc() / Le paramètre objectId est obligatoire")), (e.space === "" || !e.space) && (console.warn(
|
|
792
|
-
"_3DSpace_download_doc() / Le paramètre space est obligatoire"
|
|
793
|
-
), n && n("_3DSpace_download_doc() / Le paramètre space est obligatoire")), (e.token === "" || !e.token) && W(
|
|
794
|
-
e,
|
|
795
|
-
(s) => {
|
|
796
|
-
e.token = s;
|
|
797
|
-
},
|
|
798
|
-
(s) => {
|
|
799
|
-
console.log("☠️ error => ", s);
|
|
800
|
-
}
|
|
801
|
-
), new Promise((s, a) => {
|
|
802
|
-
U(
|
|
803
|
-
e,
|
|
804
|
-
(r) => {
|
|
805
|
-
e?.returnType === "blob" ? (console.log("ticketURL blob", r), fetch(r).then((o) => o.blob()).then((o) => {
|
|
806
|
-
t && t(o);
|
|
807
|
-
}).catch((o) => {
|
|
808
|
-
n && n(o);
|
|
809
|
-
})) : m(r, {
|
|
810
|
-
onComplete(o) {
|
|
811
|
-
let i;
|
|
812
|
-
try {
|
|
813
|
-
i = JSON.parse(o);
|
|
814
|
-
} catch {
|
|
815
|
-
i = o;
|
|
816
|
-
}
|
|
817
|
-
t && typeof t == "function" && t(i), s(i);
|
|
818
|
-
},
|
|
819
|
-
onFailure(o, i, c) {
|
|
820
|
-
n && (console.log("error http", o), n({
|
|
821
|
-
msg: JSON.parse(o),
|
|
822
|
-
headers: i,
|
|
823
|
-
xhr: c
|
|
824
|
-
}), a({
|
|
825
|
-
msg: JSON.parse(o),
|
|
826
|
-
headers: i,
|
|
827
|
-
xhr: c
|
|
828
|
-
}));
|
|
829
|
-
}
|
|
830
|
-
});
|
|
831
|
-
},
|
|
832
|
-
(r) => {
|
|
833
|
-
n && n(r), console.log("*_3dspace_download_doc / error file URL *", r), a(r);
|
|
834
|
-
}
|
|
835
|
-
);
|
|
836
|
-
});
|
|
837
|
-
}
|
|
838
|
-
async function Q(e, t, n = void 0, s = void 0) {
|
|
839
|
-
let a = [];
|
|
840
|
-
if (typeof t < "u" && Array.isArray(t) && t?.length > 0) {
|
|
841
|
-
for (let i = 0; i < t.length; i += 80) {
|
|
842
|
-
const c = t.slice(i, i + 80);
|
|
843
|
-
a.push(c);
|
|
844
|
-
}
|
|
845
|
-
const o = (i) => {
|
|
846
|
-
Z(
|
|
847
|
-
e,
|
|
848
|
-
a[i],
|
|
849
|
-
() => {
|
|
850
|
-
i++, i < a.length && o(i);
|
|
851
|
-
},
|
|
852
|
-
(c) => {
|
|
853
|
-
n && n(c);
|
|
854
|
-
}
|
|
855
|
-
);
|
|
856
|
-
};
|
|
857
|
-
o(0);
|
|
858
|
-
} else
|
|
859
|
-
console.warn(
|
|
860
|
-
"La liste d'objects dans la fonction _3DSpace_download_multidoc est vide ou non défini."
|
|
861
|
-
), s && s(
|
|
862
|
-
"La liste d'objects dans la fonction _3DSpace_download_multidoc est vide ou non défini."
|
|
863
|
-
);
|
|
864
|
-
}
|
|
865
|
-
function Z(e, t, n = void 0, s = void 0, a = void 0) {
|
|
866
|
-
const r = [];
|
|
867
|
-
t.forEach((c) => {
|
|
868
|
-
r.push({
|
|
869
|
-
id: c
|
|
870
|
-
});
|
|
871
|
-
});
|
|
872
|
-
let o = JSON.stringify({
|
|
873
|
-
csrf: {
|
|
874
|
-
name: "ENO_CSRF_TOKEN",
|
|
875
|
-
value: e.token
|
|
876
|
-
},
|
|
877
|
-
data: r
|
|
878
|
-
});
|
|
879
|
-
const i = `${e.space}/resources/v1/modeler/documents/DownloadTicket?tenant=${e.tenant}&e6w-lang=fr&e6w-timezone=-120`;
|
|
880
|
-
m(i, {
|
|
881
|
-
method: "PUT",
|
|
882
|
-
data: o,
|
|
883
|
-
type: "json",
|
|
884
|
-
onComplete(c) {
|
|
885
|
-
const d = c.data;
|
|
886
|
-
c.success === !0 && (n && n(), d.forEach((l) => {
|
|
887
|
-
try {
|
|
888
|
-
const p = l.dataelements.fileName, f = l.dataelements.ticketURL;
|
|
889
|
-
m(f, {
|
|
890
|
-
onComplete: (u, g) => {
|
|
891
|
-
let h;
|
|
892
|
-
try {
|
|
893
|
-
h = JSON.parse(u);
|
|
894
|
-
} catch {
|
|
895
|
-
h = u.blob();
|
|
896
|
-
}
|
|
897
|
-
s && s({
|
|
898
|
-
objectId: l.id,
|
|
899
|
-
headers: g,
|
|
900
|
-
fileName: p,
|
|
901
|
-
data: h
|
|
902
|
-
});
|
|
903
|
-
},
|
|
904
|
-
onFailure: (u) => {
|
|
905
|
-
console.log("error http", u);
|
|
906
|
-
}
|
|
907
|
-
});
|
|
908
|
-
} catch (p) {
|
|
909
|
-
console.log(p), a && a(p);
|
|
910
|
-
}
|
|
911
|
-
}));
|
|
912
|
-
},
|
|
913
|
-
onFailure(c) {
|
|
914
|
-
console.log(c), a && a(c);
|
|
915
|
-
}
|
|
916
|
-
});
|
|
917
|
-
}
|
|
918
|
-
function Pe(e, t, n = void 0, s = void 0) {
|
|
919
|
-
return new Promise((a) => {
|
|
920
|
-
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
921
|
-
const r = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
|
|
922
|
-
b(
|
|
923
|
-
e.space,
|
|
924
|
-
"ESPACE COMMUN",
|
|
925
|
-
["VPLMProjectLeader", "VPLMCreator"],
|
|
926
|
-
void 0,
|
|
927
|
-
(i) => e.ctx = i,
|
|
928
|
-
(i) => {
|
|
929
|
-
console.log("onError =>", i);
|
|
930
|
-
}
|
|
931
|
-
);
|
|
932
|
-
let o = {
|
|
933
|
-
method: "POST",
|
|
934
|
-
headers: {
|
|
935
|
-
SecurityContext: "ctx::" + e.ctx,
|
|
936
|
-
ENO_CSRF_TOKEN: e.token,
|
|
937
|
-
Accept: "application/json",
|
|
938
|
-
"Content-Type": "application/json"
|
|
939
|
-
},
|
|
940
|
-
data: JSON.stringify({
|
|
941
|
-
data: [{
|
|
942
|
-
id: t
|
|
943
|
-
}]
|
|
944
|
-
}),
|
|
945
|
-
type: "json",
|
|
946
|
-
onComplete(i) {
|
|
947
|
-
n && n(i);
|
|
948
|
-
},
|
|
949
|
-
onFailure(i) {
|
|
950
|
-
s && s(i);
|
|
951
|
-
}
|
|
952
|
-
};
|
|
953
|
-
m(r, o);
|
|
954
|
-
}
|
|
955
|
-
});
|
|
956
|
-
}
|
|
957
|
-
function Re(e, t, n, s = void 0, a = void 0) {
|
|
958
|
-
return new Promise((r) => {
|
|
959
|
-
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
960
|
-
const o = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
|
|
961
|
-
b(
|
|
962
|
-
e.space,
|
|
963
|
-
"ESPACE COMMUN",
|
|
964
|
-
["VPLMProjectLeader", "VPLMCreator"],
|
|
965
|
-
void 0,
|
|
966
|
-
(c) => e.ctx = c,
|
|
967
|
-
(c) => {
|
|
968
|
-
console.log("onError =>", c);
|
|
969
|
-
}
|
|
970
|
-
);
|
|
971
|
-
let i = {
|
|
972
|
-
method: "POST",
|
|
973
|
-
headers: {
|
|
974
|
-
SecurityContext: "ctx::" + e.ctx,
|
|
975
|
-
ENO_CSRF_TOKEN: e.token,
|
|
976
|
-
Accept: "application/json",
|
|
977
|
-
"Content-Type": "application/json"
|
|
978
|
-
},
|
|
979
|
-
data: JSON.stringify({
|
|
980
|
-
data: [{
|
|
981
|
-
id: t,
|
|
982
|
-
nextState: n
|
|
983
|
-
}]
|
|
984
|
-
}),
|
|
985
|
-
type: "json",
|
|
986
|
-
onComplete(c) {
|
|
987
|
-
s && s(c);
|
|
988
|
-
},
|
|
989
|
-
onFailure(c) {
|
|
990
|
-
a && a(c);
|
|
991
|
-
}
|
|
992
|
-
};
|
|
993
|
-
m(o, i);
|
|
994
|
-
}
|
|
995
|
-
});
|
|
996
|
-
}
|
|
997
|
-
function xe(e, t, n = void 0, s = void 0) {
|
|
998
|
-
return new Promise((a) => {
|
|
999
|
-
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
1000
|
-
const r = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
|
|
1001
|
-
b(
|
|
1002
|
-
e.space,
|
|
1003
|
-
"ESPACE COMMUN",
|
|
1004
|
-
["VPLMProjectLeader", "VPLMCreator"],
|
|
1005
|
-
void 0,
|
|
1006
|
-
(i) => e.ctx = i,
|
|
1007
|
-
(i) => {
|
|
1008
|
-
console.log("onError =>", i);
|
|
1009
|
-
}
|
|
1010
|
-
);
|
|
1011
|
-
let o = {
|
|
1012
|
-
method: "POST",
|
|
1013
|
-
headers: {
|
|
1014
|
-
securitycontext: "ctx::" + e.ctx,
|
|
1015
|
-
ENO_CSRF_TOKEN: e.token,
|
|
1016
|
-
Accept: "application/json",
|
|
1017
|
-
"Content-Type": "application/json"
|
|
1018
|
-
},
|
|
1019
|
-
data: JSON.stringify({
|
|
1020
|
-
graphRequests: [{
|
|
1021
|
-
id: t
|
|
1022
|
-
}]
|
|
1023
|
-
}),
|
|
1024
|
-
type: "json",
|
|
1025
|
-
onComplete(i) {
|
|
1026
|
-
n && n(i);
|
|
1027
|
-
},
|
|
1028
|
-
onFailure(i) {
|
|
1029
|
-
s && s(i);
|
|
1030
|
-
}
|
|
1031
|
-
};
|
|
1032
|
-
m(r, o);
|
|
1033
|
-
}
|
|
1034
|
-
});
|
|
1035
|
-
}
|
|
1036
|
-
function Me(e, t, n = void 0, s = void 0) {
|
|
1037
|
-
return new Promise((a) => {
|
|
1038
|
-
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
1039
|
-
const r = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
|
|
1040
|
-
b(
|
|
1041
|
-
e.space,
|
|
1042
|
-
"ESPACE COMMUN",
|
|
1043
|
-
["VPLMProjectLeader", "VPLMCreator"],
|
|
1044
|
-
void 0,
|
|
1045
|
-
(i) => e.ctx = i,
|
|
1046
|
-
(i) => {
|
|
1047
|
-
console.log("onError =>", i);
|
|
1048
|
-
}
|
|
1049
|
-
);
|
|
1050
|
-
let o = {
|
|
1051
|
-
method: "POST",
|
|
1052
|
-
headers: {
|
|
1053
|
-
SecurityContext: "ctx::" + e.ctx,
|
|
1054
|
-
ENO_CSRF_TOKEN: e.token,
|
|
1055
|
-
Accept: "application/json",
|
|
1056
|
-
"Content-Type": "application/json"
|
|
1057
|
-
},
|
|
1058
|
-
data: JSON.stringify({
|
|
1059
|
-
data: [{
|
|
1060
|
-
"attribute[PLMReference.V_versionComment]": null,
|
|
1061
|
-
physicalid: t,
|
|
1062
|
-
type: "Document",
|
|
1063
|
-
tenant: e.tenant,
|
|
1064
|
-
objectId: t,
|
|
1065
|
-
policy: "Document Release",
|
|
1066
|
-
availableSemantic: ["E", "LAST", "NEW", "DUP"]
|
|
1067
|
-
}]
|
|
1068
|
-
}),
|
|
1069
|
-
type: "json",
|
|
1070
|
-
onComplete(i) {
|
|
1071
|
-
n && n(i);
|
|
1072
|
-
},
|
|
1073
|
-
onFailure(i) {
|
|
1074
|
-
s && s(i);
|
|
1075
|
-
}
|
|
1076
|
-
};
|
|
1077
|
-
m(r, o);
|
|
1078
|
-
}
|
|
1079
|
-
});
|
|
1080
|
-
}
|
|
1081
|
-
function Le(e, t, n, s = void 0, a = void 0) {
|
|
1082
|
-
return new Promise((r) => {
|
|
1083
|
-
if (e.token === "" && T(e), t !== void 0 && t !== "" && t !== null) {
|
|
1084
|
-
const o = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
|
|
1085
|
-
b(
|
|
1086
|
-
e.space,
|
|
1087
|
-
"ESPACE COMMUN",
|
|
1088
|
-
["VPLMProjectLeader", "VPLMCreator"],
|
|
1089
|
-
void 0,
|
|
1090
|
-
(c) => e.ctx = c,
|
|
1091
|
-
(c) => {
|
|
1092
|
-
console.log("onError =>", c);
|
|
1093
|
-
}
|
|
1094
|
-
);
|
|
1095
|
-
let i = {
|
|
1096
|
-
method: "POST",
|
|
1097
|
-
headers: {
|
|
1098
|
-
securitycontext: "ctx::" + e.ctx,
|
|
1099
|
-
ENO_CSRF_TOKEN: e.token,
|
|
1100
|
-
Accept: "application/json",
|
|
1101
|
-
"Content-Type": "application/json"
|
|
1102
|
-
},
|
|
1103
|
-
data: JSON.stringify({
|
|
1104
|
-
data: [{
|
|
1105
|
-
physicalid: t,
|
|
1106
|
-
proposedRevision: n,
|
|
1107
|
-
modifiedAttributes: {
|
|
1108
|
-
revision: n
|
|
1109
|
-
}
|
|
1110
|
-
}],
|
|
1111
|
-
folderid: null,
|
|
1112
|
-
notificationTimeout: 600
|
|
1113
|
-
}),
|
|
1114
|
-
type: "json",
|
|
1115
|
-
onComplete(c) {
|
|
1116
|
-
s && s(c);
|
|
1117
|
-
},
|
|
1118
|
-
onFailure(c) {
|
|
1119
|
-
a && a(c);
|
|
1120
|
-
}
|
|
1121
|
-
};
|
|
1122
|
-
m(o, i);
|
|
1123
|
-
}
|
|
1124
|
-
});
|
|
1125
|
-
}
|
|
1126
|
-
function Je(e, t, n, s, a = void 0, r = void 0) {
|
|
1127
|
-
return new Promise((o) => {
|
|
1128
|
-
const i = `${e.space}/resources/v1/modeler/dsbks/dsbks:Bookmark`;
|
|
1129
|
-
let c = {
|
|
1130
|
-
attributes: {
|
|
1131
|
-
title: n,
|
|
1132
|
-
description: s,
|
|
1133
|
-
inheritedAccess: "no"
|
|
1134
|
-
}
|
|
1135
|
-
}, d = {
|
|
1136
|
-
items: []
|
|
1137
|
-
};
|
|
1138
|
-
t && (d.parentId = t), d.items.push(c);
|
|
1139
|
-
let l = {
|
|
1140
|
-
method: "POST",
|
|
1141
|
-
headers: {
|
|
1142
|
-
Accept: "application/json",
|
|
1143
|
-
"Content-Type": "application/json",
|
|
1144
|
-
SecurityContext: e.ctx,
|
|
1145
|
-
ENO_CSRF_TOKEN: e.token
|
|
1146
|
-
},
|
|
1147
|
-
data: JSON.stringify(d),
|
|
1148
|
-
type: "json",
|
|
1149
|
-
onComplete(p) {
|
|
1150
|
-
a && a(p);
|
|
1151
|
-
},
|
|
1152
|
-
onFailure(p) {
|
|
1153
|
-
r && r(p);
|
|
1154
|
-
}
|
|
1155
|
-
};
|
|
1156
|
-
m(i, l);
|
|
1157
|
-
});
|
|
1158
|
-
}
|
|
1159
|
-
function Ee(e, t, n, s, a = void 0, r = void 0) {
|
|
1160
|
-
return console.log("credentials", e), new Promise((o) => {
|
|
1161
|
-
`${e.space}`, JSON.stringify({
|
|
1162
|
-
csrf: {
|
|
1163
|
-
name: "ENO_CSRF_TOKEN",
|
|
1164
|
-
value: e.token
|
|
1165
|
-
},
|
|
1166
|
-
data: [{
|
|
1167
|
-
type: "Workspace",
|
|
1168
|
-
cestamp: "businessobject",
|
|
1169
|
-
relId: t,
|
|
1170
|
-
id: t,
|
|
1171
|
-
dataelements: {
|
|
1172
|
-
personList: n,
|
|
1173
|
-
eventsList: s
|
|
1174
|
-
},
|
|
1175
|
-
tenant: e.tenant
|
|
1176
|
-
}]
|
|
1177
|
-
});
|
|
1178
|
-
});
|
|
1179
|
-
}
|
|
1180
|
-
//!SECTION
|
|
1181
|
-
function Ge(e, t = void 0, n = void 0) {
|
|
1182
|
-
const s = {
|
|
1183
|
-
base: `${e.space}`,
|
|
1184
|
-
uri: "/resources/bps/cspaces",
|
|
1185
|
-
optTenant: `tenant=${e.tenant}`
|
|
1186
|
-
}, a = `${s.base}${s.uri}?${s.optTenant}`;
|
|
1187
|
-
m(a, {
|
|
1188
|
-
method: "GET",
|
|
1189
|
-
headers: {
|
|
1190
|
-
Accept: "application/json,text/javascript,*/*",
|
|
1191
|
-
"Content-Type": "application/ds-json"
|
|
1192
|
-
},
|
|
1193
|
-
onComplete(r, o) {
|
|
1194
|
-
const i = JSON.parse(r);
|
|
1195
|
-
t && t(i, o);
|
|
1196
|
-
},
|
|
1197
|
-
onFailure(r, o, i) {
|
|
1198
|
-
n && n({ response: r, headers: o, xhr: i });
|
|
1199
|
-
}
|
|
1200
|
-
});
|
|
1201
|
-
}
|
|
1202
|
-
function Ke(e, t, n, s) {
|
|
1203
|
-
U(
|
|
1204
|
-
e.space,
|
|
1205
|
-
t,
|
|
1206
|
-
(a) => {
|
|
1207
|
-
m(a, {
|
|
1208
|
-
header: { ENO_CSRF_TOKEN: e.token },
|
|
1209
|
-
onComplete: (r) => {
|
|
1210
|
-
n && n(r);
|
|
1211
|
-
},
|
|
1212
|
-
onFailure: (r) => {
|
|
1213
|
-
console.log("error http", r), s && s(r);
|
|
1214
|
-
}
|
|
1215
|
-
});
|
|
1216
|
-
}
|
|
1217
|
-
);
|
|
1218
|
-
}
|
|
1219
|
-
async function Ve(e, t, n = void 0, s = void 0) {
|
|
1220
|
-
return new Promise((a) => {
|
|
1221
|
-
U(e, t, (r) => {
|
|
1222
|
-
m(r, {
|
|
1223
|
-
onComplete: (o, i, c) => (a(JSON.parse(o)), n && n(JSON.parse(o), i, c), a),
|
|
1224
|
-
onFailure: (o, i, c) => {
|
|
1225
|
-
s && s(o, i, c), console.log(o, i?.errormsg);
|
|
1226
|
-
}
|
|
1227
|
-
});
|
|
1228
|
-
});
|
|
1229
|
-
});
|
|
1230
|
-
}
|
|
1231
|
-
function We(e, t, n, s = void 0, a = void 0) {
|
|
1232
|
-
const r = new Blob([JSON.stringify(t)], { type: "text/plain" });
|
|
1233
|
-
A(
|
|
1234
|
-
e,
|
|
1235
|
-
n,
|
|
1236
|
-
(o) => {
|
|
1237
|
-
const i = o.data[0].relateddata.files[0].id, c = o.data[0].dataelements.secondaryTitle !== "" ? o.data[0].dataelements.secondaryTitle : o.data[0].dataelements.title;
|
|
1238
|
-
z(
|
|
1239
|
-
e,
|
|
1240
|
-
n,
|
|
1241
|
-
i,
|
|
1242
|
-
r,
|
|
1243
|
-
c,
|
|
1244
|
-
(d) => {
|
|
1245
|
-
s && s(d);
|
|
1246
|
-
},
|
|
1247
|
-
(d) => {
|
|
1248
|
-
a && a(d);
|
|
1249
|
-
}
|
|
1250
|
-
);
|
|
1251
|
-
}
|
|
1252
|
-
);
|
|
1253
|
-
}
|
|
1254
|
-
let M, L;
|
|
1255
|
-
const j = [];
|
|
1256
|
-
async function Be(e, t = void 0, n = void 0) {
|
|
1257
|
-
e.objID && e.objID !== "" ? A(
|
|
1258
|
-
e,
|
|
1259
|
-
(s) => {
|
|
1260
|
-
t && t(s);
|
|
1261
|
-
},
|
|
1262
|
-
(s) => {
|
|
1263
|
-
n && n(s);
|
|
1264
|
-
}
|
|
1265
|
-
) : (e.objID === null || e.objID === "") && T(
|
|
1266
|
-
e,
|
|
1267
|
-
(s) => {
|
|
1268
|
-
t && t({ rep: s, msg: "Pas d'objID, ou invalide" });
|
|
1269
|
-
},
|
|
1270
|
-
(s) => {
|
|
1271
|
-
n && n({ msg: "Pas d'objID et erreur sur le Space", err: s });
|
|
1272
|
-
}
|
|
1273
|
-
);
|
|
1274
|
-
}
|
|
1275
|
-
async function Xe(e, t = void 0, n = void 0) {
|
|
1276
|
-
console.log("getDatasByTenant (getDocuments)", e), await x(
|
|
1277
|
-
e,
|
|
1278
|
-
(s) => {
|
|
1279
|
-
const a = {};
|
|
1280
|
-
a.obj = s, console.log("getDatasByTenant (getDocuments) _datas", a), t && t?.(a);
|
|
1281
|
-
},
|
|
1282
|
-
(s) => {
|
|
1283
|
-
n && n?.(s);
|
|
1284
|
-
}
|
|
1285
|
-
);
|
|
1286
|
-
}
|
|
1287
|
-
function Ye(e, t = void 0, n = void 0) {
|
|
1288
|
-
const s = [];
|
|
1289
|
-
if (!e.objIds && !Array.isArray(e.objIds) && e.objIds.length === 0) {
|
|
1290
|
-
console.warn("la liste est vide ou n'est pas un tableau");
|
|
1291
|
-
return;
|
|
1292
|
-
}
|
|
1293
|
-
e.objIds.forEach((a, r) => {
|
|
1294
|
-
x(
|
|
1295
|
-
e,
|
|
1296
|
-
a.objID,
|
|
1297
|
-
(o) => {
|
|
1298
|
-
s.push({ [a.name]: o }), a.name === "dbProjets" && (M = o.affaires.map((i) => i.objectID), ee(e, L)), r === e.objIds.length - 1 && (t && t(s), delete e.objIds, delete e.datas);
|
|
1299
|
-
}
|
|
1300
|
-
);
|
|
1301
|
-
});
|
|
1302
|
-
}
|
|
1303
|
-
function ee(e, t, n = void 0, s = void 0) {
|
|
1304
|
-
Q(
|
|
1305
|
-
e,
|
|
1306
|
-
M,
|
|
1307
|
-
(a) => {
|
|
1308
|
-
const r = [...t];
|
|
1309
|
-
r.find((o) => o.objectID === a.objectId).data = a.data, L = r, j.push(a.data), n && n(j);
|
|
1310
|
-
},
|
|
1311
|
-
(a) => {
|
|
1312
|
-
s && (s(a), console.log(a));
|
|
1313
|
-
}
|
|
1314
|
-
);
|
|
1315
|
-
}
|
|
1316
|
-
const te = "FA35FB9B177A280065800EA0000F599C", ne = [
|
|
1317
|
-
"swym",
|
|
1318
|
-
"3dspace",
|
|
1319
|
-
"drive",
|
|
1320
|
-
"usersgroup",
|
|
1321
|
-
"3dplan",
|
|
1322
|
-
"dashboard"
|
|
1323
|
-
], J = {
|
|
1324
|
-
how: "ds6w:how",
|
|
1325
|
-
what: "ds6w:what",
|
|
1326
|
-
when: "ds6w:when",
|
|
1327
|
-
where: "ds6w:where",
|
|
1328
|
-
who: "ds6w:who",
|
|
1329
|
-
why: "ds6w:why"
|
|
1330
|
-
}, se = {
|
|
1331
|
-
objId: te,
|
|
1332
|
-
pred: "who",
|
|
1333
|
-
order_by: "desc",
|
|
1334
|
-
tag: "testTag"
|
|
1335
|
-
};
|
|
1336
|
-
function He(e, t, n = void 0, s = void 0) {
|
|
1337
|
-
const { space: a, tenant: r } = e, { objId: o, pred: i, tag: c } = t, d = {
|
|
1338
|
-
uri: "/resources/6w/tags",
|
|
1339
|
-
otpCTX: "SecurityContext=preferred",
|
|
1340
|
-
optTenant: `tenant=${r}`
|
|
1341
|
-
}, l = `${a}${d.uri}?${d.otpCTX}&${d.optTenant}`, p = {
|
|
1342
|
-
tag: [
|
|
1343
|
-
{
|
|
1344
|
-
subject: [
|
|
1345
|
-
{
|
|
1346
|
-
uri: `pid://${o}`
|
|
1347
|
-
}
|
|
1348
|
-
],
|
|
1349
|
-
predicate: J[i],
|
|
1350
|
-
object: {
|
|
1351
|
-
literal: c
|
|
1352
|
-
}
|
|
1353
|
-
}
|
|
1354
|
-
]
|
|
1355
|
-
};
|
|
1356
|
-
m(l, {
|
|
1357
|
-
method: "PUT",
|
|
1358
|
-
headers: {
|
|
1359
|
-
"Content-Type": "application/json",
|
|
1360
|
-
Accept: "application/json"
|
|
1361
|
-
},
|
|
1362
|
-
data: JSON.stringify(p),
|
|
1363
|
-
onComplete(f) {
|
|
1364
|
-
JSON.parse(f);
|
|
1365
|
-
const u = {};
|
|
1366
|
-
setTimeout(() => {
|
|
1367
|
-
H(
|
|
1368
|
-
e,
|
|
1369
|
-
o,
|
|
1370
|
-
(g) => {
|
|
1371
|
-
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;
|
|
1372
|
-
u.name = h, u.ext = S, u.createBy = _, t.info = { ...u }, ie(
|
|
1373
|
-
e,
|
|
1374
|
-
t,
|
|
1375
|
-
(y) => {
|
|
1376
|
-
n && n(y);
|
|
1377
|
-
},
|
|
1378
|
-
(y) => {
|
|
1379
|
-
s && s(y);
|
|
1380
|
-
}
|
|
1381
|
-
);
|
|
1382
|
-
},
|
|
1383
|
-
(g, h) => {
|
|
1384
|
-
const S = g;
|
|
1385
|
-
S.msg = h.errormsg, S.errCode = h.errorcode, console.log("❌ sendDirectMessage => ", S), s && s(S);
|
|
1386
|
-
}
|
|
1387
|
-
);
|
|
1388
|
-
}, 2e3);
|
|
1389
|
-
},
|
|
1390
|
-
onFailure(f, u) {
|
|
1391
|
-
const g = f;
|
|
1392
|
-
g.msg = u.errormsg, g.errCode = u.errorcode, console.log("❌ sendDirectMessage => ", g), s && s(g);
|
|
1393
|
-
}
|
|
1394
|
-
});
|
|
1395
|
-
}
|
|
1396
|
-
function ie(e, t, n = void 0, s = void 0) {
|
|
1397
|
-
console.log("obj ", t);
|
|
1398
|
-
const a = t.info.name, r = {
|
|
1399
|
-
baseUrl: `https://${e.tenant.toLowerCase()}-eu1-fedsearch.3dexperience.3ds.com`,
|
|
1400
|
-
uri: "/federated/search"
|
|
1401
|
-
}, o = `${r.baseUrl}${r.uri}`, i = {
|
|
1402
|
-
"Content-Type": "application/json",
|
|
1403
|
-
Accept: "application/json,text/javascript,*/*"
|
|
1404
|
-
}, c = R(), d = {
|
|
1405
|
-
with_indexing_date: !0,
|
|
1406
|
-
with_synthesis: !0,
|
|
1407
|
-
with_nls: !1,
|
|
1408
|
-
label: `3DSearch-${e.currentUser.username}-AjoutDeTagBeam-${c}`,
|
|
1409
|
-
locale: "fr",
|
|
1410
|
-
select_predicate: [
|
|
1411
|
-
"ds6w:label",
|
|
1412
|
-
"ds6w:type",
|
|
1413
|
-
"ds6w:description",
|
|
1414
|
-
"ds6w:identifier",
|
|
1415
|
-
"ds6w:modified",
|
|
1416
|
-
"ds6w:created",
|
|
1417
|
-
"ds6wg:revision",
|
|
1418
|
-
"ds6w:status",
|
|
1419
|
-
"ds6w:responsible",
|
|
1420
|
-
"owner",
|
|
1421
|
-
"ds6w:responsibleUid",
|
|
1422
|
-
"ds6wg:filesize",
|
|
1423
|
-
"ds6w:project",
|
|
1424
|
-
"ds6w:dataSource",
|
|
1425
|
-
"ds6w:community",
|
|
1426
|
-
"ds6w:originator",
|
|
1427
|
-
"dsgeo:referential",
|
|
1428
|
-
"ds6w:lastModifiedBy",
|
|
1429
|
-
"ds6w:repository",
|
|
1430
|
-
"dcterms:title",
|
|
1431
|
-
"dcterms:description",
|
|
1432
|
-
"ds6w:containerUid"
|
|
1433
|
-
],
|
|
1434
|
-
with_synthesis_hierarchical: !0,
|
|
1435
|
-
select_file: ["icon", "thumbnail_2d"],
|
|
1436
|
-
query: a,
|
|
1437
|
-
specific_source_parameter: {
|
|
1438
|
-
"3dspace": {
|
|
1439
|
-
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)'
|
|
1440
|
-
},
|
|
1441
|
-
drive: {
|
|
1442
|
-
additional_query: ' AND NOT ([flattenedtaxonomies]:"types/DriveNode" AND ( [current]:"Trashed" OR [policy]:"Drive File Iteration") )'
|
|
1443
|
-
}
|
|
1444
|
-
},
|
|
1445
|
-
select_exclude_synthesis: ["ds6w:what/ds6w:topic"],
|
|
1446
|
-
order_by: se.order_by,
|
|
1447
|
-
order_field: "relevance",
|
|
1448
|
-
select_snippets: [
|
|
1449
|
-
"ds6w:snippet",
|
|
1450
|
-
"ds6w:label:snippet",
|
|
1451
|
-
"ds6w:responsible:snippet",
|
|
1452
|
-
"ds6w:community:snippet",
|
|
1453
|
-
"swym:message_text:snippet"
|
|
1454
|
-
],
|
|
1455
|
-
nresults: 40,
|
|
1456
|
-
start: "0",
|
|
1457
|
-
source: ne,
|
|
1458
|
-
tenant: e.tenant,
|
|
1459
|
-
login: {
|
|
1460
|
-
"3dspace": {
|
|
1461
|
-
SecurityContext: e.ctx
|
|
1462
|
-
}
|
|
1463
|
-
}
|
|
1464
|
-
};
|
|
1465
|
-
console.log("dataPattern => ", d), m(o, {
|
|
1466
|
-
method: "POST",
|
|
1467
|
-
headers: i,
|
|
1468
|
-
data: JSON.stringify(d),
|
|
1469
|
-
onComplete(l) {
|
|
1470
|
-
const p = JSON.parse(l);
|
|
1471
|
-
n(p);
|
|
1472
|
-
},
|
|
1473
|
-
onFailure(l, p) {
|
|
1474
|
-
const f = l;
|
|
1475
|
-
f.msg = p.errormsg, f.errCode = p.errorcode, console.log("❌ sendDirectMessage => ", f), s && s(f), console.log("Erreur de recuperation d'id du doc et des tags", l);
|
|
1476
|
-
}
|
|
1477
|
-
});
|
|
1478
|
-
}
|
|
1479
|
-
function ze(e, t, n = void 0, s = void 0) {
|
|
1480
|
-
const { objId: a, pred: r, tag: o } = t, i = {
|
|
1481
|
-
uri: "/resources/6w/tags",
|
|
1482
|
-
otpCTX: "SecurityContext=preferred",
|
|
1483
|
-
optTenant: `tenant=${e.tenant}`
|
|
1484
|
-
}, c = `${e.space}${i.uri}?${i.otpCTX}&${i.optTenant}`, d = {
|
|
1485
|
-
tag: [
|
|
1486
|
-
{
|
|
1487
|
-
subject: [
|
|
1488
|
-
{
|
|
1489
|
-
uri: `pid://${a}`
|
|
1490
|
-
}
|
|
1491
|
-
],
|
|
1492
|
-
predicate: J[r],
|
|
1493
|
-
object: {
|
|
1494
|
-
literal: o
|
|
1495
|
-
}
|
|
1496
|
-
}
|
|
1497
|
-
]
|
|
1498
|
-
};
|
|
1499
|
-
m(c, {
|
|
1500
|
-
method: "DELETE",
|
|
1501
|
-
data: JSON.stringify(d),
|
|
1502
|
-
headers: {
|
|
1503
|
-
"Content-Type": "application/json",
|
|
1504
|
-
Accept: "application/json,text/javascript,*/*"
|
|
1505
|
-
},
|
|
1506
|
-
onComplete(l) {
|
|
1507
|
-
n && n(l);
|
|
1508
|
-
},
|
|
1509
|
-
onFailure(l, p) {
|
|
1510
|
-
const f = l;
|
|
1511
|
-
f.msg = p.errormsg, f.errCode = p.errorcode, console.log("❌ sendDirectMessage => ", f), s && s(f);
|
|
1512
|
-
}
|
|
1513
|
-
});
|
|
1514
|
-
}
|
|
1515
|
-
function qe(e, t = "", n = void 0, s = void 0) {
|
|
1516
|
-
const { space: a } = e;
|
|
1517
|
-
if (t === "")
|
|
1518
|
-
return;
|
|
1519
|
-
const r = {
|
|
1520
|
-
uri: "/resources/v1/modeler/documents"
|
|
1521
|
-
}, o = {
|
|
1522
|
-
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
|
|
1523
|
-
Accept: "application/json,text/javascript,*/*"
|
|
1524
|
-
}, i = `${a}${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}`;
|
|
1525
|
-
m(i, {
|
|
1526
|
-
method: "POST",
|
|
1527
|
-
headers: o,
|
|
1528
|
-
data: c,
|
|
1529
|
-
onComplete(d) {
|
|
1530
|
-
n && n(JSON.parse(d));
|
|
1531
|
-
},
|
|
1532
|
-
onFailure(d, l) {
|
|
1533
|
-
const p = d;
|
|
1534
|
-
p.msg = l.error, s && s(p);
|
|
1535
|
-
}
|
|
1536
|
-
});
|
|
1537
|
-
}
|
|
1538
|
-
async function w(e, t = void 0, n = void 0) {
|
|
1539
|
-
const s = e.space + "/api/index/tk";
|
|
1540
|
-
return m(s, {
|
|
1541
|
-
onComplete(a, r, o) {
|
|
1542
|
-
const i = JSON.parse(a);
|
|
1543
|
-
if (t)
|
|
1544
|
-
return t(i), e.token = i?.result?.ServerToken;
|
|
1545
|
-
},
|
|
1546
|
-
onFailure(a) {
|
|
1547
|
-
n && n(a);
|
|
1548
|
-
}
|
|
1549
|
-
});
|
|
1550
|
-
}
|
|
1551
|
-
function Qe(e, t = void 0, n = void 0) {
|
|
1552
|
-
const s = `${e.space}/api/exalead/whatsnew`, a = {
|
|
1553
|
-
params: {
|
|
1554
|
-
community_id: null,
|
|
1555
|
-
hash_key: null,
|
|
1556
|
-
legacyFormat: !1,
|
|
1557
|
-
nresults: 1,
|
|
1558
|
-
query: "#all",
|
|
1559
|
-
start: 0
|
|
1560
|
-
}
|
|
1561
|
-
};
|
|
1562
|
-
w(e, (r) => {
|
|
1563
|
-
m(s, {
|
|
1564
|
-
method: "POST",
|
|
1565
|
-
headers: {
|
|
1566
|
-
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken,
|
|
1567
|
-
"Content-type": "application/json;charset=UTF-8",
|
|
1568
|
-
Accept: "application/json"
|
|
1569
|
-
},
|
|
1570
|
-
data: JSON.stringify(a),
|
|
1571
|
-
type: "json",
|
|
1572
|
-
onComplete(o, i) {
|
|
1573
|
-
t && t(o, i);
|
|
1574
|
-
},
|
|
1575
|
-
onFailure(o, i) {
|
|
1576
|
-
n && n(o, i);
|
|
1577
|
-
}
|
|
1578
|
-
});
|
|
1579
|
-
});
|
|
1580
|
-
}
|
|
1581
|
-
function Ze(e, t = void 0, n = void 0) {
|
|
1582
|
-
const s = `${e.space}/api/Recommendation/getpeoplefamiliartocurrentuser`, a = {
|
|
1583
|
-
params: {
|
|
1584
|
-
idsToFilterArr: [],
|
|
1585
|
-
mode: "offline",
|
|
1586
|
-
limit: 30,
|
|
1587
|
-
itemType: "User",
|
|
1588
|
-
maxNbOfCommonElements: "5"
|
|
1589
|
-
}
|
|
1590
|
-
};
|
|
1591
|
-
w(e, (r) => {
|
|
1592
|
-
m(s, {
|
|
1593
|
-
method: "POST",
|
|
1594
|
-
headers: {
|
|
1595
|
-
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken,
|
|
1596
|
-
"Content-type": "application/json;charset=UTF-8",
|
|
1597
|
-
Accept: "application/json"
|
|
1598
|
-
},
|
|
1599
|
-
data: JSON.stringify(a),
|
|
1600
|
-
type: "json",
|
|
1601
|
-
onComplete(o, i) {
|
|
1602
|
-
const c = o.result.hits.map((d) => ({ login: d.login, fullName: d.name }));
|
|
1603
|
-
t && t(c, o);
|
|
1604
|
-
},
|
|
1605
|
-
onFailure(o, i) {
|
|
1606
|
-
n && n(o, i);
|
|
1607
|
-
}
|
|
1608
|
-
});
|
|
1609
|
-
});
|
|
1610
|
-
}
|
|
1611
|
-
function et(e, t = void 0, n = void 0) {
|
|
1612
|
-
const s = {
|
|
1613
|
-
base: e.space,
|
|
1614
|
-
uri: "/api/community/listmycommunities",
|
|
1615
|
-
limit: `/limit/${e.limit ? e.limit : 128}`,
|
|
1616
|
-
page: `/page/${e.page ? e.page : "1"}`
|
|
1617
|
-
}, a = `${s.base}${s.uri}${s.limit}${s.page}`, r = [];
|
|
1618
|
-
w(e, (o) => {
|
|
1619
|
-
m(a, {
|
|
1620
|
-
method: "GET",
|
|
1621
|
-
headers: {
|
|
1622
|
-
"X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
|
|
1623
|
-
},
|
|
1624
|
-
onComplete(i, c, d) {
|
|
1625
|
-
const p = JSON.parse(i).result;
|
|
1626
|
-
let f = 0;
|
|
1627
|
-
p.forEach((u) => {
|
|
1628
|
-
const g = {
|
|
1629
|
-
description: u.description,
|
|
1630
|
-
id: u.id,
|
|
1631
|
-
title: u.title,
|
|
1632
|
-
owner: u.owner,
|
|
1633
|
-
role: u.role,
|
|
1634
|
-
access: u.access
|
|
1635
|
-
};
|
|
1636
|
-
ae(
|
|
1637
|
-
e,
|
|
1638
|
-
u.id,
|
|
1639
|
-
(h) => {
|
|
1640
|
-
f++, g.members = h, r.push(g), f === p.length && t && t(r);
|
|
1641
|
-
},
|
|
1642
|
-
(h) => n(h)
|
|
1643
|
-
);
|
|
1644
|
-
});
|
|
1645
|
-
},
|
|
1646
|
-
onFailure(i, c) {
|
|
1647
|
-
const d = i;
|
|
1648
|
-
d.status = c.status, d.response = c.errormsg, n && n(d);
|
|
1649
|
-
}
|
|
1650
|
-
});
|
|
1651
|
-
});
|
|
1652
|
-
}
|
|
1653
|
-
function ae(e, t, n, s) {
|
|
1654
|
-
const a = `${e.space}/api/community/listmembers`, r = {
|
|
1655
|
-
params: {
|
|
1656
|
-
page: e.page ? e.page : 1,
|
|
1657
|
-
limit: e.limit ? e.limit : 50,
|
|
1658
|
-
community_id: t
|
|
1659
|
-
}
|
|
1660
|
-
};
|
|
1661
|
-
w(e, (o) => {
|
|
1662
|
-
m(a, {
|
|
1663
|
-
method: "POST",
|
|
1664
|
-
headers: {
|
|
1665
|
-
"Content-type": "application/json;charset=UTF-8",
|
|
1666
|
-
Accept: "application/json",
|
|
1667
|
-
"X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
|
|
1668
|
-
},
|
|
1669
|
-
data: JSON.stringify(r),
|
|
1670
|
-
type: "json",
|
|
1671
|
-
onComplete(i, c, d) {
|
|
1672
|
-
n && n(i);
|
|
1673
|
-
},
|
|
1674
|
-
onFailure(i, c) {
|
|
1675
|
-
const d = i;
|
|
1676
|
-
d.status = c.status, d.response = c.errormsg, s && s(d);
|
|
1677
|
-
}
|
|
1678
|
-
});
|
|
1679
|
-
});
|
|
1680
|
-
}
|
|
1681
|
-
function tt(e, t = void 0, n = void 0) {
|
|
1682
|
-
const s = "YXdA5x4DSUKtlAi2wmnyTA";
|
|
1683
|
-
e.commu_id || (e.commu_id = s);
|
|
1684
|
-
const a = `${e.space}/api/v2/communities/${e.commu_id}/ideas/statuses`;
|
|
1685
|
-
w(e, (r) => {
|
|
1686
|
-
m(a, {
|
|
1687
|
-
method: "GET",
|
|
1688
|
-
headers: {
|
|
1689
|
-
"Content-type": "application/json;charset=UTF-8",
|
|
1690
|
-
Accept: "application/json",
|
|
1691
|
-
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
|
|
1692
|
-
},
|
|
1693
|
-
onComplete(o) {
|
|
1694
|
-
const i = JSON.parse(o);
|
|
1695
|
-
t && t(i);
|
|
1696
|
-
},
|
|
1697
|
-
onFailure(o, i) {
|
|
1698
|
-
const c = o;
|
|
1699
|
-
c.status = i.status, c.response = i.errormsg, n && n(c);
|
|
1700
|
-
}
|
|
1701
|
-
});
|
|
1702
|
-
});
|
|
1703
|
-
}
|
|
1704
|
-
function nt(e, t, n = void 0, s = void 0) {
|
|
1705
|
-
const { listAllContacts: a, currentUser: r } = e;
|
|
1706
|
-
console.log("__listAllContacts", a.hits);
|
|
1707
|
-
const o = `${e.space}/api/directmessages`, i = {
|
|
1708
|
-
users: [r.login].concat(t.receipt)
|
|
1709
|
-
}, c = {
|
|
1710
|
-
id_msg: "",
|
|
1711
|
-
senderId: e.currentUser.login,
|
|
1712
|
-
senderName: `${e.currentUser.first_name} ${e.currentUser.last_name}`,
|
|
1713
|
-
msg: re(t.msg)
|
|
1714
|
-
};
|
|
1715
|
-
let d = !1;
|
|
1716
|
-
oe(
|
|
1717
|
-
i.users,
|
|
1718
|
-
(l) => {
|
|
1719
|
-
l !== void 0 && (c.id_msg = l.id, d = !0, D(e, c));
|
|
1720
|
-
},
|
|
1721
|
-
(l) => {
|
|
1722
|
-
d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", l), s && s(l), c.id_msg = "";
|
|
1723
|
-
}
|
|
1724
|
-
), d === !1 && setTimeout(() => {
|
|
1725
|
-
d === !1 && w(e, (l) => {
|
|
1726
|
-
m(o, {
|
|
1727
|
-
method: "POST",
|
|
1728
|
-
headers: {
|
|
1729
|
-
"Content-Type": "application/json",
|
|
1730
|
-
Accept: "application/json",
|
|
1731
|
-
"X-DS-SWYM-CSRFTOKEN": l.result.ServerToken
|
|
1732
|
-
},
|
|
1733
|
-
data: JSON.stringify(i),
|
|
1734
|
-
type: "json",
|
|
1735
|
-
onComplete(p, f, u) {
|
|
1736
|
-
const g = p;
|
|
1737
|
-
g.reponse = JSON.parse(u.response), g.status = u.status, n && n(g), c.id_msg = g.result.id, D(e, c);
|
|
1738
|
-
},
|
|
1739
|
-
onFailure(p, f, u) {
|
|
1740
|
-
const g = p;
|
|
1741
|
-
g.msg = f.errormsg, g.status = f.status, s && s(g);
|
|
1742
|
-
}
|
|
1743
|
-
});
|
|
1744
|
-
});
|
|
1745
|
-
}, 500);
|
|
1746
|
-
}
|
|
1747
|
-
function oe(e, t, n, s) {
|
|
1748
|
-
const a = `${e.space}/api/directmessages/lite?with_favorites=false`;
|
|
1749
|
-
w(e, (r) => {
|
|
1750
|
-
m(a, {
|
|
1751
|
-
method: "GET",
|
|
1752
|
-
headers: {
|
|
1753
|
-
Accept: "application/json,text/javascript,*/*",
|
|
1754
|
-
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
|
|
1755
|
-
},
|
|
1756
|
-
onComplete(o) {
|
|
1757
|
-
const i = JSON.parse(o), c = [];
|
|
1758
|
-
i.result.forEach((p) => {
|
|
1759
|
-
p.users = p.users.sort((f, u) => f.login.localeCompare(u.login)), p.users.length === t.length && c.push(p);
|
|
1760
|
-
});
|
|
1761
|
-
const d = t.sort(), l = c.find((p) => {
|
|
1762
|
-
const f = [];
|
|
1763
|
-
return p.users.forEach((u) => {
|
|
1764
|
-
f.push(u.login);
|
|
1765
|
-
}), JSON.stringify(f) === JSON.stringify(d);
|
|
1766
|
-
});
|
|
1767
|
-
n && l !== void 0 ? n(l) : (s || l === void 0) && s(l);
|
|
1768
|
-
},
|
|
1769
|
-
onFailure(o) {
|
|
1770
|
-
const i = o;
|
|
1771
|
-
i.msg = headers.errormsg, i.errCode = headers.errorcode, console.log("❌ sendDirectMessageLite => ", i), s && s(i);
|
|
1772
|
-
}
|
|
1773
|
-
});
|
|
1774
|
-
});
|
|
1775
|
-
}
|
|
1776
|
-
function D(e, t, n = void 0, s = void 0) {
|
|
1777
|
-
const a = {
|
|
1778
|
-
base: e.space,
|
|
1779
|
-
uri: "/api/community",
|
|
1780
|
-
id_msg: `${t.id_msg}`,
|
|
1781
|
-
endUri: "/instantmessages"
|
|
1782
|
-
}, r = `${a.base}${a.uri}/${a.id_msg}${a.endUri}`, o = {
|
|
1783
|
-
author: { login: t.senderId, displayName: t.senderName },
|
|
1784
|
-
accessState: null,
|
|
1785
|
-
commentUri: null,
|
|
1786
|
-
comments: null,
|
|
1787
|
-
endorsements: null,
|
|
1788
|
-
moderationState: null,
|
|
1789
|
-
parentCommentUri: null,
|
|
1790
|
-
richMessage: t.msg
|
|
1791
|
-
};
|
|
1792
|
-
console.log("_3dSwym_sendDirectMessageData url ", r), w(e, (i) => {
|
|
1793
|
-
m(r, {
|
|
1794
|
-
method: "POST",
|
|
1795
|
-
headers: {
|
|
1796
|
-
"Content-Type": "application/json",
|
|
1797
|
-
Accept: "application/json",
|
|
1798
|
-
"X-DS-SWYM-CSRFTOKEN": i.result.ServerToken
|
|
1799
|
-
},
|
|
1800
|
-
data: JSON.stringify(o),
|
|
1801
|
-
type: "json",
|
|
1802
|
-
onComplete(c, d, l) {
|
|
1803
|
-
const p = c;
|
|
1804
|
-
p.status = l.status, p.response = JSON.parse(l.response), console.log("✅ _3dSwym_sendDirectMessageData => ", p), n && n(p);
|
|
1805
|
-
},
|
|
1806
|
-
onFailure(c, d) {
|
|
1807
|
-
const l = c;
|
|
1808
|
-
l.msg = d.errormsg, l.errCode = d.errorcode, console.log("❌ sendDirectMessage => ", l), s && s(l);
|
|
1809
|
-
}
|
|
1810
|
-
});
|
|
1811
|
-
});
|
|
1812
|
-
}
|
|
1813
|
-
function re(e) {
|
|
1814
|
-
const t = (/* @__PURE__ */ new Date()).toLocaleDateString(), n = (/* @__PURE__ */ new Date()).toLocaleTimeString();
|
|
1815
|
-
return `<p>${e} </p>
|
|
1816
|
-
<br/>
|
|
1817
|
-
<hr/>
|
|
1818
|
-
<p><u>envoyer :</u>Le <b>${t} à ${n}</b></p>`;
|
|
1819
|
-
}
|
|
1820
|
-
const ce = {
|
|
1821
|
-
title: "TEST DEV COMMUNITY IDEA",
|
|
1822
|
-
// titre du post
|
|
1823
|
-
community_id: "YXdA5x4DSUKtlAi2wmnyTA",
|
|
1824
|
-
// STATUT PROJETS - Phase commerciale, tenant PIVETEAU TEST
|
|
1825
|
-
community_title: "TEST DEV COMMUNITY",
|
|
1826
|
-
// Possibilité de recherche par titre de la communauté (option)
|
|
1827
|
-
idee_id: "THhRI8rlQNWKRxpv3Xqqug"
|
|
1828
|
-
// id de l'idee qui est créer au post (_3dSwym_postIdea)
|
|
1829
|
-
};
|
|
1830
|
-
function st(e, t, n = void 0, s = void 0) {
|
|
1831
|
-
const a = `${e.space}/api/idea/add`, r = e.swymCommunities.find(
|
|
1832
|
-
(c) => c.id === t.community_id
|
|
1833
|
-
), o = e.swymCommunities.find(
|
|
1834
|
-
(c) => c.title.toLowerCase() === t.community_title.toLowerCase()
|
|
1835
|
-
), i = {
|
|
1836
|
-
params: {
|
|
1837
|
-
title: t.title,
|
|
1838
|
-
// String, le nom de l'affaire
|
|
1839
|
-
community_id: r?.id !== void 0 ? r.id : o.id,
|
|
1840
|
-
// String, l'id de la communauté
|
|
1841
|
-
message: de(t.text_html),
|
|
1842
|
-
// STRING => le contenue du message doit être au format HTML
|
|
1843
|
-
published: 1
|
|
1844
|
-
// 1 publier, 0 non publier
|
|
1845
|
-
}
|
|
1846
|
-
};
|
|
1847
|
-
w(e, (c) => {
|
|
1848
|
-
const d = {
|
|
1849
|
-
"Content-type": "application/json;charset=UTF-8",
|
|
1850
|
-
Accept: "application/json",
|
|
1851
|
-
"X-DS-SWYM-CSRFTOKEN": c.result.ServerToken
|
|
1852
|
-
};
|
|
1853
|
-
m(a, {
|
|
1854
|
-
method: "POST",
|
|
1855
|
-
headers: d,
|
|
1856
|
-
data: JSON.stringify(i),
|
|
1857
|
-
type: "json",
|
|
1858
|
-
onComplete(l, p, f) {
|
|
1859
|
-
const u = JSON.parse(l);
|
|
1860
|
-
u.status = f.status, u.response = f.response, n && n(u);
|
|
1861
|
-
},
|
|
1862
|
-
onFailure(l, p, f) {
|
|
1863
|
-
const u = l;
|
|
1864
|
-
u.status = p.status, u.response = p.errormsg, s && s(u);
|
|
1865
|
-
}
|
|
1866
|
-
});
|
|
1867
|
-
});
|
|
1868
|
-
}
|
|
1869
|
-
function it(e, t, n = void 0, s = void 0) {
|
|
1870
|
-
const a = `${e.space}/api/idea/delete`, r = {
|
|
1871
|
-
params: {
|
|
1872
|
-
community_id: t.community_id,
|
|
1873
|
-
ideationIds: [t.idee_id]
|
|
1874
|
-
}
|
|
1875
|
-
};
|
|
1876
|
-
w(e, (o) => {
|
|
1877
|
-
m(a, {
|
|
1878
|
-
method: "POST",
|
|
1879
|
-
headers: {
|
|
1880
|
-
"Content-type": "application/json;charset=UTF-8",
|
|
1881
|
-
Accept: "application/json",
|
|
1882
|
-
"X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
|
|
1883
|
-
},
|
|
1884
|
-
data: JSON.stringify(r),
|
|
1885
|
-
type: "json",
|
|
1886
|
-
onComplete(i, c, d) {
|
|
1887
|
-
n && n(i);
|
|
1888
|
-
},
|
|
1889
|
-
onFailure(i, c, d) {
|
|
1890
|
-
const l = i;
|
|
1891
|
-
l.status = c.status, l.response = c.errormsg, s && s(l);
|
|
1892
|
-
}
|
|
1893
|
-
});
|
|
1894
|
-
});
|
|
1895
|
-
}
|
|
1896
|
-
function at(e, t = "", n = void 0, s = void 0) {
|
|
1897
|
-
const a = e.tenant.toLowerCase() === "r1132101716373" ? "tFtz0G4MR6qNtKgJjNfTog" : e.tenant.toLowerCase() === "r1132101286859" ? "Qpv3HN-tTDOsU-7_c5DnDg" : "Template_d'idée_à_créer";
|
|
1898
|
-
t === "" && (t = a);
|
|
1899
|
-
const r = `${e.space}/api/idea/get`, o = {
|
|
1900
|
-
params: {
|
|
1901
|
-
id: t
|
|
1902
|
-
}
|
|
1903
|
-
};
|
|
1904
|
-
w(e, (i) => {
|
|
1905
|
-
m(r, {
|
|
1906
|
-
method: "POST",
|
|
1907
|
-
headers: {
|
|
1908
|
-
"Content-type": "application/json;charset=UTF-8",
|
|
1909
|
-
Accept: "application/json",
|
|
1910
|
-
"X-DS-SWYM-CSRFTOKEN": i.result.ServerToken
|
|
1911
|
-
},
|
|
1912
|
-
data: JSON.stringify(o),
|
|
1913
|
-
type: "json",
|
|
1914
|
-
onComplete(c) {
|
|
1915
|
-
const d = c;
|
|
1916
|
-
d.msg = d.result.message, n && n(d);
|
|
1917
|
-
},
|
|
1918
|
-
onFailure(c) {
|
|
1919
|
-
const d = c;
|
|
1920
|
-
d.status = headers.status, d.response = headers.errormsg, s && s(d);
|
|
1921
|
-
}
|
|
1922
|
-
});
|
|
1923
|
-
});
|
|
1924
|
-
}
|
|
1925
|
-
function ot(e, t = ce, n = void 0, s = void 0) {
|
|
1926
|
-
const a = {
|
|
1927
|
-
uri: "/api/idea/list",
|
|
1928
|
-
comId: `/community_id/${e.tenant.toLowerCase() === "r1132101716373" ? t.community_id : "bgnIsG74SUWswyGzS6NC6g"}`,
|
|
1929
|
-
limit: `/limit/${t.limit ? t.limit : 10}`
|
|
1930
|
-
}, r = `${e.space}${a.uri}${a.comId}${a.limit}`;
|
|
1931
|
-
w(e, (o) => {
|
|
1932
|
-
m(r, {
|
|
1933
|
-
method: "GET",
|
|
1934
|
-
headers: {
|
|
1935
|
-
"X-DS-SWYM-CSRFTOKEN": o.result.ServerToken
|
|
1936
|
-
},
|
|
1937
|
-
onComplete(i) {
|
|
1938
|
-
const c = JSON.parse(i);
|
|
1939
|
-
n && n(c);
|
|
1940
|
-
},
|
|
1941
|
-
onFailure(i, c) {
|
|
1942
|
-
const d = i;
|
|
1943
|
-
d.status = c.status, d.response = c.errormsg, s && s(d);
|
|
1944
|
-
}
|
|
1945
|
-
});
|
|
1946
|
-
});
|
|
1947
|
-
}
|
|
1948
|
-
function de(e) {
|
|
1949
|
-
return !e || e === "" ? `<h2><u>INFORMATIONS AFFAIRE :</u></h2>
|
|
1950
|
-
<p><u>|⚠️<em> Merci de respecter l'écriture des tags, en MAJUSCULES, nom complet, pas de caractères</em></u></p>
|
|
1951
|
-
<p><u><em>|spéciaux, séparation par "_" si besoin !</em></u></p>
|
|
1952
|
-
<p><strong>Référence client </strong>: <em>
|
|
1953
|
-
<a data-predicate="ds6w:who" data-type="internal" class="s6m-tag-link s6m-link">CLIENT</a>
|
|
1954
|
-
</em></p>
|
|
1955
|
-
<p><strong>Référence projet </strong>: <em>
|
|
1956
|
-
<a data-predicate="ds6w:what" data-type="internal" class="s6m-tag-link s6m-link">NOM AFFAIRE</a>
|
|
1957
|
-
<a data-predicate="ds6w:where" data-type="internal" class="s6m-tag-link s6m-link">VILLE</a>
|
|
1958
|
-
<a data-predicate="ds6w:where" data-type="internal" class="s6m-tag-link s6m-link">DPT</a>
|
|
1959
|
-
</em></p>
|
|
1960
|
-
<p>📝 <strong>Base documentaire</strong> : LIEN projet</p>
|
|
1961
|
-
<p>📝 <strong>Fiche COCLICO</strong> : LIEN projet<em><strong></strong>
|
|
1962
|
-
</em></p>
|
|
1963
|
-
<p><br /></p>
|
|
1964
|
-
<table border="1">
|
|
1965
|
-
<tbody>
|
|
1966
|
-
<tr><td><strong>Description projet </strong>:
|
|
1967
|
-
<br /><br /></td></tr>
|
|
1968
|
-
</tbody>
|
|
1969
|
-
</table>
|
|
1970
|
-
<p><br /></p>
|
|
1971
|
-
<p><br /></p>
|
|
1972
|
-
<p><strong>Produit :<em> </em></strong><em>
|
|
1973
|
-
<a data-predicate="ds6w:what" data-type="internal" class="s6m-tag-link s6m-link">Hexapli Usiné</a>
|
|
1974
|
-
<a data-predicate="ds6w:what" data-type="internal" class="s6m-tag-link s6m-link">Hexapli MP</a>
|
|
1975
|
-
<a data-predicate="ds6w:what" data-type="internal" class="s6m-tag-link s6m-link">Lamwood</a>
|
|
1976
|
-
</em></p>
|
|
1977
|
-
<p><strong>Type de Bâtiment :</strong><em>
|
|
1978
|
-
<a data-predicate="ds6w:what" data-type="internal" class="s6m-tag-link s6m-link">Logements</a>
|
|
1979
|
-
<a data-predicate="ds6w:what" data-type="internal" class="s6m-tag-link s6m-link">BUP</a>
|
|
1980
|
-
<a data-predicate="ds6w:what" data-type="internal" class="s6m-tag-link s6m-link">ERP</a>
|
|
1981
|
-
<a data-predicate="ds6w:what" data-type="internal" class="s6m-tag-link s6m-link">Plateforme Logistique</a>
|
|
1982
|
-
</em></p>
|
|
1983
|
-
<p><strong>Essence :</strong> <em>
|
|
1984
|
-
<a data-predicate="ds6w:how" data-type="internal" class="s6m-tag-link s6m-link">DOUGLAS</a>
|
|
1985
|
-
<a data-predicate="ds6w:how" data-type="internal" class="s6m-tag-link s6m-link">PIN</a>
|
|
1986
|
-
<a data-predicate="ds6w:how" data-type="internal" class="s6m-tag-link s6m-link">MIXTE</a>
|
|
1987
|
-
<a data-predicate="ds6w:how" data-type="internal" class="s6m-tag-link s6m-link">EPICEA</a>
|
|
1988
|
-
</em></p>
|
|
1989
|
-
<p><strong>Qualité : </strong><em>
|
|
1990
|
-
<a data-predicate="ds6w:how" data-type="internal" class="s6m-tag-link s6m-link">NVI</a>
|
|
1991
|
-
<a data-predicate="ds6w:how" data-type="internal" class="s6m-tag-link s6m-link">VI1F</a>
|
|
1992
|
-
<a data-predicate="ds6w:how" data-type="internal" class="s6m-tag-link s6m-link">VI2F</a>
|
|
1993
|
-
</em><strong></strong></p>
|
|
1994
|
-
<p><strong>Traitement : </strong><em>
|
|
1995
|
-
<a data-predicate="ds6w:how" data-type="internal" class="s6m-tag-link s6m-link">PARKA</a>
|
|
1996
|
-
<a data-predicate="ds6w:how" data-type="internal" class="s6m-tag-link s6m-link">CT2</a>
|
|
1997
|
-
</em></p>
|
|
1998
|
-
<p><strong>Type de Paroi : </strong><em>
|
|
1999
|
-
<a data-predicate="ds6w:what" data-type="internal" class="s6m-tag-link s6m-link">Murs Intérieurs</a>
|
|
2000
|
-
<a data-predicate="ds6w:what" data-type="internal" class="s6m-tag-link s6m-link">Murs Extérieurs</a>
|
|
2001
|
-
<a data-predicate="ds6w:what" data-type="internal" class="s6m-tag-link s6m-link">Planchers</a>
|
|
2002
|
-
<a data-predicate="ds6w:what" data-type="internal" class="s6m-tag-link s6m-link">Couverture</a>
|
|
2003
|
-
</em></p>
|
|
2004
|
-
<p><em>
|
|
2005
|
-
<a data-predicate="ds6w:what" data-type="internal" class="s6m-tag-link s6m-link">Etanchéité Accessible</a>
|
|
2006
|
-
<a data-predicate="ds6w:what" data-type="internal" class="s6m-tag-link s6m-link">Etanchéité Non-Accessible</a>
|
|
2007
|
-
</em></p>
|
|
2008
|
-
<p><strong>Hauteur Dernier Plancher :</strong><em><strong> </strong>
|
|
2009
|
-
<a data-predicate="ds6w:how" data-type="internal" class="s6m-tag-link s6m-link">Hauteur <8m</a>
|
|
2010
|
-
<a data-predicate="ds6w:how" data-type="internal" class="s6m-tag-link s6m-link">8m< Hauteur <28m</a>
|
|
2011
|
-
<a data-predicate="ds6w:how" data-type="internal" class="s6m-tag-link s6m-link">28m< Hauteur <50m</a>
|
|
2012
|
-
</em></p>
|
|
2013
|
-
<h2><br /></h2>
|
|
2014
|
-
<h2><u>EQUIPE PIVETEAU :</u></h2>
|
|
2015
|
-
<table border="1">
|
|
2016
|
-
<tbody>
|
|
2017
|
-
<tr><td><strong>Chargé d'Affaires</strong></td><td><br /></td></tr>
|
|
2018
|
-
<tr><td><strong>Service études de prix</strong></td><td><br /></td></tr>
|
|
2019
|
-
</tbody></table>
|
|
2020
|
-
<p>
|
|
2021
|
-
</p>` : e;
|
|
2022
|
-
}
|
|
2023
|
-
function rt(e, t = void 0, n = void 0) {
|
|
2024
|
-
const s = e.space + "/api/user/getcurrent/";
|
|
2025
|
-
w(e, (a) => {
|
|
2026
|
-
m(s, {
|
|
2027
|
-
method: "GET",
|
|
2028
|
-
headers: {
|
|
2029
|
-
"X-DS-SWYM-CSRFTOKEN": a.result.ServerToken
|
|
2030
|
-
},
|
|
2031
|
-
onComplete(r, o, i) {
|
|
2032
|
-
const c = JSON.parse(r);
|
|
2033
|
-
t && t(c.result);
|
|
2034
|
-
},
|
|
2035
|
-
onFailure(r, o, i) {
|
|
2036
|
-
const c = { erreur: JSON.parse(r), headers: o, xhr: i };
|
|
2037
|
-
n && n(c);
|
|
2038
|
-
}
|
|
2039
|
-
});
|
|
2040
|
-
});
|
|
2041
|
-
}
|
|
2042
|
-
function ct(e, t, n = void 0, s = void 0) {
|
|
2043
|
-
const a = e.space + "/api/user/find/login/" + t;
|
|
2044
|
-
w(
|
|
2045
|
-
e,
|
|
2046
|
-
(r) => {
|
|
2047
|
-
m(a, {
|
|
2048
|
-
method: "GET",
|
|
2049
|
-
headers: { "X-DS-SWYM-CSRFTOKEN": r.result.ServerToken },
|
|
2050
|
-
onComplete(o, i, c) {
|
|
2051
|
-
const d = JSON.parse(o);
|
|
2052
|
-
n && n(d);
|
|
2053
|
-
},
|
|
2054
|
-
onFailure(o) {
|
|
2055
|
-
s && s(o);
|
|
2056
|
-
}
|
|
2057
|
-
});
|
|
2058
|
-
},
|
|
2059
|
-
s
|
|
2060
|
-
);
|
|
2061
|
-
}
|
|
2062
|
-
function dt(e, t = void 0, n = void 0) {
|
|
2063
|
-
e.tenant && $(e, (s) => {
|
|
2064
|
-
console.log("serviceUrls", s);
|
|
2065
|
-
const a = s.services.find((r) => r.id === "businessprocess")?.url + "/api/v2";
|
|
2066
|
-
t && t(a);
|
|
2067
|
-
});
|
|
2068
|
-
}
|
|
2069
|
-
function lt(e, t = void 0, n = void 0) {
|
|
2070
|
-
e.tenant && $(e, (s) => {
|
|
2071
|
-
console.log("serviceUrls", s);
|
|
2072
|
-
const a = s.services.find((i) => i.id === "3dpassport")?.url, r = s.services.find((i) => i.id === "businessprocess")?.url + "/api/v2", o = `${a}/login/?service=${r}/auth/cas`;
|
|
2073
|
-
m(o, {
|
|
2074
|
-
async onComplete(i) {
|
|
2075
|
-
console.log("response", i);
|
|
2076
|
-
const c = typeof i == "string" ? JSON.parse(i)?.x3ds_service_redirect_url : i?.x3ds_service_redirect_url;
|
|
2077
|
-
await fetch(c, {
|
|
2078
|
-
method: "POST"
|
|
2079
|
-
}).then((d) => d.json()).then(async (d) => {
|
|
2080
|
-
t && t(d?.token);
|
|
2081
|
-
});
|
|
2082
|
-
},
|
|
2083
|
-
onFailure(i) {
|
|
2084
|
-
n && n(i);
|
|
2085
|
-
}
|
|
2086
|
-
});
|
|
2087
|
-
});
|
|
2088
|
-
}
|
|
2089
|
-
async function pt(e, t, n = void 0, s = void 0) {
|
|
2090
|
-
e.tenant && $(e, (a) => {
|
|
2091
|
-
const o = `${a.services.find((i) => i.id === "businessprocess")?.url + "/api/v2"}/identity/users`;
|
|
2092
|
-
fetch(`https://api.uixhome.fr/iterop/listusers?t=${t}&s=${o}`, {
|
|
2093
|
-
method: "POST"
|
|
2094
|
-
}).then((i) => i.json()).then((i) => {
|
|
2095
|
-
n && n(i);
|
|
2096
|
-
}).catch((i) => {
|
|
2097
|
-
s && s(i);
|
|
2098
|
-
});
|
|
2099
|
-
});
|
|
2100
|
-
}
|
|
2101
|
-
async function ut(e, t, n = void 0, s = void 0) {
|
|
2102
|
-
e.tenant && $(e, (a) => {
|
|
2103
|
-
const o = `${a.services.find((i) => i.id === "businessprocess")?.url + "/api/v2"}/repository/data/tables`;
|
|
2104
|
-
fetch(`https://api.uixhome.fr/iterop/repository/data/tables?t=${t}&s=${o}`, {
|
|
2105
|
-
method: "GET"
|
|
2106
|
-
}).then((i) => i.json()).then((i) => {
|
|
2107
|
-
n && n(i);
|
|
2108
|
-
}).catch((i) => {
|
|
2109
|
-
s && s(i);
|
|
2110
|
-
});
|
|
2111
|
-
});
|
|
2112
|
-
}
|
|
2113
|
-
async function ft(e, t, n, s, a = void 0, r = void 0) {
|
|
2114
|
-
e.tenant && $(e, (o) => {
|
|
2115
|
-
const i = o.services.find((d) => d.id === "businessprocess")?.url + "/api/v2", c = encodeURIComponent(`${i}`);
|
|
2116
|
-
fetch(
|
|
2117
|
-
`https://api.uixhome.fr/iterop/runtime/processes/${n}?t=${t}&s=${c}&b=${s}`,
|
|
2118
|
-
{
|
|
2119
|
-
method: "POST"
|
|
2120
|
-
}
|
|
2121
|
-
).then((d) => d.json()).then((d) => {
|
|
2122
|
-
a && a(d);
|
|
2123
|
-
}).catch((d) => {
|
|
2124
|
-
r && r(d);
|
|
2125
|
-
});
|
|
2126
|
-
});
|
|
2127
|
-
}
|
|
2128
|
-
function mt(e) {
|
|
2129
|
-
const t = "Hello " + e;
|
|
2130
|
-
return console.log(t), t;
|
|
2131
|
-
}
|
|
2132
|
-
function gt(e, t = void 0, n = void 0) {
|
|
2133
|
-
return console.log("credentials", e), new Promise((s) => {
|
|
2134
|
-
if (e.token === "" && T(e), !e.space || e.space === "") {
|
|
2135
|
-
const o = K();
|
|
2136
|
-
console.log("platformeInfo", o);
|
|
2137
|
-
}
|
|
2138
|
-
b(
|
|
2139
|
-
e,
|
|
2140
|
-
"Common space",
|
|
2141
|
-
["VPLMProjectLeader", "VPLMCreator"],
|
|
2142
|
-
void 0,
|
|
2143
|
-
(o) => e.ctx = o,
|
|
2144
|
-
(o) => {
|
|
2145
|
-
console.log("onError =>", o);
|
|
2146
|
-
},
|
|
2147
|
-
!0
|
|
2148
|
-
);
|
|
2149
|
-
const a = v.now().ts, r = `https://${e.tenant}-eu1-registry.3dexperience.3ds.com/api/v1/platform/service/instance?serviceId=3dsearch&platformId=${e.tenant}`;
|
|
2150
|
-
m(r, {
|
|
2151
|
-
onComplete(o) {
|
|
2152
|
-
if (Array.isArray(JSON.parse(o))) {
|
|
2153
|
-
const i = JSON.parse(o);
|
|
2154
|
-
console.log("serviceId=3dsearch", i);
|
|
2155
|
-
const c = `${i[0].services[0].url}/search?xrequestedwith=xmlhttprequest`;
|
|
2156
|
-
m(c, {
|
|
2157
|
-
method: "POST",
|
|
2158
|
-
headers: {
|
|
2159
|
-
Accept: "application/json",
|
|
2160
|
-
"Content-Type": "application/json"
|
|
2161
|
-
},
|
|
2162
|
-
data: JSON.stringify({
|
|
2163
|
-
with_indexing_date: !0,
|
|
2164
|
-
with_nls: !1,
|
|
2165
|
-
label: `3DSearch-${a}`,
|
|
2166
|
-
locale: "en",
|
|
2167
|
-
select_predicate: [
|
|
2168
|
-
"ds6w:label",
|
|
2169
|
-
"ds6w:type",
|
|
2170
|
-
"ds6w:description",
|
|
2171
|
-
"ds6w:identifier",
|
|
2172
|
-
"ds6w:responsible",
|
|
2173
|
-
"ds6wg:fullname"
|
|
2174
|
-
],
|
|
2175
|
-
select_file: [
|
|
2176
|
-
"icon",
|
|
2177
|
-
"thumbnail_2d"
|
|
2178
|
-
],
|
|
2179
|
-
query: '([ds6w:type]:(Group) AND [ds6w:status]:(Public)) OR (flattenedtaxonomies:"types/Person" AND current:"active")',
|
|
2180
|
-
order_by: "desc",
|
|
2181
|
-
order_field: "relevance",
|
|
2182
|
-
nresults: 1e3,
|
|
2183
|
-
start: "0",
|
|
2184
|
-
source: [
|
|
2185
|
-
"3dspace",
|
|
2186
|
-
"usersgroup"
|
|
2187
|
-
],
|
|
2188
|
-
tenant: e.tenant,
|
|
2189
|
-
login: {
|
|
2190
|
-
"3dspace": {
|
|
2191
|
-
SecurityContext: `ctx::${e.ctx}`
|
|
2192
|
-
}
|
|
2193
|
-
}
|
|
2194
|
-
}),
|
|
2195
|
-
type: "json",
|
|
2196
|
-
onComplete(d) {
|
|
2197
|
-
t && t(d);
|
|
2198
|
-
},
|
|
2199
|
-
onFailure(d) {
|
|
2200
|
-
n && n(d);
|
|
2201
|
-
}
|
|
2202
|
-
});
|
|
2203
|
-
}
|
|
2204
|
-
},
|
|
2205
|
-
onFailure(o) {
|
|
2206
|
-
n && n(o);
|
|
2207
|
-
}
|
|
2208
|
-
});
|
|
2209
|
-
});
|
|
2210
|
-
}
|
|
2211
|
-
export {
|
|
2212
|
-
R as UUID,
|
|
2213
|
-
gt as _3DSearch_usersGroup,
|
|
2214
|
-
De as _3DSpace_Create_Doc,
|
|
2215
|
-
Ee as _3DSpace_bookmark_addSubsciptions,
|
|
2216
|
-
Je as _3DSpace_bookmark_newWorkspace,
|
|
2217
|
-
T as _3DSpace_csrf,
|
|
2218
|
-
x as _3DSpace_download_doc,
|
|
2219
|
-
Q as _3DSpace_download_multidoc,
|
|
2220
|
-
z as _3DSpace_file_update,
|
|
2221
|
-
q as _3DSpace_file_update_csr,
|
|
2222
|
-
je as _3DSpace_file_url_csr,
|
|
2223
|
-
A as _3DSpace_get_csrf,
|
|
2224
|
-
H as _3DSpace_get_docInfo,
|
|
2225
|
-
Z as _3DSpace_get_downloadTicket_multidoc,
|
|
2226
|
-
Ue as _3DSpace_get_multiDocInfo,
|
|
2227
|
-
b as _3DSpace_get_securityContexts,
|
|
2228
|
-
U as _3DSpace_get_ticket,
|
|
2229
|
-
Le as _3DSpace_lifecycle_changeRevision,
|
|
2230
|
-
Re as _3DSpace_lifecycle_changeState,
|
|
2231
|
-
xe as _3DSpace_lifecycle_getGraph,
|
|
2232
|
-
Me as _3DSpace_lifecycle_getNextRevision,
|
|
2233
|
-
Pe as _3DSpace_lifecycle_getNextStates,
|
|
2234
|
-
nt as _3DSwym_buildDirectMessage,
|
|
2235
|
-
it as _3DSwym_deleteIdea,
|
|
2236
|
-
oe as _3DSwym_findCommunityToInstantMSG,
|
|
2237
|
-
et as _3DSwym_getAllCommunities,
|
|
2238
|
-
Qe as _3DSwym_getAllNews,
|
|
2239
|
-
Ze as _3DSwym_getFamiliarPeople,
|
|
2240
|
-
tt as _3DSwym_getIdeaStatusMaturity,
|
|
2241
|
-
ae as _3DSwym_getMembersCommunity,
|
|
2242
|
-
at as _3DSwym_getSWYMIdea,
|
|
2243
|
-
ot as _3DSwym_get_AllSWYMIdeas,
|
|
2244
|
-
rt as _3DSwym_get_currentUser,
|
|
2245
|
-
ct as _3DSwym_get_findUser,
|
|
2246
|
-
w as _3DSwym_get_version,
|
|
2247
|
-
st as _3DSwym_postIdea,
|
|
2248
|
-
D as _3DSwym_sendMessageData,
|
|
2249
|
-
be as _AppMngt_get_info_user,
|
|
2250
|
-
Oe as _AppMngt_get_users,
|
|
2251
|
-
lt as _Iterop_Auth_CAS,
|
|
2252
|
-
pt as _Iterop_ListUsers,
|
|
2253
|
-
ut as _Iterop_getAllBusinessTables,
|
|
2254
|
-
ft as _Iterop_runProcess,
|
|
2255
|
-
K as _getPlateformInfos,
|
|
2256
|
-
we as _getPlatformServices,
|
|
2257
|
-
$ as _getServiceUrl,
|
|
2258
|
-
Ce as _getServiceUrl_3DPassport,
|
|
2259
|
-
dt as _getServiceUrl_Iterop,
|
|
2260
|
-
m as _httpCallAuthenticated,
|
|
2261
|
-
Se as _setDraggable,
|
|
2262
|
-
ye as _setDroppable,
|
|
2263
|
-
_e as _setupTagger,
|
|
2264
|
-
He as addTagToDoc,
|
|
2265
|
-
Te as compass_getListAdditionalApps,
|
|
2266
|
-
G as couleurs,
|
|
2267
|
-
Ne as createUserGroups,
|
|
2268
|
-
ee as dataMixing,
|
|
2269
|
-
$e as deleteUserGroups,
|
|
2270
|
-
me as findAdresse,
|
|
2271
|
-
Ge as getAllContextSecurity,
|
|
2272
|
-
W as getCSRFToken,
|
|
2273
|
-
fe as getCommunes,
|
|
2274
|
-
ve as getComplementUG,
|
|
2275
|
-
Ke as getDataFrom3DSpace,
|
|
2276
|
-
ge as getDataFromGouvFr,
|
|
2277
|
-
Xe as getDatasByTenant,
|
|
2278
|
-
Ye as getDatasFrom3DSpace,
|
|
2279
|
-
Ve as getDownloadDocument,
|
|
2280
|
-
qe as getInfoDocTags,
|
|
2281
|
-
Ie as getUserGroupsList,
|
|
2282
|
-
V as getUsersGroupRules,
|
|
2283
|
-
Be as get_3DSpace_csrf,
|
|
2284
|
-
Ae as patchUserGroups,
|
|
2285
|
-
ke as patchUserGroupsControl,
|
|
2286
|
-
We as pushDataIn3DSpace,
|
|
2287
|
-
Fe as readUserGroupControl,
|
|
2288
|
-
ze as removeTagToDoc,
|
|
2289
|
-
mt as sayHello,
|
|
2290
|
-
he as updateEvent
|
|
2291
|
-
};
|
|
2292
|
-
//# sourceMappingURL=wb3Api.js.map
|