podchat-browser
Version:
Javascript SDK to use POD's Chat Service - Browser Only
50 lines (39 loc) • 1.32 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Store = Store;
var _eventEmitter = require("./eventEmitter");
var _reactionsSummaries = require("./reactionsSummaries");
var _user = require("./user");
var _reactionsList = require("./reactionsList");
var _threads = require("./threads");
var _history = require("./history");
var _contactsList = require("./contactsList");
var _thread = require("./threads/thread");
var _usersNotSeenDuration = require("./usersNotSeenDuration");
function Store(app) {
return {
threads: new _threads.ThreadsList(app),
thread: new _thread.Thread(app),
contacts: new _contactsList.ContactsList(app),
events: new _eventEmitter.StoreEvents(),
reactionSummaries: new _reactionsSummaries.ReactionsSummariesCache(app),
reactionsList: new _reactionsList.ReactionsListCache(app),
user: new _user.SDKUser(app),
threadCallbacks: {},
sendMessageCallbacks: {},
messagesCallbacks: {},
asyncRequestTimeouts: {},
history: _history.historyCache,
httpRequestObject: {},
resumableRequestsObject: {},
chatSendQueue: [],
notSeenDuration: new _usersNotSeenDuration.UsersNotSeenDuration(app),
asyncInfo: {
deviceId: undefined,
peerId: undefined,
oldPeerId: undefined
}
};
}