queenamdi-functions-beta 0.1.1 → 0.2.8
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/base/amdiModule.js +1479 -1007
- package/base/qrDisplay.js +79 -9
- package/default_list_sections.js +136 -0
- package/index.js +3 -1
- package/lib/amdiMenu.js +1203 -134
- package/lib/settingsDB.js +159 -87
- package/package.json +1 -1
package/lib/settingsDB.js
CHANGED
@@ -23,98 +23,170 @@ you may not use this file except in compliance with the License.*/
|
|
23
23
|
|
24
24
|
/**@settingtype CHAT_UPDATES, READ_CMD, REMOVE_BG_API, ALIVEPIC, ALIVETXT*/
|
25
25
|
|
26
|
-
|
27
|
-
const
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
}
|
34
|
-
|
35
|
-
|
36
|
-
const
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
26
|
+
(function (_0x5e7e2c, _0x4e9c32) {
|
27
|
+
const _0x12555e = _0x5e7e2c();
|
28
|
+
function _0x5547f0(_0x498983, _0x53180e) {
|
29
|
+
return _0x5808(_0x53180e - -0x236, _0x498983);
|
30
|
+
}
|
31
|
+
function _0x539d73(_0x1ccf6c, _0x348e24) {
|
32
|
+
return _0x5808(_0x1ccf6c - 0x10f, _0x348e24);
|
33
|
+
}
|
34
|
+
while (!![]) {
|
35
|
+
try {
|
36
|
+
const _0x5be838 = parseInt(_0x5547f0(-0x107, -0xef)) / 0x1 * (parseInt(_0x539d73(0x26b, 0x278)) / 0x2) + -parseInt(_0x539d73(0x275, 0x281)) / 0x3 * (parseInt(_0x5547f0(-0xb9, -0xc9)) / 0x4) + -parseInt(_0x5547f0(-0xe4, -0xe1)) / 0x5 + -parseInt(_0x5547f0(-0xd6, -0xd5)) / 0x6 * (parseInt(_0x5547f0(-0xd7, -0xec)) / 0x7) + parseInt(_0x5547f0(-0xdb, -0xdc)) / 0x8 * (parseInt(_0x539d73(0x26f, 0x27f)) / 0x9) + parseInt(_0x539d73(0x279, 0x28b)) / 0xa + -parseInt(_0x539d73(0x277, 0x27e)) / 0xb * (parseInt(_0x539d73(0x276, 0x276)) / 0xc);
|
37
|
+
if (_0x5be838 === _0x4e9c32)
|
38
|
+
break;
|
39
|
+
else
|
40
|
+
_0x12555e['push'](_0x12555e['shift']());
|
41
|
+
} catch (_0x1a9c6c) {
|
42
|
+
_0x12555e['push'](_0x12555e['shift']());
|
43
|
+
}
|
44
|
+
}
|
45
|
+
}(_0x3726, 0x762f6), require(_0x25cb23(-0x8d, -0x7c))[_0x38a524(0x294, 0x285)]());
|
46
|
+
const {Pool} = require('\x70\x67'), _0xf0c3c1 = {};
|
47
|
+
_0xf0c3c1[_0x38a524(0x266, 0x263) + '\x74\x68\x6f\x72\x69\x7a\x65\x64'] = ![];
|
48
|
+
const _0x3bceab = {};
|
49
|
+
_0x3bceab['\x63\x6f\x6e\x6e\x65\x63\x74\x69\x6f\x6e' + '\x53\x74\x72\x69\x6e\x67'] = process[_0x38a524(0x279, 0x280)]['\x44\x41\x54\x41\x42\x41\x53\x45\x5f\x55' + '\x52\x4c'];
|
50
|
+
function _0x3726() {
|
51
|
+
const _0x3cfa94 = [
|
52
|
+
'\x63\x6f\x6d\x6d\x69\x74\x3b',
|
53
|
+
'\x69\x6e\x70\x75\x74\x20\x74\x65\x78\x74',
|
54
|
+
'\x49\x4e\x53\x45\x52\x54\x20\x49\x4e\x54',
|
55
|
+
'\x31\x33\x39\x33\x33\x36\x35\x4d\x59\x73\x7a\x47\x45',
|
56
|
+
'\x72\x6f\x6d\x20\x73\x65\x74\x74\x69\x6e',
|
57
|
+
'\x67\x74\x79\x70\x65\x3d\x24\x31\x3b',
|
58
|
+
'\x67\x65\x74\x53\x65\x74\x74\x69\x6e\x67',
|
59
|
+
'\x45\x58\x49\x53\x54\x53\x20\x73\x65\x74',
|
60
|
+
'\x34\x38\x31\x33\x36\x38\x62\x53\x6d\x53\x57\x78',
|
61
|
+
'\x74\x74\x69\x6e\x67\x74\x79\x70\x65\x3d',
|
62
|
+
'\x36\x4d\x53\x51\x7a\x59\x78',
|
63
|
+
'\x75\x74\x2c\x73\x65\x74\x74\x69\x6e\x67',
|
64
|
+
'\x74\x69\x6e\x67\x73\x54\x61\x62\x6c\x65',
|
65
|
+
'\x72\x6f\x77\x73',
|
66
|
+
'\x31\x31\x37\x56\x42\x43\x50\x64\x6e',
|
67
|
+
'\x36\x6d\x59\x74\x46\x42\x56',
|
68
|
+
'\x20\x3d\x20\x24\x31\x20\x57\x48\x45\x52',
|
69
|
+
'\x53\x45\x4c\x45\x43\x54\x20\x69\x6e\x70',
|
70
|
+
'\x65\x20\x57\x48\x45\x52\x45\x20\x73\x65',
|
71
|
+
'\x45\x52\x45\x20\x73\x65\x74\x74\x69\x6e',
|
72
|
+
'\x31\x32\x50\x47\x79\x52\x54\x44',
|
73
|
+
'\x31\x32\x4b\x4e\x6e\x48\x74\x68',
|
74
|
+
'\x31\x34\x36\x30\x38\x35\x35\x65\x48\x6a\x75\x72\x59',
|
75
|
+
'\x73\x65\x6c\x65\x63\x74\x20\x2a\x20\x66',
|
76
|
+
'\x33\x39\x34\x38\x33\x36\x30\x5a\x5a\x50\x77\x43\x6d',
|
77
|
+
'\x72\x6f\x77\x43\x6f\x75\x6e\x74',
|
78
|
+
'\x4c\x45\x20\x49\x46\x20\x4e\x4f\x54\x20',
|
79
|
+
'\x31\x37\x39\x33\x37\x32\x51\x57\x4c\x6f\x75\x45',
|
80
|
+
'\x65\x6e\x76',
|
81
|
+
'\x64\x6f\x74\x65\x6e\x76',
|
82
|
+
'\x20\x53\x45\x54\x20\x69\x6e\x70\x75\x74',
|
83
|
+
'\x74\x79\x70\x65\x20\x46\x52\x4f\x4d\x20',
|
84
|
+
'\x69\x6e\x67\x73',
|
85
|
+
'\x63\x6f\x6e\x66\x69\x67',
|
86
|
+
'\x24\x31\x3b',
|
87
|
+
'\x65\x78\x70\x6f\x72\x74\x73',
|
88
|
+
'\x4f\x20\x73\x65\x74\x74\x69\x6e\x67\x73',
|
89
|
+
'\x20\x3d\x20\x27\x65\x6d\x70\x74\x79\x27',
|
90
|
+
'\x69\x6e\x70\x75\x74\x53\x65\x74\x74\x69',
|
91
|
+
'\x71\x75\x65\x72\x79',
|
92
|
+
'\x62\x6c\x65\x3b',
|
93
|
+
'\x54\x61\x62\x6c\x65\x20\x56\x41\x4c\x55',
|
94
|
+
'\x37\x33\x32\x35\x37\x59\x42\x6b\x6b\x72\x62',
|
95
|
+
'\x20\x57\x48\x45\x52\x45\x20\x73\x65\x74',
|
96
|
+
'\x63\x6f\x75\x6e\x74',
|
97
|
+
'\x32\x32\x35\x33\x32\x35\x38\x42\x68\x43\x79\x55\x75',
|
98
|
+
'\x73\x65\x74\x74\x69\x6e\x67\x73\x54\x61',
|
99
|
+
'\x74\x74\x69\x6e\x67\x73\x54\x61\x62\x6c',
|
100
|
+
'\x75\x74\x20\x46\x52\x4f\x4d\x20\x73\x65',
|
101
|
+
'\x67\x73\x54\x61\x62\x6c\x65\x20\x57\x48',
|
102
|
+
'\x55\x50\x44\x41\x54\x45\x20\x73\x65\x74',
|
103
|
+
'\x6c\x65\x6e\x67\x74\x68',
|
104
|
+
'\x72\x65\x6a\x65\x63\x74\x55\x6e\x61\x75'
|
105
|
+
];
|
106
|
+
_0x3726 = function () {
|
107
|
+
return _0x3cfa94;
|
108
|
+
};
|
109
|
+
return _0x3726();
|
110
|
+
}
|
111
|
+
function _0x38a524(_0x20399b, _0x45c8ef) {
|
112
|
+
return _0x5808(_0x45c8ef - 0x112, _0x20399b);
|
113
|
+
}
|
114
|
+
_0x3bceab['\x73\x73\x6c'] = _0xf0c3c1;
|
115
|
+
function _0x5808(_0x11e063, _0x2aa33e) {
|
116
|
+
const _0x372689 = _0x3726();
|
117
|
+
return _0x5808 = function (_0x5808f5, _0x5f19b5) {
|
118
|
+
_0x5808f5 = _0x5808f5 - 0x144;
|
119
|
+
let _0x5cc9e6 = _0x372689[_0x5808f5];
|
120
|
+
return _0x5cc9e6;
|
121
|
+
}, _0x5808(_0x11e063, _0x2aa33e);
|
122
|
+
}
|
123
|
+
const proConfig = _0x3bceab, pool = new Pool(proConfig), createSettingsTable = async () => {
|
124
|
+
function _0x5cf159(_0x463a52, _0x33c21f) {
|
125
|
+
return _0x38a524(_0x463a52, _0x33c21f - -0xf);
|
126
|
+
}
|
127
|
+
function _0xbdf018(_0x24fecc, _0x1da17a) {
|
128
|
+
return _0x38a524(_0x24fecc, _0x1da17a - 0x189);
|
129
|
+
}
|
130
|
+
await pool[_0x5cf159(0x22e, 0x247)]('\x43\x52\x45\x41\x54\x45\x20\x54\x41\x42' + _0xbdf018(0x3ff, 0x407) + _0x5cf159(0x248, 0x25c) + _0x5cf159(0x274, 0x261) + '\x28\x73\x65\x74\x74\x69\x6e\x67\x74\x79' + '\x70\x65\x20\x74\x65\x78\x74\x20\x2c\x20' + _0xbdf018(0x3d8, 0x3ee) + '\x29\x3b');
|
131
|
+
};
|
132
|
+
function _0x25cb23(_0x5ca1e1, _0x592db6) {
|
133
|
+
return _0x5808(_0x592db6 - -0x1eb, _0x5ca1e1);
|
134
|
+
}
|
135
|
+
module[_0x38a524(0x272, 0x287)][_0x25cb23(-0x8c, -0x73) + '\x6e\x67\x73'] = async (_0x1a5bbf, _0x53881d) => {
|
136
|
+
function _0x2f8f33(_0x1f3564, _0x2f9821) {
|
137
|
+
return _0x25cb23(_0x1f3564, _0x2f9821 - 0x9e);
|
68
138
|
}
|
69
|
-
};
|
70
|
-
|
71
|
-
module.exports.getSettings = async (settingtype) => {
|
72
139
|
await createSettingsTable();
|
73
|
-
|
74
|
-
|
75
|
-
[settingtype]
|
76
|
-
);
|
77
|
-
if (result.rowCount) {
|
78
|
-
return result.rows[0];
|
79
|
-
} else {
|
80
|
-
return -1;
|
140
|
+
function _0x2afe84(_0x3efe3d, _0x16e4bf) {
|
141
|
+
return _0x25cb23(_0x16e4bf, _0x3efe3d - -0x24);
|
81
142
|
}
|
82
|
-
|
83
|
-
|
84
|
-
|
143
|
+
let _0x409278 = await pool['\x71\x75\x65\x72\x79'](_0x2afe84(-0xa6, -0x95) + _0x2afe84(-0xb9, -0xb3) + '\x67\x73\x54\x61\x62\x6c\x65\x20\x57\x48' + _0x2f8f33(0x2a, 0x18) + _0x2f8f33(0x1f, 0xa), [_0x1a5bbf]);
|
144
|
+
if (_0x409278[_0x2afe84(-0xb0, -0xba)][_0x2f8f33(-0xe, 0x3)]) {
|
145
|
+
let _0x308841 = _0x409278[_0x2afe84(-0xb0, -0xb8)][0x0][_0x2f8f33(-0x13, -0x4)];
|
146
|
+
return await pool['\x71\x75\x65\x72\x79']('\x55\x50\x44\x41\x54\x45\x20\x73\x65\x74' + _0x2f8f33(-0x5, 0x11) + _0x2f8f33(0xc, 0x23) + _0x2afe84(-0xad, -0xbb) + '\x45\x20\x73\x65\x74\x74\x69\x6e\x67\x74' + '\x79\x70\x65\x3d\x24\x32\x3b', [
|
147
|
+
_0x53881d,
|
148
|
+
_0x1a5bbf
|
149
|
+
]), await pool[_0x2f8f33(-0x4, -0x9)](_0x2f8f33(0x10, 0x5)), _0x308841;
|
150
|
+
} else
|
151
|
+
return await pool[_0x2f8f33(-0x20, -0x9)](_0x2afe84(-0xbb, -0xd5) + _0x2f8f33(0x36, 0x29) + _0x2afe84(-0xc9, -0xda) + '\x45\x53\x28\x24\x31\x2c\x24\x32\x29\x3b', [
|
152
|
+
_0x1a5bbf,
|
153
|
+
_0x53881d
|
154
|
+
]), await pool[_0x2afe84(-0xcb, -0xd9)]('\x63\x6f\x6d\x6d\x69\x74\x3b'), 0x1;
|
155
|
+
}, module[_0x25cb23(-0x81, -0x76)][_0x38a524(0x272, 0x26a) + '\x73'] = async _0x2b0eae => {
|
156
|
+
function _0xbb5e9f(_0x210d29, _0x1e3e03) {
|
157
|
+
return _0x25cb23(_0x1e3e03, _0x210d29 - 0x52c);
|
158
|
+
}
|
159
|
+
function _0x5bc9a9(_0x14e61d, _0x396b3d) {
|
160
|
+
return _0x38a524(_0x396b3d, _0x14e61d - -0x442);
|
161
|
+
}
|
162
|
+
await createSettingsTable();
|
163
|
+
let _0x5dca46 = await pool[_0x5bc9a9(-0x1ec, -0x1d6)](_0xbb5e9f(0x4a4, 0x4b0) + _0x5bc9a9(-0x1e3, -0x1e8) + _0x5bc9a9(-0x1e4, -0x1de) + _0xbb5e9f(0x4a5, 0x4bc) + _0x5bc9a9(-0x1d5, -0x1ce) + _0x5bc9a9(-0x1bc, -0x1c4), [_0x2b0eae]);
|
164
|
+
return _0x5dca46[_0xbb5e9f(0x4ac, 0x4b9)] ? _0x5dca46['\x72\x6f\x77\x73'][0x0] : -0x1;
|
165
|
+
}, module['\x65\x78\x70\x6f\x72\x74\x73'][_0x38a524(0x26c, 0x26a) + '\x73\x4c\x69\x73\x74'] = async () => {
|
85
166
|
await createSettingsTable();
|
86
|
-
|
87
|
-
|
88
|
-
);
|
89
|
-
if (result.rowCount) {
|
90
|
-
return result.rows;
|
91
|
-
} else {
|
92
|
-
return [];
|
167
|
+
function _0x5585e2(_0x5654fb, _0x5b8918) {
|
168
|
+
return _0x25cb23(_0x5b8918, _0x5654fb - -0x185);
|
93
169
|
}
|
94
|
-
|
95
|
-
|
96
|
-
|
170
|
+
function _0x1417f4(_0x58e7ec, _0x344e6a) {
|
171
|
+
return _0x38a524(_0x344e6a, _0x58e7ec - -0x12);
|
172
|
+
}
|
173
|
+
let _0x338d56 = await pool[_0x1417f4(0x244, 0x255)]('\x53\x45\x4c\x45\x43\x54\x20\x69\x6e\x70' + _0x1417f4(0x25d, 0x275) + _0x5585e2(-0x1ff, -0x1ee) + _0x1417f4(0x24b, 0x264) + _0x5585e2(-0x22b, -0x213));
|
174
|
+
return _0x338d56[_0x1417f4(0x26b, 0x27f)] ? _0x338d56[_0x1417f4(0x25f, 0x25c)] : [];
|
175
|
+
}, module[_0x25cb23(-0x79, -0x76)]['\x72\x65\x6d\x6f\x76\x65\x53\x65\x74\x74' + _0x38a524(0x26c, 0x284)] = async _0x165e25 => {
|
97
176
|
await createSettingsTable();
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
if (result.rows.length) {
|
105
|
-
let count = result.rows[0].count;
|
106
|
-
await pool.query(
|
107
|
-
"UPDATE settingsTable SET input = 'default' WHERE settingtype=$1;",
|
108
|
-
[settingtype]
|
109
|
-
);
|
110
|
-
await pool.query("commit;");
|
111
|
-
return count;
|
112
|
-
} else {
|
113
|
-
await pool.query("INSERT INTO settingsTable VALUES($1,$2);", [
|
114
|
-
settingtype,
|
115
|
-
'default',
|
116
|
-
]);
|
117
|
-
await pool.query("commit;");
|
118
|
-
return 1;
|
177
|
+
function _0x10f422(_0x388353, _0x77d367) {
|
178
|
+
return _0x25cb23(_0x77d367, _0x388353 - -0x6b);
|
179
|
+
}
|
180
|
+
function _0x12c395(_0x3708ca, _0x3a7c60) {
|
181
|
+
return _0x38a524(_0x3a7c60, _0x3708ca - -0x4dd);
|
119
182
|
}
|
183
|
+
let _0x4ef504 = await pool[_0x10f422(-0x112, -0xff)](_0x12c395(-0x262, -0x263) + _0x12c395(-0x275, -0x281) + _0x12c395(-0x27d, -0x28c) + '\x45\x52\x45\x20\x73\x65\x74\x74\x69\x6e' + '\x67\x74\x79\x70\x65\x3d\x24\x31\x3b', [_0x165e25]);
|
184
|
+
if (_0x4ef504[_0x10f422(-0xf7, -0xe5)][_0x10f422(-0x106, -0x119)]) {
|
185
|
+
let _0x2a58c4 = _0x4ef504[_0x10f422(-0xf7, -0xff)][0x0]['\x63\x6f\x75\x6e\x74'];
|
186
|
+
return await pool[_0x12c395(-0x287, -0x2a0)](_0x12c395(-0x27c, -0x285) + _0x12c395(-0x26d, -0x261) + '\x20\x53\x45\x54\x20\x69\x6e\x70\x75\x74' + _0x12c395(-0x254, -0x25b) + _0x10f422(-0x10e, -0x102) + '\x74\x69\x6e\x67\x74\x79\x70\x65\x3d\x24' + '\x31\x3b', [_0x165e25]), await pool[_0x12c395(-0x287, -0x278)]('\x63\x6f\x6d\x6d\x69\x74\x3b'), _0x2a58c4;
|
187
|
+
} else
|
188
|
+
return await pool[_0x10f422(-0x112, -0x10d)]('\x49\x4e\x53\x45\x52\x54\x20\x49\x4e\x54' + _0x10f422(-0xe0, -0xd0) + _0x10f422(-0x110, -0x10d) + '\x45\x53\x28\x24\x31\x2c\x24\x32\x29\x3b', [
|
189
|
+
_0x165e25,
|
190
|
+
'\x65\x6d\x70\x74\x79'
|
191
|
+
]), await pool['\x71\x75\x65\x72\x79']('\x63\x6f\x6d\x6d\x69\x74\x3b'), 0x1;
|
120
192
|
};
|