/*-------v2Containers--------------*/
import capReducer from './v2Containers/Cap/reducer';
import capSaga from './v2Containers/Cap/sagas';
import Cap from './v2Containers/Cap/index';

import LanguageProvider from './v2Containers/LanguageProvider';
import LanguageProviderReducer from './v2Containers/LanguageProvider/reducer';
import LanguageProviderSaga from './v2Containers/LanguageProvider/sagas';

import templateReducer from './v2Containers/Templates/reducer';
import templateSaga from './v2Containers/Templates/sagas';
import Templates from './v2Containers/Templates/index';

import SmsCreate from './v2Containers/Sms/Create/index';
import smsCreateReducer from './v2Containers/Sms/Create/reducer';
import smsCreateSaga from './v2Containers/Sms/Create/sagas';

import SmsEdit from './v2Containers/Sms/Edit/index';
import smsEditReducer from './v2Containers/Sms/Edit/reducer';
import smsEditSaga from './v2Containers/Sms/Edit/sagas';

import Email from './v2Containers/Email/index';
import emailReducer from './v2Containers/Email/reducer';
import emailSaga from './v2Containers/Email/sagas';

import BeeEditor from './v2Containers/BeeEditor/index';
import beeReducer from './v2Containers/BeeEditor/reducer';
import beeSaga from './v2Containers/BeeEditor/sagas';


import CallTask from './v2Containers/CallTask/index';
import callTaskReducer from './v2Containers/CallTask/reducer';
import callTaskSaga from './v2Containers/CallTask/sagas';

import WeChatMapTemplate from './v2Containers/WeChat/MapTemplates';
import weChatMapTemplateReducer from './v2Containers/WeChat/MapTemplates/reducer';
import weChatMapTemplateSaga from './v2Containers/WeChat/MapTemplates/sagas';

import WeChatRichMediaCreate from './v2Containers/WeChat/RichmediaTemplates/Create';
import weChatRichMediaCreateReducer from './v2Containers/WeChat/RichmediaTemplates/Create/reducer';
import weChatRichMediaCreateSaga from './v2Containers/WeChat/RichmediaTemplates/Create/sagas';

import WeChatRichMediaEdit from './v2Containers/WeChat/RichmediaTemplates/Edit';
import weChatRichMediaEditReducer from './v2Containers/WeChat/RichmediaTemplates/Edit/reducer';
import weChatRichMediaEditSaga from './v2Containers/WeChat/RichmediaTemplates/Edit/sagas';

import Facebook from './v2Containers/Facebook';
import facebookReducer from './v2Containers/Facebook/reducer';
import facebookSaga from './v2Containers/Facebook/sagas';

import Gallery from './v2Containers/Assets/Gallery';
import galleryReducer from './v2Containers/Assets/Gallery/reducer';
import gallerySagas from './v2Containers/Assets/Gallery/sagas';

import MobilepushCreate from './v2Containers/MobilePush/Create';
import mobilepushCreateReducer from './v2Containers/MobilePush/Create/reducer';
import mobilepushCreateSaga from './v2Containers/MobilePush/Create/sagas';

import FTP from './v2Containers/FTP';
import FTPReducer from './v2Containers/FTP/reducer';
import FTPSagas from './v2Containers/FTP/sagas';

import MobilepushEdit from './v2Containers/MobilePush/Edit';
import mobilepushEditReducer from './v2Containers/MobilePush/Edit/reducer';
import mobilepushEditSaga from './v2Containers/MobilePush/Edit/sagas';


import LineCreate from './v2Containers/Line/Container';
import lineCreateReducer from './v2Containers/Line/Container/reducer';
import lineCreateSaga from './v2Containers/Line/Container/sagas';

import Viber from './v2Containers/Viber';
import viberReducer from './v2Containers/Viber/reducer';
import viberSaga from './v2Containers/Viber/sagas';

import TemplatesV2 from './v2Containers/TemplatesV2/index';

import FacebookPreview from './v2Containers/CapFacebookPreview';
import facebookPreviewReducer from './v2Containers/CapFacebookPreview/reducer';
import facebookPreviewSaga from './v2Containers/CapFacebookPreview/sagas';

import CreativesContainer from './v2Containers/CreativesContainer';
import CreativesContainerReducer from './v2Containers/CreativesContainer/reducer';
import { updateCharCount } from './utils/smsCharCountV2';

import SmsTraiCreate from './v2Containers/SmsTrai/Create';
import SmsTraiCreateReducer from './v2Containers/SmsTrai/Create/reducer';
import SmsTraiCreateSaga from './v2Containers/SmsTrai/Create/sagas';

import Whatsapp from './v2Containers/Whatsapp';
import whatsappReducer from './v2Containers/Whatsapp/reducer';
import whatsappSaga from './v2Containers/Whatsapp/sagas';

import Zalo from './v2Containers/Zalo';
import zaloReducer from './v2Containers/Zalo/reducer';
import zaloSaga from './v2Containers/Zalo/saga';

