module.exports = {
  Accepted: {
    CHECK_READ_GUIDELINES: 1,
    CHECK_SEE_VIDEO_PRINCIPI: 2,
  },

  QUERYTYPE_MYGROUP: 1,

  ALL_SAW_AND_ACCEPTED: 3,
  // ---------------------

  FILTER_EXTRALIST_NOT_REGISTERED: 1,
  FILTER_EXTRALIST_NOT_CONTACTED: 2,
  FILTER_EXTRALIST_WITH_NOTE: 4,
  FILTER_USER_NO_ZOOM: 8,
  FILTER_USER_NO_INVITANTE: 16,
  FILTER_USER_NO_TELEGRAM_ID: 32,
  FILTER_USER_CODICE_AUTH_TELEGRAM: 64,
  FILTER_USER_NO_EMAIL_VERIFICATA: 128,
  FILTER_USER_NO_DREAM: 256,
  FILTER_EXTRALIST_DELETED: 512,
  FILTER_USER_TELEGRAM_BLOCKED: 1024,
  FILTER_ATTIVI: 2048,
  FILTER_NASCOSTI: 4096,
  FILTER_NAVI_NON_PRESENTI: 8192,
  FILTER_QUALIFIED: 16384,
  FILTER_ASK_ZOOM_VISTO: 32768,
  FILTER_HOURS_MYLIST: 65536,
  FILTER_HOURS_ALL: 131072,
  FILTER_MISSING_PAYMENT: 262144,
  FILTER_TO_MAKE_MEMBERSHIP_CARD: 524288,
  FILTER_MEMBERSHIP_CARD_OK: 1048576,
  FILTER_USER_NO_VERIFIED_APORTADOR: 2097152,
  FILTER_USER_SI_TELEGRAM_ID: 4194304,
  FILTER_USER_WITHOUT_USERNAME_TELEGRAM: 8388608,

  OPTIONS_SEARCH_ONLY_FULL_WORDS: 1,
  OPTIONS_SEARCH_USER_ONLY_FULL_WORDS: 2,
  OPTIONS_SEARCH_USER_ALL_WORDS: 4,

  FRIENDSCMD: {
    SETTRUST: 121,
    REQFRIEND: 125,
    SETFRIEND: 132,
    REMOVE_FROM_MYFRIENDS: 144,
    REFUSE_REQ_FRIEND: 145,
    CANCEL_REQ_FRIEND: 146,
    BLOCK_USER: 155,
    FIND_PEOPLE: 166,
  },

  GROUPSCMD: {
    SETTRUST: 1121,
    REQGROUP: 1125,
    SETGROUP: 1132,
    REMOVE_FROM_MYGROUP: 1144,
    REFUSE_REQ_GROUP: 1145,
    CANCEL_REQ_GROUP: 1146,
    BLOCK_GROUP: 1155,
    FIND_GROUP: 1166,
  },

  REPORT_FILT_RESP: 1,
  REPORT_FILT_ATTIVITA: 2,

  TAB_COUNTRY: 'countries',
  TAB_PHONES: 'phones',
  TAB_SETTINGS: 'settings',
  TAB_SITES: 'sites',
  TAB_MYGROUPS: 'mygroups',
  TAB_MYBOTS: 'mybots',
  TAB_USERS: 'users',

  KEY_TO_CRYPTED: ['PWD_FROM'],
  SITES_KEY_TO_CRYPTED: ['email_pwd'],
  MYGROUPS_KEY_TO_CRYPTED: 'pwd',

  SUFFIX_CRYPTED: ['_cryp'],

  TablePickup: ['countries', 'phones'],

  PaymentTypes: [
    'Nessuno',
    'Bonifico Bancario',
    'Paypal',
    'In Contanti alla CNM',
  ],

  PARAM_SHOW_PROVINCE: 1,

  TABLES_MYSKILLS: 'myskills',
  TABLES_MYBACHECAS: 'mybachecas',
  TABLES_MYHOSPS: 'myhosps',
  TABLES_MYGOODS: 'mygoods',

  TABLES_ENABLE_GETREC_BYID: ['mybachecas', 'myhosps', 'myskills', 'mygoods'],

  TABLES_USER_INCLUDE_MY: ['mygroups'],
  TABLES_GETCOMPLETEREC: ['myskills', 'mybachecas', 'myhosps', 'mygoods'],
  TABLES_PERM_NEWREC: ['skills', 'goods', 'subskills', 'mygroups', 'myhosps'],
  TABLES_REC_ID: ['skills', 'goods', 'subskills'],

  TABLES_VISU_STAT_IN_HOME: ['myskills', 'mybachecas', 'myhosps', 'mygoods', 'mygroups'],

  TABLES_ID_NUMBER: [
    'permissions',
    'levels',
    'adtypes',
    'adtypegoods',
    'statusSkills',
    'sectors',
    'sectorgoods',
    'catgrps',
    'skills',
    'subskills',
    'cities',
    'provinces',
    'myskills',
    'mybachecas',
    'myhosps',
    'mygoods',
    'mygroups',
    'circuits',
  'movements'],
  TABLES_USER_ID: ['mygroups', 'myskills', 'mybachecas', 'myhosps', 'mygoods'],
  TABLES_UPDATE_LASTMODIFIED: ['myskills', 'mybachecas', 'myhosps', 'mygoods', 'mybots'],

  TABLES_PERM_CHANGE_FOR_USERS: ['myskills', 'mybachecas', 'myhosps', 'mygoods'],

  TABLES_POPULATE_DATA: [
    {
      table: 'adtypegoods',
      key: 'descr',
    }, {
      table: 'adtypes',
      key: 'descr',
    },
    {table: 'catgrps', key: 'descr'},
    {
      table: 'contribtypes',
      key: 'descr',
    },
    {table: 'goods', key: 'descr'},
    {table: 'levels', key: 'descr'},
    {table: 'cities', key: 'comune'},
    {table: 'provinces', key: 'descr'},
    {table: 'sectorgoods', key: 'descr'},
    {table: 'sectors', key: 'descr'},
    {table: 'skills', key: 'descr'},
    {table: 'statusSkills', key: 'descr'},
  ],

  VISIB_ALL: 0,
  VISIB_ONLYIF_VERIFIED: 1,
  VISIB_ONLY_MANAGER: 2,
  VISIB_ONLY_ADMIN: 4,

  BOTTYPE_NONE: 0,
  BOTTYPE_PAGE: 1,
  BOTTYPE_LINK: 2,
  BOTTYPE_TEXT: 3,
  BOTTYPE_MENU: 4,

  RIS_OK: '👍🏻 OK',

  CashType: {
    None: 0,
    Incoming: 1,
    Outcoming: 2,
  },

  Cmd: {
    PROVINCE: 1,
    COMUNI: 2,
    CITIES_SERVER: 3,
  },

  WalletFinalStatusType: {
    None: 0,
    InCommonCash: 1,
    InMyWallet: 2,
  },

  Permissions: {
    Admin: 1,
    Manager: 2,
    Teacher: 4,
    Tutor: 8,
    Editor: 16,
    Zoomeri: 32,
    Department: 64,
  },

  MessageOptions: {
    Notify_ByEmail: 2,
    Notify_ByPushNotification: 4,
  },

  TypeMsg: {
    SEND_TO_ALL: 1,
    SEND_TO_SOCI: 2,
    SEND_TO_SOCIO_RESIDENTE: 3,
    SEND_TO_CONSIGLIO: 5,
    SEND_TO_NON_SOCI: 10,
    SEND_TO_PAOLO: 20,
    SEND_TO_USER: 25,
    SEND_TO_GROUP: 30,
    SEND_TO_MYSELF: 40,
    SEND_TO_TELEG_NO_USERNAME_TELEG: 50,
    SEND_TO_TELEG_NO_VERIF_BY_APORTADOR: 60,
  },

  TypeMsg_Actions: {
    NORMAL: 0,
    YESNO: 1,
    OPZ1_2: 2,
  },

  CallFunz: {
    SOSTITUISCI: 345,
    AGGIUNGI_NUOVO_IMBARCO: 380,
    CANCELLA_IMBARCO: 385,
    DAMMI_PRIMO_UTENTE_LIBERO: 390,
    GET_VALBYTABLE: 400,
    SET_VALBYTABLE: 410,
    ZOOM_GIA_PARTECIPATO: 510,
    REGISTRATION: 6,
    RICHIESTA_GRUPPO: 10,
    RICHIESTA_AMICIZIA: 15,
  },

  OrderStatus: {
    NONE: 0,
    IN_CART: 1,
    CHECKOUT_SENT: 2,
    ORDER_CONFIRMED: 3,
    PAYED: 4,
    DELIVEDED: 5,
    RECEIVED: 6,
    CANCELED: 10,
  },

  OrderStatusView: {
    CHECKOUT_SENT: 2,
    ORDER_CONFIRMED: 3,
    PAYED: 4,
    RECEIVED: 6,
    CANCELED: 10,
  },


  ConfSite: {
    Notif_Reg_Bot_ToManagers: 1,
    Notif_Reg_Push_Admin: 2,
    Need_Aportador_On_DataReg_To_Verify_Reg: 4,
  },

  MsgTeleg: {
    SHARE_MSGREG: 1
  },

  TypeMsgTemplate: {
    MSG_BENVENUTO: 2010,
    MS_SHARE_LINK: 2000
  },

  TypeSend: {
    PUSH_NOTIFICATION: 1,
    TELEGRAM: 2,
  },

  fieldsUserToChange() {
    return [
      '_id',
      'index',
      'username',
      'group',
      'email',
      'name',
      'surname',
      'perm',
      'date_reg',
      'verified_email',
      'verified_by_aportador',
      'ipaddr',
      'lasttimeonline',
      'profile',
      'calcstat',
      'news_on',
      'aportador_solidario',
      'made_gift',
      'ind_order',
      'old_order',
      'numinvitati',
      'numinvitatiattivi',
      'qualified'];
  },


};
