UNPKG

migme-seagull

Version:
97 lines (96 loc) 1.73 kB
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var config = { Transport_Type: { xml: 0, json: 1 }, Presence: { online: 1, busy: 3, away: 4, appear_offline: 99, offline: 99 }, IM_Type: { fusion: 1, msn: 2, yahoo: 4, gtalk: 6, facebook: 7, mobile: 99 }, // Maps IM_Type with the contact group sent from fusion IM_Group: { '-5': 2, '-6': 4, '-4': 6, '-3': 7 }, // Disables certain IM_Types IM_Type_Active: { 1: true, 2: false, 4: true, 6: true, 7: true, 99: false }, Message_Type: { 1: 1, 2: 4, 4: 6, 7: 7, 6: 8 }, Content_Type: { text: 1, image: 2, audio: 3, video: 4, file: 5, emote: 6, system: 7 }, Application_State: { check_session: 1, logging_in: 2, logged_in: 3 }, DestinationType: { individual: 1, group: 2, public_chat: 3 }, SettingType: { password: 1, mobilephone: 2, securityQuestion: 3 }, ChatroomType: { individual: 1, group: 2, public_chat: 3 }, MessageStatus: { // 1,2,3 - events are supported by backend... TODO:Make this fact explicit // Basically send and sent_ok are transitional statuses only pertaining to frontend // Idea of having them in decimal is to have their values lower than the server counter parts // and should be easy to check for the greatest status just by comparing the values composing: 1, received: 2, read: 3, sent: 1.5, sent_ok: 1.6, unknown: -1 }, pinned_type: { NONE: 0, PINNED: 1, UNPINNED: 2 } }; exports.default = config; module.exports = exports['default'];