import InApp from './v2Containers/InApp';
import inAppReducer from './v2Containers/InApp/reducer';
import inAppSaga from './v2Containers/InApp/sagas';

import Rcs from './v2Containers/Rcs';
import rcsReducer from './v2Containers/Rcs/reducer';
import rcsSaga from './v2Containers/Rcs/sagas';

// Utils
import {
  convertMediaTagsToUrls,
  convertUrlsToMediaTags,
} from './utils/transformTemplateConfig';

//API Imports
import { updateMetaConfig } from './services/api';

export {default as Ebill} from './v2Containers/Ebill';
export {default as EbillReducer} from './v2Containers/Ebill/reducer';
export {default as EbillSaga} from './v2Containers/Ebill/sagas';


const CapContainer = {Cap, capReducer, capSaga};
const LanguageProviderContainer = {LanguageProvider, LanguageProviderReducer, LanguageProviderSaga};
const TemplatesContainer = {Templates, templateReducer, templateSaga};
const SmsCreateContainer = {SmsCreate, smsCreateReducer, smsCreateSaga};
const SmsEditContainer = {SmsEdit, smsEditReducer, smsEditSaga};
const EmailContainer = {Email, emailReducer, emailSaga};
const BeeContainer = { BeeEditor, beeReducer, beeSaga};
const CallTaskContainer = {CallTask, callTaskReducer, callTaskSaga};
const WeChatMapTemplateContainer = {WeChatMapTemplate, weChatMapTemplateReducer, weChatMapTemplateSaga};
const WeChatRichMediaCreateContainer = {WeChatRichMediaCreate, weChatRichMediaCreateReducer, weChatRichMediaCreateSaga};
const WeChatRichMediaEditContainer = {WeChatRichMediaEdit, weChatRichMediaEditReducer, weChatRichMediaEditSaga};
const MobilePushCreateContainer = {MobilepushCreate, mobilepushCreateReducer, mobilepushCreateSaga};
const MobilePushEditContainer = {MobilepushEdit, mobilepushEditReducer, mobilepushEditSaga};
const LineCreateContainer = {LineCreate, lineCreateReducer, lineCreateSaga};
const TemplatesV2Container = {TemplatesV2, templateReducer, templateSaga};
const FacebookContainer = {Facebook, facebookReducer, facebookSaga};
const ViberContainer = {Viber, viberReducer, viberSaga};
const FacebookPreviewContainer = { FacebookPreview, facebookPreviewReducer, facebookPreviewSaga };
const SmsTraiContainer = {SmsTraiCreate, SmsTraiCreateReducer, SmsTraiCreateSaga};
const WhatsappContainer = { Whatsapp, whatsappReducer, whatsappSaga };
const RcsContainer = { Rcs, rcsReducer, rcsSaga };
const ZaloContainer = { Zalo, zaloReducer, zaloSaga };
const InAppContainer = { InApp, inAppReducer, inAppSaga };

const GalleryContainer = {Gallery, galleryReducer, gallerySagas};
const FTPContainer = {FTP, FTPReducer, FTPSagas};

export {default as TagList} from './v2Containers/TagList/index';
export {default as TagListSaga} from './v2Containers/TagList/sagas';
export {default as TagListReducer} from './v2Containers/TagList/reducer';

export {default as TemplatePreview} from './v2Components/TemplatePreview';
export {default as EmailPreview} from './v2Components/EmailPreview';

export {default as EmailPreviewV2} from './v2Components/EmailPreviewV2';
export {default as CallTaskPreview} from './v2Components/CallTaskPreview';
export {default as EmailMobilePreview} from './v2Components/EmailMobilePreview';
export {default as MobilePushPreview} from './v2Components/MobilePushPreviewV2';
export {default as WechatRichmediaTemplatePreview} from './v2Components/TemplatePreview/WechatRichmediaTemplatePreview';
export {default as FTP} from './v2Containers/FTP';

CreativesContainer.CreativesContainerReducer = CreativesContainerReducer;

export { CapContainer,
  LanguageProviderContainer,
  TemplatesContainer,
  SmsCreateContainer,
  SmsEditContainer,
  EmailContainer,
  BeeContainer,
  CallTaskContainer,
  WeChatMapTemplateContainer,
  WeChatRichMediaCreateContainer,
  WeChatRichMediaEditContainer,
  Cap,
  Templates,
  SmsCreate,
  SmsEdit,
  Email,
  LineCreateContainer,
  MobilePushCreateContainer,
  MobilePushEditContainer,
  TemplatesV2Container,
  CreativesContainer,
  updateCharCount,
  FacebookContainer,
  GalleryContainer,
  FTPContainer,
  ViberContainer,
  FacebookPreviewContainer,
  SmsTraiContainer,
  WhatsappContainer,
  RcsContainer,
  ZaloContainer,
  InAppContainer,
  convertMediaTagsToUrls,
  convertUrlsToMediaTags,
  updateMetaConfig,
};
