@dongdev/fca-unofficial 0.0.3 → 0.0.5

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.
Files changed (76) hide show
  1. package/.travis.yml +6 -6
  2. package/CHANGELOG.md +1 -1
  3. package/DOCS.md +1738 -1738
  4. package/LICENSE-MIT +21 -21
  5. package/README.md +219 -219
  6. package/index.js +267 -569
  7. package/lib/login.js +0 -0
  8. package/package.json +3 -3
  9. package/src/addExternalModule.js +19 -15
  10. package/src/addUserToGroup.js +113 -77
  11. package/src/changeAdminStatus.js +79 -47
  12. package/src/changeArchivedStatus.js +55 -41
  13. package/src/changeAvatar.js +126 -0
  14. package/src/changeBio.js +66 -54
  15. package/src/changeBlockedStatus.js +40 -29
  16. package/src/changeGroupImage.js +127 -101
  17. package/src/changeNickname.js +50 -36
  18. package/src/changeThreadColor.js +65 -61
  19. package/src/changeThreadEmoji.js +55 -41
  20. package/src/createNewGroup.js +86 -70
  21. package/src/createPoll.js +71 -59
  22. package/src/deleteMessage.js +56 -44
  23. package/src/deleteThread.js +56 -42
  24. package/src/forwardAttachment.js +60 -47
  25. package/src/getCurrentUserID.js +7 -7
  26. package/src/getEmojiUrl.js +29 -27
  27. package/src/getFriendsList.js +83 -73
  28. package/src/getMessage.js +796 -0
  29. package/src/getThreadHistory.js +666 -537
  30. package/src/getThreadInfo.js +232 -171
  31. package/src/getThreadList.js +241 -213
  32. package/src/getThreadPictures.js +79 -59
  33. package/src/getUserID.js +66 -61
  34. package/src/getUserInfo.js +74 -66
  35. package/src/handleFriendRequest.js +61 -46
  36. package/src/handleMessageRequest.js +65 -47
  37. package/src/httpGet.js +52 -44
  38. package/src/httpPost.js +52 -43
  39. package/src/httpPostFormData.js +63 -0
  40. package/src/listenMqtt.js +877 -709
  41. package/src/logout.js +62 -55
  42. package/src/markAsDelivered.js +58 -47
  43. package/src/markAsRead.js +80 -70
  44. package/src/markAsReadAll.js +49 -39
  45. package/src/markAsSeen.js +59 -48
  46. package/src/muteThread.js +52 -45
  47. package/src/postFormData.js +46 -0
  48. package/src/refreshFb_dtsg.js +81 -0
  49. package/src/removeUserFromGroup.js +79 -45
  50. package/src/resolvePhotoUrl.js +45 -36
  51. package/src/searchForThread.js +53 -42
  52. package/src/sendMessage.js +328 -328
  53. package/src/sendMessageMqtt.js +316 -0
  54. package/src/sendTypingIndicator.js +103 -70
  55. package/src/setMessageReaction.js +106 -98
  56. package/src/setPostReaction.js +102 -95
  57. package/src/setTitle.js +86 -70
  58. package/src/threadColors.js +131 -41
  59. package/src/unfriend.js +52 -42
  60. package/src/unsendMessage.js +49 -39
  61. package/src/uploadAttachment.js +95 -0
  62. package/utils.js +1470 -1196
  63. package/.gitattributes +0 -2
  64. package/src/Screenshot.js +0 -83
  65. package/src/changeAvt.js +0 -85
  66. package/src/getThreadHistoryDeprecated.js +0 -71
  67. package/src/getThreadInfoDeprecated.js +0 -56
  68. package/src/getThreadListDeprecated.js +0 -46
  69. package/src/shareContact.js +0 -46
  70. package/test/data/shareAttach.js +0 -146
  71. package/test/data/something.mov +0 -0
  72. package/test/data/test.png +0 -0
  73. package/test/data/test.txt +0 -7
  74. package/test/example-config.json +0 -18
  75. package/test/test-page.js +0 -140
  76. package/test/test.js +0 -385
