# All files / composer/action-creators ServerActionCreators.js

20% Statements 1/5
100% Branches 0/0
0% Functions 0/4
20% Lines 1/5

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37

    10x

     import AppDispatcher from '../dispatcher';
    import { ActionTypes } from '../AppConstants';

    const ServerActionCreators = {

      videoProcessed: (processedVideoData) => {
        AppDispatcher.handlePusherAction({
          actionType: ActionTypes.COMPOSER_VIDEO_PROCESSED,
          processedVideoData,
        });
      },

      profileGroupCreated: (groupData) => {
        AppDispatcher.handlePusherAction({
          actionType: ActionTypes.COMPOSER_PROFILE_GROUP_CREATED,
          groupData,
        });
      },

      profileGroupUpdated: (groupData) => {
        AppDispatcher.handlePusherAction({
          actionType: ActionTypes.COMPOSER_PROFILE_GROUP_UPDATED,
          groupData,
        });
      },

      profileGroupDeleted: (groupData) => {
        AppDispatcher.handlePusherAction({
          actionType: ActionTypes.COMPOSER_PROFILE_GROUP_DELETED,
          groupData,
        });
      },

    };

    export default ServerActionCreators;