text: 'use strict';
  
  import Api from '../utils/Api';
  import Reflux from 'reflux';
  
  const SectionActionCreator = Reflux.createActions([
    'createSection',
    'deleteSection',
    'updateSection',
    'updateSections'
  ]);
  
  SectionActionCreator.createSection.listen((categoryId, name) => {
    Api.createSection(categoryId, name);
  });
  
  SectionActionCreator.deleteSection.listen((categoryId, sectionId) => {
    Api.deleteSection(categoryId, sectionId);
  });
  
  SectionActionCreator.updateSection.listen((categoryId, sectionId, data) => {
    Api.updateSection(categoryId, sectionId, data);
  });
  
  SectionActionCreator.updateSections.listen((categoryId, sections) => {
    Api.updateSections(categoryId, sections);
  });
  
  export default SectionActionCreator;
  