@beam3_dev/api_module 0.0.50 → 0.0.51
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 +473 -481
- 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
|
@@ -44,13 +44,13 @@ async function oe(e, t = void 0, n = void 0) {
|
|
|
44
44
|
Accept: "application/json"
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
).then((
|
|
48
|
-
t && t(
|
|
49
|
-
}).catch((
|
|
50
|
-
n && n(
|
|
47
|
+
).then((o) => o.json()).then((o) => {
|
|
48
|
+
t && t(o);
|
|
49
|
+
}).catch((o) => {
|
|
50
|
+
n && n(o), console.error("Erreur : " + o);
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
|
-
async function
|
|
53
|
+
async function ie(e, t = void 0, n = void 0) {
|
|
54
54
|
e = encodeURIComponent(e), await fetch(
|
|
55
55
|
"https://api-adresse.data.gouv.fr/search/?q=" + e + "&limit=15",
|
|
56
56
|
{
|
|
@@ -65,11 +65,11 @@ async function re(e, t = void 0, n = void 0) {
|
|
|
65
65
|
n && n(s), console.error("Erreur : " + s);
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
-
async function
|
|
68
|
+
async function re(e, t = L) {
|
|
69
69
|
let n = b.now().year;
|
|
70
|
-
const s = e,
|
|
71
|
-
for (let
|
|
72
|
-
|
|
70
|
+
const s = e, o = [], c = (a) => {
|
|
71
|
+
for (let r in a)
|
|
72
|
+
o.push({ date: r, comment: a[r] });
|
|
73
73
|
};
|
|
74
74
|
for (let a = n; a <= n + 1; a++)
|
|
75
75
|
await fetch(
|
|
@@ -80,41 +80,41 @@ async function ce(e, t = L) {
|
|
|
80
80
|
Accept: "application/json"
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
).then((
|
|
84
|
-
r
|
|
85
|
-
}).catch((
|
|
83
|
+
).then((r) => r.json()).then((r) => {
|
|
84
|
+
c(r);
|
|
85
|
+
}).catch((r) => console.error("Erreur : " + r));
|
|
86
86
|
return (() => {
|
|
87
87
|
const a = s.length === 0 ? {
|
|
88
88
|
events: []
|
|
89
89
|
} : s;
|
|
90
|
-
for (let
|
|
90
|
+
for (let r of o)
|
|
91
91
|
a.events.findIndex(
|
|
92
|
-
(l) => l.start === b.fromISO(
|
|
92
|
+
(l) => l.start === b.fromISO(r.date).toISODate() && l.name === "Férié : " + r.comment
|
|
93
93
|
) === -1 && a.events.push({
|
|
94
|
-
name: "Férié : " +
|
|
95
|
-
start: b.fromISO(
|
|
96
|
-
end: b.fromISO(
|
|
94
|
+
name: "Férié : " + r.comment,
|
|
95
|
+
start: b.fromISO(r.date).toISODate(),
|
|
96
|
+
end: b.fromISO(r.date).toISODate(),
|
|
97
97
|
color: t.b3BusinnessDays,
|
|
98
98
|
timed: !1
|
|
99
99
|
});
|
|
100
100
|
return a;
|
|
101
101
|
})();
|
|
102
102
|
}
|
|
103
|
-
async function
|
|
104
|
-
const s = e.events.findIndex((
|
|
105
|
-
return s === -1 ? e.events.push(t) : n ? e.events[s] = t : e.events.splice(s, 1), e.length > 0 && e.sort((
|
|
103
|
+
async function ce(e, t, n = !0) {
|
|
104
|
+
const s = e.events.findIndex((o) => o.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((o, c) => o.start - c.start), e;
|
|
106
106
|
}
|
|
107
107
|
function f(e, t) {
|
|
108
108
|
O(["DS/WAFData/WAFData"], (n) => {
|
|
109
109
|
n.authenticatedRequest(e, t);
|
|
110
110
|
});
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function de(e, t, n) {
|
|
113
113
|
O(["DS/DataDragAndDrop/DataDragAndDrop"], (s) => {
|
|
114
114
|
s.draggable(e, { data: t, start: n });
|
|
115
115
|
});
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function le(e, t = void 0) {
|
|
118
118
|
O(["DS/TagNavigatorProxy/TagNavigatorProxy"], (n) => {
|
|
119
119
|
let s;
|
|
120
120
|
s === void 0 && (s = n.createProxy({
|
|
@@ -123,12 +123,12 @@ function pe(e, t = void 0) {
|
|
|
123
123
|
}), t !== void 0 && s.addEvent("onFilterSubjectsChange", t)), s.setSubjectsTags(e);
|
|
124
124
|
});
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function pe(e, t) {
|
|
127
127
|
O(["DS/DataDragAndDrop/DataDragAndDrop"], (n) => {
|
|
128
128
|
n.droppable(e, { drop: t });
|
|
129
129
|
});
|
|
130
130
|
}
|
|
131
|
-
async function
|
|
131
|
+
async function ue(e, t = void 0, n = void 0) {
|
|
132
132
|
O(
|
|
133
133
|
["DS/i3DXCompassServices/i3DXCompassServices"],
|
|
134
134
|
(s) => {
|
|
@@ -142,85 +142,85 @@ async function fe(e, t = void 0, n = void 0) {
|
|
|
142
142
|
}
|
|
143
143
|
);
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function fe() {
|
|
146
146
|
let e = {};
|
|
147
147
|
return O(["DS/PlatformAPI/PlatformAPI"], (t) => {
|
|
148
|
-
const n = t.getTenant(), s = t.getUser(),
|
|
148
|
+
const n = t.getTenant(), s = t.getUser(), o = t.getAllApplicationConfigurations(), c = t.getApplicationConfiguration(
|
|
149
149
|
"com.3ds.wp.passport.cors"
|
|
150
150
|
);
|
|
151
151
|
e = {
|
|
152
152
|
tenant: n,
|
|
153
153
|
user: s,
|
|
154
|
-
appsConfiguration:
|
|
155
|
-
appConf:
|
|
154
|
+
appsConfiguration: o,
|
|
155
|
+
appConf: c
|
|
156
156
|
};
|
|
157
157
|
}), console.log("%cRETOUR API :", "color:blue", e), e;
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function me(e, t, n) {
|
|
160
160
|
const s = {
|
|
161
161
|
base: `${e.space}`,
|
|
162
162
|
uri: "/resources/AppsMngt/api/custom/applications",
|
|
163
163
|
option: `?filter=${e.tenant}`
|
|
164
164
|
// facultatif
|
|
165
|
-
},
|
|
166
|
-
f(
|
|
165
|
+
}, o = `${s.base}${s.uri}${s.option}`;
|
|
166
|
+
f(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(c, i, a) {
|
|
173
|
+
const r = JSON.parse(c), d = r.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, r);
|
|
178
178
|
},
|
|
179
|
-
onFailure(
|
|
180
|
-
const a =
|
|
181
|
-
a.msg =
|
|
179
|
+
onFailure(c, i) {
|
|
180
|
+
const a = c;
|
|
181
|
+
a.msg = i.errormsg, a.errCode = i.errorcode, n && n(a);
|
|
182
182
|
}
|
|
183
183
|
});
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function ge(e, t = void 0, n = void 0) {
|
|
186
186
|
let s = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&limit=-1`;
|
|
187
187
|
f(s, {
|
|
188
|
-
onComplete(
|
|
189
|
-
const a = JSON.parse(
|
|
188
|
+
onComplete(o, c, i) {
|
|
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, c) {
|
|
193
|
+
const i = o;
|
|
194
|
+
i.msg = c.errormsg, i.errCode = c.errorcode, n && n(i);
|
|
195
195
|
}
|
|
196
196
|
});
|
|
197
197
|
}
|
|
198
|
-
function
|
|
199
|
-
let
|
|
200
|
-
f(
|
|
201
|
-
onComplete(
|
|
202
|
-
const
|
|
203
|
-
n && n(
|
|
198
|
+
function he(e, t, n = void 0, s = void 0) {
|
|
199
|
+
let o = `${e.space}/resources/AppsMngt/user?platform=${e.tenant}&id=${t}`;
|
|
200
|
+
f(o, {
|
|
201
|
+
onComplete(c, i, a) {
|
|
202
|
+
const r = JSON.parse(c);
|
|
203
|
+
n && n(r);
|
|
204
204
|
},
|
|
205
|
-
onFailure(
|
|
206
|
-
const a =
|
|
207
|
-
a.msg =
|
|
205
|
+
onFailure(c, i) {
|
|
206
|
+
const a = c;
|
|
207
|
+
a.msg = i.errormsg, a.errCode = i.errorcode, s && s(a);
|
|
208
208
|
}
|
|
209
209
|
});
|
|
210
210
|
}
|
|
211
|
-
const
|
|
211
|
+
const F = {
|
|
212
212
|
"Content-Type": "application/json",
|
|
213
213
|
Accept: "application/json,text/javascript,*/*"
|
|
214
214
|
};
|
|
215
|
-
function
|
|
216
|
-
const { space:
|
|
215
|
+
function Se(e, t, n = void 0, s = void 0) {
|
|
216
|
+
const { space: o, currentUser: c } = e, a = `${o}${{
|
|
217
217
|
URIUGr: "/3drdfpersist/resources/v1/usersgroup"
|
|
218
|
-
}.URIUGr}`,
|
|
218
|
+
}.URIUGr}`, r = {
|
|
219
219
|
groups: [
|
|
220
220
|
{
|
|
221
221
|
title: t.title,
|
|
222
222
|
description: t.description,
|
|
223
|
-
members: t.members || [
|
|
223
|
+
members: t.members || [c.email, "samuel.mureau@beam3.fr"],
|
|
224
224
|
pending_members: [],
|
|
225
225
|
sharing: t.sharing,
|
|
226
226
|
visibility: t.visibility
|
|
@@ -229,8 +229,8 @@ function _e(e, t, n = void 0, s = void 0) {
|
|
|
229
229
|
};
|
|
230
230
|
f(a, {
|
|
231
231
|
method: "POST",
|
|
232
|
-
headers:
|
|
233
|
-
data: JSON.stringify(
|
|
232
|
+
headers: F,
|
|
233
|
+
data: JSON.stringify(r),
|
|
234
234
|
onComplete(d) {
|
|
235
235
|
n && n(JSON.parse(d));
|
|
236
236
|
},
|
|
@@ -241,8 +241,8 @@ function _e(e, t, n = void 0, s = void 0) {
|
|
|
241
241
|
}
|
|
242
242
|
});
|
|
243
243
|
}
|
|
244
|
-
function
|
|
245
|
-
const { space:
|
|
244
|
+
function _e(e, t, n = void 0, s = void 0) {
|
|
245
|
+
const { space: o, tenant: c } = e, i = o, a = `/3drdfpersist/v1/resources/${t}`, r = `?$mask=dsaccess:Mask.GroupUI.Properties&tenant=dstenant:${c}`, d = `${i}${a}${r}`;
|
|
246
246
|
f(d, {
|
|
247
247
|
opts: {
|
|
248
248
|
method: "GET",
|
|
@@ -261,12 +261,12 @@ function ye(e, t, n = void 0, s = void 0) {
|
|
|
261
261
|
});
|
|
262
262
|
}
|
|
263
263
|
function E(e, t = void 0, n = void 0) {
|
|
264
|
-
const { space: s, tenant:
|
|
264
|
+
const { space: s, tenant: o } = e, c = s, i = "/3drdfpersist/resources/v1/option-sets/dsusergroup:ListOfGroupResponsibilities/options", a = `?tenant=dstenant:${o}`, r = {
|
|
265
265
|
method: "GET",
|
|
266
266
|
Accept: "application/json,*/*,test/javascript"
|
|
267
|
-
}, d = `${
|
|
267
|
+
}, d = `${c}${i}${a}`;
|
|
268
268
|
f(d, {
|
|
269
|
-
OPTsH:
|
|
269
|
+
OPTsH: r,
|
|
270
270
|
onComplete(l) {
|
|
271
271
|
t && t(JSON.parse(l));
|
|
272
272
|
},
|
|
@@ -276,8 +276,8 @@ function E(e, t = void 0, n = void 0) {
|
|
|
276
276
|
}
|
|
277
277
|
});
|
|
278
278
|
}
|
|
279
|
-
function
|
|
280
|
-
const { space: s, currentUser:
|
|
279
|
+
function ye(e, t = void 0, n = void 0) {
|
|
280
|
+
const { space: s, currentUser: o } = e, a = `${s}/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, n = void 0) {
|
|
|
286
286
|
opts: d,
|
|
287
287
|
onComplete(l) {
|
|
288
288
|
const p = JSON.parse(l), u = {}, m = p.groups.filter((g) => g.uri.startsWith("uuid:"));
|
|
289
|
-
if (
|
|
290
|
-
const g = m.filter((_) => _.owner ===
|
|
289
|
+
if (o && Object.keys(o).length > 0) {
|
|
290
|
+
const g = m.filter((_) => _.owner === o.email), h = m.filter((_) => _.members.includes(o.email)), S = g.concat(h);
|
|
291
291
|
u.iam = S, u.UG = m, u.iamMember = h, E(
|
|
292
292
|
e,
|
|
293
293
|
(_) => {
|
|
@@ -307,24 +307,24 @@ function we(e, t = void 0, n = void 0) {
|
|
|
307
307
|
console.log(l);
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
|
-
function
|
|
311
|
-
const { space: n } = e,
|
|
312
|
-
f(
|
|
310
|
+
function we(e, t) {
|
|
311
|
+
const { space: n } = e, o = `${n}/3drdfpersist/resources/v1/usersgroup/${t}`;
|
|
312
|
+
f(o, {
|
|
313
313
|
method: "DELETE"
|
|
314
314
|
});
|
|
315
315
|
}
|
|
316
|
-
function
|
|
317
|
-
const { space:
|
|
316
|
+
function Te(e, t, n, s = void 0, o = void 0) {
|
|
317
|
+
const { space: c, tenant: i } = 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:${i}`
|
|
325
|
+
}, r = n, d = `${c}${a.URIUGr}/${t}`, l = JSON.stringify(r);
|
|
326
326
|
f(d, {
|
|
327
|
-
headers:
|
|
327
|
+
headers: F,
|
|
328
328
|
method: "PATCH",
|
|
329
329
|
data: l,
|
|
330
330
|
type: "json",
|
|
@@ -332,28 +332,28 @@ function Ce(e, t, n, s = void 0, i = void 0) {
|
|
|
332
332
|
s && s(p);
|
|
333
333
|
},
|
|
334
334
|
onFailure(p) {
|
|
335
|
-
|
|
335
|
+
o && o(p);
|
|
336
336
|
}
|
|
337
337
|
});
|
|
338
338
|
}
|
|
339
|
-
function
|
|
340
|
-
const { space:
|
|
339
|
+
function Ce(e, t, n, s = void 0, o = void 0) {
|
|
340
|
+
const { space: c } = e, a = `${c}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
|
|
341
341
|
f(a, {
|
|
342
342
|
method: "PATCH",
|
|
343
|
-
headers:
|
|
343
|
+
headers: F,
|
|
344
344
|
data: JSON.stringify(n),
|
|
345
345
|
type: "json",
|
|
346
346
|
onComplete(d) {
|
|
347
347
|
s && s(d);
|
|
348
348
|
},
|
|
349
349
|
onFailure(d) {
|
|
350
|
-
|
|
350
|
+
o && o(d);
|
|
351
351
|
}
|
|
352
352
|
});
|
|
353
353
|
}
|
|
354
|
-
function
|
|
355
|
-
const { space:
|
|
356
|
-
f(
|
|
354
|
+
function Oe(e, t, n = void 0, s = void 0) {
|
|
355
|
+
const { space: o } = e, i = `${o}/3drdfpersist/resources/v1/usersgroup/${t}/sharing`;
|
|
356
|
+
f(i, {
|
|
357
357
|
opts: {
|
|
358
358
|
method: "GET",
|
|
359
359
|
headers: {
|
|
@@ -370,19 +370,19 @@ function Ne(e, t, n = void 0, s = void 0) {
|
|
|
370
370
|
});
|
|
371
371
|
}
|
|
372
372
|
async function J(e, t = void 0, n = void 0, s = void 0) {
|
|
373
|
-
const
|
|
373
|
+
const o = e.space;
|
|
374
374
|
if (t === void 0) {
|
|
375
375
|
console.log("Le paramètre docid est obligatoire");
|
|
376
376
|
return;
|
|
377
377
|
}
|
|
378
|
-
const
|
|
379
|
-
f(
|
|
380
|
-
onComplete(
|
|
381
|
-
const d = JSON.parse(
|
|
378
|
+
const c = o + `/resources/v1/modeler/documents/${t}`;
|
|
379
|
+
f(c, {
|
|
380
|
+
onComplete(i, a, r) {
|
|
381
|
+
const d = JSON.parse(i);
|
|
382
382
|
n && n(d);
|
|
383
383
|
},
|
|
384
|
-
onFailure(
|
|
385
|
-
s && s(
|
|
384
|
+
onFailure(i) {
|
|
385
|
+
s && s(i);
|
|
386
386
|
}
|
|
387
387
|
});
|
|
388
388
|
}
|
|
@@ -390,12 +390,12 @@ function k(e, t = void 0, n = void 0) {
|
|
|
390
390
|
if (e.objID && e.objID !== "") {
|
|
391
391
|
let s = `${e.space}/resources/v1/modeler/documents/${e.objID}`;
|
|
392
392
|
f(s, {
|
|
393
|
-
onComplete(
|
|
394
|
-
const a = JSON.parse(
|
|
393
|
+
onComplete(o, c, i) {
|
|
394
|
+
const a = JSON.parse(o);
|
|
395
395
|
e.token = a?.csrf?.value, e.datas = a?.data[0], t && t(e);
|
|
396
396
|
},
|
|
397
|
-
onFailure(
|
|
398
|
-
n && n(
|
|
397
|
+
onFailure(o) {
|
|
398
|
+
n && n(o);
|
|
399
399
|
}
|
|
400
400
|
});
|
|
401
401
|
} else
|
|
@@ -405,12 +405,12 @@ function C(e, t = void 0, n = void 0) {
|
|
|
405
405
|
if (e.space) {
|
|
406
406
|
const s = e.space + "/resources/v1/application/CSRF";
|
|
407
407
|
f(s, {
|
|
408
|
-
onComplete(
|
|
409
|
-
const a = JSON.parse(
|
|
408
|
+
onComplete(o, c, i) {
|
|
409
|
+
const a = JSON.parse(o);
|
|
410
410
|
console.log("_3DSpace_csrf() / info => ", a), t && t(a.csrf.value);
|
|
411
411
|
},
|
|
412
|
-
onFailure(
|
|
413
|
-
n && n({ response:
|
|
412
|
+
onFailure(o, c, i) {
|
|
413
|
+
n && n({ response: o, headers: c, xhr: i });
|
|
414
414
|
}
|
|
415
415
|
});
|
|
416
416
|
} else
|
|
@@ -420,51 +420,51 @@ function U(e, t = void 0, n = void 0) {
|
|
|
420
420
|
let s = e.space + `/resources/v1/modeler/documents/${e.objID}/files/DownloadTicket`;
|
|
421
421
|
k(
|
|
422
422
|
e,
|
|
423
|
-
(
|
|
424
|
-
console.log("onComplete / ☠️ info => ",
|
|
423
|
+
(o) => {
|
|
424
|
+
console.log("onComplete / ☠️ info => ", o, e.token), f(s, {
|
|
425
425
|
method: "PUT",
|
|
426
426
|
headers: {
|
|
427
|
-
ENO_CSRF_TOKEN:
|
|
427
|
+
ENO_CSRF_TOKEN: o.csrf.value === e.token ? o.csrf.value : e.token
|
|
428
428
|
},
|
|
429
|
-
onComplete(
|
|
430
|
-
let
|
|
431
|
-
console.log("_3DSpace_file_url() / ☠️ info => ",
|
|
432
|
-
const a =
|
|
429
|
+
onComplete(c) {
|
|
430
|
+
let i = JSON.parse(c);
|
|
431
|
+
console.log("_3DSpace_file_url() / ☠️ info => ", i);
|
|
432
|
+
const a = i.data[0].dataelements.ticketURL;
|
|
433
433
|
e.ticket = a, t && t(a);
|
|
434
434
|
},
|
|
435
|
-
onFailure(
|
|
436
|
-
console.warn("☠️ error => ",
|
|
435
|
+
onFailure(c, i) {
|
|
436
|
+
console.warn("☠️ error => ", c, i), n && n(c, i);
|
|
437
437
|
}
|
|
438
438
|
});
|
|
439
439
|
},
|
|
440
|
-
(
|
|
441
|
-
console.warn("_3DSpace_file_url / error => ",
|
|
440
|
+
(o) => {
|
|
441
|
+
console.warn("_3DSpace_file_url / error => ", o), n && n(o);
|
|
442
442
|
}
|
|
443
443
|
);
|
|
444
444
|
}
|
|
445
|
-
function
|
|
446
|
-
const
|
|
447
|
-
n || (n = e.token), f(
|
|
445
|
+
function Ne(e, t, n, s = void 0, o = void 0) {
|
|
446
|
+
const c = `${e.space}/resources/v1/modeler/documents/${t}/files/DownloadTicket`;
|
|
447
|
+
n || (n = e.token), f(c, {
|
|
448
448
|
method: "PUT",
|
|
449
449
|
headers: {
|
|
450
450
|
ENO_CSRF_TOKEN: n
|
|
451
451
|
},
|
|
452
|
-
onComplete(
|
|
453
|
-
let a = JSON.parse(
|
|
452
|
+
onComplete(i) {
|
|
453
|
+
let a = JSON.parse(i);
|
|
454
454
|
if (console.log("☠️ info => ", a), a.success === !0)
|
|
455
455
|
try {
|
|
456
|
-
const
|
|
457
|
-
s && s(
|
|
458
|
-
} catch (
|
|
459
|
-
|
|
456
|
+
const r = a.data[0].dataelements.ticketURL;
|
|
457
|
+
s && s(r);
|
|
458
|
+
} catch (r) {
|
|
459
|
+
o && o(r);
|
|
460
460
|
}
|
|
461
461
|
},
|
|
462
|
-
onFailure(
|
|
463
|
-
|
|
462
|
+
onFailure(i) {
|
|
463
|
+
o && o(i);
|
|
464
464
|
}
|
|
465
465
|
});
|
|
466
466
|
}
|
|
467
|
-
function G(e, t, n, s,
|
|
467
|
+
function G(e, t, n, s, o, c = void 0, i = void 0) {
|
|
468
468
|
k(
|
|
469
469
|
e,
|
|
470
470
|
t,
|
|
@@ -474,30 +474,30 @@ function G(e, t, n, s, i, r = void 0, o = void 0) {
|
|
|
474
474
|
t,
|
|
475
475
|
n,
|
|
476
476
|
s,
|
|
477
|
-
|
|
477
|
+
o,
|
|
478
478
|
a.csrf.value,
|
|
479
|
-
|
|
480
|
-
|
|
479
|
+
c,
|
|
480
|
+
i
|
|
481
481
|
);
|
|
482
482
|
}
|
|
483
483
|
);
|
|
484
484
|
}
|
|
485
|
-
function K(e, t, n, s,
|
|
486
|
-
const
|
|
487
|
-
f(
|
|
485
|
+
function K(e, t, n, s, o, c, i = void 0, a = void 0) {
|
|
486
|
+
const r = e.space + `/resources/v1/modeler/documents/${t}/files/CheckinTicket`;
|
|
487
|
+
f(r, {
|
|
488
488
|
method: "PUT",
|
|
489
489
|
headers: {
|
|
490
|
-
ENO_CSRF_TOKEN:
|
|
490
|
+
ENO_CSRF_TOKEN: c
|
|
491
491
|
},
|
|
492
492
|
onComplete(d, l, p) {
|
|
493
493
|
const u = JSON.parse(d).data[0].dataelements, m = new FormData();
|
|
494
|
-
m.append("__fcs__jobTicket", u.ticket), m.append("file_0", s,
|
|
494
|
+
m.append("__fcs__jobTicket", u.ticket), m.append("file_0", s, o);
|
|
495
495
|
const g = {};
|
|
496
496
|
g.method = "POST", g.data = m, g.onComplete = function(h) {
|
|
497
497
|
let S = "temp_" + Date.now(), _ = {
|
|
498
498
|
method: "PUT",
|
|
499
499
|
headers: {
|
|
500
|
-
ENO_CSRF_TOKEN:
|
|
500
|
+
ENO_CSRF_TOKEN: c
|
|
501
501
|
},
|
|
502
502
|
data: JSON.stringify({
|
|
503
503
|
data: [
|
|
@@ -508,7 +508,7 @@ function K(e, t, n, s, i, r, o = void 0, a = void 0) {
|
|
|
508
508
|
{
|
|
509
509
|
id: n,
|
|
510
510
|
dataelements: {
|
|
511
|
-
title:
|
|
511
|
+
title: o,
|
|
512
512
|
receipt: h
|
|
513
513
|
},
|
|
514
514
|
updateAction: "REVISE"
|
|
@@ -521,7 +521,7 @@ function K(e, t, n, s, i, r, o = void 0, a = void 0) {
|
|
|
521
521
|
}),
|
|
522
522
|
type: "json",
|
|
523
523
|
onComplete(y) {
|
|
524
|
-
|
|
524
|
+
i && i(y);
|
|
525
525
|
},
|
|
526
526
|
onFailure(y) {
|
|
527
527
|
a && a(y);
|
|
@@ -537,14 +537,14 @@ function K(e, t, n, s, i, r, o = void 0, a = void 0) {
|
|
|
537
537
|
}
|
|
538
538
|
});
|
|
539
539
|
}
|
|
540
|
-
async function
|
|
541
|
-
const
|
|
540
|
+
async function be(e, t, n, s, o = void 0, c = void 0) {
|
|
541
|
+
const i = e.space, a = e.token, r = e.ctx, d = new FormData(), l = new Blob([JSON.stringify(t)], {
|
|
542
542
|
type: "text/plain"
|
|
543
543
|
}), p = {
|
|
544
|
-
url_Ticket: `${
|
|
545
|
-
url_Post: `${
|
|
544
|
+
url_Ticket: `${i}/resources/v1/modeler/documents/files/CheckinTicket`,
|
|
545
|
+
url_Post: `${i}/resources/v1/modeler/documents/?SecurityContext=ctx::${r}`
|
|
546
546
|
};
|
|
547
|
-
if (!
|
|
547
|
+
if (!i && i !== "") {
|
|
548
548
|
console.log("le store._3DSpace est vide");
|
|
549
549
|
return;
|
|
550
550
|
}
|
|
@@ -560,8 +560,8 @@ async function ke(e, t, n, s, i = void 0, r = void 0) {
|
|
|
560
560
|
method: "POST",
|
|
561
561
|
data: d,
|
|
562
562
|
onComplete(T) {
|
|
563
|
-
if (
|
|
564
|
-
const
|
|
563
|
+
if (r !== "" && a !== "") {
|
|
564
|
+
const D = {
|
|
565
565
|
method: "POST",
|
|
566
566
|
headers: {
|
|
567
567
|
ENO_CSRF_TOKEN: a,
|
|
@@ -596,32 +596,32 @@ async function ke(e, t, n, s, i = void 0, r = void 0) {
|
|
|
596
596
|
onComplete: _,
|
|
597
597
|
onFailure: y
|
|
598
598
|
};
|
|
599
|
-
|
|
599
|
+
r !== "" && f(p.url_Post, D);
|
|
600
600
|
} else
|
|
601
601
|
console.warn("le store est vide");
|
|
602
602
|
},
|
|
603
603
|
onFailure: y
|
|
604
604
|
};
|
|
605
605
|
function _(T) {
|
|
606
|
-
console.log("Success -- response ", T.data[0]),
|
|
606
|
+
console.log("Success -- response ", T.data[0]), o && o(T);
|
|
607
607
|
}
|
|
608
|
-
function y(T,
|
|
608
|
+
function y(T, D) {
|
|
609
609
|
console.log("Erreur -- response ", T, `
|
|
610
|
-
headers `,
|
|
610
|
+
headers `, D), c && c(T);
|
|
611
611
|
}
|
|
612
612
|
f(h.ticketURL, S);
|
|
613
613
|
}
|
|
614
614
|
});
|
|
615
615
|
}
|
|
616
|
-
function N(e, t = void 0, n = void 0, s = void 0,
|
|
617
|
-
const
|
|
618
|
-
f(
|
|
616
|
+
function N(e, t = void 0, n = void 0, s = void 0, o = void 0, c = void 0) {
|
|
617
|
+
const i = `${e.space}/resources/modeler/pno/person?current=true&select=preferredcredentials&select=collabspaces`;
|
|
618
|
+
f(i, {
|
|
619
619
|
method: "GET",
|
|
620
620
|
onComplete(a) {
|
|
621
|
-
const
|
|
621
|
+
const r = JSON.parse(a);
|
|
622
622
|
let d = "", l, p, u;
|
|
623
623
|
if (t) {
|
|
624
|
-
let m =
|
|
624
|
+
let m = r.collabspaces.find((g) => g.title === t);
|
|
625
625
|
if (m) {
|
|
626
626
|
l = t;
|
|
627
627
|
let g = m.couples;
|
|
@@ -637,7 +637,7 @@ function N(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0) {
|
|
|
637
637
|
let _ = g.filter(
|
|
638
638
|
(y) => y.role.name === h
|
|
639
639
|
);
|
|
640
|
-
_.length === 1 ? (u = _[0].role.name, p = _[0].organization.title) :
|
|
640
|
+
_.length === 1 ? (u = _[0].role.name, p = _[0].organization.title) : c(_);
|
|
641
641
|
}
|
|
642
642
|
});
|
|
643
643
|
}) : g.forEach((h) => {
|
|
@@ -647,12 +647,12 @@ function N(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0) {
|
|
|
647
647
|
let S = g.filter(
|
|
648
648
|
(_) => _.role.name === n
|
|
649
649
|
);
|
|
650
|
-
S.length === 1 ? (u = S[0].role.name, p = S[0].organization.title) :
|
|
650
|
+
S.length === 1 ? (u = S[0].role.name, p = S[0].organization.title) : c(S);
|
|
651
651
|
}
|
|
652
652
|
}));
|
|
653
653
|
}
|
|
654
654
|
}
|
|
655
|
-
l && p && u ? (d = u + "." + p + "." + l,
|
|
655
|
+
l && p && u ? (d = u + "." + p + "." + l, o(d)) : r.preferredcredentials ? (d = r.preferredcredentials.role.name + "." + r.preferredcredentials.organization.title + "." + r.preferredcredentials.collabspace.title, o(d)) : c && (d = u + "." + p + "." + l, c(d));
|
|
656
656
|
},
|
|
657
657
|
onFailure(a) {
|
|
658
658
|
console.log("Erreur de récupération du contexte de sécurité. => ", a);
|
|
@@ -660,8 +660,8 @@ function N(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0) {
|
|
|
660
660
|
});
|
|
661
661
|
}
|
|
662
662
|
async function I(e, t = void 0, n = void 0, s = void 0) {
|
|
663
|
-
const
|
|
664
|
-
(
|
|
663
|
+
const o = e.objID;
|
|
664
|
+
(o === void 0 || o === "") && console.warn(
|
|
665
665
|
"_3DSpace_download_doc() / Le paramètre objectId est obligatoire"
|
|
666
666
|
), (e.space === "" || !e.space) && console.warn(
|
|
667
667
|
"_3DSpace_download_doc() / Le paramètre space est obligatoire"
|
|
@@ -669,70 +669,70 @@ async function I(e, t = void 0, n = void 0, s = void 0) {
|
|
|
669
669
|
try {
|
|
670
670
|
console.log("_3DSpace_download_doc / credentials", e), U(
|
|
671
671
|
e,
|
|
672
|
-
(
|
|
673
|
-
f(
|
|
672
|
+
(c) => {
|
|
673
|
+
f(c, {
|
|
674
674
|
headers: {
|
|
675
675
|
ENO_CSRF_TOKEN: e.token
|
|
676
676
|
},
|
|
677
|
-
onComplete(
|
|
678
|
-
const a = JSON.parse(
|
|
677
|
+
onComplete(i) {
|
|
678
|
+
const a = JSON.parse(i);
|
|
679
679
|
t && t(a);
|
|
680
680
|
},
|
|
681
|
-
onFailure(
|
|
682
|
-
n && (console.log("error http",
|
|
681
|
+
onFailure(i, a, r) {
|
|
682
|
+
n && (console.log("error http", i), n({ error: i, headers: a, xhr: r }));
|
|
683
683
|
}
|
|
684
684
|
});
|
|
685
685
|
},
|
|
686
|
-
(
|
|
687
|
-
n && n(
|
|
686
|
+
(c) => {
|
|
687
|
+
n && n(c), console.log("*_3dspace_download_doc / error file URL *", c);
|
|
688
688
|
}
|
|
689
689
|
);
|
|
690
|
-
} catch (
|
|
691
|
-
console.log("*_3dspace_download_doc / error file URL *",
|
|
690
|
+
} catch (c) {
|
|
691
|
+
console.log("*_3dspace_download_doc / error file URL *", c);
|
|
692
692
|
}
|
|
693
693
|
}
|
|
694
694
|
async function W(e, t, n = void 0, s = void 0) {
|
|
695
|
-
let
|
|
695
|
+
let o = [];
|
|
696
696
|
for (let a = 0; a < t.length; a += 80) {
|
|
697
|
-
const
|
|
698
|
-
|
|
697
|
+
const r = t.slice(a, a + 80);
|
|
698
|
+
o.push(r);
|
|
699
699
|
}
|
|
700
|
-
const
|
|
700
|
+
const i = (a) => {
|
|
701
701
|
X(
|
|
702
702
|
e,
|
|
703
|
-
|
|
703
|
+
o[a],
|
|
704
704
|
() => {
|
|
705
|
-
a++, a <
|
|
705
|
+
a++, a < o.length && i(a);
|
|
706
706
|
},
|
|
707
|
-
(
|
|
708
|
-
n && n(
|
|
707
|
+
(r) => {
|
|
708
|
+
n && n(r);
|
|
709
709
|
}
|
|
710
710
|
);
|
|
711
711
|
};
|
|
712
|
-
|
|
712
|
+
i(0);
|
|
713
713
|
}
|
|
714
|
-
function X(e, t, n = void 0, s = void 0,
|
|
715
|
-
const
|
|
716
|
-
t.forEach((
|
|
717
|
-
|
|
718
|
-
id:
|
|
714
|
+
function X(e, t, n = void 0, s = void 0, o = void 0) {
|
|
715
|
+
const c = [];
|
|
716
|
+
t.forEach((r) => {
|
|
717
|
+
c.push({
|
|
718
|
+
id: r
|
|
719
719
|
});
|
|
720
720
|
});
|
|
721
|
-
let
|
|
721
|
+
let i = JSON.stringify({
|
|
722
722
|
csrf: {
|
|
723
723
|
name: "ENO_CSRF_TOKEN",
|
|
724
724
|
value: e.token
|
|
725
725
|
},
|
|
726
|
-
data:
|
|
726
|
+
data: c
|
|
727
727
|
});
|
|
728
728
|
const a = `${e.space}/resources/v1/modeler/documents/DownloadTicket?tenant=${e.tenant}&e6w-lang=fr&e6w-timezone=-120`;
|
|
729
729
|
f(a, {
|
|
730
730
|
method: "PUT",
|
|
731
|
-
data:
|
|
731
|
+
data: i,
|
|
732
732
|
type: "json",
|
|
733
|
-
onComplete(
|
|
734
|
-
const d =
|
|
735
|
-
|
|
733
|
+
onComplete(r) {
|
|
734
|
+
const d = r.data;
|
|
735
|
+
r.success === !0 && (n && n(), d.forEach((l) => {
|
|
736
736
|
try {
|
|
737
737
|
const p = l.dataelements.fileName, u = l.dataelements.ticketURL;
|
|
738
738
|
f(u, {
|
|
@@ -748,19 +748,19 @@ function X(e, t, n = void 0, s = void 0, i = void 0) {
|
|
|
748
748
|
}
|
|
749
749
|
});
|
|
750
750
|
} catch (p) {
|
|
751
|
-
console.log(p),
|
|
751
|
+
console.log(p), o && o(p);
|
|
752
752
|
}
|
|
753
753
|
}));
|
|
754
754
|
},
|
|
755
|
-
onFailure(
|
|
756
|
-
console.log(
|
|
755
|
+
onFailure(r) {
|
|
756
|
+
console.log(r), o && o(r);
|
|
757
757
|
}
|
|
758
758
|
});
|
|
759
759
|
}
|
|
760
|
-
function
|
|
761
|
-
return new Promise((
|
|
760
|
+
function ke(e, t, n = void 0, s = void 0) {
|
|
761
|
+
return new Promise((o) => {
|
|
762
762
|
if (e.token === "" && C(e), t !== void 0 && t !== "" && t !== null) {
|
|
763
|
-
const
|
|
763
|
+
const c = `${e.space}/resources/v1/modeler/dslc/maturity/getNextStates`;
|
|
764
764
|
N(
|
|
765
765
|
e.space,
|
|
766
766
|
"ESPACE COMMUN",
|
|
@@ -771,7 +771,7 @@ function Fe(e, t, n = void 0, s = void 0) {
|
|
|
771
771
|
console.log("onError =>", a);
|
|
772
772
|
}
|
|
773
773
|
);
|
|
774
|
-
let
|
|
774
|
+
let i = {
|
|
775
775
|
method: "POST",
|
|
776
776
|
headers: {
|
|
777
777
|
SecurityContext: "ctx::" + e.ctx,
|
|
@@ -794,22 +794,22 @@ function Fe(e, t, n = void 0, s = void 0) {
|
|
|
794
794
|
s && s(a);
|
|
795
795
|
}
|
|
796
796
|
};
|
|
797
|
-
f(
|
|
797
|
+
f(c, i);
|
|
798
798
|
}
|
|
799
799
|
});
|
|
800
800
|
}
|
|
801
|
-
function De(e, t, n, s = void 0,
|
|
802
|
-
return new Promise((
|
|
801
|
+
function De(e, t, n, s = void 0, o = void 0) {
|
|
802
|
+
return new Promise((c) => {
|
|
803
803
|
if (e.token === "" && C(e), t !== void 0 && t !== "" && t !== null) {
|
|
804
|
-
const
|
|
804
|
+
const i = `${e.space}/resources/v1/modeler/dslc/maturity/changeState`;
|
|
805
805
|
N(
|
|
806
806
|
e.space,
|
|
807
807
|
"ESPACE COMMUN",
|
|
808
808
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
809
809
|
void 0,
|
|
810
|
-
(
|
|
811
|
-
(
|
|
812
|
-
console.log("onError =>",
|
|
810
|
+
(r) => e.ctx = r,
|
|
811
|
+
(r) => {
|
|
812
|
+
console.log("onError =>", r);
|
|
813
813
|
}
|
|
814
814
|
);
|
|
815
815
|
let a = {
|
|
@@ -829,21 +829,21 @@ function De(e, t, n, s = void 0, i = void 0) {
|
|
|
829
829
|
]
|
|
830
830
|
}),
|
|
831
831
|
type: "json",
|
|
832
|
-
onComplete(
|
|
833
|
-
s && s(
|
|
832
|
+
onComplete(r) {
|
|
833
|
+
s && s(r);
|
|
834
834
|
},
|
|
835
|
-
onFailure(
|
|
836
|
-
|
|
835
|
+
onFailure(r) {
|
|
836
|
+
o && o(r);
|
|
837
837
|
}
|
|
838
838
|
};
|
|
839
|
-
f(
|
|
839
|
+
f(i, a);
|
|
840
840
|
}
|
|
841
841
|
});
|
|
842
842
|
}
|
|
843
|
-
function
|
|
844
|
-
return new Promise((
|
|
843
|
+
function Fe(e, t, n = void 0, s = void 0) {
|
|
844
|
+
return new Promise((o) => {
|
|
845
845
|
if (e.token === "" && C(e), t !== void 0 && t !== "" && t !== null) {
|
|
846
|
-
const
|
|
846
|
+
const c = `${e.space}/resources/v1/dslc/versiongraph?withThumbnail=0&withIsLastVersion=0&withAttributes=0&withCopyFrom=0&tenant=${e.tenant}`;
|
|
847
847
|
N(
|
|
848
848
|
e.space,
|
|
849
849
|
"ESPACE COMMUN",
|
|
@@ -854,7 +854,7 @@ function Ue(e, t, n = void 0, s = void 0) {
|
|
|
854
854
|
console.log("onError =>", a);
|
|
855
855
|
}
|
|
856
856
|
);
|
|
857
|
-
let
|
|
857
|
+
let i = {
|
|
858
858
|
method: "POST",
|
|
859
859
|
headers: {
|
|
860
860
|
securitycontext: "ctx::" + e.ctx,
|
|
@@ -877,14 +877,14 @@ function Ue(e, t, n = void 0, s = void 0) {
|
|
|
877
877
|
s && s(a);
|
|
878
878
|
}
|
|
879
879
|
};
|
|
880
|
-
f(
|
|
880
|
+
f(c, i);
|
|
881
881
|
}
|
|
882
882
|
});
|
|
883
883
|
}
|
|
884
|
-
function
|
|
885
|
-
return new Promise((
|
|
884
|
+
function Ue(e, t, n = void 0, s = void 0) {
|
|
885
|
+
return new Promise((o) => {
|
|
886
886
|
if (e.token === "" && C(e), t !== void 0 && t !== "" && t !== null) {
|
|
887
|
-
const
|
|
887
|
+
const c = `${e.space}/resources/lifecycle/revise/prepare_revise_maskattributes?tenant=${e.tenant}`;
|
|
888
888
|
N(
|
|
889
889
|
e.space,
|
|
890
890
|
"ESPACE COMMUN",
|
|
@@ -895,7 +895,7 @@ function $e(e, t, n = void 0, s = void 0) {
|
|
|
895
895
|
console.log("onError =>", a);
|
|
896
896
|
}
|
|
897
897
|
);
|
|
898
|
-
let
|
|
898
|
+
let i = {
|
|
899
899
|
method: "POST",
|
|
900
900
|
headers: {
|
|
901
901
|
SecurityContext: "ctx::" + e.ctx,
|
|
@@ -924,22 +924,22 @@ function $e(e, t, n = void 0, s = void 0) {
|
|
|
924
924
|
s && s(a);
|
|
925
925
|
}
|
|
926
926
|
};
|
|
927
|
-
f(
|
|
927
|
+
f(c, i);
|
|
928
928
|
}
|
|
929
929
|
});
|
|
930
930
|
}
|
|
931
|
-
function
|
|
932
|
-
return new Promise((
|
|
931
|
+
function $e(e, t, n, s = void 0, o = void 0) {
|
|
932
|
+
return new Promise((c) => {
|
|
933
933
|
if (e.token === "" && C(e), t !== void 0 && t !== "" && t !== null) {
|
|
934
|
-
const
|
|
934
|
+
const i = `${e.space}/resources/lifecycle/revise/major?tenant=${e.tenant}`;
|
|
935
935
|
N(
|
|
936
936
|
e.space,
|
|
937
937
|
"ESPACE COMMUN",
|
|
938
938
|
["VPLMProjectLeader", "VPLMCreator"],
|
|
939
939
|
void 0,
|
|
940
|
-
(
|
|
941
|
-
(
|
|
942
|
-
console.log("onError =>",
|
|
940
|
+
(r) => e.ctx = r,
|
|
941
|
+
(r) => {
|
|
942
|
+
console.log("onError =>", r);
|
|
943
943
|
}
|
|
944
944
|
);
|
|
945
945
|
let a = {
|
|
@@ -964,97 +964,97 @@ function je(e, t, n, s = void 0, i = void 0) {
|
|
|
964
964
|
notificationTimeout: 600
|
|
965
965
|
}),
|
|
966
966
|
type: "json",
|
|
967
|
-
onComplete(
|
|
968
|
-
s && s(
|
|
967
|
+
onComplete(r) {
|
|
968
|
+
s && s(r);
|
|
969
969
|
},
|
|
970
|
-
onFailure(
|
|
971
|
-
|
|
970
|
+
onFailure(r) {
|
|
971
|
+
o && o(r);
|
|
972
972
|
}
|
|
973
973
|
};
|
|
974
|
-
f(
|
|
974
|
+
f(i, a);
|
|
975
975
|
}
|
|
976
976
|
});
|
|
977
977
|
}
|
|
978
978
|
//!SECTION
|
|
979
|
-
async function
|
|
979
|
+
async function je(e, t, n) {
|
|
980
980
|
const s = `${e.space}/resources/v1/application/CSRF`;
|
|
981
981
|
f(s, {
|
|
982
|
-
onComplete(
|
|
983
|
-
|
|
982
|
+
onComplete(o) {
|
|
983
|
+
o = JSON.parse(o), t && t(o.csrf);
|
|
984
984
|
},
|
|
985
|
-
onFailure(
|
|
986
|
-
n && n({ error:
|
|
985
|
+
onFailure(o, c, i) {
|
|
986
|
+
n && n({ error: o, headers: c, xhr: i });
|
|
987
987
|
}
|
|
988
988
|
});
|
|
989
989
|
}
|
|
990
|
-
function
|
|
990
|
+
function Ae(e, t = void 0, n = void 0) {
|
|
991
991
|
const s = {
|
|
992
992
|
base: `${e.space}`,
|
|
993
993
|
uri: "/resources/bps/cspaces",
|
|
994
994
|
optTenant: `tenant=${e.tenant}`
|
|
995
|
-
},
|
|
996
|
-
f(
|
|
995
|
+
}, o = `${s.base}${s.uri}?${s.optTenant}`;
|
|
996
|
+
f(o, {
|
|
997
997
|
method: "GET",
|
|
998
998
|
headers: {
|
|
999
999
|
Accept: "application/json,text/javascript,*/*",
|
|
1000
1000
|
"Content-Type": "application/ds-json"
|
|
1001
1001
|
},
|
|
1002
|
-
onComplete(
|
|
1003
|
-
const a = JSON.parse(
|
|
1004
|
-
t && t(a,
|
|
1002
|
+
onComplete(c, i) {
|
|
1003
|
+
const a = JSON.parse(c);
|
|
1004
|
+
t && t(a, i);
|
|
1005
1005
|
},
|
|
1006
|
-
onFailure(
|
|
1007
|
-
n && n({ response:
|
|
1006
|
+
onFailure(c, i, a) {
|
|
1007
|
+
n && n({ response: c, headers: i, xhr: a });
|
|
1008
1008
|
}
|
|
1009
1009
|
});
|
|
1010
1010
|
}
|
|
1011
|
-
function
|
|
1011
|
+
function Re(e, t, n, s) {
|
|
1012
1012
|
U(
|
|
1013
1013
|
e.space,
|
|
1014
1014
|
t,
|
|
1015
|
-
(
|
|
1016
|
-
f(
|
|
1015
|
+
(o) => {
|
|
1016
|
+
f(o, {
|
|
1017
1017
|
header: { ENO_CSRF_TOKEN: e.token },
|
|
1018
|
-
onComplete: (
|
|
1019
|
-
n && n(
|
|
1018
|
+
onComplete: (c) => {
|
|
1019
|
+
n && n(c);
|
|
1020
1020
|
},
|
|
1021
|
-
onFailure: (
|
|
1022
|
-
console.log("error http",
|
|
1021
|
+
onFailure: (c) => {
|
|
1022
|
+
console.log("error http", c), s && s(c);
|
|
1023
1023
|
}
|
|
1024
1024
|
});
|
|
1025
1025
|
}
|
|
1026
1026
|
);
|
|
1027
1027
|
}
|
|
1028
|
-
async function
|
|
1029
|
-
return new Promise((
|
|
1030
|
-
U(e.space, t, (
|
|
1031
|
-
f(
|
|
1032
|
-
onComplete: (
|
|
1033
|
-
onFailure: (
|
|
1034
|
-
s && s(
|
|
1028
|
+
async function Ie(e, t, n = void 0, s = void 0) {
|
|
1029
|
+
return new Promise((o) => {
|
|
1030
|
+
U(e.space, t, (c) => {
|
|
1031
|
+
f(c, {
|
|
1032
|
+
onComplete: (i, a, r) => (o(JSON.parse(i)), n && n(JSON.parse(i), a, r), o),
|
|
1033
|
+
onFailure: (i, a, r) => {
|
|
1034
|
+
s && s(i, a, r), console.log(i, a?.errormsg);
|
|
1035
1035
|
}
|
|
1036
1036
|
});
|
|
1037
1037
|
});
|
|
1038
1038
|
});
|
|
1039
1039
|
}
|
|
1040
|
-
function
|
|
1041
|
-
const
|
|
1040
|
+
function ve(e, t, n, s = void 0, o = void 0) {
|
|
1041
|
+
const c = new Blob([JSON.stringify(t)], { type: "text/plain" });
|
|
1042
1042
|
k(
|
|
1043
1043
|
e,
|
|
1044
1044
|
n,
|
|
1045
|
-
(
|
|
1046
|
-
const a =
|
|
1045
|
+
(i) => {
|
|
1046
|
+
const a = i.data[0].relateddata.files[0].id, r = i.data[0].dataelements.secondaryTitle !== "" ? i.data[0].dataelements.secondaryTitle : i.data[0].dataelements.title;
|
|
1047
1047
|
G(
|
|
1048
1048
|
e,
|
|
1049
1049
|
n,
|
|
1050
1050
|
a,
|
|
1051
|
-
r,
|
|
1052
1051
|
c,
|
|
1052
|
+
r,
|
|
1053
1053
|
(d) => {
|
|
1054
1054
|
s && s(d);
|
|
1055
1055
|
},
|
|
1056
1056
|
(d) => {
|
|
1057
|
-
|
|
1057
|
+
o && o(d);
|
|
1058
1058
|
}
|
|
1059
1059
|
);
|
|
1060
1060
|
}
|
|
@@ -1062,7 +1062,7 @@ function xe(e, t, n, s = void 0, i = void 0) {
|
|
|
1062
1062
|
}
|
|
1063
1063
|
let v, x;
|
|
1064
1064
|
const $ = [];
|
|
1065
|
-
async function
|
|
1065
|
+
async function xe(e, t = void 0, n = void 0) {
|
|
1066
1066
|
e.objID && e.objID !== "" ? (console.log("obj est présent"), k(
|
|
1067
1067
|
e,
|
|
1068
1068
|
(s) => {
|
|
@@ -1081,55 +1081,47 @@ async function Pe(e, t = void 0, n = void 0) {
|
|
|
1081
1081
|
}
|
|
1082
1082
|
);
|
|
1083
1083
|
}
|
|
1084
|
-
async function
|
|
1084
|
+
async function Pe(e, t = void 0, n = void 0) {
|
|
1085
1085
|
console.log("getDatasByTenant (getDocuments)", e), await I(
|
|
1086
1086
|
e,
|
|
1087
1087
|
(s) => {
|
|
1088
|
-
const
|
|
1089
|
-
|
|
1090
|
-
e,
|
|
1091
|
-
(r) => {
|
|
1092
|
-
i.datas = r, t && t(i);
|
|
1093
|
-
},
|
|
1094
|
-
(r) => {
|
|
1095
|
-
n && n(r);
|
|
1096
|
-
}
|
|
1097
|
-
);
|
|
1088
|
+
const o = {};
|
|
1089
|
+
o.obj = s, console.log("getDatasByTenant (getDocuments) _datas", o), t && t(o);
|
|
1098
1090
|
},
|
|
1099
1091
|
(s) => {
|
|
1100
1092
|
n && n(s);
|
|
1101
1093
|
}
|
|
1102
1094
|
);
|
|
1103
1095
|
}
|
|
1104
|
-
function
|
|
1096
|
+
function Me(e, t = void 0, n = void 0) {
|
|
1105
1097
|
const s = [];
|
|
1106
|
-
e.objIds.forEach((
|
|
1098
|
+
e.objIds.forEach((o, c) => {
|
|
1107
1099
|
I(
|
|
1108
1100
|
e,
|
|
1109
|
-
|
|
1110
|
-
(
|
|
1111
|
-
s.push({ [
|
|
1101
|
+
o.objId,
|
|
1102
|
+
(i) => {
|
|
1103
|
+
s.push({ [o.name]: i }), o.name === "dbProjets" && (v = i.affaires.map((a) => a.objectID), V(e, x)), c === e.objIds.length - 1 && t && t(s);
|
|
1112
1104
|
},
|
|
1113
|
-
(
|
|
1114
|
-
n && n(
|
|
1105
|
+
(i) => {
|
|
1106
|
+
n && n(i);
|
|
1115
1107
|
}
|
|
1116
1108
|
);
|
|
1117
1109
|
});
|
|
1118
1110
|
}
|
|
1119
|
-
function
|
|
1111
|
+
function V(e, t, n = void 0, s = void 0) {
|
|
1120
1112
|
W(
|
|
1121
1113
|
e,
|
|
1122
1114
|
v,
|
|
1123
|
-
(
|
|
1124
|
-
const
|
|
1125
|
-
|
|
1115
|
+
(o) => {
|
|
1116
|
+
const c = [...t];
|
|
1117
|
+
c.find((i) => i.objectID === o.objectId).data = o.data, x = c, $.push(o.data), n && n($);
|
|
1126
1118
|
},
|
|
1127
|
-
(
|
|
1128
|
-
s && (s(
|
|
1119
|
+
(o) => {
|
|
1120
|
+
s && (s(o), console.log(o));
|
|
1129
1121
|
}
|
|
1130
1122
|
);
|
|
1131
1123
|
}
|
|
1132
|
-
const
|
|
1124
|
+
const B = "FA35FB9B177A280065800EA0000F599C", Y = [
|
|
1133
1125
|
"swym",
|
|
1134
1126
|
"3dspace",
|
|
1135
1127
|
"drive",
|
|
@@ -1143,28 +1135,28 @@ const Y = "FA35FB9B177A280065800EA0000F599C", H = [
|
|
|
1143
1135
|
where: "ds6w:where",
|
|
1144
1136
|
who: "ds6w:who",
|
|
1145
1137
|
why: "ds6w:why"
|
|
1146
|
-
},
|
|
1147
|
-
objId:
|
|
1138
|
+
}, H = {
|
|
1139
|
+
objId: B,
|
|
1148
1140
|
pred: "who",
|
|
1149
1141
|
order_by: "desc",
|
|
1150
1142
|
tag: "testTag"
|
|
1151
1143
|
};
|
|
1152
1144
|
function Le(e, t, n = void 0, s = void 0) {
|
|
1153
|
-
const { space:
|
|
1145
|
+
const { space: o, tenant: c } = e, { objId: i, pred: a, tag: r } = t, d = {
|
|
1154
1146
|
uri: "/resources/6w/tags",
|
|
1155
1147
|
otpCTX: "SecurityContext=preferred",
|
|
1156
|
-
optTenant: `tenant=${
|
|
1157
|
-
}, l = `${
|
|
1148
|
+
optTenant: `tenant=${c}`
|
|
1149
|
+
}, l = `${o}${d.uri}?${d.otpCTX}&${d.optTenant}`, p = {
|
|
1158
1150
|
tag: [
|
|
1159
1151
|
{
|
|
1160
1152
|
subject: [
|
|
1161
1153
|
{
|
|
1162
|
-
uri: `pid://${
|
|
1154
|
+
uri: `pid://${i}`
|
|
1163
1155
|
}
|
|
1164
1156
|
],
|
|
1165
1157
|
predicate: P[a],
|
|
1166
1158
|
object: {
|
|
1167
|
-
literal:
|
|
1159
|
+
literal: r
|
|
1168
1160
|
}
|
|
1169
1161
|
}
|
|
1170
1162
|
]
|
|
@@ -1182,10 +1174,10 @@ function Le(e, t, n = void 0, s = void 0) {
|
|
|
1182
1174
|
setTimeout(() => {
|
|
1183
1175
|
J(
|
|
1184
1176
|
e,
|
|
1185
|
-
|
|
1177
|
+
i,
|
|
1186
1178
|
(g) => {
|
|
1187
1179
|
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;
|
|
1188
|
-
m.name = h, m.ext = S, m.createBy = _, t.info = { ...m },
|
|
1180
|
+
m.name = h, m.ext = S, m.createBy = _, t.info = { ...m }, z(
|
|
1189
1181
|
e,
|
|
1190
1182
|
t,
|
|
1191
1183
|
(y) => {
|
|
@@ -1209,19 +1201,19 @@ function Le(e, t, n = void 0, s = void 0) {
|
|
|
1209
1201
|
}
|
|
1210
1202
|
});
|
|
1211
1203
|
}
|
|
1212
|
-
function
|
|
1204
|
+
function z(e, t, n = void 0, s = void 0) {
|
|
1213
1205
|
console.log("obj ", t);
|
|
1214
|
-
const
|
|
1206
|
+
const o = t.info.name, c = {
|
|
1215
1207
|
baseUrl: `https://${e.tenant.toLowerCase()}-eu1-fedsearch.3dexperience.3ds.com`,
|
|
1216
1208
|
uri: "/federated/search"
|
|
1217
|
-
},
|
|
1209
|
+
}, i = `${c.baseUrl}${c.uri}`, a = {
|
|
1218
1210
|
"Content-Type": "application/json",
|
|
1219
1211
|
Accept: "application/json,text/javascript,*/*"
|
|
1220
|
-
},
|
|
1212
|
+
}, r = R(), d = {
|
|
1221
1213
|
with_indexing_date: !0,
|
|
1222
1214
|
with_synthesis: !0,
|
|
1223
1215
|
with_nls: !1,
|
|
1224
|
-
label: `3DSearch-${e.currentUser.username}-AjoutDeTagBeam-${
|
|
1216
|
+
label: `3DSearch-${e.currentUser.username}-AjoutDeTagBeam-${r}`,
|
|
1225
1217
|
locale: "fr",
|
|
1226
1218
|
select_predicate: [
|
|
1227
1219
|
"ds6w:label",
|
|
@@ -1249,7 +1241,7 @@ function q(e, t, n = void 0, s = void 0) {
|
|
|
1249
1241
|
],
|
|
1250
1242
|
with_synthesis_hierarchical: !0,
|
|
1251
1243
|
select_file: ["icon", "thumbnail_2d"],
|
|
1252
|
-
query:
|
|
1244
|
+
query: o,
|
|
1253
1245
|
specific_source_parameter: {
|
|
1254
1246
|
"3dspace": {
|
|
1255
1247
|
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)'
|
|
@@ -1259,7 +1251,7 @@ function q(e, t, n = void 0, s = void 0) {
|
|
|
1259
1251
|
}
|
|
1260
1252
|
},
|
|
1261
1253
|
select_exclude_synthesis: ["ds6w:what/ds6w:topic"],
|
|
1262
|
-
order_by:
|
|
1254
|
+
order_by: H.order_by,
|
|
1263
1255
|
order_field: "relevance",
|
|
1264
1256
|
select_snippets: [
|
|
1265
1257
|
"ds6w:snippet",
|
|
@@ -1270,7 +1262,7 @@ function q(e, t, n = void 0, s = void 0) {
|
|
|
1270
1262
|
],
|
|
1271
1263
|
nresults: 40,
|
|
1272
1264
|
start: "0",
|
|
1273
|
-
source:
|
|
1265
|
+
source: Y,
|
|
1274
1266
|
tenant: e.tenant,
|
|
1275
1267
|
login: {
|
|
1276
1268
|
"3dspace": {
|
|
@@ -1278,7 +1270,7 @@ function q(e, t, n = void 0, s = void 0) {
|
|
|
1278
1270
|
}
|
|
1279
1271
|
}
|
|
1280
1272
|
};
|
|
1281
|
-
console.log("dataPattern => ", d), f(
|
|
1273
|
+
console.log("dataPattern => ", d), f(i, {
|
|
1282
1274
|
method: "POST",
|
|
1283
1275
|
headers: a,
|
|
1284
1276
|
data: JSON.stringify(d),
|
|
@@ -1293,26 +1285,26 @@ function q(e, t, n = void 0, s = void 0) {
|
|
|
1293
1285
|
});
|
|
1294
1286
|
}
|
|
1295
1287
|
function Ee(e, t, n = void 0, s = void 0) {
|
|
1296
|
-
const { objId:
|
|
1288
|
+
const { objId: o, pred: c, tag: i } = t, a = {
|
|
1297
1289
|
uri: "/resources/6w/tags",
|
|
1298
1290
|
otpCTX: "SecurityContext=preferred",
|
|
1299
1291
|
optTenant: `tenant=${e.tenant}`
|
|
1300
|
-
},
|
|
1292
|
+
}, r = `${e.space}${a.uri}?${a.otpCTX}&${a.optTenant}`, d = {
|
|
1301
1293
|
tag: [
|
|
1302
1294
|
{
|
|
1303
1295
|
subject: [
|
|
1304
1296
|
{
|
|
1305
|
-
uri: `pid://${
|
|
1297
|
+
uri: `pid://${o}`
|
|
1306
1298
|
}
|
|
1307
1299
|
],
|
|
1308
|
-
predicate: P[
|
|
1300
|
+
predicate: P[c],
|
|
1309
1301
|
object: {
|
|
1310
|
-
literal:
|
|
1302
|
+
literal: i
|
|
1311
1303
|
}
|
|
1312
1304
|
}
|
|
1313
1305
|
]
|
|
1314
1306
|
};
|
|
1315
|
-
f(
|
|
1307
|
+
f(r, {
|
|
1316
1308
|
method: "DELETE",
|
|
1317
1309
|
data: JSON.stringify(d),
|
|
1318
1310
|
headers: {
|
|
@@ -1329,19 +1321,19 @@ function Ee(e, t, n = void 0, s = void 0) {
|
|
|
1329
1321
|
});
|
|
1330
1322
|
}
|
|
1331
1323
|
function Je(e, t = "", n = void 0, s = void 0) {
|
|
1332
|
-
const { space:
|
|
1324
|
+
const { space: o } = e;
|
|
1333
1325
|
if (t === "")
|
|
1334
1326
|
return;
|
|
1335
|
-
const
|
|
1327
|
+
const c = {
|
|
1336
1328
|
uri: "/enovia/resources/v1/modeler/documents"
|
|
1337
|
-
},
|
|
1329
|
+
}, i = {
|
|
1338
1330
|
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
|
|
1339
1331
|
Accept: "application/json,text/javascript,*/*"
|
|
1340
|
-
}, a = `${
|
|
1332
|
+
}, a = `${o}${c.uri}`, r = `$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}`;
|
|
1341
1333
|
f(a, {
|
|
1342
1334
|
method: "POST",
|
|
1343
|
-
headers:
|
|
1344
|
-
data:
|
|
1335
|
+
headers: i,
|
|
1336
|
+
data: r,
|
|
1345
1337
|
onComplete(d) {
|
|
1346
1338
|
n && n(JSON.parse(d));
|
|
1347
1339
|
},
|
|
@@ -1354,18 +1346,18 @@ function Je(e, t = "", n = void 0, s = void 0) {
|
|
|
1354
1346
|
async function w(e, t = void 0, n = void 0) {
|
|
1355
1347
|
const s = e.space + "/api/index/tk";
|
|
1356
1348
|
return f(s, {
|
|
1357
|
-
onComplete(
|
|
1358
|
-
const a = JSON.parse(
|
|
1349
|
+
onComplete(o, c, i) {
|
|
1350
|
+
const a = JSON.parse(o);
|
|
1359
1351
|
if (t)
|
|
1360
1352
|
return t(a), e.token = a?.result?.ServerToken;
|
|
1361
1353
|
},
|
|
1362
|
-
onFailure(
|
|
1363
|
-
n && n(
|
|
1354
|
+
onFailure(o) {
|
|
1355
|
+
n && n(o);
|
|
1364
1356
|
}
|
|
1365
1357
|
});
|
|
1366
1358
|
}
|
|
1367
1359
|
function Ge(e, t = void 0, n = void 0) {
|
|
1368
|
-
const s = `${e.space}/api/exalead/whatsnew`,
|
|
1360
|
+
const s = `${e.space}/api/exalead/whatsnew`, o = {
|
|
1369
1361
|
params: {
|
|
1370
1362
|
community_id: null,
|
|
1371
1363
|
hash_key: null,
|
|
@@ -1375,27 +1367,27 @@ function Ge(e, t = void 0, n = void 0) {
|
|
|
1375
1367
|
start: 0
|
|
1376
1368
|
}
|
|
1377
1369
|
};
|
|
1378
|
-
w(e, (
|
|
1370
|
+
w(e, (c) => {
|
|
1379
1371
|
f(s, {
|
|
1380
1372
|
method: "POST",
|
|
1381
1373
|
headers: {
|
|
1382
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1374
|
+
"X-DS-SWYM-CSRFTOKEN": c.result.ServerToken,
|
|
1383
1375
|
"Content-type": "application/json;charset=UTF-8",
|
|
1384
1376
|
Accept: "application/json"
|
|
1385
1377
|
},
|
|
1386
|
-
data: JSON.stringify(
|
|
1378
|
+
data: JSON.stringify(o),
|
|
1387
1379
|
type: "json",
|
|
1388
|
-
onComplete(
|
|
1389
|
-
t && t(
|
|
1380
|
+
onComplete(i, a) {
|
|
1381
|
+
t && t(i, a);
|
|
1390
1382
|
},
|
|
1391
|
-
onFailure(
|
|
1392
|
-
n && n(
|
|
1383
|
+
onFailure(i, a) {
|
|
1384
|
+
n && n(i, a);
|
|
1393
1385
|
}
|
|
1394
1386
|
});
|
|
1395
1387
|
});
|
|
1396
1388
|
}
|
|
1397
1389
|
function Ke(e, t = void 0, n = void 0) {
|
|
1398
|
-
const s = `${e.space}/api/Recommendation/getpeoplefamiliartocurrentuser`,
|
|
1390
|
+
const s = `${e.space}/api/Recommendation/getpeoplefamiliartocurrentuser`, o = {
|
|
1399
1391
|
params: {
|
|
1400
1392
|
idsToFilterArr: [],
|
|
1401
1393
|
mode: "offline",
|
|
@@ -1404,22 +1396,22 @@ function Ke(e, t = void 0, n = void 0) {
|
|
|
1404
1396
|
maxNbOfCommonElements: "5"
|
|
1405
1397
|
}
|
|
1406
1398
|
};
|
|
1407
|
-
w(e, (
|
|
1399
|
+
w(e, (c) => {
|
|
1408
1400
|
f(s, {
|
|
1409
1401
|
method: "POST",
|
|
1410
1402
|
headers: {
|
|
1411
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1403
|
+
"X-DS-SWYM-CSRFTOKEN": c.result.ServerToken,
|
|
1412
1404
|
"Content-type": "application/json;charset=UTF-8",
|
|
1413
1405
|
Accept: "application/json"
|
|
1414
1406
|
},
|
|
1415
|
-
data: JSON.stringify(
|
|
1407
|
+
data: JSON.stringify(o),
|
|
1416
1408
|
type: "json",
|
|
1417
|
-
onComplete(
|
|
1418
|
-
const
|
|
1419
|
-
t && t(
|
|
1409
|
+
onComplete(i, a) {
|
|
1410
|
+
const r = i.result.hits.map((d) => ({ login: d.login, fullName: d.name }));
|
|
1411
|
+
t && t(r, i);
|
|
1420
1412
|
},
|
|
1421
|
-
onFailure(
|
|
1422
|
-
n && n(
|
|
1413
|
+
onFailure(i, a) {
|
|
1414
|
+
n && n(i, a);
|
|
1423
1415
|
}
|
|
1424
1416
|
});
|
|
1425
1417
|
});
|
|
@@ -1430,14 +1422,14 @@ function We(e, t = void 0, n = void 0) {
|
|
|
1430
1422
|
uri: "/api/community/listmycommunities",
|
|
1431
1423
|
limit: `/limit/${e.limit ? e.limit : 128}`,
|
|
1432
1424
|
page: `/page/${e.page ? e.page : "1"}`
|
|
1433
|
-
},
|
|
1434
|
-
w(e, (
|
|
1435
|
-
f(
|
|
1425
|
+
}, o = `${s.base}${s.uri}${s.limit}${s.page}`, c = [];
|
|
1426
|
+
w(e, (i) => {
|
|
1427
|
+
f(o, {
|
|
1436
1428
|
method: "GET",
|
|
1437
1429
|
headers: {
|
|
1438
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1430
|
+
"X-DS-SWYM-CSRFTOKEN": i.result.ServerToken
|
|
1439
1431
|
},
|
|
1440
|
-
onComplete(a,
|
|
1432
|
+
onComplete(a, r, d) {
|
|
1441
1433
|
const p = JSON.parse(a).result;
|
|
1442
1434
|
let u = 0;
|
|
1443
1435
|
p.forEach((m) => {
|
|
@@ -1449,47 +1441,47 @@ function We(e, t = void 0, n = void 0) {
|
|
|
1449
1441
|
role: m.role,
|
|
1450
1442
|
access: m.access
|
|
1451
1443
|
};
|
|
1452
|
-
|
|
1444
|
+
q(
|
|
1453
1445
|
e,
|
|
1454
1446
|
m.id,
|
|
1455
1447
|
(h) => {
|
|
1456
|
-
u++, g.members = h,
|
|
1448
|
+
u++, g.members = h, c.push(g), u === p.length && t && t(c);
|
|
1457
1449
|
},
|
|
1458
1450
|
(h) => n(h)
|
|
1459
1451
|
);
|
|
1460
1452
|
});
|
|
1461
1453
|
},
|
|
1462
|
-
onFailure(a,
|
|
1454
|
+
onFailure(a, r) {
|
|
1463
1455
|
const d = a;
|
|
1464
|
-
d.status =
|
|
1456
|
+
d.status = r.status, d.response = r.errormsg, n && n(d);
|
|
1465
1457
|
}
|
|
1466
1458
|
});
|
|
1467
1459
|
});
|
|
1468
1460
|
}
|
|
1469
|
-
function
|
|
1470
|
-
const
|
|
1461
|
+
function q(e, t, n, s) {
|
|
1462
|
+
const o = `${e.space}/api/community/listmembers`, c = {
|
|
1471
1463
|
params: {
|
|
1472
1464
|
page: e.page ? e.page : 1,
|
|
1473
1465
|
limit: e.limit ? e.limit : 50,
|
|
1474
1466
|
community_id: t
|
|
1475
1467
|
}
|
|
1476
1468
|
};
|
|
1477
|
-
w(e, (
|
|
1478
|
-
f(
|
|
1469
|
+
w(e, (i) => {
|
|
1470
|
+
f(o, {
|
|
1479
1471
|
method: "POST",
|
|
1480
1472
|
headers: {
|
|
1481
1473
|
"Content-type": "application/json;charset=UTF-8",
|
|
1482
1474
|
Accept: "application/json",
|
|
1483
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1475
|
+
"X-DS-SWYM-CSRFTOKEN": i.result.ServerToken
|
|
1484
1476
|
},
|
|
1485
|
-
data: JSON.stringify(
|
|
1477
|
+
data: JSON.stringify(c),
|
|
1486
1478
|
type: "json",
|
|
1487
|
-
onComplete(a,
|
|
1479
|
+
onComplete(a, r, d) {
|
|
1488
1480
|
n && n(a);
|
|
1489
1481
|
},
|
|
1490
|
-
onFailure(a,
|
|
1482
|
+
onFailure(a, r) {
|
|
1491
1483
|
const d = a;
|
|
1492
|
-
d.status =
|
|
1484
|
+
d.status = r.status, d.response = r.errormsg, s && s(d);
|
|
1493
1485
|
}
|
|
1494
1486
|
});
|
|
1495
1487
|
});
|
|
@@ -1497,49 +1489,49 @@ function Q(e, t, n, s) {
|
|
|
1497
1489
|
function Xe(e, t = void 0, n = void 0) {
|
|
1498
1490
|
const s = "YXdA5x4DSUKtlAi2wmnyTA";
|
|
1499
1491
|
e.commu_id || (e.commu_id = s);
|
|
1500
|
-
const
|
|
1501
|
-
w(e, (
|
|
1502
|
-
f(
|
|
1492
|
+
const o = `${e.space}/api/v2/communities/${e.commu_id}/ideas/statuses`;
|
|
1493
|
+
w(e, (c) => {
|
|
1494
|
+
f(o, {
|
|
1503
1495
|
method: "GET",
|
|
1504
1496
|
headers: {
|
|
1505
1497
|
"Content-type": "application/json;charset=UTF-8",
|
|
1506
1498
|
Accept: "application/json",
|
|
1507
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1499
|
+
"X-DS-SWYM-CSRFTOKEN": c.result.ServerToken
|
|
1508
1500
|
},
|
|
1509
|
-
onComplete(
|
|
1510
|
-
const a = JSON.parse(
|
|
1501
|
+
onComplete(i) {
|
|
1502
|
+
const a = JSON.parse(i);
|
|
1511
1503
|
t && t(a);
|
|
1512
1504
|
},
|
|
1513
|
-
onFailure(
|
|
1514
|
-
const
|
|
1515
|
-
|
|
1505
|
+
onFailure(i, a) {
|
|
1506
|
+
const r = i;
|
|
1507
|
+
r.status = a.status, r.response = a.errormsg, n && n(r);
|
|
1516
1508
|
}
|
|
1517
1509
|
});
|
|
1518
1510
|
});
|
|
1519
1511
|
}
|
|
1520
1512
|
function Ve(e, t, n = void 0, s = void 0) {
|
|
1521
|
-
const { listAllContacts:
|
|
1522
|
-
console.log("__listAllContacts",
|
|
1523
|
-
const
|
|
1524
|
-
users: [
|
|
1525
|
-
},
|
|
1513
|
+
const { listAllContacts: o, currentUser: c } = e;
|
|
1514
|
+
console.log("__listAllContacts", o.hits);
|
|
1515
|
+
const i = `${e.space}/api/directmessages`, a = {
|
|
1516
|
+
users: [c.login].concat(t.receipt)
|
|
1517
|
+
}, r = {
|
|
1526
1518
|
id_msg: "",
|
|
1527
1519
|
senderId: e.currentUser.login,
|
|
1528
1520
|
senderName: `${e.currentUser.first_name} ${e.currentUser.last_name}`,
|
|
1529
|
-
msg:
|
|
1521
|
+
msg: Z(t.msg)
|
|
1530
1522
|
};
|
|
1531
1523
|
let d = !1;
|
|
1532
|
-
|
|
1524
|
+
Q(
|
|
1533
1525
|
a.users,
|
|
1534
1526
|
(l) => {
|
|
1535
|
-
l !== void 0 && (
|
|
1527
|
+
l !== void 0 && (r.id_msg = l.id, d = !0, j(e, r));
|
|
1536
1528
|
},
|
|
1537
1529
|
(l) => {
|
|
1538
|
-
d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", l), s && s(l),
|
|
1530
|
+
d = !1, console.log("_3dSwym_findCommunityToInstantMSG callback", l), s && s(l), r.id_msg = "";
|
|
1539
1531
|
}
|
|
1540
1532
|
), d === !1 && setTimeout(() => {
|
|
1541
1533
|
d === !1 && w(e, (l) => {
|
|
1542
|
-
f(
|
|
1534
|
+
f(i, {
|
|
1543
1535
|
method: "POST",
|
|
1544
1536
|
headers: {
|
|
1545
1537
|
"Content-Type": "application/json",
|
|
@@ -1550,7 +1542,7 @@ function Ve(e, t, n = void 0, s = void 0) {
|
|
|
1550
1542
|
type: "json",
|
|
1551
1543
|
onComplete(p, u, m) {
|
|
1552
1544
|
const g = p;
|
|
1553
|
-
g.reponse = JSON.parse(m.response), g.status = m.status, n && n(g),
|
|
1545
|
+
g.reponse = JSON.parse(m.response), g.status = m.status, n && n(g), r.id_msg = g.result.id, j(e, r);
|
|
1554
1546
|
},
|
|
1555
1547
|
onFailure(p, u, m) {
|
|
1556
1548
|
const g = p;
|
|
@@ -1560,21 +1552,21 @@ function Ve(e, t, n = void 0, s = void 0) {
|
|
|
1560
1552
|
});
|
|
1561
1553
|
}, 500);
|
|
1562
1554
|
}
|
|
1563
|
-
function
|
|
1564
|
-
const
|
|
1565
|
-
w(e, (
|
|
1566
|
-
f(
|
|
1555
|
+
function Q(e, t, n, s) {
|
|
1556
|
+
const o = `${e.space}/api/directmessages/lite?with_favorites=false`;
|
|
1557
|
+
w(e, (c) => {
|
|
1558
|
+
f(o, {
|
|
1567
1559
|
method: "GET",
|
|
1568
1560
|
headers: {
|
|
1569
1561
|
Accept: "application/json,text/javascript,*/*",
|
|
1570
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1562
|
+
"X-DS-SWYM-CSRFTOKEN": c.result.ServerToken
|
|
1571
1563
|
},
|
|
1572
|
-
onComplete(
|
|
1573
|
-
const a = JSON.parse(
|
|
1564
|
+
onComplete(i) {
|
|
1565
|
+
const a = JSON.parse(i), r = [];
|
|
1574
1566
|
a.result.forEach((p) => {
|
|
1575
|
-
p.users = p.users.sort((u, m) => u.login.localeCompare(m.login)), p.users.length === t.length &&
|
|
1567
|
+
p.users = p.users.sort((u, m) => u.login.localeCompare(m.login)), p.users.length === t.length && r.push(p);
|
|
1576
1568
|
});
|
|
1577
|
-
const d = t.sort(), l =
|
|
1569
|
+
const d = t.sort(), l = r.find((p) => {
|
|
1578
1570
|
const u = [];
|
|
1579
1571
|
return p.users.forEach((m) => {
|
|
1580
1572
|
u.push(m.login);
|
|
@@ -1582,20 +1574,20 @@ function Z(e, t, n, s) {
|
|
|
1582
1574
|
});
|
|
1583
1575
|
n && l !== void 0 ? n(l) : (s || l === void 0) && s(l);
|
|
1584
1576
|
},
|
|
1585
|
-
onFailure(
|
|
1586
|
-
const a =
|
|
1577
|
+
onFailure(i) {
|
|
1578
|
+
const a = i;
|
|
1587
1579
|
a.msg = headers.errormsg, a.errCode = headers.errorcode, console.log("❌ sendDirectMessageLite => ", a), s && s(a);
|
|
1588
1580
|
}
|
|
1589
1581
|
});
|
|
1590
1582
|
});
|
|
1591
1583
|
}
|
|
1592
1584
|
function j(e, t, n = void 0, s = void 0) {
|
|
1593
|
-
const
|
|
1585
|
+
const o = {
|
|
1594
1586
|
base: e.space,
|
|
1595
1587
|
uri: "/api/community",
|
|
1596
1588
|
id_msg: `${t.id_msg}`,
|
|
1597
1589
|
endUri: "/instantmessages"
|
|
1598
|
-
},
|
|
1590
|
+
}, c = `${o.base}${o.uri}/${o.id_msg}${o.endUri}`, i = {
|
|
1599
1591
|
author: { login: t.senderId, displayName: t.senderName },
|
|
1600
1592
|
accessState: null,
|
|
1601
1593
|
commentUri: null,
|
|
@@ -1605,35 +1597,35 @@ function j(e, t, n = void 0, s = void 0) {
|
|
|
1605
1597
|
parentCommentUri: null,
|
|
1606
1598
|
richMessage: t.msg
|
|
1607
1599
|
};
|
|
1608
|
-
console.log("_3dSwym_sendDirectMessageData url ",
|
|
1609
|
-
f(
|
|
1600
|
+
console.log("_3dSwym_sendDirectMessageData url ", c), w(e, (a) => {
|
|
1601
|
+
f(c, {
|
|
1610
1602
|
method: "POST",
|
|
1611
1603
|
headers: {
|
|
1612
1604
|
"Content-Type": "application/json",
|
|
1613
1605
|
Accept: "application/json",
|
|
1614
1606
|
"X-DS-SWYM-CSRFTOKEN": a.result.ServerToken
|
|
1615
1607
|
},
|
|
1616
|
-
data: JSON.stringify(
|
|
1608
|
+
data: JSON.stringify(i),
|
|
1617
1609
|
type: "json",
|
|
1618
|
-
onComplete(
|
|
1619
|
-
const p =
|
|
1610
|
+
onComplete(r, d, l) {
|
|
1611
|
+
const p = r;
|
|
1620
1612
|
p.status = l.status, p.response = JSON.parse(l.response), console.log("✅ _3dSwym_sendDirectMessageData => ", p), n && n(p);
|
|
1621
1613
|
},
|
|
1622
|
-
onFailure(
|
|
1623
|
-
const l =
|
|
1614
|
+
onFailure(r, d) {
|
|
1615
|
+
const l = r;
|
|
1624
1616
|
l.msg = d.errormsg, l.errCode = d.errorcode, console.log("❌ sendDirectMessage => ", l), s && s(l);
|
|
1625
1617
|
}
|
|
1626
1618
|
});
|
|
1627
1619
|
});
|
|
1628
1620
|
}
|
|
1629
|
-
function
|
|
1621
|
+
function Z(e) {
|
|
1630
1622
|
const t = (/* @__PURE__ */ new Date()).toLocaleDateString(), n = (/* @__PURE__ */ new Date()).toLocaleTimeString();
|
|
1631
1623
|
return `<p>${e} </p>
|
|
1632
1624
|
<br/>
|
|
1633
1625
|
<hr/>
|
|
1634
1626
|
<p><u>envoyer :</u>Le <b>${t} à ${n}</b></p>`;
|
|
1635
1627
|
}
|
|
1636
|
-
const
|
|
1628
|
+
const ee = {
|
|
1637
1629
|
title: "TEST DEV COMMUNITY IDEA",
|
|
1638
1630
|
// titre du post
|
|
1639
1631
|
community_id: "YXdA5x4DSUKtlAi2wmnyTA",
|
|
@@ -1644,29 +1636,29 @@ const te = {
|
|
|
1644
1636
|
// id de l'idee qui est créer au post (_3dSwym_postIdea)
|
|
1645
1637
|
};
|
|
1646
1638
|
function Be(e, t, n = void 0, s = void 0) {
|
|
1647
|
-
const
|
|
1648
|
-
(
|
|
1649
|
-
),
|
|
1650
|
-
(
|
|
1639
|
+
const o = `${e.space}/api/idea/add`, c = e.swymCommunities.find(
|
|
1640
|
+
(r) => r.id === t.community_id
|
|
1641
|
+
), i = e.swymCommunities.find(
|
|
1642
|
+
(r) => r.title.toLowerCase() === t.community_title.toLowerCase()
|
|
1651
1643
|
), a = {
|
|
1652
1644
|
params: {
|
|
1653
1645
|
title: t.title,
|
|
1654
1646
|
// String, le nom de l'affaire
|
|
1655
|
-
community_id:
|
|
1647
|
+
community_id: c?.id !== void 0 ? c.id : i.id,
|
|
1656
1648
|
// String, l'id de la communauté
|
|
1657
|
-
message:
|
|
1649
|
+
message: te(t.text_html),
|
|
1658
1650
|
// STRING => le contenue du message doit être au format HTML
|
|
1659
1651
|
published: 1
|
|
1660
1652
|
// 1 publier, 0 non publier
|
|
1661
1653
|
}
|
|
1662
1654
|
};
|
|
1663
|
-
w(e, (
|
|
1655
|
+
w(e, (r) => {
|
|
1664
1656
|
const d = {
|
|
1665
1657
|
"Content-type": "application/json;charset=UTF-8",
|
|
1666
1658
|
Accept: "application/json",
|
|
1667
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1659
|
+
"X-DS-SWYM-CSRFTOKEN": r.result.ServerToken
|
|
1668
1660
|
};
|
|
1669
|
-
f(
|
|
1661
|
+
f(o, {
|
|
1670
1662
|
method: "POST",
|
|
1671
1663
|
headers: d,
|
|
1672
1664
|
data: JSON.stringify(a),
|
|
@@ -1683,85 +1675,85 @@ function Be(e, t, n = void 0, s = void 0) {
|
|
|
1683
1675
|
});
|
|
1684
1676
|
}
|
|
1685
1677
|
function Ye(e, t, n = void 0, s = void 0) {
|
|
1686
|
-
const
|
|
1678
|
+
const o = `${e.space}/api/idea/delete`, c = {
|
|
1687
1679
|
params: {
|
|
1688
1680
|
community_id: t.community_id,
|
|
1689
1681
|
ideationIds: [t.idee_id]
|
|
1690
1682
|
}
|
|
1691
1683
|
};
|
|
1692
|
-
w(e, (
|
|
1693
|
-
f(
|
|
1684
|
+
w(e, (i) => {
|
|
1685
|
+
f(o, {
|
|
1694
1686
|
method: "POST",
|
|
1695
1687
|
headers: {
|
|
1696
1688
|
"Content-type": "application/json;charset=UTF-8",
|
|
1697
1689
|
Accept: "application/json",
|
|
1698
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1690
|
+
"X-DS-SWYM-CSRFTOKEN": i.result.ServerToken
|
|
1699
1691
|
},
|
|
1700
|
-
data: JSON.stringify(
|
|
1692
|
+
data: JSON.stringify(c),
|
|
1701
1693
|
type: "json",
|
|
1702
|
-
onComplete(a,
|
|
1694
|
+
onComplete(a, r, d) {
|
|
1703
1695
|
n && n(a);
|
|
1704
1696
|
},
|
|
1705
|
-
onFailure(a,
|
|
1697
|
+
onFailure(a, r, d) {
|
|
1706
1698
|
const l = a;
|
|
1707
|
-
l.status =
|
|
1699
|
+
l.status = r.status, l.response = r.errormsg, s && s(l);
|
|
1708
1700
|
}
|
|
1709
1701
|
});
|
|
1710
1702
|
});
|
|
1711
1703
|
}
|
|
1712
1704
|
function He(e, t = "", n = void 0, s = void 0) {
|
|
1713
|
-
const
|
|
1714
|
-
t === "" && (t =
|
|
1715
|
-
const
|
|
1705
|
+
const o = e.tenant.toLowerCase() === "r1132101716373" ? "tFtz0G4MR6qNtKgJjNfTog" : e.tenant.toLowerCase() === "r1132101286859" ? "Qpv3HN-tTDOsU-7_c5DnDg" : "Template_d'idée_à_créer";
|
|
1706
|
+
t === "" && (t = o);
|
|
1707
|
+
const c = `${e.space}/api/idea/get`, i = {
|
|
1716
1708
|
params: {
|
|
1717
1709
|
id: t
|
|
1718
1710
|
}
|
|
1719
1711
|
};
|
|
1720
1712
|
w(e, (a) => {
|
|
1721
|
-
f(
|
|
1713
|
+
f(c, {
|
|
1722
1714
|
method: "POST",
|
|
1723
1715
|
headers: {
|
|
1724
1716
|
"Content-type": "application/json;charset=UTF-8",
|
|
1725
1717
|
Accept: "application/json",
|
|
1726
1718
|
"X-DS-SWYM-CSRFTOKEN": a.result.ServerToken
|
|
1727
1719
|
},
|
|
1728
|
-
data: JSON.stringify(
|
|
1720
|
+
data: JSON.stringify(i),
|
|
1729
1721
|
type: "json",
|
|
1730
|
-
onComplete(
|
|
1731
|
-
const d =
|
|
1722
|
+
onComplete(r) {
|
|
1723
|
+
const d = r;
|
|
1732
1724
|
d.msg = d.result.message, n && n(d);
|
|
1733
1725
|
},
|
|
1734
|
-
onFailure(
|
|
1735
|
-
const d =
|
|
1726
|
+
onFailure(r) {
|
|
1727
|
+
const d = r;
|
|
1736
1728
|
d.status = headers.status, d.response = headers.errormsg, s && s(d);
|
|
1737
1729
|
}
|
|
1738
1730
|
});
|
|
1739
1731
|
});
|
|
1740
1732
|
}
|
|
1741
|
-
function ze(e, t =
|
|
1742
|
-
const
|
|
1733
|
+
function ze(e, t = ee, n = void 0, s = void 0) {
|
|
1734
|
+
const o = {
|
|
1743
1735
|
uri: "/api/idea/list",
|
|
1744
1736
|
comId: `/community_id/${e.tenant.toLowerCase() === "r1132101716373" ? t.community_id : "bgnIsG74SUWswyGzS6NC6g"}`,
|
|
1745
1737
|
limit: `/limit/${t.limit ? t.limit : 10}`
|
|
1746
|
-
},
|
|
1747
|
-
w(e, (
|
|
1748
|
-
f(
|
|
1738
|
+
}, c = `${e.space}${o.uri}${o.comId}${o.limit}`;
|
|
1739
|
+
w(e, (i) => {
|
|
1740
|
+
f(c, {
|
|
1749
1741
|
method: "GET",
|
|
1750
1742
|
headers: {
|
|
1751
|
-
"X-DS-SWYM-CSRFTOKEN":
|
|
1743
|
+
"X-DS-SWYM-CSRFTOKEN": i.result.ServerToken
|
|
1752
1744
|
},
|
|
1753
1745
|
onComplete(a) {
|
|
1754
|
-
const
|
|
1755
|
-
n && n(
|
|
1746
|
+
const r = JSON.parse(a);
|
|
1747
|
+
n && n(r);
|
|
1756
1748
|
},
|
|
1757
|
-
onFailure(a,
|
|
1749
|
+
onFailure(a, r) {
|
|
1758
1750
|
const d = a;
|
|
1759
|
-
d.status =
|
|
1751
|
+
d.status = r.status, d.response = r.errormsg, s && s(d);
|
|
1760
1752
|
}
|
|
1761
1753
|
});
|
|
1762
1754
|
});
|
|
1763
1755
|
}
|
|
1764
|
-
function
|
|
1756
|
+
function te(e) {
|
|
1765
1757
|
return !e || e === "" ? `<h2><u>INFORMATIONS AFFAIRE :</u></h2>
|
|
1766
1758
|
<p><u>|⚠️<em> Merci de respecter l'écriture des tags, en MAJUSCULES, nom complet, pas de caractères</em></u></p>
|
|
1767
1759
|
<p><u><em>|spéciaux, séparation par "_" si besoin !</em></u></p>
|
|
@@ -1840,16 +1832,16 @@ function qe(e, t = void 0, n = void 0) {
|
|
|
1840
1832
|
const s = e.space + "/api/user/getcurrent/";
|
|
1841
1833
|
w(
|
|
1842
1834
|
e,
|
|
1843
|
-
(
|
|
1835
|
+
(o) => {
|
|
1844
1836
|
f(s, {
|
|
1845
1837
|
method: "GET",
|
|
1846
|
-
headers: { "X-DS-SWYM-CSRFTOKEN":
|
|
1847
|
-
onComplete(
|
|
1848
|
-
const
|
|
1849
|
-
t && t(
|
|
1838
|
+
headers: { "X-DS-SWYM-CSRFTOKEN": o.result.ServerToken },
|
|
1839
|
+
onComplete(c, i, a) {
|
|
1840
|
+
const r = JSON.parse(c);
|
|
1841
|
+
t && t(r.result);
|
|
1850
1842
|
},
|
|
1851
|
-
onFailure(
|
|
1852
|
-
n && n({ response:
|
|
1843
|
+
onFailure(c, i, a) {
|
|
1844
|
+
n && n({ response: c, headers: i, xhr: a });
|
|
1853
1845
|
}
|
|
1854
1846
|
});
|
|
1855
1847
|
},
|
|
@@ -1857,19 +1849,19 @@ function qe(e, t = void 0, n = void 0) {
|
|
|
1857
1849
|
);
|
|
1858
1850
|
}
|
|
1859
1851
|
function Qe(e, t, n = void 0, s = void 0) {
|
|
1860
|
-
const
|
|
1852
|
+
const o = e.space + "/api/user/find/login/" + t;
|
|
1861
1853
|
w(
|
|
1862
1854
|
e,
|
|
1863
|
-
(
|
|
1864
|
-
f(
|
|
1855
|
+
(c) => {
|
|
1856
|
+
f(o, {
|
|
1865
1857
|
method: "GET",
|
|
1866
|
-
headers: { "X-DS-SWYM-CSRFTOKEN":
|
|
1867
|
-
onComplete(
|
|
1868
|
-
const d = JSON.parse(
|
|
1858
|
+
headers: { "X-DS-SWYM-CSRFTOKEN": c.result.ServerToken },
|
|
1859
|
+
onComplete(i, a, r) {
|
|
1860
|
+
const d = JSON.parse(i);
|
|
1869
1861
|
n && n(d);
|
|
1870
1862
|
},
|
|
1871
|
-
onFailure(
|
|
1872
|
-
s && s(
|
|
1863
|
+
onFailure(i) {
|
|
1864
|
+
s && s(i);
|
|
1873
1865
|
}
|
|
1874
1866
|
});
|
|
1875
1867
|
},
|
|
@@ -1882,28 +1874,28 @@ function Ze(e) {
|
|
|
1882
1874
|
}
|
|
1883
1875
|
export {
|
|
1884
1876
|
R as UUID,
|
|
1885
|
-
|
|
1877
|
+
be as _3DSpace_Create_Doc,
|
|
1886
1878
|
C as _3DSpace_csrf,
|
|
1887
1879
|
I as _3DSpace_download_doc,
|
|
1888
1880
|
W as _3DSpace_download_multidoc,
|
|
1889
1881
|
G as _3DSpace_file_update,
|
|
1890
1882
|
K as _3DSpace_file_update_csr,
|
|
1891
1883
|
U as _3DSpace_file_url,
|
|
1892
|
-
|
|
1884
|
+
Ne as _3DSpace_file_url_csr,
|
|
1893
1885
|
k as _3DSpace_get_csrf,
|
|
1894
1886
|
J as _3DSpace_get_docInfo,
|
|
1895
1887
|
X as _3DSpace_get_downloadTicket_multidoc,
|
|
1896
1888
|
N as _3DSpace_get_securityContexts,
|
|
1897
|
-
|
|
1889
|
+
$e as _3DSpace_lifecycle_changeRevision,
|
|
1898
1890
|
De as _3DSpace_lifecycle_changeState,
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1891
|
+
Fe as _3DSpace_lifecycle_getGraph,
|
|
1892
|
+
Ue as _3DSpace_lifecycle_getNextRevision,
|
|
1893
|
+
ke as _3DSpace_lifecycle_getNextStates,
|
|
1902
1894
|
We as _3DSwim_getAllCommunities,
|
|
1903
|
-
|
|
1895
|
+
q as _3DSwim_getMembersCommunity,
|
|
1904
1896
|
Ve as _3DSwym_buildDirectMessage,
|
|
1905
1897
|
Ye as _3DSwym_deleteIdea,
|
|
1906
|
-
|
|
1898
|
+
Q as _3DSwym_findCommunityToInstantMSG,
|
|
1907
1899
|
Ge as _3DSwym_getAllNews,
|
|
1908
1900
|
Ke as _3DSwym_getFamiliarPeople,
|
|
1909
1901
|
Xe as _3DSwym_getIdeaStatusMaturity,
|
|
@@ -1914,40 +1906,40 @@ export {
|
|
|
1914
1906
|
w as _3DSwym_get_version,
|
|
1915
1907
|
Be as _3DSwym_postIdea,
|
|
1916
1908
|
j as _3DSwym_sendMessageData,
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1909
|
+
he as _AppMngt_get_info_user,
|
|
1910
|
+
ge as _AppMngt_get_users,
|
|
1911
|
+
fe as _getPlateformInfos,
|
|
1912
|
+
ue as _getPlatformServices,
|
|
1921
1913
|
f as _httpCallAuthenticated,
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1914
|
+
de as _setDraggable,
|
|
1915
|
+
pe as _setDroppable,
|
|
1916
|
+
le as _setupTagger,
|
|
1925
1917
|
Le as addTagToDoc,
|
|
1926
|
-
|
|
1918
|
+
me as compass_getListAdditionalApps,
|
|
1927
1919
|
L as couleurs,
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1920
|
+
Se as createUserGroups,
|
|
1921
|
+
V as dataMixing,
|
|
1922
|
+
we as deleteUserGroups,
|
|
1923
|
+
ie as findAdresse,
|
|
1924
|
+
Ae as getAllContextSecurity,
|
|
1925
|
+
je as getCSRFToken,
|
|
1934
1926
|
oe as getCommunes,
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1927
|
+
_e as getComplementUG,
|
|
1928
|
+
Re as getDataFrom3DSpace,
|
|
1929
|
+
re as getDataFromGouvFr,
|
|
1930
|
+
Pe as getDatasByTenant,
|
|
1931
|
+
Me as getDatasFrom3DSpace,
|
|
1932
|
+
Ie as getDownloadDocument,
|
|
1941
1933
|
Je as getInfoDocTags,
|
|
1942
|
-
|
|
1934
|
+
ye as getUserGroupsList,
|
|
1943
1935
|
E as getUsersGroupRules,
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1936
|
+
xe as get_3DSpace_csrf,
|
|
1937
|
+
Te as patchUserGroups,
|
|
1938
|
+
Ce as patchUserGroupsControl,
|
|
1939
|
+
ve as pushDataIn3DSpace,
|
|
1940
|
+
Oe as readUserGroupControl,
|
|
1949
1941
|
Ee as removeTagToDoc,
|
|
1950
1942
|
Ze as sayHello,
|
|
1951
|
-
|
|
1943
|
+
ce as updateEvent
|
|
1952
1944
|
};
|
|
1953
1945
|
//# sourceMappingURL=wb3Api.js.map
|