package/.gitattributes DELETED
@@ -1,2 +0,0 @@
1
- # Auto detect text files and perform LF normalization
2
- * text=auto
package/src/Screenshot.js DELETED
@@ -1,83 +0,0 @@
1
- /* eslint-disable linebreak-style */
2
- "use strict";
3
-
4
-
5
- module.exports = function (defaultFuncs, api, ctx) {
6
- var Coookie = JSON.parse(JSON.stringify(ctx.jar.getCookies("https://www.facebook.com").concat(ctx.jar.getCookies("https://facebook.com")).concat(ctx.jar.getCookies("https://www.messenger.com"))));
7
- for (let i of Coookie) {
8
- i.name = i.key;
9
- i.domain = 'www.facebook.com';
10
- delete i.key;
11
- }
12
- return function(Link, callback) {
13
- var logger = require('../logger');
14
- if (process.platform != 'win32') return logger.Error('Not Supported Platform');
15
- else try {
16
- let i = require('puppeteer');
17
- }
18
- catch (e) {
19
- var { execSync } = require('child_process');
20
- execSync('npm i puppeteer', { stdio: 'inherit' });
21
- }
22
- const Screenshot = require('../Extra/ExtraScreenShot');
23
- var resolveFunc = function () { };
24
- var rejectFunc = function () { };
25
- var returnPromise = new Promise(function (resolve, reject) {
26
- resolveFunc = resolve;
27
- rejectFunc = reject;
28
- });
29
-
30
- if (!callback) {
31
- callback = function (err, data) {
32
- if (err) return rejectFunc(err);
33
- resolveFunc(data);
34
- };
35
- }
36
- if (Link.includes('facebook.com') || Link.includes('Facebook.com') || Link.includes('fb')) {
37
- let LinkSplit = Link.split('/');
38
- if (LinkSplit.indexOf("https:") == 0) {
39
- if (Link.includes('messages')) {
40
- Screenshot.buffer(Link, {
41
- cookies: Coookie
42
- }).then(data => {
43
- callback(null,data);
44
- });
45
- }
46
- else if (!isNaN(LinkSplit[3]) && !Link.split('=')[1] && !isNaN(Link.split('=')[1])) {
47
- api.sendMessage('Invaild link, format link: facebook.com/Lazic.Kanzu',global.Fca.Data.event.threadID,global.Fca.Data.event.messageID);
48
- callback('Error Link', null);
49
- }
50
- else if (!isNaN(Link.split('=')[1]) && Link.split('=')[1]) {
51
- let Format = `https://www.facebook.com/profile.php?id=${Link.split('=')[1]}`;
52
- Screenshot.buffer(Format, {
53
- cookies: Coookie
54
- }).then(data => {
55
- callback(null,data);
56
- });
57
- }
58
- else {
59
- let Format = `https://www.facebook.com/${LinkSplit[3]}`;
60
- Screenshot.buffer(Format, {
61
- cookies: Coookie
62
- }).then(data => {
63
- callback(null,data);
64
- });
65
- }
66
- }
67
- else {
68
- let Form = `https://www.facebook.com/${LinkSplit[1]}`;
69
- Screenshot.buffer(Form, {
70
- cookies: Coookie
71
- }).then(data => {
72
- callback(null,data);
73
- });
74
- }
75
- }
76
- else {
77
- Screenshot.buffer(Link).then(data => {
78
- callback(null,data);
79
- });
80
- }
81
- return returnPromise;
82
- };
83
- };
package/src/changeAvt.js DELETED
@@ -1,85 +0,0 @@
1
- "use strict";
2
-
3
- var utils = require("../utils");
4
- var log = require("npmlog");
5
- /**
6
- * It posts an image to a Facebook profile
7
- * @param Api - The API object
8
- * @param BotID - The ID of the bot you want to post the image to.
9
- * @param form - The form data that you want to send.
10
- * @returns The JSON.parse(Data.split("for (;;);")[1]); is returning the following:
11
- * {"__ar":1,"payload":null,"jsmods":{"require":[["ImageUploader","uploadPhoto",[{"__m":"__elem_0"},{"__m":"__elem_1"},{"__m":"__elem_2"},{"__m":"__
12
- */
13
- async function postImage(Api,BotID,form) {
14
- var Data = await Api.httpPostFormData(`https://www.facebook.com/profile/picture/upload/?profile_id=${BotID}&photo_source=57&av=${BotID}`, form);
15
- return JSON.parse(Data.split("for (;;);")[1]);
16
- }
17
-
18
- module.exports = function(defaultFuncs, api, ctx) {
19
- /* Changing the profile picture of the bot. */
20
- return function changeAvt(link, caption, callback) {
21
- var resolveFunc = function() {};
22
- var rejectFunc = function() {};
23
- var returnPromise = new Promise(function(resolve, reject) {
24
- resolveFunc = resolve;
25
- rejectFunc = reject;
26
- });
27
-
28
- if (!callback) {
29
- callback = function(err, data) {
30
- if (err) return rejectFunc(err);
31
- resolveFunc(data);
32
- };
33
- }
34
- try {
35
- var Fetch = require('axios')
36
- Fetch.get(link, { responseType: "stream" }).then(data => {
37
- postImage(api, ctx.userID, { file: data.data }).then(data => {
38
- if (data.error) throw new Error({ error: data.error, des: data.error.errorDescription });
39
- var form = {
40
- av: ctx.userID,
41
- fb_api_req_friendly_name: "ProfileCometProfilePictureSetMutation",
42
- fb_api_caller_class: "RelayModern",
43
- doc_id: "5066134240065849",
44
- variables: JSON.stringify({
45
- input: {
46
- caption: (caption || ""),
47
- existing_photo_id: data.payload.fbid,
48
- expiration_time: null,
49
- profile_id: ctx.userID,
50
- profile_pic_method: "EXISTING",
51
- profile_pic_source: "TIMELINE",
52
- scaled_crop_rect: {
53
- height: 1,
54
- width: 1,
55
- x: 0,
56
- y: 0
57
- },
58
- skip_cropping: true,
59
- actor_id: ctx.userID,
60
- client_mutation_id: Math.round(Math.random() * 19).toString()
61
- },
62
- isPage: false,
63
- isProfile: true,
64
- scale: 3,
65
- })
66
- };
67
- defaultFuncs
68
- .post("https://www.facebook.com/api/graphql/", ctx.jar, form)
69
- .then(utils.parseAndCheckLogin(ctx, defaultFuncs))
70
- .then(function(resData) {
71
- if (resData.error) throw resData;
72
- else return callback(null,true)
73
- })
74
- .catch(function(err) {
75
- return callback(err);
76
- });
77
- })
78
- })
79
- }
80
- catch (e) {
81
- throw e;
82
- }
83
- return returnPromise;
84
- };
85
- };
@@ -1,71 +0,0 @@
1
- "use strict";
2
-
3
- var utils = require("../utils");
4
- var log = require("npmlog");
5
-
6
- module.exports = function (defaultFuncs, api, ctx) {
7
- return function getThreadHistory(threadID, amount, timestamp, callback) {
8
- var resolveFunc = function () { };
9
- var rejectFunc = function () { };
10
- var returnPromise = new Promise(function (resolve, reject) {
11
- resolveFunc = resolve;
12
- rejectFunc = reject;
13
- });
14
-
15
- if (!callback) {
16
- callback = function (err, threadInfo) {
17
- if (err) return rejectFunc(err);
18
- resolveFunc(threadInfo);
19
- };
20
- }
21
-
22
- if (!callback) throw { error: "getThreadHistory: need callback" };
23
- var form = {
24
- client: "mercury"
25
- };
26
-
27
- api.getUserInfo(threadID, function (err, res) {
28
- if (err) return callback(err);
29
- var key = Object.keys(res).length > 0 ? "user_ids" : "thread_fbids";
30
- form["messages[" + key + "][" + threadID + "][offset]"] = 0;
31
- form["messages[" + key + "][" + threadID + "][timestamp]"] = timestamp;
32
- form["messages[" + key + "][" + threadID + "][limit]"] = amount;
33
-
34
- if (ctx.globalOptions.pageID) form.request_user_id = ctx.globalOptions.pageID;
35
-
36
- defaultFuncs
37
- .post("https://www.facebook.com/ajax/mercury/thread_info.php", ctx.jar, form)
38
- .then(utils.parseAndCheckLogin(ctx, defaultFuncs))
39
- .then(function (resData) {
40
- if (resData.error) throw resData;
41
- else if (!resData.payload) throw { error: "Could not retrieve thread history." };
42
-
43
- // Asking for message history from a thread with no message history
44
- // will return undefined for actions here
45
- if (!resData.payload.actions) resData.payload.actions = [];
46
-
47
- var userIDs = {};
48
- resData.payload.actions.forEach(v => userIDs[v.author.split(":").pop()] = "");
49
-
50
- api.getUserInfo(Object.keys(userIDs), function (err, data) {
51
- if (err) return callback(err); //callback({error: "Could not retrieve user information in getThreadHistory."});
52
-
53
- resData.payload.actions.forEach(function (v) {
54
- var sender = data[v.author.split(":").pop()];
55
- if (sender) v.sender_name = sender.name;
56
- else v.sender_name = "Facebook User";
57
- v.sender_fbid = v.author;
58
- delete v.author;
59
- });
60
-
61
- callback(null, resData.payload.actions.map(utils.formatHistoryMessage));
62
- });
63
- })
64
- .catch(function (err) {
65
- log.error("getThreadHistory", err);
66
- return callback(err);
67
- });
68
- });
69
- return returnPromise;
70
- };
71
- };
@@ -1,56 +0,0 @@
1
- "use strict";
2
-
3
- var utils = require("../utils");
4
- var log = require("npmlog");
5
-
6
- module.exports = function (defaultFuncs, api, ctx) {
7
- return function getThreadInfo(threadID, callback) {
8
- var resolveFunc = function () { };
9
- var rejectFunc = function () { };
10
- var returnPromise = new Promise(function (resolve, reject) {
11
- resolveFunc = resolve;
12
- rejectFunc = reject;
13
- });
14
-
15
- if (!callback) {
16
- callback = function (err, data) {
17
- if (err) return rejectFunc(err);
18
- resolveFunc(data);
19
- };
20
- }
21
-
22
- var form = {
23
- client: "mercury"
24
- };
25
-
26
- api.getUserInfo(threadID, function (err, userRes) {
27
- if (err) return callback(err);
28
- var key = Object.keys(userRes).length > 0 ? "user_ids" : "thread_fbids";
29
- form["threads[" + key + "][0]"] = threadID;
30
-
31
- if (ctx.globalOptions.pageId) form.request_user_id = ctx.globalOptions.pageId;
32
-
33
- defaultFuncs
34
- .post("https://www.facebook.com/ajax/mercury/thread_info.php", ctx.jar, form)
35
- .then(utils.parseAndCheckLogin(ctx, defaultFuncs))
36
- .then(function (resData) {
37
- if (resData.error) throw resData;
38
- else if (!resData.payload) throw { error: "Could not retrieve thread Info." };
39
-
40
- var threadData = resData.payload.threads[0];
41
- var userData = userRes[threadID];
42
-
43
- if (threadData == null) throw { error: "ThreadData is null" };
44
-
45
- threadData.name = userData != null && userData.name != null ? userData.name : threadData.name;
46
- threadData.image_src = userData != null && userData.thumbSrc != null ? userData.thumbSrc : threadData.image_src;
47
- callback(null, utils.formatThread(threadData));
48
- })
49
- .catch(function (err) {
50
- log.error("getThreadInfo", err);
51
- return callback(err);
52
- });
53
- });
54
- return returnPromise;
55
- };
56
- };
@@ -1,46 +0,0 @@
1
- "use strict";
2
-
3
- var utils = require("../utils");
4
- var log = require("npmlog");
5
-
6
- module.exports = function (defaultFuncs, api, ctx) {
7
- return function getThreadList(start, end, type, callback) {
8
- if (utils.getType(callback) === "Undefined") {
9
- if (utils.getType(end) !== "Number") throw { error: "Please pass a number as a second argument." };
10
- else if (utils.getType(type) === "Function" || utils.getType(type) === "AsyncFunction") {
11
- callback = type;
12
- type = "inbox"; //default to inbox
13
- }
14
- else if (utils.getType(type) !== "String") throw { error: "Please pass a String as a third argument. Your options are: inbox, pending, and archived" };
15
- else throw { error: "getThreadList: need callback" };
16
- }
17
-
18
- if (type === "archived") type = "action:archived";
19
- else if (type !== "inbox" && type !== "pending" && type !== "other") throw { error: "type can only be one of the following: inbox, pending, archived, other" };
20
-
21
-
22
- if (end <= start) end = start + 20;
23
-
24
- var form = {
25
- client: "mercury"
26
- };
27
-
28
- form[type + "[offset]"] = start;
29
- form[type + "[limit]"] = end - start;
30
-
31
- if (ctx.globalOptions.pageID) form.request_user_id = ctx.globalOptions.pageID;
32
-
33
- defaultFuncs
34
- .post("https://www.facebook.com/ajax/mercury/threadlist_info.php", ctx.jar, form)
35
- .then(utils.parseAndCheckLogin(ctx, defaultFuncs))
36
- .then(function (resData) {
37
- if (resData.error) throw resData;
38
- log.verbose("getThreadList", JSON.stringify(resData.payload.threads));
39
- return callback(null, (resData.payload.threads || []).map(utils.formatThread));
40
- })
41
- .catch(function (err) {
42
- log.error("getThreadList", err);
43
- return callback(err);
44
- });
45
- };
46
- };
@@ -1,46 +0,0 @@
1
- "use strict";
2
-
3
- var utils = require("../utils");
4
- var log = require("npmlog");
5
-
6
- module.exports = function (defaultFuncs, api, ctx) {
7
- return async function shareContact(text, senderID, threadID, callback) {
8
- var resolveFunc = function () { };
9
- var rejectFunc = function () { };
10
- var returnPromise = new Promise(function (resolve, reject) {
11
- resolveFunc = resolve;
12
- rejectFunc = reject;
13
- });
14
- if (!callback) {
15
- callback = function (err, data) {
16
- if (err) return rejectFunc(err);
17
- resolveFunc(data);
18
- data };
19
- }
20
- let count_req = 0
21
- var form = JSON.stringify({
22
- "app_id": "2220391788200892",
23
- "payload": JSON.stringify({
24
- tasks: [{
25
- label: '359',
26
- payload: JSON.stringify({
27
- "contact_id": senderID,
28
- "sync_group": 1,
29
- "text": text || "",
30
- "thread_id": threadID
31
- }),
32
- queue_name: 'messenger_contact_sharing',
33
- task_id: Math.random() * 1001 << 0,
34
- failure_count: null,
35
- }],
36
- epoch_id: utils.generateOfflineThreadingID(),
37
- version_id: '7214102258676893',
38
- }),
39
- "request_id": ++count_req,
40
- "type": 3
41
- });
42
- mqttClient.publish('/ls_req',form)
43
-
44
- return returnPromise;
45
- };
46
- };
@@ -1,146 +0,0 @@
1
- module.exports = {
2
- "delta": {
3
- "attachments": [
4
- {
5
- "fbid": "1522004821162174",
6
- "id": "1522004821162174",
7
- "mercury": {
8
- "app_attribution": null,
9
- "attach_type": "share",
10
- "name": null,
11
- "url": null,
12
- "rel": null,
13
- "preview_url": null,
14
- "preview_width": null,
15
- "preview_height": null,
16
- "large_preview_url": null,
17
- "large_preview_width": null,
18
- "large_preview_height": null,
19
- "icon_type": null,
20
- "metadata": null,
21
- "thumbnail_url": null,
22
- "share": {
23
- "description": null,
24
- "media": {
25
- "animated_image": null,
26
- "animated_image_size": {
27
- "height": null,
28
- "width": null
29
- },
30
- "image": null,
31
- "image_size": {
32
- "height": null,
33
- "width": null
34
- },
35
- "duration": null,
36
- "playable": null,
37
- "source": null
38
- },
39
- "source": "Dimon - testing",
40
- "style_list": [
41
- "business_message_items", "fallback"
42
- ],
43
- "title": "search engines",
44
- "properties": null,
45
- "uri": null,
46
- "subattachments": [],
47
- "deduplication_key": "abcde",
48
- "action_links": [],
49
- "share_id": "1522004821162174",
50
- "target": {
51
- "call_to_actions": [],
52
- "items": [
53
- {
54
- "id": "629934437209008",
55
- "name": "search engines",
56
- "desc": "",
57
- "thumb_url": null,
58
- "item_url": null,
59
- "title": "search engines",
60
- "text": "",
61
- "source": null,
62
- "metalines": {
63
- "metaline_1": "click to get redirected",
64
- "metaline_2": null,
65
- "metaline_3": null
66
- },
67
- "location": 12314,
68
- "category": 69,
69
- "call_to_actions": [
70
- {
71
- "action_link": "http://l.facebook.com/l.php?u=http%3A%2F%2Fgoogle.com%2F&h=ATNziCq_-6I3ZPYwwLluFdCrWMEwLLKvokFlXdEdS4LD2Lzsv2cR2SJYffJcDYBfB092Xeq8oRdftJk4husEYVduH24RnlP3HvVQOkOrciXDs2M7TkWYyNLBelvJ2Fc-mw8pbGy5NslGf_fkZ_A",
72
- "action_type": 2,
73
- "id": "FFD=",
74
- "title": "Google",
75
- "link_target_ids": [629934437209008],
76
- "is_mutable_by_server": false,
77
- "should_show_user_confirmation": false,
78
- "confirmation_title": null,
79
- "confirmation_message": null,
80
- "confirmation_continue_label": null,
81
- "confirmation_cancel_label": null,
82
- "payment_metadata": {
83
- "total_price": null,
84
- "payment_module_config": null
85
- },
86
- "is_disabled": false
87
- }, {
88
- "action_link": "http://l.facebook.com/l.php?u=http%3A%2F%2Fyahoo.com%2F&h=ATNIuTf7iDGP5xXTWOAdhaGhRFfDf4eS09t_G9CrR0MDiBKpqtCDzPf_9y5Bq7TXMgmo6RttztsgeO0ReSc0PDvJDTa1fLMMK2CjrpkqC91_m-yaMXfeQ4aI6MbhZrOPnK3YFnQP4XvRx3N1udE",
89
- "action_type": 2,
90
- "id": "CDE=",
91
- "title": "Yahoo",
92
- "link_target_ids": [629934437209008],
93
- "is_mutable_by_server": false,
94
- "should_show_user_confirmation": false,
95
- "confirmation_title": null,
96
- "confirmation_message": null,
97
- "confirmation_continue_label": null,
98
- "confirmation_cancel_label": null,
99
- "payment_metadata": {
100
- "total_price": null,
101
- "payment_module_config": null
102
- },
103
- "is_disabled": false
104
- }, {
105
- "action_link": "http://l.facebook.com/l.php?u=http%3A%2F%2Fbing.com%2F&h=ATMoMijAt6Da6WWIQ679DhZyZizWdxAViWwyl-RjKobFUG_x8GmB8LD6pPa3KP5K1-QTL9vuaFwjqB0itaMFWk4VwQ9uh56JgnbFnAo4qM_CrQufgLeHwwCnWSCnZt8IzYT4y6YULLLFA5bL1H4",
106
- "action_type": 2,
107
- "id": "ABC=",
108
- "title": "Bing",
109
- "link_target_ids": [629934437209008],
110
- "is_mutable_by_server": false,
111
- "should_show_user_confirmation": false,
112
- "confirmation_title": null,
113
- "confirmation_message": null,
114
- "confirmation_continue_label": null,
115
- "confirmation_cancel_label": null,
116
- "payment_metadata": {
117
- "total_price": null,
118
- "payment_module_config": null
119
- },
120
- "is_disabled": false
121
- }
122
- ]
123
- }
124
- ],
125
- "location": 132145,
126
- "category": 69,
127
- "message": "Aaa: search engines"
128
- }
129
- }
130
- },
131
- "otherUserFbIds": ["1521994257829897"],
132
- "titanType": 1
133
- }
134
- ],
135
- "messageMetadata": {
136
- "actorFbId": "1345",
137
- "messageId": "mid.12345:asdv",
138
- "offlineThreadingId": "1345v1345",
139
- "tags": ["source:messenger:commerce"],
140
- "threadKey": {
141
- "otherUserFbId": "13451345"
142
- },
143
- "timestamp": "1487078180265"
144
- }
145
- }
146
- }
Binary file
Binary file
@@ -1,7 +0,0 @@
1
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut placerat risus massa, eu rutrum massa tempus id. Aenean aliquet turpis at risus gravida, id scelerisque sem vestibulum. Aliquam erat volutpat. Pellentesque ut justo a sapien fringilla tincidunt ornare ac arcu. Nam non finibus turpis, eget tincidunt turpis. Morbi sed tempus leo. Aliquam ut nunc sed ante efficitur tristique et sed eros.
2
-
3
- In eu tincidunt libero, eget tincidunt mauris. Donec ultrices placerat tincidunt. Sed ultrices neque dui, id viverra ante porta sed. Suspendisse tincidunt malesuada finibus. Ut cursus dolor sem, eu mattis lectus euismod a. In porttitor maximus lacus, eget volutpat mauris pretium at. Nulla consequat ipsum id enim fermentum feugiat. Fusce convallis bibendum massa ac viverra.
4
-
5
- Sed a vehicula diam, et sollicitudin nunc. Quisque nec libero sit amet nibh fringilla pretium at vel massa. In enim dolor, euismod sed sapien id, accumsan tempus lacus. Aenean dapibus nulla at libero ultricies, id sagittis erat pretium. Nam iaculis tellus est, lobortis lacinia dui egestas vitae. Phasellus elementum quis lectus nec tincidunt. Ut gravida vestibulum ipsum ut cursus.
6
-
7
- Mauris quam est, dignissim sed quam at, vulputate scelerisque purus. Maecenas tortor turpis, venenatis non purus et, finibus venenatis augue. Etiam et fringilla enim. Suspendisse a leo sed ex aliquet feugiat vitae nec magna. Vestibulum id massa in orci dictum ultricies. Vestibulum vitae leo sed lacus tempor dapibus. Cras viverra lorem sit amet magna imperdiet sodales. In sollicitudin ex sed feugiat commodo. Maecenas ac arcu tristique quam euismod ultrices quis et mi. Nulla lacinia sit amet lacus nec ultrices. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; In hac habitasse platea dictumst. Curabitur vehicula, enim at vulputate bibendum, lorem tortor pellentesque massa, nec aliquam lacus mi ac libero. In vel nibh in ante facilisis tristique. Aliquam sapien purus, lobortis quis ultricies nec, dictum a turpis. Aenean pharetra congue lacus, id cursus erat fringilla congue.
@@ -1,18 +0,0 @@
1
- // Instructions: Copy this file to test-config.json, fill in your test data
2
- // and remove all comments (JSON doesn't support comments).
3
- // Run the test with `npm test` after installing the devDependencies (mocha).
4
- {
5
- // Test user login information
6
- "user" : {
7
- "id" : "00000000000000",
8
- "email" : "example@test.com",
9
- "password" : "qwerty"
10
- },
11
- // Array of at least 2 other user IDs (not the same as the test user)
12
- "userIDs" : [
13
- "11111111111111",
14
- "22222222222222"
15
- ],
16
- // Id of page to which test user is an admin
17
- "pageID": "3333333333333"
18
- }