Protetto le password (al load) che vengono settate in settings
This commit is contained in:
@@ -42,7 +42,7 @@
|
||||
"node-emoji": "^1.11.0",
|
||||
"node-image-resizer": "^1.0.0",
|
||||
"node-pre-gyp": "^0.14.0",
|
||||
"node-telegram-bot-api": "^0.54.0",
|
||||
"node-telegram-bot-api": "^0.56.0",
|
||||
"nodemailer": "^6.6.3",
|
||||
"preview-email": "^3.0.5",
|
||||
"pug": "^3.0.2",
|
||||
|
||||
@@ -40,7 +40,7 @@ ContribtypeSchema.statics.DuplicateAllRecords = async function (idapporig, idapp
|
||||
};
|
||||
|
||||
|
||||
ContribtypeSchema.statics.findAllIdApp = function (idapp) {
|
||||
ContribtypeSchema.statics.findAllIdApp = async function (idapp) {
|
||||
const Contribtype = this;
|
||||
|
||||
const myfind = { idapp };
|
||||
|
||||
@@ -55,7 +55,7 @@ const DisciplineSchema = new Schema({
|
||||
}],
|
||||
});
|
||||
|
||||
DisciplineSchema.statics.findAllIdApp = function (idapp) {
|
||||
DisciplineSchema.statics.findAllIdApp = async function (idapp) {
|
||||
const Discipline = this;
|
||||
|
||||
const query = [
|
||||
|
||||
@@ -222,7 +222,7 @@ ExtraListSchema.statics.executeQueryTable = function (idapp, params) {
|
||||
return tools.executeQueryTable(this, idapp, params);
|
||||
};
|
||||
|
||||
ExtraListSchema.statics.findAllIdApp = function (idapp) {
|
||||
ExtraListSchema.statics.findAllIdApp = async function (idapp) {
|
||||
const ExtraList = this;
|
||||
|
||||
const myfind = { idapp };
|
||||
|
||||
@@ -208,7 +208,7 @@ FlottaSchema.statics.executeQueryTable = function (idapp, params) {
|
||||
return tools.executeQueryTable(this, idapp, params);
|
||||
};
|
||||
|
||||
FlottaSchema.statics.findAllIdApp = function (idapp) {
|
||||
FlottaSchema.statics.findAllIdApp = async function (idapp) {
|
||||
const Flotta = this;
|
||||
|
||||
const myfind = { idapp };
|
||||
|
||||
@@ -308,7 +308,7 @@ GraduatoriaSchema.statics.executeQueryTable = function (idapp, params) {
|
||||
return tools.executeQueryTable(this, idapp, params);
|
||||
};
|
||||
|
||||
GraduatoriaSchema.statics.findAllIdApp = function (idapp) {
|
||||
GraduatoriaSchema.statics.findAllIdApp = async function (idapp) {
|
||||
const Graduatoria = this;
|
||||
|
||||
const myfind = { idapp };
|
||||
|
||||
@@ -48,7 +48,7 @@ LevelSchema.pre('save', async function (next) {
|
||||
});
|
||||
|
||||
|
||||
LevelSchema.statics.findAllIdApp = function(idapp) {
|
||||
LevelSchema.statics.findAllIdApp = async function(idapp) {
|
||||
const Level = this;
|
||||
|
||||
const query = [
|
||||
|
||||
@@ -529,7 +529,7 @@ ListaIngressoSchema.statics.executeQueryTable = function (idapp, params) {
|
||||
return tools.executeQueryTable(this, idapp, params);
|
||||
};
|
||||
|
||||
ListaIngressoSchema.statics.findAllIdApp = function (idapp) {
|
||||
ListaIngressoSchema.statics.findAllIdApp = async function (idapp) {
|
||||
const ListaIngresso = this;
|
||||
|
||||
const myfind = { idapp };
|
||||
|
||||
@@ -139,7 +139,7 @@ const MyEventSchema = new Schema({
|
||||
},
|
||||
});
|
||||
|
||||
MyEventSchema.statics.findAllIdApp = function(socioresidente, idapp) {
|
||||
MyEventSchema.statics.findAllIdApp = async function(socioresidente, idapp) {
|
||||
const Event = this;
|
||||
|
||||
let query = [];
|
||||
|
||||
@@ -89,7 +89,7 @@ MySkillSchema.pre('save', async function(next) {
|
||||
next();
|
||||
});
|
||||
|
||||
MySkillSchema.statics.findAllIdApp = function(idapp) {
|
||||
MySkillSchema.statics.findAllIdApp = async function(idapp) {
|
||||
|
||||
const query = [
|
||||
{$match: {idapp}},
|
||||
|
||||
@@ -190,7 +190,7 @@ NaveSchema.statics.executeQueryTable = function (idapp, params) {
|
||||
return tools.executeQueryTable(this, idapp, params);
|
||||
};
|
||||
|
||||
NaveSchema.statics.findAllIdApp = function (idapp) {
|
||||
NaveSchema.statics.findAllIdApp = async function (idapp) {
|
||||
const Nave = this;
|
||||
|
||||
const myfind = { idapp };
|
||||
|
||||
@@ -181,7 +181,7 @@ NavePersistenteSchema.statics.executeQueryTable = function (idapp, params) {
|
||||
return tools.executeQueryTable(this, idapp, params);
|
||||
};
|
||||
|
||||
NavePersistenteSchema.statics.findAllIdApp = function (idapp) {
|
||||
NavePersistenteSchema.statics.findAllIdApp = async function (idapp) {
|
||||
const NavePersistente = this;
|
||||
|
||||
const myfind = { idapp };
|
||||
|
||||
@@ -133,7 +133,7 @@ NewstosentSchema.statics.findNewsletterPending_To_Send = function (idapp) {
|
||||
});
|
||||
};
|
||||
|
||||
NewstosentSchema.statics.findAllIdApp = function (idapp) {
|
||||
NewstosentSchema.statics.findAllIdApp = async function (idapp) {
|
||||
const Newstosent = this;
|
||||
|
||||
const myfind = { idapp };
|
||||
|
||||
@@ -97,7 +97,7 @@ OperatorSchema.statics.executeQueryTable = function (idapp, params) {
|
||||
return tools.executeQueryTable(this, idapp, params);
|
||||
};
|
||||
|
||||
OperatorSchema.statics.findAllIdApp = function (idapp) {
|
||||
OperatorSchema.statics.findAllIdApp = async function (idapp) {
|
||||
const Operator = this;
|
||||
|
||||
const myfind = { idapp };
|
||||
|
||||
@@ -33,7 +33,7 @@ PaymentTypeSchema.statics.executeQueryTable = function (idapp, params) {
|
||||
return tools.executeQueryTable(this, idapp, params);
|
||||
};
|
||||
|
||||
PaymentTypeSchema.statics.findAllIdApp = function (idapp) {
|
||||
PaymentTypeSchema.statics.findAllIdApp = async function (idapp) {
|
||||
const PaymentType = this;
|
||||
|
||||
const myfind = { idapp };
|
||||
|
||||
@@ -45,7 +45,7 @@ PermissionSchema.statics.executeQueryTable = function (idapp, params) {
|
||||
return tools.executeQueryTable(this, 0, params);
|
||||
};
|
||||
|
||||
PermissionSchema.statics.findAllIdApp = function () {
|
||||
PermissionSchema.statics.findAllIdApp = async function () {
|
||||
const Permission = this;
|
||||
|
||||
const myfind = { };
|
||||
|
||||
@@ -56,7 +56,7 @@ SectorSchema.pre('save', async function (next) {
|
||||
next();
|
||||
});
|
||||
|
||||
SectorSchema.statics.findAllIdApp = function (idapp) {
|
||||
SectorSchema.statics.findAllIdApp = async function (idapp) {
|
||||
const Sector = this;
|
||||
|
||||
const query = [
|
||||
|
||||
@@ -39,6 +39,10 @@ const SettingsSchema = new Schema({
|
||||
serv: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
crypted: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
});
|
||||
|
||||
@@ -63,6 +67,8 @@ SettingsSchema.statics.getValDbSettings = function (idapp, key, def) {
|
||||
return myrec.value_num;
|
||||
else if (myrec.type === tools.FieldType.boolean)
|
||||
return myrec.value_bool;
|
||||
else if (myrec.type === tools.FieldType.crypted)
|
||||
return tools.decryptdata(myrec.value_str);
|
||||
else
|
||||
return myrec.value_str;
|
||||
} else {
|
||||
@@ -82,18 +88,35 @@ SettingsSchema.statics.DuplicateAllRecords = async function (idapporig, idappdes
|
||||
|
||||
};
|
||||
|
||||
SettingsSchema.statics.findAllIdApp = function (idapp, serv) {
|
||||
SettingsSchema.statics.findAllIdApp = async function (idapp, serv, crypted = false) {
|
||||
const Settings = this;
|
||||
|
||||
let myfind = '';
|
||||
if (serv)
|
||||
myfind = { idapp, serv };
|
||||
else
|
||||
if (serv) {
|
||||
myfind = {idapp, serv };
|
||||
} else
|
||||
myfind = { idapp };
|
||||
|
||||
return Settings.find(myfind, (err, arrrec) => {
|
||||
// myfind = {...myfind, $or: [{ crypted: { $exists: false } }, { crypted: { $exists: true, $eq: crypted } }]};
|
||||
|
||||
const arrorig = await Settings.find(myfind, (err, arrrec) => {
|
||||
return arrrec
|
||||
});
|
||||
|
||||
let myarr = []
|
||||
|
||||
if (!crypted) {
|
||||
arrorig.forEach((rec) => {
|
||||
if (rec.crypted) {
|
||||
rec._doc.value_str = ''
|
||||
}
|
||||
myarr.push({...rec._doc});
|
||||
})
|
||||
} else {
|
||||
myarr = [...arrorig];
|
||||
}
|
||||
|
||||
return myarr;
|
||||
};
|
||||
|
||||
SettingsSchema.statics.setKeyNum = async function (idapp, key, value) {
|
||||
|
||||
@@ -31,7 +31,7 @@ const SkillSchema = new Schema({
|
||||
},
|
||||
});
|
||||
|
||||
SkillSchema.statics.findAllIdApp = function (idapp) {
|
||||
SkillSchema.statics.findAllIdApp = async function (idapp) {
|
||||
const Skill = this;
|
||||
|
||||
const query = [
|
||||
|
||||
@@ -45,7 +45,7 @@ StatusSkillSchema.pre('save', async function (next) {
|
||||
|
||||
|
||||
|
||||
StatusSkillSchema.statics.findAllIdApp = function (idapp) {
|
||||
StatusSkillSchema.statics.findAllIdApp = async function (idapp) {
|
||||
const StatusSkill = this;
|
||||
|
||||
const query = [
|
||||
|
||||
@@ -364,7 +364,7 @@ UserSchema.statics.setZoomPresenza = async function(idapp, id, presenza) {
|
||||
allData.precDataUser = await User.getInfoUser(idapp,
|
||||
allData.myuser.username);
|
||||
|
||||
return await User.findByIdAndUpdate(id,
|
||||
return User.findByIdAndUpdate(id,
|
||||
{$set: {'profile.saw_zoom_presentation': presenza}}).then((rec) => {
|
||||
if (presenza) {
|
||||
const messaggio = tools.get__('ZOOM_CONFERMATO');
|
||||
@@ -1086,7 +1086,7 @@ UserSchema.methods.removeToken = function(token) {
|
||||
UserSchema.statics.getEmailByUsername = async function(idapp, username) {
|
||||
const User = this;
|
||||
|
||||
return await User.findOne({
|
||||
return User.findOne({
|
||||
idapp, username,
|
||||
$or: [{deleted: {$exists: false}}, {deleted: {$exists: true, $eq: false}}],
|
||||
}).then((arrrec) => {
|
||||
@@ -1099,7 +1099,7 @@ UserSchema.statics.getEmailByUsername = async function(idapp, username) {
|
||||
UserSchema.statics.getUsernameById = async function(idapp, id) {
|
||||
const User = this;
|
||||
|
||||
return await User.findOne({
|
||||
return User.findOne({
|
||||
idapp, _id: id,
|
||||
$or: [{deleted: {$exists: false}}, {deleted: {$exists: true, $eq: false}}],
|
||||
}, {username: 1}).then((myuser) => {
|
||||
@@ -1122,7 +1122,7 @@ UserSchema.statics.getAportadorSolidarioByUsername = async function(
|
||||
idapp, username) {
|
||||
const User = this;
|
||||
|
||||
return await User.findOne({
|
||||
return User.findOne({
|
||||
idapp, username,
|
||||
$or: [{deleted: {$exists: false}}, {deleted: {$exists: true, $eq: false}}],
|
||||
}).then((rec) => {
|
||||
@@ -1135,7 +1135,7 @@ UserSchema.statics.getAportadorSolidarioByUsername = async function(
|
||||
UserSchema.statics.UserByIdTelegram = async function(idapp, teleg_id) {
|
||||
const User = this;
|
||||
|
||||
return await User.findOne({
|
||||
return User.findOne({
|
||||
idapp, 'profile.teleg_id': teleg_id,
|
||||
$or: [{deleted: {$exists: false}}, {deleted: {$exists: true, $eq: false}}],
|
||||
}).then((rec) => {
|
||||
@@ -1148,7 +1148,7 @@ UserSchema.statics.UserByIdTelegram = async function(idapp, teleg_id) {
|
||||
UserSchema.statics.UsersByIdTelegram = async function(idapp, teleg_id) {
|
||||
const User = this;
|
||||
|
||||
return await User.find({
|
||||
return User.find({
|
||||
idapp, 'profile.teleg_id': teleg_id,
|
||||
$or: [{deleted: {$exists: false}}, {deleted: {$exists: true, $eq: false}}],
|
||||
}).then((rec) => {
|
||||
@@ -1161,7 +1161,7 @@ UserSchema.statics.UsersByIdTelegram = async function(idapp, teleg_id) {
|
||||
UserSchema.statics.TelegIdByUsername = async function(idapp, username) {
|
||||
const User = this;
|
||||
|
||||
return await User.findOne({
|
||||
return User.findOne({
|
||||
idapp, username,
|
||||
$or: [{deleted: {$exists: false}}, {deleted: {$exists: true, $eq: false}}],
|
||||
}, {'profile.teleg_id': 1}).then((rec) => {
|
||||
@@ -1179,7 +1179,7 @@ UserSchema.statics.SetTelegramCheckCode = async function(
|
||||
'profile.teleg_checkcode': teleg_checkcode,
|
||||
};
|
||||
|
||||
return await User.findOneAndUpdate({
|
||||
return User.findOneAndUpdate({
|
||||
_id: id,
|
||||
}, {$set: fields_to_update}, {new: false}).then((record) => {
|
||||
return !!record;
|
||||
@@ -1194,7 +1194,7 @@ UserSchema.statics.NonVoglioImbarcarmi = async function(idapp, username) {
|
||||
non_voglio_imbarcarmi: true,
|
||||
};
|
||||
|
||||
return await User.findOneAndUpdate({
|
||||
return User.findOneAndUpdate({
|
||||
idapp,
|
||||
username,
|
||||
}, {$set: fields_to_update}, {new: false}).then((record) => {
|
||||
@@ -1212,7 +1212,7 @@ UserSchema.statics.SetTelegramIdSuccess = async function(idapp, id, teleg_id) {
|
||||
'profile.teleg_checkcode': 0,
|
||||
};
|
||||
|
||||
return await User.findOneAndUpdate({
|
||||
return User.findOneAndUpdate({
|
||||
idapp,
|
||||
_id: id,
|
||||
}, {$set: fields_to_update}, {new: false}).then((record) => {
|
||||
@@ -1236,7 +1236,7 @@ UserSchema.statics.SetLang = async function(idapp, id, lang) {
|
||||
lang,
|
||||
};
|
||||
|
||||
return await User.findOneAndUpdate({
|
||||
return User.findOneAndUpdate({
|
||||
_id: id,
|
||||
}, {$set: fields_to_update}, {new: false}).then((record) => {
|
||||
return record;
|
||||
@@ -1267,7 +1267,7 @@ UserSchema.statics.SetTelegramWasBlocked = async function(idapp, teleg_id) {
|
||||
UserSchema.statics.getNameSurnameByUsername = async function(idapp, username) {
|
||||
const User = this;
|
||||
|
||||
return await User.findOne({
|
||||
return User.findOne({
|
||||
idapp, username,
|
||||
$or: [{deleted: {$exists: false}}, {deleted: {$exists: true, $eq: false}}],
|
||||
}, {name: 1, surname: 1}).then((rec) => {
|
||||
@@ -1280,7 +1280,7 @@ UserSchema.statics.getNameSurnameByUsername = async function(idapp, username) {
|
||||
UserSchema.statics.getNameSurnameById = async function(idapp, userId) {
|
||||
const User = this;
|
||||
|
||||
return await User.findOne({
|
||||
return User.findOne({
|
||||
idapp,
|
||||
_id: userId,
|
||||
$or: [{deleted: {$exists: false}}, {deleted: {$exists: true, $eq: false}}],
|
||||
@@ -1384,7 +1384,7 @@ UserSchema.statics.getRecByIndOrder = async function(idapp, ind_order) {
|
||||
UserSchema.statics.getusersManagers = async function(idapp) {
|
||||
const User = this;
|
||||
|
||||
return await User.find({idapp, 'profile.manage_telegram': true},
|
||||
return User.find({idapp, 'profile.manage_telegram': true},
|
||||
{'profile.teleg_id': 1, perm: 1}).then((arrrec) => {
|
||||
return (!!arrrec) ? arrrec : null;
|
||||
}).catch((e) => {
|
||||
@@ -1395,7 +1395,7 @@ UserSchema.statics.getusersManagers = async function(idapp) {
|
||||
UserSchema.statics.getusersRespList = async function(idapp) {
|
||||
const User = this;
|
||||
|
||||
return await User.find({idapp, 'profile.resplist': true},
|
||||
return User.find({idapp, 'profile.resplist': true},
|
||||
{_id: 1, username: 1, name: 1, surname: 1}).then((arrrec) => {
|
||||
return (!!arrrec) ? arrrec : null;
|
||||
}).catch((e) => {
|
||||
@@ -1406,7 +1406,7 @@ UserSchema.statics.getusersRespList = async function(idapp) {
|
||||
UserSchema.statics.getusersWorkersList = async function(idapp) {
|
||||
const User = this;
|
||||
|
||||
return await User.find({idapp, 'profile.workerslist': true},
|
||||
return User.find({idapp, 'profile.workerslist': true},
|
||||
{_id: 1, username: 1, name: 1, surname: 1}).then((arrrec) => {
|
||||
return (!!arrrec) ? arrrec : null;
|
||||
}).catch((e) => {
|
||||
@@ -1417,7 +1417,7 @@ UserSchema.statics.getusersWorkersList = async function(idapp) {
|
||||
UserSchema.statics.getusersManagersAndZoomeri = async function(idapp) {
|
||||
const User = this;
|
||||
|
||||
return await User.find(
|
||||
return User.find(
|
||||
{
|
||||
idapp,
|
||||
or: [
|
||||
@@ -1444,7 +1444,7 @@ UserSchema.statics.getUsersTelegALL = async function(idapp, username) {
|
||||
const User = this;
|
||||
|
||||
if (!!username) {
|
||||
return await User.find({idapp, username, 'profile.teleg_id': {$gt: 0}}).
|
||||
return User.find({idapp, username, 'profile.teleg_id': {$gt: 0}}).
|
||||
then((arrrec) => {
|
||||
return (!!arrrec) ? arrrec : null;
|
||||
}).
|
||||
@@ -1452,7 +1452,7 @@ UserSchema.statics.getUsersTelegALL = async function(idapp, username) {
|
||||
console.error('getUsersTelegALL', e);
|
||||
});
|
||||
} else {
|
||||
return await User.find({idapp, 'profile.teleg_id': {$gt: 0}}).
|
||||
return User.find({idapp, 'profile.teleg_id': {$gt: 0}}).
|
||||
then((arrrec) => {
|
||||
return (!!arrrec) ? arrrec : null;
|
||||
}).
|
||||
@@ -1466,7 +1466,7 @@ UserSchema.statics.getUsersTelegALL = async function(idapp, username) {
|
||||
UserSchema.statics.isManagerByIdTeleg = async function(idapp, idtelegram) {
|
||||
const User = this;
|
||||
|
||||
return await User.findOne({
|
||||
return User.findOne({
|
||||
idapp,
|
||||
'profile.manage_telegram': true,
|
||||
'profile.teleg_id': idtelegram,
|
||||
@@ -1481,7 +1481,7 @@ UserSchema.statics.isManagerByIdTeleg = async function(idapp, idtelegram) {
|
||||
UserSchema.statics.isAdminByIdTeleg = async function(idapp, idtelegram) {
|
||||
const User = this;
|
||||
|
||||
return await User.findOne({
|
||||
return User.findOne({
|
||||
idapp,
|
||||
username: 'paoloar77',
|
||||
'profile.manage_telegram': true,
|
||||
@@ -1545,7 +1545,7 @@ UserSchema.statics.executeQueryTable = function(idapp, params) {
|
||||
return tools.executeQueryTable(this, idapp, params);
|
||||
};
|
||||
|
||||
UserSchema.statics.findAllIdApp = function(idapp) {
|
||||
UserSchema.statics.findAllIdApp = async function(idapp) {
|
||||
const User = this;
|
||||
|
||||
const myfind = {
|
||||
@@ -1767,7 +1767,7 @@ UserSchema.statics.getUsersRegistered = async function(idapp) {
|
||||
$or: [{deleted: {$exists: false}}, {deleted: {$exists: true, $eq: false}}],
|
||||
};
|
||||
|
||||
return await User.count(myfind);
|
||||
return User.count(myfind);
|
||||
};
|
||||
|
||||
/*
|
||||
@@ -1962,7 +1962,7 @@ UserSchema.statics.getEmailNotVerified = async function(idapp) {
|
||||
verified_email: false,
|
||||
};
|
||||
|
||||
return await User.count(myfind);
|
||||
return User.count(myfind);
|
||||
};
|
||||
|
||||
UserSchema.statics.getUsersTelegramAttivo = async function(idapp) {
|
||||
@@ -1974,7 +1974,7 @@ UserSchema.statics.getUsersTelegramAttivo = async function(idapp) {
|
||||
'profile.teleg_id': {$gt: 0},
|
||||
};
|
||||
|
||||
return await User.count(myfind);
|
||||
return User.count(myfind);
|
||||
};
|
||||
|
||||
UserSchema.statics.getUsersTelegramPending = async function(idapp) {
|
||||
@@ -1986,7 +1986,7 @@ UserSchema.statics.getUsersTelegramPending = async function(idapp) {
|
||||
'profile.teleg_checkcode': {$gt: 0},
|
||||
};
|
||||
|
||||
return await User.count(myfind);
|
||||
return User.count(myfind);
|
||||
};
|
||||
|
||||
UserSchema.statics.getUsersZoom = async function(idapp) {
|
||||
@@ -1998,7 +1998,7 @@ UserSchema.statics.getUsersZoom = async function(idapp) {
|
||||
'profile.saw_zoom_presentation': true,
|
||||
};
|
||||
|
||||
return await User.count(myfind);
|
||||
return User.count(myfind);
|
||||
};
|
||||
|
||||
UserSchema.statics.getUsersResidenti = async function(idapp) {
|
||||
@@ -2010,7 +2010,7 @@ UserSchema.statics.getUsersResidenti = async function(idapp) {
|
||||
'profile.socioresidente': {$exists: true, $eq: true},
|
||||
};
|
||||
|
||||
return await User.find(myfind, {username: 1, name: 1, surname: 1});
|
||||
return User.find(myfind, {username: 1, name: 1, surname: 1});
|
||||
};
|
||||
|
||||
UserSchema.statics.getSaw_and_Accepted = async function(idapp) {
|
||||
@@ -2022,7 +2022,7 @@ UserSchema.statics.getSaw_and_Accepted = async function(idapp) {
|
||||
'profile.saw_and_accepted': shared_consts.ALL_SAW_AND_ACCEPTED,
|
||||
};
|
||||
|
||||
return await User.count(myfind);
|
||||
return User.count(myfind);
|
||||
};
|
||||
|
||||
UserSchema.statics.getUsersDreams = async function(idapp) {
|
||||
@@ -2035,7 +2035,7 @@ UserSchema.statics.getUsersDreams = async function(idapp) {
|
||||
'$expr': {'$gt': [{'$strLenCP': '$profile.my_dream'}, 10]},
|
||||
};
|
||||
|
||||
return await User.count(myfind);
|
||||
return User.count(myfind);
|
||||
};
|
||||
|
||||
UserSchema.statics.getLastUsers = async function(idapp) {
|
||||
@@ -2043,7 +2043,7 @@ UserSchema.statics.getLastUsers = async function(idapp) {
|
||||
|
||||
const lastn = await Settings.getValDbSettings(idapp, 'SHOW_LAST_N_USERS', 5);
|
||||
|
||||
return await User.find(
|
||||
return User.find(
|
||||
{
|
||||
idapp,
|
||||
$or: [
|
||||
@@ -2067,7 +2067,7 @@ UserSchema.statics.getLastUsers = async function(idapp) {
|
||||
UserSchema.statics.checkUser = async function(idapp, username) {
|
||||
const User = this;
|
||||
|
||||
return await User.findOne({idapp, username}, {
|
||||
return User.findOne({idapp, username}, {
|
||||
verified_email: 1,
|
||||
'profile.teleg_id': 1,
|
||||
'profile.teleg_checkcode': 1,
|
||||
@@ -2213,7 +2213,7 @@ UserSchema.statics.getnumRegNDays = function(idapp, nrec) {
|
||||
UserSchema.statics.calcnumRegUntilDay = async function(idapp) {
|
||||
const User = this;
|
||||
|
||||
return await User.aggregate(User.getnumRegNDays(idapp, 30)).then((arr) => {
|
||||
return User.aggregate(User.getnumRegNDays(idapp, 30)).then((arr) => {
|
||||
return arr.reduce((sum, rec) => sum + rec.count, 0);
|
||||
});
|
||||
|
||||
@@ -2456,12 +2456,10 @@ UserSchema.statics.checkIfSbloccatiRequisiti = async function(
|
||||
!await User.isUserAlreadyQualified_2Invitati(idapp,
|
||||
allData.myuser.username)) {
|
||||
await User.setUserQualified_2Invitati(idapp, allData.myuser.username);
|
||||
|
||||
// ORA HAI I 9 REQUISITI !
|
||||
const msgtext = telegrambot.getCiao(idapp, allData.myuser.username,
|
||||
allData.myuser.lang) +
|
||||
tools.gettranslate('HAI_I_9_REQUISITI', allData.myuser.lang);
|
||||
telegrambot.sendMsgTelegram(idapp, allData.myuser.username, msgtext,
|
||||
false); // Anche a STAFF
|
||||
// const msgtext = telegrambot.getCiao(idapp, allData.myuser.username, allData.myuser.lang) + tools.gettranslate('HAI_I_9_REQUISITI', allData.myuser.lang);
|
||||
// telegrambot.sendMsgTelegram(idapp, allData.myuser.username, msgtext, false); // Anche a STAFF
|
||||
}
|
||||
|
||||
}
|
||||
@@ -2655,7 +2653,7 @@ UserSchema.statics.DbOp = async function(idapp, mydata) {
|
||||
|
||||
return {num};
|
||||
|
||||
// return await User.updateMany({ idapp }, { $set: { 'profile.cell': { $concat: ["$profile.intcode_cell", "$profile.cell"] } } })
|
||||
// return User.updateMany({ idapp }, { $set: { 'profile.cell': { $concat: ["$profile.intcode_cell", "$profile.cell"] } } })
|
||||
} else if (mydata.dbop === 'changeEmailLowerCase') {
|
||||
arrusers = await User.find({'idapp': idapp});
|
||||
let num = 0;
|
||||
|
||||
@@ -39,7 +39,7 @@ WhereSchema.statics.executeQueryTable = function (idapp, params) {
|
||||
return tools.executeQueryTable(this, idapp, params);
|
||||
};
|
||||
|
||||
WhereSchema.statics.findAllIdApp = function (idapp) {
|
||||
WhereSchema.statics.findAllIdApp = async function (idapp) {
|
||||
const Where = this;
|
||||
|
||||
const myfind = { idapp };
|
||||
|
||||
@@ -324,6 +324,15 @@ router.post('/settable', authenticate, (req, res) => {
|
||||
|
||||
mydata.idapp = req.user.idapp;
|
||||
|
||||
if ((!User.isAdmin(req.user.perm) && !User.isManager(req.user.perm) &&
|
||||
!User.isEditor(req.user.perm) && !User.isTutor(req.user.perm)) &&
|
||||
(req.user._id.toString() !== id) &&
|
||||
!tools.ModificheConsentite(mydata.table, fieldsvalue)) {
|
||||
// If without permissions, exit
|
||||
return res.status(404).
|
||||
send({code: server_constants.RIS_CODE_ERR_UNAUTHORIZED, msg: ''});
|
||||
}
|
||||
|
||||
if (shared_consts.TABLES_USER_ID.includes(params.table)) {
|
||||
mydata.userId = req.user._id;
|
||||
}
|
||||
@@ -573,6 +582,14 @@ router.patch('/chval', authenticate, async (req, res) => {
|
||||
});
|
||||
}
|
||||
|
||||
if (mydata.table === shared_consts.TAB_SETTINGS) {
|
||||
if (shared_consts.KEY_TO_CRYPTED.includes(fieldsvalue.key)) {
|
||||
fieldsvalue.crypted = true;
|
||||
fieldsvalue.value_str = tools.cryptdata(fieldsvalue.value_str);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
await mytable.findByIdAndUpdate(id, {$set: fieldsvalue}).then(async (rec) => {
|
||||
// tools.mylogshow(' REC TO MODIFY: ', rec);
|
||||
if (!rec) {
|
||||
@@ -1227,9 +1244,9 @@ function load(req, res, version) {
|
||||
version = '0';
|
||||
}
|
||||
|
||||
let sall = '0';
|
||||
let gestoredelSito = '0';
|
||||
if (!!req.user) {
|
||||
sall = (User.isAdmin(req.user.perm) || User.isManager(req.user.perm) ||
|
||||
gestoredelSito = (User.isAdmin(req.user.perm) || User.isManager(req.user.perm) ||
|
||||
User.isEditor(req.user.perm)) ? '1' : '0';
|
||||
}
|
||||
|
||||
@@ -1237,6 +1254,7 @@ function load(req, res, version) {
|
||||
|
||||
// tools.mylog('loadsite : ', req.params);
|
||||
|
||||
|
||||
let bookedevent = [];
|
||||
// let msgs = [];
|
||||
|
||||
@@ -1247,7 +1265,7 @@ function load(req, res, version) {
|
||||
|
||||
if (userId !== '0') {
|
||||
// LOGGED WITH USERID
|
||||
bookedevent = Booking.findAllByUserIdAndIdApp(userId, idapp, sall);
|
||||
bookedevent = Booking.findAllByUserIdAndIdApp(userId, idapp, gestoredelSito);
|
||||
}
|
||||
|
||||
// Extract all the todos of the userId only
|
||||
@@ -1258,7 +1276,7 @@ function load(req, res, version) {
|
||||
const contribtype = Contribtype.findAllIdApp(idapp);
|
||||
const paymenttype = PaymentType.findAllIdApp(idapp);
|
||||
const disciplines = Discipline.findAllIdApp(idapp);
|
||||
const settings = Settings.findAllIdApp(idapp, false);
|
||||
const settings = Settings.findAllIdApp(idapp, false, false);
|
||||
|
||||
const permissions = Permission.findAllIdApp();
|
||||
|
||||
@@ -1270,13 +1288,22 @@ function load(req, res, version) {
|
||||
else
|
||||
mypage = MyPage.findAllIdApp(idapp);
|
||||
let calzoom = CalZoom.findAllIdApp(idapp);
|
||||
let gallery = Gallery.findAllIdApp(idapp);
|
||||
|
||||
let gallery = Promise.resolve([]);
|
||||
if (gestoredelSito) {
|
||||
gallery = Gallery.findAllIdApp(idapp);
|
||||
}
|
||||
|
||||
let producers = Producer.findAllIdApp(idapp);
|
||||
let groups = Group.findAllIdApp(idapp);
|
||||
|
||||
// ....
|
||||
let resps = User.getusersRespList(idapp);
|
||||
let workers = User.getusersWorkersList(idapp);
|
||||
let storehouses = Storehouse.findAllIdApp(idapp);
|
||||
let departments = Department.findAllIdApp(idapp);
|
||||
|
||||
// SKILLS:
|
||||
let levels = Level.findAllIdApp(idapp);
|
||||
let skills = Skill.findAllIdApp(idapp);
|
||||
let statusSkills = StatusSkill.findAllIdApp(idapp);
|
||||
@@ -1284,7 +1311,7 @@ function load(req, res, version) {
|
||||
let cities = City.findAllIdApp(idapp);
|
||||
let cart = null;
|
||||
let orderscart = null;
|
||||
if (sall) {
|
||||
if (gestoredelSito) {
|
||||
newstosent = Newstosent.findAllIdApp(idapp);
|
||||
}
|
||||
|
||||
@@ -1433,6 +1460,8 @@ router.get(process.env.LINK_CHECK_UPDATES, authenticate, async (req, res) => {
|
||||
// If User is Admin, then send user Lists
|
||||
if (User.isAdmin(req.user.perm) || User.isEditor(req.user.perm) ||
|
||||
User.isManager(req.user.perm)) {
|
||||
|
||||
|
||||
// Send UsersList
|
||||
usersList = User.getUsersList(req.user.idapp);
|
||||
// usersList = null;
|
||||
|
||||
@@ -263,7 +263,7 @@ router.post('/load', authenticate, async (req, res) => {
|
||||
|
||||
const ris = {
|
||||
newsstate: await getDataNewsletter(locale, idapp),
|
||||
serv_settings: await Settings.findAllIdApp(idapp, true),
|
||||
serv_settings: await Settings.findAllIdApp(idapp, true, false),
|
||||
templemail: await TemplEmail.findAllIdApp(idapp, true),
|
||||
opzemail: await OpzEmail.findAllIdApp(idapp)
|
||||
};
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 151 KiB |
@@ -121,9 +121,9 @@ router.post('/', async (req, res) => {
|
||||
}
|
||||
|
||||
// user.perm = 3;
|
||||
if (tools.testing()) {
|
||||
user.verified_email = true;
|
||||
}
|
||||
// if (tools.testing()) {
|
||||
// user.verified_email = true;
|
||||
// }
|
||||
|
||||
// if (user.profile.intcode_cell) {
|
||||
// if (user.profile.cell.substring(0, user.profile.intcode_cell.length) === user.profile.intcode_cell) {
|
||||
|
||||
@@ -227,7 +227,7 @@ async function mystart() {
|
||||
// tools.sendNotifToAdmin('Riparti', 'Riparti');
|
||||
// sendemail.testemail('2', 'it');
|
||||
|
||||
let miapass = '';
|
||||
let miapass = 'passpao1pa@1A';
|
||||
|
||||
if (miapass !== '') {
|
||||
let crypt = tools.cryptdata(miapass);
|
||||
@@ -371,18 +371,20 @@ async function inizia() {
|
||||
|
||||
const telegrambot = require('./telegram/telegrambot');
|
||||
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
await telegrambot.sendMsgTelegram(tools.FREEPLANET, telegrambot.ADMIN_USER_SERVER, `Ciao ${telegrambot.ADMIN_USER_NAME_SERVER}!`);
|
||||
|
||||
} else {
|
||||
|
||||
// if (process.env.NODE_ENV === 'production') {
|
||||
await telegrambot.sendMsgTelegram(tools.CNM, telegrambot.ADMIN_USER_SERVER, `Ciao ${telegrambot.ADMIN_USER_NAME_SERVER}!`);
|
||||
await telegrambot.sendMsgTelegramByIdTelegram(tools.CNM, telegrambot.ADMIN_IDTELEGRAM_SERVER, `Il Server ${process.env.DATABASE} è appena ripartito!`);
|
||||
|
||||
await telegrambot.sendMsgTelegramByIdTelegram('2', telegrambot.ADMIN_IDTELEGRAM_SERVER, `Il Server ${process.env.DATABASE} è appena ripartito!`);
|
||||
// await telegrambot.sendMsgTelegramByIdTelegram('2', telegrambot.ADMIN_IDTELEGRAM_SERVER, `Il Server ${process.env.DATABASE} è appena ripartito!`);
|
||||
|
||||
testo = 'Ciao Paolo!';
|
||||
myid = await telegrambot.sendMsgTelegramByIdTelegram(tools.CNM, telegrambot.ADMIN_IDTELEGRAM_SERVER, testo);
|
||||
|
||||
// }
|
||||
// testo = 'testo modificato';
|
||||
// myid = await telegrambot.sendMsgTelegramByIdTelegram('7', telegrambot.ADMIN_IDTELEGRAM_SERVER, testo, myid, telegrambot.ADMIN_IDTELEGRAM_SERVER);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
const tools = require('../tools/general');
|
||||
|
||||
const appTelegram = [tools.CNM];
|
||||
const appTelegram = [tools.CNM, tools.FREEPLANET];
|
||||
|
||||
const appTelegram_TEST = [tools.FREEPLANET];
|
||||
|
||||
const appTelegramFinti = ['2'];
|
||||
const appTelegramDest = [tools.CNM];
|
||||
@@ -95,7 +97,7 @@ MsgBot = {
|
||||
PROSSIMO_ZOOM: ['prossimo zoom', 'fare lo zoom', 'gli zoom', 'conferenz', 'zoom'],
|
||||
LAVAGNA: ['lavagna', 'Lavagna', 'LAVAGNA'],
|
||||
SEI_LIBERO: ['sei liber', 'sei sposat', 'sei fidanzat', 'sei single'],
|
||||
AIUTO: ['ayni help', 'help', 'aiuto', 'ho bisogno di', 'ho problemi', 'non riesco', 'mi puoi aiutare', 'mi aiuti', 'aiutami', 'posso chiederti', 'puoi aiutarmi'],
|
||||
AIUTO: ['help', 'aiuto', 'ho bisogno di', 'ho problemi', 'non riesco', 'mi puoi aiutare', 'mi aiuti', 'aiutami', 'posso chiederti', 'puoi aiutarmi'],
|
||||
UOMO: ['uomo', 'maschio'],
|
||||
SORPRESA: ['noo', 'davvero', 'sii', 'facciamo festa', 'è qui la festa', 'festa'],
|
||||
UGUALE: ['👍🏻', '✨', '❤🏻', '⭐', '❤', '❤❤', '🤩'],
|
||||
@@ -139,7 +141,7 @@ function getemojibynumber(number) {
|
||||
}
|
||||
}
|
||||
|
||||
strNave = "Nave";
|
||||
const strNave = "Nave";
|
||||
|
||||
|
||||
const Menu = {
|
||||
@@ -169,12 +171,12 @@ const Menu = {
|
||||
LINK_CONDIVIDERE: emoji.get('link') + ' Link da condividere',
|
||||
ZOOM: emoji.get('information_source') + ' Zoom (Conferenze)',
|
||||
INFO: emoji.get('information_source') + ' Informazioni',
|
||||
ASSISTENZA: emoji.get('open_hands') + ' Le Chat di AYNI',
|
||||
ASSISTENZA: emoji.get('open_hands') + ' Le Chat',
|
||||
INDIETRO: emoji.get('back') + ' Indietro',
|
||||
SI: emoji.get('thumbsup') + ' SI',
|
||||
NO: emoji.get('thumbsdown') + ' NO',
|
||||
ESCI_DA_CHAT: emoji.get('incoming_envelope') + ' Esci dalla Conversazione',
|
||||
NUOVOSITO: 'https://ayni.gifteconomy.app'
|
||||
NUOVOSITO: ''
|
||||
},
|
||||
es: {
|
||||
ACCEDI: emo.PERSON + ' Entra',
|
||||
@@ -182,7 +184,7 @@ const Menu = {
|
||||
LINK_CONDIVIDERE: emoji.get('link') + ' Enlaces para compartir',
|
||||
ZOOM: emoji.get('information_source') + ' Zoom (Conferencias)',
|
||||
INFO: emoji.get('information_source') + ' Información',
|
||||
ASSISTENZA: emoji.get('open_hands') + ' Chats de AYNI',
|
||||
ASSISTENZA: emoji.get('open_hands') + ' Chats',
|
||||
INDIETRO: emoji.get('back') + ' Volver',
|
||||
SI: emoji.get('thumbsup') + ' SÍ',
|
||||
NO: emoji.get('thumbsdown') + ' NO',
|
||||
@@ -194,7 +196,7 @@ const Menu = {
|
||||
LINK_CONDIVIDERE: emoji.get('link') + ' Liens à partager',
|
||||
ZOOM: emoji.get('information_source') + ' Zoom (Conférences)',
|
||||
INFO: emoji.get('information_source') + ' Informations',
|
||||
ASSISTENZA: emoji.get('open_hands') + ' Les chats d\'AYNI',
|
||||
ASSISTENZA: emoji.get('open_hands') + ' Les chats',
|
||||
INDIETRO: emoji.get('back') + ' Retour',
|
||||
SI: emoji.get('thumbsup') + ' OUI',
|
||||
NO: emoji.get('thumbsdown') + ' NON',
|
||||
@@ -206,7 +208,7 @@ const Menu = {
|
||||
LINK_CONDIVIDERE: emoji.get('link') + ' Link za vpis oseb',
|
||||
ZOOM: emoji.get('information_source') + ' Zoom (Konference)',
|
||||
INFO: emoji.get('information_source') + ' Informacije',
|
||||
ASSISTENZA: emoji.get('open_hands') + ' AYNI-jev klepet',
|
||||
ASSISTENZA: emoji.get('open_hands') + ' jev klepet',
|
||||
INDIETRO: emoji.get('back') + ' Nazaj',
|
||||
SI: emoji.get('thumbsup') + ' DA',
|
||||
NO: emoji.get('thumbsdown') + ' NE',
|
||||
@@ -218,7 +220,7 @@ const Menu = {
|
||||
LINK_CONDIVIDERE: emoji.get('link') + ' Links para compartilhar',
|
||||
ZOOM: emoji.get('information_source') + ' Zoom (Conferências)',
|
||||
INFO: emoji.get('information_source') + ' Informações',
|
||||
ASSISTENZA: emoji.get('open_hands') + ' Chats do AYNI',
|
||||
ASSISTENZA: emoji.get('open_hands') + ' Chats',
|
||||
INDIETRO: emoji.get('back') + ' Voltar',
|
||||
SI: emoji.get('thumbsup') + ' SIM',
|
||||
NO: emoji.get('thumbsdown') + ' NÃO',
|
||||
@@ -230,7 +232,7 @@ const Menu = {
|
||||
LINK_CONDIVIDERE: emoji.get('link') + ' Link to Share',
|
||||
ZOOM: emoji.get('information_source') + ' Zoom (Conference)',
|
||||
INFO: emoji.get('information_source') + ' Info',
|
||||
ASSISTENZA: emoji.get('open_hands') + ' AYNI\'s Chats',
|
||||
ASSISTENZA: emoji.get('open_hands') + ' Chats',
|
||||
INDIETRO: emoji.get('back') + ' Back',
|
||||
SI: emoji.get('thumbsup') + ' YES',
|
||||
NO: emoji.get('thumbsdown') + ' NO',
|
||||
@@ -266,17 +268,12 @@ const MenuNoLogin = {
|
||||
enUs: { menu: [[Menu.LANG], [Menu.enUs.ASSISTENZA]] },
|
||||
};
|
||||
|
||||
const MenuStandard_AYNI = {
|
||||
it: { menu: [[Menu.it.LAVAGNA, Menu.it.LINK_CONDIVIDERE], [Menu.it.ZOOM, Menu.it.ASSISTENZA], [Menu.LANG]] },
|
||||
es: { menu: [[Menu.es.LAVAGNA, Menu.es.LINK_CONDIVIDERE], [Menu.es.ZOOM, Menu.es.ASSISTENZA], [Menu.LANG]] },
|
||||
fr: { menu: [[Menu.fr.LAVAGNA, Menu.fr.LINK_CONDIVIDERE], [Menu.fr.ZOOM, Menu.fr.ASSISTENZA], [Menu.LANG]] },
|
||||
si: { menu: [[Menu.si.LAVAGNA, Menu.si.LINK_CONDIVIDERE], [Menu.si.ZOOM, Menu.si.ASSISTENZA], [Menu.LANG]] },
|
||||
pt: { menu: [[Menu.pt.LAVAGNA, Menu.pt.LINK_CONDIVIDERE], [Menu.pt.ZOOM, Menu.pt.ASSISTENZA], [Menu.LANG]] },
|
||||
enUs: { menu: [[Menu.enUs.LAVAGNA, Menu.enUs.LINK_CONDIVIDERE], [Menu.enUs.ZOOM, Menu.enUs.ASSISTENZA], [Menu.LANG]] },
|
||||
};
|
||||
// const MenuStandard = {
|
||||
// it: { menu: [[Menu.it.LAVAGNA, Menu.it.LINK_CONDIVIDERE], [Menu.it.ZOOM, Menu.it.ASSISTENZA], [Menu.LANG]] },
|
||||
// };
|
||||
|
||||
const MenuStandard = {
|
||||
it: { menu: [[Menu.it.LAVAGNA, Menu.it.LINK_CONDIVIDERE], [Menu.it.ZOOM, Menu.it.ASSISTENZA], [Menu.LANG]] },
|
||||
it: { menu: [[Menu.it.LAVAGNA, Menu.it.LINK_CONDIVIDERE], [Menu.it.ZOOM, Menu.it.ASSISTENZA]] },
|
||||
};
|
||||
|
||||
const MenuPerAdmin = {
|
||||
@@ -363,14 +360,14 @@ const txt = {
|
||||
MSG_SCEGLI_MENU: emoji.get('dizzy') + ' Scegli una voce di menu:' + emoji.get('dizzy'),
|
||||
MSG_ASK_USERNAME_BO: 'Scrivi nel messaggio lo username o la email con cui ti sei registrato sul sito di %s:',
|
||||
MSG_ERRORE_USERNAME: 'Attenzione! Devi inserire solo lo username (40 caratteri massimo)',
|
||||
MSG_ERRORE_USERNAME_NOT_FOUND: 'Per Completare la Verifica Telegram BOT, devi ora scrivere qui sotto nel messaggio l\'Username OPPURE la email con cui ti sei registrato sul sito di AYNI:',
|
||||
MSG_ERRORE_USERNAME_NOT_FOUND: 'Per Completare la Verifica Telegram BOT, devi ora scrivere qui sotto nel messaggio l\'Username OPPURE la email con cui ti sei registrato sul sito',
|
||||
MSG_ERRORE_USERNAME_ANNULLA: 'Inserimento Annullato. Riprovare',
|
||||
MSG_OPERAZ_ANNULLATA: 'Operazione Annullata',
|
||||
MSG_ERRORE_VERIFY_CODE_MAXLEN: 'Attenzione! Devi inserire solo il codice a 6 cifre',
|
||||
MSG_VERIFY_CODE: '1. Ora ritorna sul sito di AYNI:\n%s\n2. Copia il codice di Autenticazione (di 6 cifre) che troverai scritto in alto\n3. Scrivilo (o incollalo) qui sotto come messaggio:',
|
||||
MSG_VERIFY_CODE: '1. Ora ritorna sul sito:\n%s\n2. Copia il codice di Autenticazione (di 6 cifre) che troverai scritto in alto\n3. Scrivilo (o incollalo) qui sotto come messaggio:',
|
||||
MSG_ERR_VERIFY_CODE: 'Codice di Verifica Errato!' + emo.EXCLAMATION_MARK + '\nControlla sul sito %s e riscrivi il nuovo codice di 6 cifre.',
|
||||
MSG_VERIFY_OK: emoji.get('grinning') + ' Benvenuto %s! Ti sei correttamente verificato con AYNI BOT. ' + '\nSono il tuo assistente virtuale.\n' +
|
||||
'Continua la guida passo passo tornando sul sito di AYNI.\n\nQuesta chat ti servirà per vedere velocemente la tua Lavagna e per ricevere Importanti avvisi su come procedere il tuo cammino.\n\nUsa il menu qui sotto per controllare la tua situazione.' + emo.GREEN_HEART,
|
||||
MSG_VERIFY_OK: emoji.get('grinning') + ' Benvenuto %s! Ti sei correttamente verificato con il BOT. ' + '\nSono il tuo assistente virtuale.\n' +
|
||||
'Continua la guida passo passo tornando sul sito.\n\nQuesta chat ti servirà per vedere velocemente la tua Lavagna e per ricevere Importanti avvisi su come procedere il tuo cammino.\n\nUsa il menu qui sotto per controllare la tua situazione.' + emo.GREEN_HEART,
|
||||
MSG_ERR_UNKNOWN_VERIFY_CODE: 'Errore durante il salvataggio sul Server. Riprovare piú tardi',
|
||||
MSG_EXIT_TELEGRAM: 'L\'account è stato ora scollegato da questo Telegram BOT.',
|
||||
MSG_APORTADOR_USER_REGISTERED: emo.FIRE + ' Si è appena Registrato "%s (n. %s)',
|
||||
@@ -384,13 +381,13 @@ const txt_es = {
|
||||
MSG_SCEGLI_MENU: emoji.get('dizzy') + ' Elija un elemento del menú:' + emoji.get('dizzy'),
|
||||
MSG_ASK_USERNAME_BO: 'Escriba en el mensaje el nombre de usuario o el correo electrónico con el que se registró en el sitio de %s:',
|
||||
MSG_ERRORE_USERNAME: '¡Atención! Debes introducir sólo el nombre de usuario (40 caracteres como máximo)',
|
||||
MSG_ERRORE_USERNAME_NOT_FOUND: 'Para completar la verificación del telegrama BOT, ahora debe escribir en el mensaje el nombre de usuario o el correo electrónico con el que se registró en el sitio de AYNI.:',
|
||||
MSG_ERRORE_USERNAME_NOT_FOUND: 'Para completar la verificación del telegrama BOT, ahora debe escribir en el mensaje el nombre de usuario o el correo electrónico con el que se registró en el sitio.:',
|
||||
MSG_ERRORE_USERNAME_ANNULLA: 'Inserción cancelada. Inténtalo de nuevo.',
|
||||
MSG_OPERAZ_ANNULLATA: 'Operación cancelada',
|
||||
MSG_ERRORE_VERIFY_CODE_MAXLEN: '¡Atención! Sólo tienes que introducir el código de 6 dígitos',
|
||||
MSG_VERIFY_CODE: '1. Ahora, de vuelta en el sitio web de AYNI:\n%s\n2. Copie el código de autenticación (6 dígitos) que encontrará escrito en la parte superior de la página\n3. Escríbelo (o pégalo) abajo como un mensaje:',
|
||||
MSG_VERIFY_CODE: '1. Ahora, de vuelta en el sitio web:\n%s\n2. Copie el código de autenticación (6 dígitos) que encontrará escrito en la parte superior de la página\n3. Escríbelo (o pégalo) abajo como un mensaje:',
|
||||
MSG_ERR_VERIFY_CODE: 'Código de verificación incorrecto!' + emo.EXCLAMATION_MARK + '\nComprueba en el sitio %s y reescribe el nuevo código de 6 dígitos.',
|
||||
MSG_VERIFY_OK: emoji.get('grinning') + ' Bienvenido %s! Ha verificado correctamente con AYNI BOT. ' + '\nSoy su asistente virtual.\nContinúa la guía paso a paso de vuelta a la página web de AYNI.\n\n' +
|
||||
MSG_VERIFY_OK: emoji.get('grinning') + ' Bienvenido %s! Ha verificado correctamente con el BOT. ' + '\nSoy su asistente virtual.\nContinúa la guía paso a paso de vuelta a la página web.\n\n' +
|
||||
'Este chat le ayudará a ver rápidamente su pizarra y recibir alertas importantes sobre cómo proceder.\n\nUtilice el menú de abajo para comprobar su situación.' + emo.GREEN_HEART,
|
||||
MSG_ERR_UNKNOWN_VERIFY_CODE: 'Error al guardar en el servidor. Inténtalo de nuevo más tarde.',
|
||||
MSG_EXIT_TELEGRAM: 'La cuenta ha sido desconectada de Telegram BOT.',
|
||||
@@ -404,14 +401,14 @@ const txt_fr = {
|
||||
MSG_SCEGLI_MENU: emoji.get('dizzy') + 'Choisissez un élément de menu:' + emoji.get('dizzy'),
|
||||
MSG_ASK_USERNAME_BO: 'Écrivez dans le message l\'username ou l\'e-mail avec lequel vous vous êtes enregistré sur le site de %s: ',
|
||||
MSG_ERRORE_USERNAME: 'Attention! Vous devez insérer seulement l’username (40 caractères maximum)',
|
||||
MSG_ERRORE_USERNAME_NOT_FOUND: 'Pour Compléter la Vérification Telegram BOT, vous devez maintenant écrire dans le message ci-dessous l\'Username ou l\'adresse e-mail avec lequel vous vous êtes inscrit sur le site AYNI: ',
|
||||
MSG_ERRORE_USERNAME_NOT_FOUND: 'Pour Compléter la Vérification Telegram BOT, vous devez maintenant écrire dans le message ci-dessous l\'Username ou l\'adresse e-mail avec lequel vous vous êtes inscrit sur le site: ',
|
||||
MSG_ERRORE_USERNAME_ANNULLA: 'Saisie des données Annullée.Essayez à nouveau ',
|
||||
MSG_OPERAZ_ANNULLATA: 'Opération Annullée',
|
||||
MSG_ERRORE_VERIFY_CODE_MAXLEN: 'Attention! Vous devez insérer seulement le code à 6 chiffres',
|
||||
MSG_VERIFY_CODE: '1. Ᾱ présent retournez sur le site de AYNI:\n%s\n2. Copiez le Code d’Authentification (de 6 chiffres) che vous trouverez écrit en haut \n3. Ecrivez-le (ou copiez-le) ci-dessous comme message:',
|
||||
MSG_VERIFY_CODE: '1. Ᾱ présent retournez sur le site:\n%s\n2. Copiez le Code d’Authentification (de 6 chiffres) che vous trouverez écrit en haut \n3. Ecrivez-le (ou copiez-le) ci-dessous comme message:',
|
||||
MSG_ERR_VERIFY_CODE: ' Code de vérification incorrect!' + emo.EXCLAMATION_MARK + '\nControllez sur le site %s et réécrivez le nouveau code à 6 chiffres.',
|
||||
MSG_VERIFY_OK: emoji.get('grinning') + ' Bienvenu(e) %s! Vous vous êtes vérifié avec succès avec AYNI BOT. ' + '\nJe suis ton assistant virtuel.\n' +
|
||||
"Continuez le guide étape par étape en revenant sur le site Web d'AYNI. \n\nCe chat vous servira pour voir rapidement votre tableau de bord et recevoir des avis importants sur la marche à suivre pour continuer votre parcours.\n\nUtilisez le menu ci-dessous pour vérifier votre situation. " + emo.GREEN_HEART,
|
||||
MSG_VERIFY_OK: emoji.get('grinning') + ' Bienvenu(e) %s! Vous vous êtes vérifié avec succès avec le BOT. ' + '\nJe suis ton assistant virtuel.\n' +
|
||||
"Continuez le guide étape par étape en revenant sur le site. \n\nCe chat vous servira pour voir rapidement votre tableau de bord et recevoir des avis importants sur la marche à suivre pour continuer votre parcours.\n\nUtilisez le menu ci-dessous pour vérifier votre situation. " + emo.GREEN_HEART,
|
||||
MSG_ERR_UNKNOWN_VERIFY_CODE: 'Erreur lors de l\'enregistrement sur le serveur. Retentez plus tard',
|
||||
MSG_EXIT_TELEGRAM: 'L\'account a été déconnecté de Telegram BOT.',
|
||||
MSG_APORTADOR_USER_REGISTERED: emo.FIRE + ' Vous venez à peine de vous inscrire "%s (n)',
|
||||
@@ -424,14 +421,14 @@ const txt_si = {
|
||||
MSG_SCEGLI_MENU: emoji.get('dizzy') + 'Izbirni meni:' + emoji.get('dizzy'),
|
||||
MSG_ASK_USERNAME_BO: 'Vpiši svoje uporabniško ime in e-naslov s katerimi si se registriral na spletni strani %s: ',
|
||||
MSG_ERRORE_USERNAME: 'Pozor! Vpiši samo uporabniško ime (40 znakov) maksimalno',
|
||||
MSG_ERRORE_USERNAME_NOT_FOUND: 'Ponovno preverite telegram BOT Uporabniško ime ali e-poštno sporočilo, s katerim ste registrirali na spletni strani AYNI: ',
|
||||
MSG_ERRORE_USERNAME_NOT_FOUND: 'Ponovno preverite telegram BOT Uporabniško ime ali e-poštno sporočilo, s katerim ste registrirali na spletni strani: ',
|
||||
MSG_ERRORE_USERNAME_ANNULLA: 'Preklic. Poskusi ponovno ',
|
||||
MSG_OPERAZ_ANNULLATA: 'Operacija preklicana',
|
||||
MSG_ERRORE_VERIFY_CODE_MAXLEN: 'Pozor! Vstavi D mestno kodo',
|
||||
MSG_VERIFY_CODE: '1. Vrni se na spletno strani AYNI: \n%s\n2. Kopiraj kodo Authenticazione (6 mestno) ki jo najdeš zgoraj zapisano\n3. Napiši (ali prilepi) tu spodaj kot sporočilo: ',
|
||||
MSG_VERIFY_CODE: '1. Vrni se na spletno strani: \n%s\n2. Kopiraj kodo Authenticazione (6 mestno) ki jo najdeš zgoraj zapisano\n3. Napiši (ali prilepi) tu spodaj kot sporočilo: ',
|
||||
MSG_ERR_VERIFY_CODE: 'Napačna koda za preverjanje!' + emo.EXCLAMATION_MARK + '\nPreveri na strani %s in ponovno napiši 6 mestno kodo.',
|
||||
MSG_VERIFY_OK: emoji.get('grinning') + 'Dobrodošel %s! Pravilno ste se preveriliz AYNI BOT. ' + ' \nsem tvoj virtualni asisten.\n ' +
|
||||
'Vodenje se nadeljuje z vodenimi koraki, ko se vrneš na spletno stran AYNI. \n\nTa klepet ti bo služil za hitri pregled tvoje table in za sprejemanje pomembnih obvestil glede poteka tvojega potovanja. \n\nUporabite meni tu spodaj, da lahko kontrolirate svojo situacijo. ' + emo.GREEN_HEART,
|
||||
MSG_VERIFY_OK: emoji.get('grinning') + 'Dobrodošel %s! Pravilno ste se preveriliz BOT. ' + ' \nsem tvoj virtualni asisten.\n ' +
|
||||
'Vodenje se nadeljuje z vodenimi koraki, ko se vrneš na spletno stran. \n\nTa klepet ti bo služil za hitri pregled tvoje table in za sprejemanje pomembnih obvestil glede poteka tvojega potovanja. \n\nUporabite meni tu spodaj, da lahko kontrolirate svojo situacijo. ' + emo.GREEN_HEART,
|
||||
MSG_ERR_UNKNOWN_VERIFY_CODE: 'Napaka strežnika.Poskusi kasneje ',
|
||||
MSG_EXIT_TELEGRAM: 'Račun se nahaja v programu Telegram BOT.',
|
||||
MSG_APORTADOR_USER_REGISTERED: emo.FIRE + 'Registracija registracije %s (n. %s)\n(povabil ga %s)',
|
||||
@@ -441,16 +438,16 @@ const txt_en = {
|
||||
MSG_SCEGLI_MENU: emoji.get('dizzy') + ' Choose a menu item:' + emoji.get('dizzy'),
|
||||
MSG_ASK_USERNAME_BO: 'Write in the message the username or email with which you registered on the site of %s:',
|
||||
MSG_ERRORE_USERNAME: 'Attention! You must enter only the username (40 characters maximum)',
|
||||
MSG_ERRORE_USERNAME_NOT_FOUND: 'To complete the Telegram BOT Verification, you must now write below in the message the Username OR the email with which you registered on the AYNI website:',
|
||||
MSG_ERRORE_USERNAME_NOT_FOUND: 'To complete the Telegram BOT Verification, you must now write below in the message the Username OR the email with which you registered on the website:',
|
||||
MSG_ERRORE_USERNAME_ANNULLA: 'Insertion Cancelled. Try again',
|
||||
MSG_OPERAZ_ANNULLATA: 'Operation Cancelled',
|
||||
MSG_ERRORE_VERIFY_CODE_MAXLEN: 'Attention! You only need to enter the 6-digit code',
|
||||
MSG_VERIFY_CODE: '1. Now return to the AYNI website: %s\n' +
|
||||
MSG_VERIFY_CODE: '1. Now return to the website: %s\n' +
|
||||
'2. Copy the Authentication code (of 6 digits) that you will find written at the top\n' +
|
||||
'3. Write it (or paste it) below as a message:',
|
||||
MSG_ERR_VERIFY_CODE: 'Incorrect Verification Code!' + emo.EXCLAMATION_MARK + '\nCheck on the site %s and rewrite the new 6-digit code.',
|
||||
MSG_VERIFY_OK: emoji.get('grinning') + ' Welcome %s! You have correctly verified yourself with AYNI BOT. ' + '\nI am your virtual assistant.\n' +
|
||||
'Continue the step-by-step guide back to the AYNI website.\n\nThis chat will help you to quickly see your DashBoard and receive important alerts on how to proceed on your path.\n\nUse the menu below to check your situation.' + emo.GREEN_HEART,
|
||||
MSG_VERIFY_OK: emoji.get('grinning') + ' Welcome %s! You have correctly verified yourself with BOT. ' + '\nI am your virtual assistant.\n' +
|
||||
'Continue the step-by-step guide back to the website.\n\nThis chat will help you to quickly see your DashBoard and receive important alerts on how to proceed on your path.\n\nUse the menu below to check your situation.' + emo.GREEN_HEART,
|
||||
MSG_ERR_UNKNOWN_VERIFY_CODE: 'Error while saving to the Server. Try again later',
|
||||
MSG_EXIT_TELEGRAM: 'The account has now been disconnected from this Telegram BOT.',
|
||||
MSG_APORTADOR_USER_REGISTERED: emo.FIRE + ' He/She\'s just registered "%s (n. %s)"\n(Invited from %s)',
|
||||
@@ -463,14 +460,14 @@ const txt_pt = {
|
||||
MSG_SCEGLI_MENU: emoji.get('dizzy') + ' Escolha um item do menu:' + emoji.get('dizzy'),
|
||||
MSG_ASK_USERNAME_BO: 'Escreva na mensagem o nome de usuário ou e-mail com o qual se registrou no site de %s:',
|
||||
MSG_ERRORE_USERNAME: 'Atenção! Você deve inserir apenas o nome de usuário (40 caracteres no máximo)',
|
||||
MSG_ERRORE_USERNAME_NOT_FOUND: 'Para completar a Verificação do Telegrama BOT, você deve agora escrever abaixo na mensagem o Nome de Usuário OU o e-mail com o qual você se registrou no site da AYNI:',
|
||||
MSG_ERRORE_USERNAME_NOT_FOUND: 'Para completar a Verificação do Telegrama BOT, você deve agora escrever abaixo na mensagem o Nome de Usuário OU o e-mail com o qual você se registrou no site:',
|
||||
MSG_ERRORE_USERNAME_ANNULLA: 'Inserção Cancelada. Tente novamente',
|
||||
MSG_OPERAZ_ANNULLATA: 'Operação Cancelada',
|
||||
MSG_ERRORE_VERIFY_CODE_MAXLEN: 'Atenção! Você só precisa digitar o código de 6 dígitos',
|
||||
MSG_VERIFY_CODE: '1. Agora de volta ao site do AYNI:\n%s\n2. Copie o código de autenticação (6 dígitos) que você encontrará escrito na parte superior da página\n3. Escreva-o (ou cole-o) abaixo como uma mensagem:',
|
||||
MSG_VERIFY_CODE: '1. Agora de volta ao site:\n%s\n2. Copie o código de autenticação (6 dígitos) que você encontrará escrito na parte superior da página\n3. Escreva-o (ou cole-o) abaixo como uma mensagem:',
|
||||
MSG_ERR_VERIFY_CODE: 'Código de Verificação Incorrecto!' + emo.EXCLAMATION_MARK + '\nCódigo de Verificação ErradoCheque no local %s e reescreva o novo código de 6 dígitos.',
|
||||
MSG_VERIFY_OK: emoji.get('grinning') + ' Bem-vindo %s! Você verificou corretamente com AYNI BOT. ' + '\nEu sou o vosso assistente virtual.\n' +
|
||||
'Continue o guia passo-a-passo de volta ao site da AYNI.\n\nEste chat vai ajudá-lo a ver rapidamente o seu Quadro Negro e a receber alertas importantes sobre como proceder..\n\n' +
|
||||
MSG_VERIFY_OK: emoji.get('grinning') + ' Bem-vindo %s! Você verificou corretamente com BOT. ' + '\nEu sou o vosso assistente virtual.\n' +
|
||||
'Continue o guia passo-a-passo de volta ao site.\n\nEste chat vai ajudá-lo a ver rapidamente o seu Quadro Negro e a receber alertas importantes sobre como proceder..\n\n' +
|
||||
'Use o menu abaixo para verificar a sua situação.' + emo.GREEN_HEART,
|
||||
MSG_ERR_UNKNOWN_VERIFY_CODE: 'Erro ao salvar no Servidor. Tente novamente mais tarde.',
|
||||
MSG_EXIT_TELEGRAM: 'A conta foi agora desconectada deste Telegrama BOT.',
|
||||
@@ -1176,7 +1173,7 @@ class Telegram {
|
||||
risp += 'Num Invitati: ' + myrec.numinvitati + tools.ACAPO;
|
||||
risp += 'Num Invitati Attivi: ' + myrec.numinvitatiattivi + tools.ACAPO;
|
||||
} else {
|
||||
risp = 'Ancora non ti sei Attivato su AYNI BOT';
|
||||
risp = 'Ancora non ti sei Attivato sul BOT';
|
||||
}
|
||||
} else if (MsgBot.CI_SEI.includes(testo.replace('?', ''))) {
|
||||
risp = 'Io Si, ci sono !';
|
||||
@@ -1194,14 +1191,12 @@ class Telegram {
|
||||
rec.msgcodeprec = MsgBot.MASCHIO_FEMMINA;
|
||||
rec.statusmsg = Status.WAITFOR_RISPOSTA;
|
||||
} else if (MsgBot.COME_TI_CHIAMI.includes(testo.replace('?', ''))) {
|
||||
risp = 'Io mi chiamo AYNI BOT e sono il tuo assistente Virtuale. ' + emo.EYES + '\nPuoi usare il menu che compare qui sotto per sapere tutto sulle mie funzionalità ' + emo.GREEN_HEART;
|
||||
risp = 'Io mi chiamo BOT e sono il tuo assistente Virtuale. ' + emo.EYES + '\nPuoi usare il menu che compare qui sotto per sapere tutto sulle mie funzionalità ' + emo.GREEN_HEART;
|
||||
contastiera = true;
|
||||
} else if (MsgBot.UGUALE.includes(testo)) {
|
||||
risp = testo;
|
||||
// } else if (MsgBot.CHI_E_VISTAR.includes(testo)) {
|
||||
// risp = 'Vistar è un nomade che vive in Perù tra i selvaggi, filosofeggiando e cazzeggiando qua e la... Per questo è un Fico ed è adulato dalle ragazze di tutto il Globo ' + emo.JOY + emo.JOY + emo.JOY;
|
||||
// } else if (MsgBot.CHI_E_PAOLO.includes(testo)) {
|
||||
// risp = 'Paolo è il Programmatore Sborone di AYNI. Anche lui Fico quanto Vistar (ma chi è Vistar) ' + emo.JOY + ' che anzichè creare la Nave cazzeggia su AYNI BOT, trovando risposte alle domande più assurde.' + emo.JOY2 + emo.JOY2;
|
||||
} else if (MsgBot.COME_SI_CHIAMA.includes(testo)) {
|
||||
risp = 'Eh non te lo posso dire! ' + emo.JOY;
|
||||
} else if (MsgBot.GRAZIE.includes(testo.replace('!', ''))) {
|
||||
@@ -1213,7 +1208,7 @@ class Telegram {
|
||||
} else if (MsgBot.PRINCIPE_AZZURRO.find((rec) => testo.indexOf(rec) > -1)) {
|
||||
risp = 'Chissà... Forse si!\nAnche se meglio averne un\'altro di scorta, nel caso il Principe non sia disponibile.';
|
||||
} else if (MsgBot.AIUTO.find((rec) => testo.indexOf(rec) > -1)) {
|
||||
risp = 'Clicca qui per entrare nella Chat AYNI - HELP di Supporto\n' + tools.HELP_CHAT + '\n\nI miei colleghi umani ti aiuteranno a risolvere !';
|
||||
risp = 'Clicca qui per entrare nella Chat HELP di Supporto\n' + tools.HELP_CHAT + '\n\nI miei colleghi umani ti aiuteranno a risolvere !';
|
||||
} else if (MsgBot.SPOSAMI.find((rec) => testo.indexOf(rec) > -1)) {
|
||||
risp = 'No Grazie! Sono per la Libertà a Vita! ' + emo.JOY + '\nMa se vuoi possiamo conoscerci meglio!' + emo.DANCER + emo.FIRE;
|
||||
} else if (MsgBot.CHE_TEMPO_FA.find((rec) => testo.indexOf(rec) > -1)) {
|
||||
@@ -1234,7 +1229,7 @@ class Telegram {
|
||||
risp = emo.SMILE_STAR + emo.SMILE_STAR + emo.SMILE_STAR + emo.SMILE_STAR + '\nMagari! Così la smetteresti di scrivere a me (ad un BOT Virtuale) e tromberesti di più ' + emo.DANCER + emo.DANCER;
|
||||
risp += '\n\n' + MsgRisp.CHAT_EMPOWER;
|
||||
} else if (MsgBot.SORPRESA.find((rec) => testo.indexOf(rec) > -1) && testo.length < 15) {
|
||||
risp = 'Siiiii ! Davvero! ' + emo.DREAM + '\nTi ricordo che nella CHAT EMPOWER si fa FESTA!\n\nChat AYNI - EMPOWER: Entra ⛩ nella nostra Community chat:\n https://t.me/joinchat/C741mkx5QYXu-kyYCYvA8g';
|
||||
risp = 'Siiiii ! Davvero! ' + emo.DREAM;
|
||||
} else if (MsgBot.PAROLACCE.find((rec) => testo.indexOf(rec) > -1)) {
|
||||
risp = 'Da te non me l\'aspettavo proprio !! ' + emo.INNOCENT + emo.CROSS_ROSSA;
|
||||
} else if (MsgBot.HAHA.find((rec) => testo.indexOf(rec) > -1) && testo.length < 8) {
|
||||
@@ -1242,8 +1237,8 @@ class Telegram {
|
||||
} else if (testo.length >= 10) {
|
||||
noanswer = true;
|
||||
let myfaq = this.geturlfaq();
|
||||
risp = 'Io sono solo un Robot ' + emo.ROBOT_FACE + emo.JOY2 + '\n\nPer AIUTO, clicca qui:\n👉🏻👉🏻<a href="' + myfaq + '">FAQ di AIUTO</a> (risposte alle domande più frequenti)\n\nSe non trovi risposta allora contatta la Chat AYNI - HELP.\nGrazie\nStaff AYNI';
|
||||
// risp += '\nClicca qui per entrare nella Chat AYNI - HELP di Supporto\n' + 'https://t.me/joinchat/AL2qKE80rxDkgbeMGO-0bw' + '\n\nI miei colleghi umani ti aiuteranno a risolvere !';
|
||||
risp = 'Io sono solo un Robot ' + emo.ROBOT_FACE + emo.JOY2 + '\n\nPer AIUTO, clicca qui:\n👉🏻👉🏻<a href="' + myfaq + '">FAQ di AIUTO</a> (risposte alle domande più frequenti)\n\nSe non trovi risposta allora contatta la Chat HELP.\nGrazie';
|
||||
// risp += '\nClicca qui per entrare nella Chat - HELP di Supporto\n' + 'https://t.me/joinchat/AL2qKE80rxDkgbeMGO-0bw' + '\n\nI miei colleghi umani ti aiuteranno a risolvere !';
|
||||
await local_sendMsgTelegramToTheManagers(this.idapp, testo, msg, rec.username_bo);
|
||||
}
|
||||
}
|
||||
@@ -1283,7 +1278,7 @@ class Telegram {
|
||||
if (risp !== '') {
|
||||
rec.numdomande++;
|
||||
await tools.snooze(600);
|
||||
this._inviaMsg(id, '[AYNI BOT' + emo.ROBOT_FACE + ' scrive]:\n' + risp, keyboard);
|
||||
this._inviaMsg(id, '[BOT' + emo.ROBOT_FACE + ' scrive]:\n' + risp, keyboard);
|
||||
|
||||
let strlog = 'USER [' + myname + ']: ' + testo + '\n';
|
||||
if (!noanswer) {
|
||||
@@ -1372,8 +1367,6 @@ class Telegram {
|
||||
|
||||
if (this.isSelMenu(msg, msg.text, 'LAVAGNA') || MsgBot.LAVAGNA.find((rec) => msg.text.indexOf(rec) > -1)) {
|
||||
await this.menuLavagna(msg);
|
||||
}else if (msg.text === Menu.it.NUOVOSITO) {
|
||||
await this.sendMsg(msg.chat.id, Menu.it.NUOVOSITO);
|
||||
} else if (msg.text === Menu.MIANAVE || (cmd2 === strNave) || MsgBot.MIANAVE.find((rec) => msg.text.indexOf(rec) > -1)) {
|
||||
await this.menuNave(msg)
|
||||
} else if (this.isSelMenu(msg, msg.text, 'ACCEDI')) {
|
||||
@@ -1520,7 +1513,7 @@ class Telegram {
|
||||
mystr += dashboard.myself.qualified ? emo.SMILE_STAR + tools.get__('HAI_I_7_REQUISITI', this.getlang(msg)) + emo.SMILE_STAR : emo.EXCLAMATION_MARK + tools.get__('NON_HAI_I_7_REQUISITI', this.getlang(msg));
|
||||
mystr += '\n\n';
|
||||
}
|
||||
mystr += tuttie9 ? emo.SMILE_STAR + tools.get__('HAI_I_9_REQUISITI', this.getlang(msg)) + emo.SMILE_STAR : emo.EXCLAMATION_MARK + tools.get__('NON_HAI_I_9_REQUISITI', this.getlang(msg));
|
||||
// mystr += tuttie9 ? emo.SMILE_STAR + tools.get__('HAI_I_9_REQUISITI', this.getlang(msg)) + emo.SMILE_STAR : emo.EXCLAMATION_MARK + tools.get__('NON_HAI_I_9_REQUISITI', this.getlang(msg));
|
||||
mystr += '\n\n';
|
||||
|
||||
mystr += tools.get__('INFO_LA_MIA_LAVAGNA', this.getlang(msg));
|
||||
@@ -1794,21 +1787,13 @@ class Telegram {
|
||||
getlink(qualelink) {
|
||||
|
||||
if (qualelink === 'website') {
|
||||
return 'https://ayni.gifteconomy.app'
|
||||
return ''
|
||||
} else if (qualelink === 'biblio') {
|
||||
return 'https://t.me/joinchat/AAAAAFMDe8b5lB1X7vOYng';
|
||||
return '';
|
||||
} else if (qualelink === 'help') {
|
||||
return tools.HELP_CHAT;
|
||||
} else if (qualelink === 'faq') {
|
||||
return 'https://ayni.gifteconomy.app/faq';
|
||||
} else if (qualelink === 'empower') {
|
||||
return "ITA 🇮🇹: https://t.me/joinchat/C741mkx5QYXu-kyYCYvA8g" + tools.ACAPO +
|
||||
"SLO 🇸🇮: https://t.me/aynislovenija" + tools.ACAPO +
|
||||
"HRV 🇭🇷 BIH 🇧🇦 SRB 🇷🇸 MNE 🇲🇪: https://t.me/joinchat/KFGPolcH0lLrqrdloOASYQ" + tools.ACAPO +
|
||||
"ESP 🇪🇸 - PRT 🇵🇹: https://t.me/joinchat/AL2qKBqJRuIEuc2FivgAzg" + tools.ACAPO +
|
||||
"FRA 🇫🇷: https://t.me/joinchat/POqmM1ddtRmnxtLdKkm5sQ" + tools.ACAPO +
|
||||
"ENG 🇬🇧: https://t.me/joinchat/AL2qKBYX0yVvOJ6Ssf9hKg" + tools.ACAPO
|
||||
;
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2100,17 +2085,14 @@ class Telegram {
|
||||
// Niente
|
||||
} else if (cmd === CHEDI_SE_IMBARCARTI) {
|
||||
textdainviare = tools.gettranslate('VUOI_IMBARCARTI', lang);
|
||||
// chiedisino = true;
|
||||
// rec.msgall_status = StatusMSGALL.CONFIRM;
|
||||
|
||||
FormDaMostrare = this.getInlineKeyboard(lang, [
|
||||
{
|
||||
text: Menu[lang].SI,
|
||||
// callback_data: { action: InlineCmd.VOGLIO_IMBARCARMI, username: utente.username }
|
||||
callback_data: InlineCmd.VOGLIO_IMBARCARMI + '|' + utente.username
|
||||
},
|
||||
{
|
||||
text: Menu[lang].NO,
|
||||
// callback_data: { action: InlineCmd.NON_VOGLIO_IMBARCARMI, username: utente.username }
|
||||
callback_data: InlineCmd.NON_VOGLIO_IMBARCARMI + '|' + utente.username
|
||||
},
|
||||
]);
|
||||
@@ -2376,7 +2358,7 @@ class Telegram {
|
||||
|
||||
async insertIntoDB(msg) {
|
||||
|
||||
return await this.askVerifiedCode(msg);
|
||||
return this.askVerifiedCode(msg);
|
||||
|
||||
}
|
||||
|
||||
@@ -2653,10 +2635,14 @@ function getclTelegByidapp(idapp) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (!tools.testing()) {
|
||||
// if (true) {
|
||||
//if (!tools.testing() || true) {
|
||||
if (true) {
|
||||
let arrTeleg = appTelegram;
|
||||
if (process.env.NODE_ENV === 'development')
|
||||
arrTeleg = appTelegram_TEST;
|
||||
|
||||
console.log('TELEGRAM STARTING.... ');
|
||||
for (const idapp of appTelegram) {
|
||||
for (const idapp of arrTeleg) {
|
||||
|
||||
const token = tools.getTelegramKeyByIdApp(idapp);
|
||||
// console.log('idapp', idapp, 'token', token);
|
||||
|
||||
@@ -60,35 +60,28 @@ const textlang = {
|
||||
'partecipanti a Pranzo': 'partecipanti a Pranzo',
|
||||
'partecipanti a Cena': 'partecipanti a Cena',
|
||||
'partecipanti a Cena Condivisa': 'partecipanti a Cena Condivisa',
|
||||
'TESTO_ASSISTENZA': '<strong><a href="%s">👉 Per entrare nel Sito AYNI</a></strong>\n\n' +
|
||||
'👉 <strong><a href="https://ayni.gifteconomy.app/requestresetpwd">Hai dimenticato la password?</a></strong>\n\n' +
|
||||
'👉 Entra nel Canale d\'Informazione per Importanti Avvisi!\n<strong><a href="%s">Canale AYNI-BIBLIO</a></strong>\n\n' +
|
||||
'👉 <strong>Chat AYNI - EMPOWER</strong>: Entra ⛩ nella nostra Community chat\n%s\n\n' +
|
||||
'👉 <strong>PER AIUTO</strong>: Leggi le Domande più Frequenti:\n%s\n<b>Oppure chiedi prima al tuo Invitante!</b>\n\n' +
|
||||
'SOLO se non trovi la risposta che ti serve puoi accedere alla Chat di Supporto <strong>\'AYNI - HELP\'</strong>\n<strong>Da Lunedì al Venerdí (9:00 - 19:00)</strong>\n%s\n' +
|
||||
'1 - Fai la tua <strong>domanda</strong> e chiedi assistenza.\n2 - Dopo aver ricevuto aiuto <strong>Esci dalla chat</strong>.\nPotrai rientrare ogni qualvolta ne avrai la necessità.',
|
||||
'TESTO_ASSISTENZA': '<strong><a href="%s">👉 Per entrare nel Sito</a></strong>\n\n' +
|
||||
'👉 <strong><a href="https://freeplanet.app/requestresetpwd">Hai dimenticato la password?</a></strong>\n\n',
|
||||
'BENVENUTO': 'Benvenuto',
|
||||
'TUE_NAVI': 'Ecco le tue Navi programmate',
|
||||
'HAI_I_7_REQUISITI': 'PRIMI PASSI OK!\nHai i Primi 7 Requisiti per Entrare nella Lista d\'Imbarco!',
|
||||
'NON_HAI_I_7_REQUISITI': 'Attenzione!\nAncora non hai i 7 Requisiti per Entrare nella Lista d\'Imbarco!',
|
||||
'HAI_I_9_REQUISITI': 'COMPLIMENTI!\nHai Completato TUTTI i 9 Passi della Guida! Grazie per Aiutare AYNI ad Espandersi!',
|
||||
'NON_HAI_I_9_REQUISITI': 'Ricqorda che puoi Aiutare a far Crescere ed Espandere il Movimento, Condividendo con chiunque questo nostro viaggio!',
|
||||
'HAI_I_7_REQUISITI': 'PRIMI PASSI OK!\nHai i Primi Requisiti per Entrare nella Lista !',
|
||||
'NON_HAI_I_7_REQUISITI': 'Attenzione!\nAncora non hai i 7 Requisiti per Entrare nella Lista !',
|
||||
'INFO_LA_MIA_LAVAGNA': '✨ Lista dei Passi: ✨ \n',
|
||||
'INFO_LAVAGNA_SITO_COMPLETARE': 'Per completare tutti i requisiti vai sul sito:\n%s\nPer vedere lo stato della tua Nave e dei tuoi invitati:\n 👉🏻 <a href="%s">Entra nella tua Lavagna</a>.\n',
|
||||
'INFO_LAVAGNA_SITO': 'Per vedere in dettaglio lo <strong>STATO della tua Nave</strong>, sul sito AYNI\n 👉🏻 <a href="%s">Entra nella tua Lavagna</a>.\n',
|
||||
'INFO_LINK_DA_CONDIVIDERE': 'Link da condividere ai tuoi invitati per farli registrare al sito di Ayni:\n\n%s',
|
||||
'INFO_LAVAGNA_SITO_COMPLETARE': 'Per completare tutti i requisiti vai sul sito:\n%s\n👉🏻 <a href="%s">Entra nella tua Lavagna</a>.\n',
|
||||
'INFO_LAVAGNA_SITO': 'Per vedere in dettaglio lo <strong>STATO</strong>, sul sito \n 👉🏻 <a href="%s">Entra nella tua Lavagna</a>.\n',
|
||||
'INFO_LINK_DA_CONDIVIDERE': 'Link da condividere ai tuoi invitati per farli registrare al sito:\n\n%s',
|
||||
'INFO_LINK_ZOOM': 'Link da condividere per partecipare allo Zoom (Conferenza OnLine):\n%s',
|
||||
'ZOOM_CONFERENCE': 'Ecco il programma delle Conferenze (Zoom) aperti a TUTTI:',
|
||||
'NON_VERIF': 'Non Verificata',
|
||||
'VERIF': 'Verificata',
|
||||
'EMAIL': 'Email',
|
||||
'BOT': 'AYNI BOT',
|
||||
'EMAIL_NON_VERIF': 'Email Non Verificata\nleggi la tua casella email e trova **"Confermare la Registrazione a Ayni"**\ne clicca sul bottone **"Verifica Registrazione"**',
|
||||
'BOT': 'BOT',
|
||||
'EMAIL_NON_VERIF': 'Email Non Verificata\nleggi la tua casella email e trova **"Confermare la Registrazione"**\ne clicca sul bottone **"Verifica Registrazione"**',
|
||||
'TELEGRAM_NOT_CONNECTED': 'Telegram non associato al tuo account!',
|
||||
'NESSUN_INVITATO': 'Non hai invitato nessuno',
|
||||
'ZOOM_PARTECIPATO': 'Partecipazione ad almeno 1 Conferenza (Zoom)',
|
||||
'LINEE_GUIDA': 'Accettato le Linee Guida',
|
||||
'VIDEO_INTRO': 'Visto il Video di AYNI',
|
||||
'VIDEO_INTRO': 'Visto il Video',
|
||||
'SCRITTO_SOGNO': 'Hai scritto il tuo Sogno',
|
||||
'PAYMENTS': 'Modalità di Pagamento',
|
||||
'INVITATI': 'persone registrate che hai invitato',
|
||||
@@ -123,79 +116,9 @@ const textlang = {
|
||||
'TEMPORANEA': 'TEMPORANEA',
|
||||
'NAVE': 'NAVE',
|
||||
'MSG_SEND_FROM': 'Msg Inviato da',
|
||||
'VUOI_IMBARCARTI': 'Attenzione! Ci risulta che attualmente non ti è stato assegnato <strong>Nessun Imbarco</strong>.\nQuesto può essere dovuto ad un errore durante la fase di aggiornamento del sito, oppure perchè tu stesso hai cancellato l\'imbarco.\n\n<strong>Vuoi Aggiungerti ora al prossimo Imbarco per continuare nel tuo Viaggio in AYNI</strong>? ',
|
||||
'ZOOM_CONFERMATO': 'Sei stato confermato ad aver visto la Video Conferenza di Benvenuto!',
|
||||
},
|
||||
si: {
|
||||
'Email je že bila preverjena': 'Email je že bila preverjenaL\'Email è già stata Verificata',
|
||||
'Nuova Registrazione': 'Nova Registracija',
|
||||
'Effettuata una Nuova Registrazione': 'Izpelji novo Registracijo',
|
||||
'partecipanti': 'Udeleženci',
|
||||
'partecipanti a Pranzo': 'partecipanti a Pranzo',
|
||||
'partecipanti a Cena': 'partecipanti a Cena',
|
||||
'TESTO_ASSISTENZA': 'Za vstop na spletno stran:\n%s\n\n' +
|
||||
'Si pozabil geslo za vstop na stran?\nhttps://ayni.gifteconomy.app/requestresetpwd\n\n' +
|
||||
'Klepet AYNI BOT (questa):\nhttps://t.me/notevoleaynibot\n\n' +
|
||||
'Klepet AYNI - EMPOWER: Vstopi ⛩ v našo Skupnost klepet:\n%s\n\n' +
|
||||
'Canal News AYNI-BIBLIO:\n%s\n\n' +
|
||||
'Klepet za Pomoč in Suport: \'AYNI - HELP\'\n%s\n' +
|
||||
'1 - Postavi svoje vprašanje in prosi za asistenco.\n2 - KO si sprejel pomoč, izstopi iz klepeta.\n ' +
|
||||
'Vstopil boš lahko vedno, ko boš potreboval pomoč.',
|
||||
'BENVENUTO': 'Dobrodošel',
|
||||
'TUE_NAVI': 'Tvoje programirane Ladje',
|
||||
'HAI_I_7_REQUISITI': 'PRVI KORAKI OK!\nIzpolnjuješ Prvih 7 Zahtev za vstop na Listo d\'Vkrcanje!',
|
||||
'NON_HAI_I_7_REQUISITI': 'Pozor!\nŠe vedno nimaš izpolnjenih 7 Zahtev za vstop na listo\'Vkrcanje!',
|
||||
'HAI_I_9_REQUISITI': 'ČESTITAMO!\nIzpolnil si VSEH 9 korakov v navodilih! Hvala ker pomagaš k širitvi AYNI !',
|
||||
'NON_HAI_I_9_REQUISITI': 'Zapomni si, če želiš Pomagati Rasti in Širit Gibanje, lahko to storiš z delitvijo med ljudmi!',
|
||||
'INFO_LA_MIA_LAVAGNA': '✨ Seznam Krajev: ✨ \n',
|
||||
'INFO_LAVAGNA_SITO_COMPLETARE': 'Da izpolneš vse zahteve, pojdi na spletno stran:\n%s\nDa pogledaš status svoje Ladje in status svojih povabljencev, klikni na levi strani zgoraj na tri črte in izberi "Tabla".\n👉🏻 <a href="%s">Table</a>',
|
||||
'INFO_LAVAGNA_SITO': 'Da lahko podrobno pogledaš status svoje Ladje,na spletni strani AYNI, klikni, na levi strani zgoraj, na tri črtice in izberi "Tabla".\n',
|
||||
'INFO_LINK_DA_CONDIVIDERE': 'Link, ki ga deliš svojim povabljencem, da se lahko registrirajo na spletni strani Ayni:\n\n%s',
|
||||
'INFO_LINK_ZOOM': 'Link, ki ga deliš za udeležbo na Zoom (Konferenca OnLine):\n%s',
|
||||
'ZOOM_CONFERENCE': 'Tu najdeš datume prihajajočih Zoom-ov:',
|
||||
'NON_VERIF': 'Ni Preverjena',
|
||||
'VERIF': 'Preverjena',
|
||||
'EMAIL': 'Email',
|
||||
'BOT': 'AYNI BOT',
|
||||
'EMAIL_NON_VERIF': 'Email ni preverjen\npojdi v svoj poštni nabiralnik in najdi**"Potrditev Registracije na Ayni"**<br>e klikni na gumb **"Potrdi Registracijo"**',
|
||||
'TELEGRAM_NOT_CONNECTED': 'Telegram ni povezan s tvojim računom!',
|
||||
'NESSUN_INVITATO': 'Nisi povabil nikogar',
|
||||
'ZOOM_PARTECIPATO': 'Udeležba na vsaj 1 Konferenci (Zoom-u)',
|
||||
'LINEE_GUIDA': 'Sprejemam pogoje poslovanja',
|
||||
'VIDEO_INTRO': 'Pogledal sem video AYNI',
|
||||
'SCRITTO_SOGNO': 'Sem zapisal Sanje',
|
||||
'PAYMENTS': 'Načini Plačila',
|
||||
'INVITATI': 'registrirane osebe, ki si povabil',
|
||||
'INVITATI_ATTIVI': 'Povabljenci s 7 Zahtevami',
|
||||
'NONREG': 'Neregistrirani povabljenci',
|
||||
'CLICCA_PER_ZOOM': 'NA DOLOČENO URO IN DATUM, ZA VSTOP V VIDEO KONFERENCO,KLIKNI TU',
|
||||
'CLICCA_ENTRA': 'KLIKNI TU ZA VSTOP !',
|
||||
'ZOOM_INIZIATO': 'TA KONFERENCA JE\' PRIČELA!',
|
||||
'SCEGLI_VOCE': 'Izberi eno možnost:',
|
||||
'INVITATI_LISTA': 'Tvoji povabljenci (v zelenem, s izpolnjenimi vsaj 7-imi zahtevami)',
|
||||
'CIAO': 'Zdravo',
|
||||
'ADDED_TOLISTAINGRESSO': 'Si bil dodan na Seznam oseb, ki bodo vstopile v Listo D\'Vkrcanje !',
|
||||
'NO_PROG': 'Trenutno še nisi na Listi d\'Vkrcanja!',
|
||||
'SEND_LINK_CHAT_DONATORI': 'Zdravo %s!\nTvoja LADJA bo končno Izplula!\nVstopi v Darilni (Gift) klepet s klikom tu: %s',
|
||||
'SEND_LINK_CHAT_SOGNATORE': 'Zdravo %s!\nDanes Postajaš Sanjač !!! 🎊🎊🎊 Vstopi v Darilni Klepet {%s} s klikom tu: %s',
|
||||
'ENTRA_GIFT_CHAT': 'Vstopi v Darilni Klepet',
|
||||
'DATA_PART_NAVE': 'Datum odhoda ladje:',
|
||||
'SOGNATORE': 'Sanjača',
|
||||
'INTERMEDIO': 'POTNIK',
|
||||
'MEDIATORE': 'MEDIATOR',
|
||||
'DONATORI': 'DONATOR',
|
||||
'RITESSITURA': 'Avtomatičen Vpis',
|
||||
'NAVE COMPLETATA': 'LADJE DOSTAVLJEN',
|
||||
'Doni Effettuati': 'Darila narejena',
|
||||
'Tutor che affianchèra il Mediatore': 'Tutor, ki bo podpiral Mediatorja',
|
||||
'APERTURA_CHIUSURA_GIFT_CHAT': '%s: Apertura GIFT CHAT\n%s Zapiranje DARILNEGA KLEPETA\nBodi pozoren: Časa imaš 3 dni od odprtja za vstop v Klepet- ladjico in izpeljati svoje Vplačilo, po tem času bomo izvedli zamenjavo',
|
||||
'SPOSTATO': 'Prestavljen si v Novo Ladjico !',
|
||||
'Note': 'Opombe',
|
||||
'TEMPORANEA': 'ZAČASNA',
|
||||
'NAVE': 'LADJE',
|
||||
'MSG_SEND_FROM': 'sporočilo, ki ga je poslal',
|
||||
'VUOI_IMBARCARTI': 'Pozor! Opazili smo, da ti trenutno ni bila dodeljena <strong>Nobena ladjica</strong>.\nTo je lahko posledica napake med fazo posodabljanja spletnega mesta ali ker si sam zbrisal svoj vpis.\n\n<strong>Ali želiš nadaljevati plovbo, če želiš nadaljevati potovanje z AYNI </strong>?',
|
||||
'ZOOM_CONFERMATO': 'Potrjeno je bilo, da ste videli dobrodošlico video konference!',
|
||||
},
|
||||
es: {
|
||||
'L\'Email è già stata Verificata': 'El correo electrónico ya ha sido verificado',
|
||||
@@ -204,34 +127,30 @@ const textlang = {
|
||||
'partecipanti': 'participantes',
|
||||
'partecipanti a Pranzo': 'partecipanti a Pranzo',
|
||||
'partecipanti a Cena': 'partecipanti a Cena',
|
||||
'TESTO_ASSISTENZA': 'Para entrar en el sitio de AYNI:\n%s\n\n' +
|
||||
'¿Olvidó su contraseña para acceder al sitio?\nhttps://ayni.gifteconomy.app/requestresetpwd\n\n' +
|
||||
'Chat AYNI BOT (este):\nhttps://t.me/notevoleaynibot\n\n' +
|
||||
'Chat AYNI - EMPOWER: Entra en ⛩ en nuestra comunidad de chat:\n%s\n\n' +
|
||||
'Chat de ayuda y soporte: \'AYNI - HELP\'\nDe lunes a viernes (9:00 - 19:00)\n%s\n' +
|
||||
'1 - Haga su pregunta y pida ayuda.\n2 - Después de que consigas ayuda, sal de la sala de chat.\nPuedes volver cuando necesites ayuda..',
|
||||
'TESTO_ASSISTENZA': 'Para entrar en el sitio:\n%s\n\n' +
|
||||
'¿Olvidó su contraseña para acceder al sitio?\nhttps://freeplanet.app/requestresetpwd\n\n',
|
||||
'BENVENUTO': 'Bienvenido',
|
||||
'TUE_NAVI': 'Aquí están sus naves programadas',
|
||||
'HAI_I_7_REQUISITI': '¡LOS PRIMEROS PASOS ESTÁN BIEN!\nTiene los primeros 7 requisitos para entrar en la lista de embarque!',
|
||||
'NON_HAI_I_7_REQUISITI': '¡Atención!\nTodavía no tienes los 7 requisitos para entrar en la lista de embarque!',
|
||||
'HAI_I_9_REQUISITI': '¡FELICITACIONES!\n¡Has completado los 9 pasos de la Guía! Gracias por ayudar a AYNI a expandirse!',
|
||||
'HAI_I_9_REQUISITI': '¡FELICITACIONES!\n¡Has completado los 9 pasos de la Guía! Gracias por ayudar a expandirse!',
|
||||
'NON_HAI_I_9_REQUISITI': 'Recuerda que puedes ayudar a que el Movimiento crezca y se expanda compartiendo nuestro viaje con todos.!',
|
||||
'INFO_LA_MIA_LAVAGNA': '✨ Lista de pasos: ✨ \n',
|
||||
'INFO_LAVAGNA_SITO_COMPLETARE': 'Para completar todos los requisitos vaya al sitio:\n%s\nPara ver el estado de su nave y sus invitados,👉🏻 <a href="%s">Pizarra</a>.\n',
|
||||
'INFO_LAVAGNA_SITO': 'Para ver en detalle el estado de su nave, en el sitio web de AYNI, haga clic en las 3 líneas de la parte superior izquierda y vaya a "Pizarra"..\n',
|
||||
'INFO_LINK_DA_CONDIVIDERE': 'Enlaces para compartir con sus invitados para que se registren en el sitio web de Ayni:\n\n%s',
|
||||
'INFO_LAVAGNA_SITO': 'Para ver en detalle el estado de su nave, en el sitio web, haga clic en las 3 líneas de la parte superior izquierda y vaya a "Pizarra"..\n',
|
||||
'INFO_LINK_DA_CONDIVIDERE': 'Enlaces para compartir con sus invitados para que se registren en el sitio web:\n\n%s',
|
||||
'INFO_LINK_ZOOM': 'Enlaces para compartir para participar en el Zoom (Conferencia en línea):\n%s',
|
||||
'ZOOM_CONFERENCE': 'Aquí puedes encontrar las fechas de programación en el Zoom:',
|
||||
'NON_VERIF': 'No verificado',
|
||||
'VERIF': 'Verificado',
|
||||
'EMAIL': 'Email',
|
||||
'BOT': 'AYNI BOT',
|
||||
'EMAIL_NON_VERIF': 'Correo electrónico no verificado\nlea su buzón y encuentre **"Confirmar Registro a Ayni "** <marca>y haga clic en el botón **"Verificar Registro "**.',
|
||||
'BOT': 'BOT',
|
||||
'EMAIL_NON_VERIF': 'Correo electrónico no verificado\nlea su buzón y encuentre **"Confirmar Registro "** <marca>y haga clic en el botón **"Verificar Registro "**.',
|
||||
'TELEGRAM_NOT_CONNECTED': 'Telegram no asociado a su cuenta!',
|
||||
'NESSUN_INVITATO': 'No invitaste a nadie',
|
||||
'ZOOM_PARTECIPATO': 'Participación en al menos 1 Conferencia (Zoom)',
|
||||
'LINEE_GUIDA': 'Directrices aceptadas',
|
||||
'VIDEO_INTRO': 'Ver el video de AYNI',
|
||||
'VIDEO_INTRO': 'Ver el video',
|
||||
'SCRITTO_SOGNO': 'Escribiste tu sueño',
|
||||
'PAYMENTS': 'Métodos de pago',
|
||||
'INVITATI': 'las personas registradas que usted invitó',
|
||||
@@ -263,41 +182,34 @@ const textlang = {
|
||||
'TEMPORANEA': 'TEMPORAL',
|
||||
'NAVE': 'NAVE',
|
||||
'MSG_SEND_FROM': 'Mensaje enviado por',
|
||||
'VUOI_IMBARCARTI': '¡Atención! Entendemos que actualmente no está asignado a <strong>No Boarding</strong>.\nEsto puede deberse a un error durante la fase de actualización del sitio web, o porque usted mismo ha cancelado el embarque.\n\n¿Quieres añadirte ahora al próximo embarque para continuar tu viaje en AYNI?',
|
||||
'ZOOM_CONFERMATO': '¡Se ha confirmado que ha visto la Video Conferencia de Bienvenida!',
|
||||
},
|
||||
enUs: {
|
||||
'partecipanti': 'participants',
|
||||
'partecipanti a Pranzo': 'partecipanti a Pranzo',
|
||||
'partecipanti a Cena': 'partecipanti a Cena',
|
||||
'TESTO_ASSISTENZA': 'To enter the AYNI Site:\n%s\n\nForgot your password to access the site?\n' +
|
||||
'https://ayni.gifteconomy.app/requestresetpwd\nChat AYNI BOT (this one):\nhttps://t.me/notevoleaynibot\n\n' +
|
||||
'Chat AYNI - EMPOWER: Enter ⛩ into our chat community:\n%s\n\n' +
|
||||
'Canale News AYNI-BIBLIO:\n%s\n\n' +
|
||||
'Help and Support Chat: \'AYNI - HELP\'.\nMonday to Friday (9:00 - 19:00)\n%s\n' +
|
||||
'1 - Ask your question and ask for assistance.\n2 - After receiving help, exit the chat.\nYou can come back whenever you need help.',
|
||||
'TESTO_ASSISTENZA': 'To enter the Site:\n%s\n\nForgot your password to access the site?\n' +
|
||||
'https://freeplanet.app/requestresetpwd\nChat AYNI BOT (this one):\nhttps://t.me/notevoleaynibot\n\n',
|
||||
'BENVENUTO': 'Welcome',
|
||||
'TUE_NAVI': 'Here are your programmed ships',
|
||||
'HAI_I_7_REQUISITI': 'FIRST STEPS OK!\nYou have the First 7 Requirements to Enter the Boarding List!',
|
||||
'NON_HAI_I_7_REQUISITI': 'Attention!\nYou still do not have the 7 requirements to enter the boarding list!',
|
||||
'HAI_I_9_REQUISITI': 'CONGRATULATIONS!\nYou have completed ALL 9 steps of the Guide! Thank you for Helping AYNI Expand!',
|
||||
'NON_HAI_I_9_REQUISITI': 'Remember that you can help the Movement grow and expand by sharing our journey with everyone.!',
|
||||
'INFO_LA_MIA_LAVAGNA': '✨ Step List: ✨ \n',
|
||||
'INFO_LAVAGNA_SITO_COMPLETARE': 'To complete all the requirements go to the site:%s\nTo see the status of your Ship and your guests\n👉🏻 <a href="%s">Dashboard</a>\n',
|
||||
'INFO_LAVAGNA_SITO': 'To see in detail the status of your ship, on the AYNI website, click on the 3 lines at the top left and go to "Blackboard".\n',
|
||||
'INFO_LINK_DA_CONDIVIDERE': 'Links to share with your guests to have them register on Ayni\'s website:\n\n%s',
|
||||
'INFO_LAVAGNA_SITO': 'To see in detail the status of your ship, on the website, click on the 3 lines at the top left and go to "Blackboard".\n',
|
||||
'INFO_LINK_DA_CONDIVIDERE': 'Links to share with your guests to have them register on website:\n\n%s',
|
||||
'INFO_LINK_ZOOM': 'Links to share to participate in Zoom (Online Conference):\n%s',
|
||||
'ZOOM_CONFERENCE': 'Here you can find the Zoom Conference Planning:',
|
||||
'NON_VERIF': 'Not Verified',
|
||||
'VERIF': 'Verified',
|
||||
'EMAIL': 'Email',
|
||||
'BOT': 'AYNI BOT',
|
||||
'EMAIL_NON_VERIF': 'Email Not Verified\nread your mailbox and find **"Confirm Registration to Ayni "**<br>and click on the button **"Verify Registration "**.',
|
||||
'BOT': 'BOT',
|
||||
'EMAIL_NON_VERIF': 'Email Not Verified\nread your mailbox and find **"Confirm Registration "**<br>and click on the button **"Verify Registration "**.',
|
||||
'TELEGRAM_NOT_CONNECTED': 'Telegram not associated with your account!',
|
||||
'NESSUN_INVITATO': 'You didn\'t invite anyone',
|
||||
'ZOOM_PARTECIPATO': 'Participation in at least 1 Conference (Zoom)',
|
||||
'LINEE_GUIDA': 'Guidelines Accepted',
|
||||
'VIDEO_INTRO': 'Seen the AYNI Video',
|
||||
'VIDEO_INTRO': 'Seen the Video',
|
||||
'SCRITTO_SOGNO': 'You wrote your Dream',
|
||||
'PAYMENTS': 'Methods of Payment',
|
||||
'INVITATI': 'registered people you invited',
|
||||
@@ -329,7 +241,6 @@ const textlang = {
|
||||
'TEMPORANEA': 'TEMPORARY',
|
||||
'NAVE': 'SHIP',
|
||||
'MSG_SEND_FROM': 'Msg sent by',
|
||||
'VUOI_IMBARCARTI': 'Attention! We understand that you have <strong>No Boarding</strong> assigned.\nThis may be due to an error during the site update phase, or because you have cancelled boarding yourself.\n\n<strong>Do you want to add now to the Next Boarding to continue your AYNI Trip</strong>?',
|
||||
'ZOOM_CONFERMATO': 'You have been confirmed to have seen the Welcome Video Conference!',
|
||||
},
|
||||
fr: {
|
||||
@@ -339,35 +250,30 @@ const textlang = {
|
||||
'partecipanti': 'participants',
|
||||
'partecipanti a Pranzo': 'partecipanti a Pranzo',
|
||||
'partecipanti a Cena': 'partecipanti a Cena',
|
||||
'TESTO_ASSISTENZA': 'Pour entrer sur le site AYNI:\n%s\n\n' +
|
||||
'Vous avez oublié votre mot de passe pour accéder au site ?\nhttps://ayni.gifteconomy.app/requestresetpwd\n\n' +
|
||||
'Chat AYNI BOT (ce):\nhttps://t.me/notevoleaynibot\n\n' +
|
||||
'Chat AYNI - EMPOWER : Entrez ⛩ dans notre Community chat:\n%s\n\n' +
|
||||
'Canale News AYNI-BIBLIO:\n%s\n\n' +
|
||||
'Chat d’Aide et de Support: \'AYNI - HELP\'\nDu lundi au Vendredi (9:00 - 19:00)\n%s\n' +
|
||||
'1 - Posez votre question et demandez d’être assisté.\n2 - Après avoir reçu l’aide, quittez le groupe.\nVous pourrez y entrer chaque fois qu’il vous sera nécessaire.',
|
||||
'TESTO_ASSISTENZA': 'Pour entrer sur le site:\n%s\n\n' +
|
||||
'Vous avez oublié votre mot de passe pour accéder au site ?\nhttps://ayni.gifteconomy.app/requestresetpwd\n\n',
|
||||
'BENVENUTO': 'Bienvenue',
|
||||
'TUE_NAVI': 'Voici vos navires programmés',
|
||||
'HAI_I_7_REQUISITI': 'PREMIÈRES ÉTAPES OK!\nvous avez les 7 premiers Requis pour Entrer dans la liste d\'embarquement!',
|
||||
'NON_HAI_I_7_REQUISITI': '\'Attention!\nVous ne remplissez pas encore les 7 conditions pour figurer sur la liste d\'embarquement!',
|
||||
'HAI_I_9_REQUISITI': 'FÉLICITATIONS!\n!Vous avez franchi les 9 étapes de la conduite ! Merci d\'avoir aidé AYNI à se développer!',
|
||||
'HAI_I_9_REQUISITI': 'FÉLICITATIONS!\n!Vous avez franchi les 9 étapes de la conduite ! Merci d\'avoir aidé à se développer!',
|
||||
'NON_HAI_I_9_REQUISITI': 'N\'oubliez pas que vous pouvez aider le Mouvement à grandir et à se développer en partageant notre voyage avec tout le monde.!',
|
||||
'INFO_LA_MIA_LAVAGNA': '✨ Liste des étapes: ✨ \n',
|
||||
'INFO_LAVAGNA_SITO_COMPLETARE': 'Pour remplir toutes les conditions, rendez-vous sur le site:\n%s\nPour voir le statut de votre navire et de vos invités\n 👉🏻 <a href="%s">Tableau</a>.\n',
|
||||
'INFO_LAVAGNA_SITO': 'Pour voir en détail le statut de votre navire, sur le site de l\'AYNI, cliquez sur les 3 lignes en haut à gauche et allez sur "Tableau".\n',
|
||||
'INFO_LINK_DA_CONDIVIDERE': 'Liens à partager avec vos invités pour qu\'ils s\'inscrivent sur le site web d\'Ayni:\n\n%s',
|
||||
'INFO_LAVAGNA_SITO': 'Pour voir en détail le statut de votre navire, sur le site, cliquez sur les 3 lignes en haut à gauche et allez sur "Tableau".\n',
|
||||
'INFO_LINK_DA_CONDIVIDERE': 'Liens à partager avec vos invités pour qu\'ils s\'inscrivent sur le site web:\n\n%s',
|
||||
'INFO_LINK_ZOOM': 'Liens à partager pour participer à Zoom (Conférence en ligne):\n%s',
|
||||
'ZOOM_CONFERENCE': 'Vous trouverez ici les dates de programmation sur Zoom:',
|
||||
'NON_VERIF': 'Non vérifié',
|
||||
'VERIF': 'Vérifié',
|
||||
'EMAIL': 'Courriel',
|
||||
'BOT': 'AYNI BOT',
|
||||
'EMAIL_NON_VERIF': 'Courriel non vérifié\nlisez votre boîte aux lettres et trouvez **"Confirmer l\'inscription à Ayni "**<br>et cliquez sur le bouton **"Vérifier l\'inscription "**.',
|
||||
'BOT': 'BOT',
|
||||
'EMAIL_NON_VERIF': 'Courriel non vérifié\nlisez votre boîte aux lettres et trouvez **"Confirmer l\'inscription "**<br>et cliquez sur le bouton **"Vérifier l\'inscription "**.',
|
||||
'TELEGRAM_NOT_CONNECTED': 'Télégramme non associé à votre compte!',
|
||||
'NESSUN_INVITATO': 'Vous n\'avez invité personne',
|
||||
'ZOOM_PARTECIPATO': 'Participation à au moins 1 conférence (Zoom)',
|
||||
'LINEE_GUIDA': 'Lignes directrices acceptées',
|
||||
'VIDEO_INTRO': 'Voir la vidéo AYNI',
|
||||
'VIDEO_INTRO': 'Voir la vidéo',
|
||||
'SCRITTO_SOGNO': 'Vous avez écrit votre rêve',
|
||||
'PAYMENTS': 'Modes de paiement',
|
||||
'INVITATI': 'personnes inscrites que vous avez invitées',
|
||||
@@ -399,7 +305,6 @@ const textlang = {
|
||||
'TEMPORANEA': 'TEMPORAIRE',
|
||||
'NAVE': 'NAVIRE',
|
||||
'MSG_SEND_FROM': 'Message envoyé par',
|
||||
'VUOI_IMBARCARTI': 'Attention ! Nous comprenons que vous n\'êtes actuellement pas affecté <strong>Pas d\'embarquement</strong>.\nCela peut être dû à une erreur lors de la phase de mise à jour du site, ou parce que vous avez vous-même annulé l\'embarquement.\n\n<strong>Voulez-vous vous ajouter maintenant au prochain embarquement pour continuer votre voyage AYNI</strong> ? ',
|
||||
'ZOOM_CONFERMATO': 'Vous avez été confirmé comme ayant vu la vidéoconférence de bienvenue !',
|
||||
},
|
||||
pt: {
|
||||
@@ -409,35 +314,28 @@ const textlang = {
|
||||
'partecipanti': 'participantes',
|
||||
'partecipanti a Pranzo': 'partecipanti a Pranzo',
|
||||
'partecipanti a Cena': 'partecipanti a Cena',
|
||||
'TESTO_ASSISTENZA': 'Para entrar no site do AYNI:\n%s\n\n' +
|
||||
'Esqueceu sua senha para acessar o site?\nhttps://ayni.gifteconomy.app/requestresetpwd\n\n' +
|
||||
'Chat AYNI BOT (isto):\nhttps://t.me/notevoleaynibot\n\n' +
|
||||
'Chat AYNI - EMPOWER: Entrar em ⛩ na nossa comunidade de chat:%s\n\n' +
|
||||
'Canale News AYNI-BIBLIO:\n%s\n\n' +
|
||||
'Chat de Ajuda e Suporte: \'AYNI - HELP\'.\nDe segunda a Sexta (9:00 - 19:00 ITALY)\n%s\n' +
|
||||
'1 - Faça a sua pergunta e peça ajuda.\n2 - Depois de receber ajuda, saia do chat.\nPode voltar sempre que precisar de o fazer..',
|
||||
'TESTO_ASSISTENZA': 'Para entrar no site:\n%s\n\n' +
|
||||
'Esqueceu sua senha para acessar o site?\nhttps://freeplanet.app/requestresetpwd\n\n',
|
||||
'BENVENUTO': 'Bem-vindo',
|
||||
'TUE_NAVI': 'Aqui estão os seus navios programados',
|
||||
'HAI_I_7_REQUISITI': 'PRIMEIROS PASSOS OK!\nVocê tem os 7 primeiros requisitos para entrar na lista de embarque!',
|
||||
'NON_HAI_I_7_REQUISITI': 'Atenção!\nVocê ainda não tem os 7 requisitos para entrar na lista de embarque!',
|
||||
'HAI_I_9_REQUISITI': 'FELICITAÇÕES!\nVocê completou TODAS as 9 etapas da condução! Obrigado por ajudar a AYNI a expandir!',
|
||||
'NON_HAI_I_9_REQUISITI': 'Lembre-se que pode ajudar o Movimento a crescer e expandir-se, partilhando a nossa jornada com todos!',
|
||||
'INFO_LA_MIA_LAVAGNA': '✨ Lista de etapas: ✨ \n',
|
||||
'INFO_LAVAGNA_SITO_COMPLETARE': 'Para completar todos os requisitos ir para o sitio:\n%s\nPara ver o estado do seu navio e dos seus convidados:\n 👉🏻 <a href="%s">Entre no seu Tablero</a>.\n',
|
||||
'INFO_LAVAGNA_SITO': 'Para ver em detalhe o estado do seu navio, no site da AYNI, clique nas 3 linhas no canto superior esquerdo e vá para "DashBoard"..\n',
|
||||
'INFO_LINK_DA_CONDIVIDERE': 'Links para partilhar com os seus convidados para que se registem no website da Ayni:\n\n%s',
|
||||
'INFO_LAVAGNA_SITO': 'Para ver em detalhe o estado do seu navio, no site, clique nas 3 linhas no canto superior esquerdo e vá para "DashBoard"..\n',
|
||||
'INFO_LINK_DA_CONDIVIDERE': 'Links para partilhar com os seus convidados para que se registem no website:\n\n%s',
|
||||
'INFO_LINK_ZOOM': 'Links para partilhar para participar na Zoom (Conferência Online):\n%s',
|
||||
'ZOOM_CONFERENCE': 'Aqui está o programa das Conferências (Zoom) aberto a TODOS:',
|
||||
'NON_VERIF': 'Não verificado',
|
||||
'VERIF': 'Verificado',
|
||||
'EMAIL': 'Email',
|
||||
'BOT': 'AYNI BOT',
|
||||
'EMAIL_NON_VERIF': 'Email Não verificado\nleia a sua caixa de correio e encontre **"Confirmar o registo à Ayni"**<br>e clique no botão **"Verificação do registo"**',
|
||||
'BOT': 'BOT',
|
||||
'EMAIL_NON_VERIF': 'Email Não verificado\nleia a sua caixa de correio e encontre **"Confirmar o registo"**<br>e clique no botão **"Verificação do registo"**',
|
||||
'TELEGRAM_NOT_CONNECTED': 'Telegrama não associado à sua conta!',
|
||||
'NESSUN_INVITATO': 'Você não convidou ninguém',
|
||||
'ZOOM_PARTECIPATO': 'Participação em pelo menos 1 Conferência (Zoom)',
|
||||
'LINEE_GUIDA': 'Directrizes Aceites',
|
||||
'VIDEO_INTRO': 'Ver o vídeo do AYNI',
|
||||
'VIDEO_INTRO': 'Ver o vídeo',
|
||||
'SCRITTO_SOGNO': 'Você escreveu o seu sonho',
|
||||
'PAYMENTS': 'Formas de pagamento',
|
||||
'INVITATI': 'pessoas registadas que convidou',
|
||||
@@ -469,7 +367,6 @@ const textlang = {
|
||||
'TEMPORANEA': 'TEMPORÁRIO',
|
||||
'NAVE': 'NAVE',
|
||||
'MSG_SEND_FROM': 'Mensagem enviada por',
|
||||
'VUOI_IMBARCARTI': 'Atenção! Compreendemos que actualmente não lhe é atribuído <strong>Sem Embarque</strong>.\nIsto pode ser devido a um erro durante a fase de actualização do site, ou porque você mesmo cancelou o embarque.\n\n<strong>Deseja juntar-se agora ao próximo embarque para continuar a sua viagem AYNI</strong>?',
|
||||
'ZOOM_CONFERMATO': 'Foi-lhe confirmado que assistiu à Conferência de Vídeo de Boas-vindas!',
|
||||
},
|
||||
};
|
||||
@@ -484,10 +381,11 @@ module.exports = {
|
||||
|
||||
LANGADMIN: 'it',
|
||||
|
||||
FREEPLANET: '1',
|
||||
AYNI: '7',
|
||||
CNM: '10',
|
||||
|
||||
HELP_CHAT: 'https://t.me/joinchat/AL2qKE80rxDkgbeMGO-0bw',
|
||||
HELP_CHAT: '',
|
||||
TYPECONF_ZOOM: 'zoom',
|
||||
TYPECONF_JITSI: 'jitsi',
|
||||
|
||||
@@ -545,6 +443,7 @@ module.exports = {
|
||||
multioption: 6000,
|
||||
onlydate: 7000,
|
||||
hours: 8000,
|
||||
crypted: 9000,
|
||||
},
|
||||
|
||||
MAX_PHASES: 5,
|
||||
@@ -2076,6 +1975,10 @@ module.exports = {
|
||||
}
|
||||
}
|
||||
|
||||
if (shared_consts.TABLES_PERM_CHANGE_FOR_USERS.includes(table)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
},
|
||||
|
||||
|
||||
@@ -36,6 +36,9 @@ module.exports = {
|
||||
|
||||
TAB_COUNTRY: 'countries',
|
||||
TAB_PHONES: 'phones',
|
||||
TAB_SETTINGS: 'settings',
|
||||
|
||||
KEY_TO_CRYPTED: ['PWD_FROM'],
|
||||
|
||||
TablePickup: ['countries', 'phones'],
|
||||
|
||||
@@ -50,6 +53,8 @@ module.exports = {
|
||||
TABLES_USER_ID: ['myskills'],
|
||||
TABLES_UPDATE_LASTMODIFIED: ['myskills'],
|
||||
|
||||
TABLES_PERM_CHANGE_FOR_USERS: ['myskills'],
|
||||
|
||||
CashType: {
|
||||
None: 0,
|
||||
Incoming: 1,
|
||||
|
||||
@@ -1 +1 @@
|
||||
../../../../freeplanet/src/common/shared_vuejs.ts
|
||||
../../../../newfreeplanet/src/common/shared_vuejs.ts
|
||||
@@ -6741,10 +6741,10 @@ node-releases@^1.1.75:
|
||||
resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-1.1.76.tgz#df245b062b0cafbd5282ab6792f7dccc2d97f36e"
|
||||
integrity sha512-9/IECtNr8dXNmPWmFXepT0/7o5eolGesHUa3mtr0KlgnCvnZxwh2qensKL42JJY2vQKC3nIBXetFAqR+PW1CmA==
|
||||
|
||||
node-telegram-bot-api@^0.54.0:
|
||||
version "0.54.0"
|
||||
resolved "https://registry.yarnpkg.com/node-telegram-bot-api/-/node-telegram-bot-api-0.54.0.tgz#1a857ddeb2f523d81c8e10a1b70169c7cf069ff5"
|
||||
integrity sha512-ckrpY/ABFLwA1DUzEc9iEQtsgQs8WcGC6m7iJ1bbnH+c7EOLnMdCfw+hUesyfuwOfAkkECYFxvoW4lJNy+Oztw==
|
||||
node-telegram-bot-api@^0.56.0:
|
||||
version "0.56.0"
|
||||
resolved "https://registry.yarnpkg.com/node-telegram-bot-api/-/node-telegram-bot-api-0.56.0.tgz#caf653574ed30530e2855a038b4d806f65c48677"
|
||||
integrity sha512-gKUlH/uUXdSJ++6y1Y16qEThZouecfl4twuPKe6V2BPFDDfom9j2QMlxfslPEjZPH2ZXlA1S/uoRCKtIjzuaLw==
|
||||
dependencies:
|
||||
array.prototype.findindex "^2.0.2"
|
||||
bl "^1.2.3"
|
||||
|
||||
Reference in New Issue
Block a user