// Module ID: 14093 // Function ID: 14094 // Name: handleInit // Dependencies: [589, 709, 2] // Module 14093 (handleInit) import { Store } from "initialize"; function handleInit() { let closure_0 = []; } let closure_0 = []; class AuthSessionsStore extends Store { } AuthSessionsStore.prototype["getSessions"] = function getSessions() { return closure_0; }; AuthSessionsStore.displayName = "AuthSessionsStore"; const authSessionsStore = new AuthSessionsStore(require("dispatcher"), { LOGOUT: handleInit, LOGIN_SUCCESS: handleInit, FETCH_AUTH_SESSIONS_SUCCESS: function handleFetchAuthSessionsSuccess(sessions) { sessions = sessions.sessions; let closure_0 = sessions.map((approx_last_used_time) => { const obj = {}; const merged = Object.assign(approx_last_used_time); obj.approx_last_used_time = new Date(approx_last_used_time.approx_last_used_time); return obj; }); }, LOGOUT_AUTH_SESSIONS_SUCCESS: function handleLogoutAuthSessionsSuccess(arg0) { let items; let c1; items = [...items]; c1 = false; for (const item10014 of tmp) { let tmp2 = (function _loop(item10014) { const items = item10014; const findIndexResult = items.findIndex((id_hash) => id_hash.id_hash === closure_0); if (findIndexResult >= 0) { items.splice(findIndexResult, 1); let c1 = true; } })(item10014); continue; } if (!c1) { return false; } } }); const result = require("set").fileFinishedImporting("modules/auth_sessions/AuthSessionsStore.tsx"); export default authSessionsStore;