/*
 *
 * Ebill actions
 *
 */

import * as types from './constants';

export function createTemplate(template) {
  return {
    type: types.CREATE_TEMPLATE_REQUEST,
    template,
  };
}

export function getTemplateDetails(id, channel) {
  
  return {
    type: types.GET_TEMPLATE_DETAILS_REQUEST,
    id,
    channel,
  };
}

export function getCmsData(cmsType, projectId) {
  return {
    type: types.GET_CMS_EDITOR_DATA_REQUEST,
    cmsType,
    projectId,
  };
}

export function clearCRUDResponse() {
  return {
    type: types.CLEAR_EBILL_CRUD_RESPONSE_REQUEST,
  };
}

export function clearStoreValues() {
  return {
    type: types.CLEAR_ALL_VALUES,
  };
}
