"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.updateLoggedInChannel = updateLoggedInChannel; exports.checkForLoggedInChannel = checkForLoggedInChannel; exports.logOutChannel = logOutChannel; var actions = _interopRequireWildcard(require("../constants/channel_action_types")); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } // export action creators function updateLoggedInChannel(name, shortId, longId) { return { type: actions.CHANNEL_UPDATE, data: { name: name, shortId: shortId, longId: longId } }; } function checkForLoggedInChannel() { return { type: actions.CHANNEL_LOGIN_CHECK }; } function logOutChannel() { return { type: actions.CHANNEL_LOGOUT }; }