var semusiConfig = {
    mongodb: {
        localUrl : process.env.localUrl,
        productionUrl : process.env.productionUrl
    },
    web: {
        port: process.env.serverPort2,
        host: process.env.serverHost,
        use_intercom: false
    }
};

semusiConfig.serverName = 'AppICE';
semusiConfig.cdnUrl = process.env.cdnUrl;
semusiConfig.newPanelUrl = process.env.newPanelUrl;
semusiConfig.apiServerUrl = process.env.apiServerUrl;
semusiConfig.accessContolAllowOrigin= process.env.cdnUrl;
semusiConfig.Domains = ["ymail","outlook","hotmail","gmx","mail","mail","yandex","india","b4Uindia","rediffmail","indiatimes","outGun","email","canada","bluebottle","canoe","dCEmail","fastermail","gawab","graffiti","hotpop","hushmail","iCQmail","inbox","inMail24 ","jubii","linuxMail ","litepost ","lycos Mail","mail.com ","mail2World","mailSnare ","merseyMail ","muchoMail","myWay ","mpera Mail","outGun ","postmaster","prontoMail ","runbox ","sacMail ","safe-mail","uReach ","vFEmail","zilladog","fuser ","grab Mail ","jump2Email","mail2Web ","myEmail ","tamadaa ","techemail","earthClassMail","futureMe ","hoaxMail ","l8r","postful","pranketh","shinyLetter","2Prong","dodgeit","e4ward ","emailias ","gishPuppy ","guerrillaMail","mailExpire","pookMail","spam ","spambox","spamex ","spamgourmet ","tempInbox ","zoEmail","in.com Mail ","sify","aol mail ","webdunia ","ibibo","iCloud","yahoo"];
semusiConfig.AWS_REGION = "";
semusiConfig.AWSLAMBDA_ACCESS_KEY_ID = "";
semusiConfig.AWSLAMBDA_SECRET_KEY = "";
semusiConfig.S3_STAGING_CERTBUCKET = "appice-staging-ioscerts";
semusiConfig.S3_PROD_CERTBUCKET = "appice-prod-ioscerts";
semusiConfig.uploadAssets = process.env.uploadAssets.split(",")
semusiConfig.uploadFilesStorage = process.env.uploadFilesStorage;
semusiConfig.fontsrc = process.env.fontsrc;
semusiConfig.stylesrc = process.env.stylesrc;
semusiConfig.framesrc = process.env.framesrc;
semusiConfig.connectsrc = process.env.connectsrc;
semusiConfig.imagesrc =  `${process.env.imagesrc} ${process.env.blobContainerCDN}`;
semusiConfig.appListSrc = ''; // by default Empty
semusiConfig.videosrc = `${process.env.videosrc} ${process.env.blobContainerCDN}`
/*Minio Details*/
semusiConfig.endPoint =  process.env.minioEndPoint;
semusiConfig.useSSL =  (process.env.miniouseSSL == 'true' ) ? true: false;
semusiConfig.accessKey =  process.env.minioAccessKey
semusiConfig.secretKey =  process.env.miniosecretKey
semusiConfig.minioPort = (process.env.minioPort) ? process.env.minioPort :false;
/* Bucket Name for Export CSV */
semusiConfig.minioBuckets = {
    exportsCsv:(process.env.exportsCsvBckt) ? process.env.exportsCsvBckt:"",
    campaignImages: (process.env.campaignImages) ? process.env.campaignImages : "appice-prod-campaign-images",
};
semusiConfig.redirectConfig={
    '/': process.env.serverHostURL,
    '/index': process.env.serverHostURL,
    '/index.html': process.env.serverHostURL,
    '/request-for-demo': process.env.serverHostURL,
    '/coming-soon': process.env.serverHostURL,
    '/about': process.env.serverHostURL,
    '/about.html':process.env.serverHostURL
};
semusiConfig.IsProduction = true;
semusiConfig.fcmCertificateLocation = __dirname + '/uploads/';
semusiConfig.segmentCsvFile = "audiencesegment";
semusiConfig.azureApiStorageSASToken =  process.env.azureApiStorageSASToken;
semusiConfig.azureApiQueueSASURL = process.env.azureApiQueueSASURL;
semusiConfig.azureApiBlobSASURL = process.env.azureApiBlobSASURL;
semusiConfig.azureApiFileSASURL = process.env.azureApiFileSASURL;
semusiConfig.azureCDNSASToken = process.env.azureCDNSASToken; 
semusiConfig.azureCDNBlobSASURL = process.env.azureCDNBlobSASURL;
semusiConfig.blobContainerCDN = process.env.blobContainerCDN;
semusiConfig.e2eContainerCDN = process.env.e2eblobContainerCDN;
semusiConfig.displayPref = [{"id":1,"name":"Dashboard","nodes":[]},{"id":2,"name":"Setup Apps","nodes":[{"id":21,"name":"Setup New App","p":1,"nodes":[]},{"id":22,"name":"Setup New Chatbot","p":2,"nodes":[]}]},{"id":3,"name":"Users","nodes":[{"id":31,"name":"Demographics","p":1,"nodes":[]},{"id":32,"name":"Audience Segments","p":2,"nodes":[]}]},{"id":4,"name":"Acquistion","nodes":[{"id":41,"name":"App Aquisition","p":1,"nodes":[]},{"id":42,"name":"Upload Past Data","p":2,"nodes":[]}]},{"id":5,"name":"Activities","nodes":[{"id":51,"name":"Inside the app","p":1,"nodes":[{"id":511,"name":"Usage","p":1},{"id":512,"name":"Events","p":2},{"id":513,"name":"Funnels","p":3},{"id":514,"name":"Screen Playback","p":4},{"id":515,"name":"Journey","p":5}]},{"id":52,"name":"Outside the app","p":2,"nodes":[]}]},{"id":6,"name":"Engagement","nodes":[{"id":61,"name":"Campaigns","p":1,"nodes":[]},{"id":62,"name":"Transactional Campaigns","p":2,"nodes":[]},{"id":63,"name":"Utm Builder","p":3,"nodes":[]}]},{"id":7,"name":"Churn","nodes":[]},{"id":8,"name":"Settings","nodes":[{"id":81,"name":"Manage Modules","p":1,"nodes":[]},{"id":82,"name":"User Management","p":2,"nodes":[]},{"id":83,"name":"Upload Test Data","p":3,"nodes":[]},{"id":84,"name":"Display Preference","p":4,"nodes":[]},{"id":85,"name":"App Setting","p":5,"nodes":[]},{"id":86,"name":"Playback Setting","p":6,"nodes":[]}]},{"id":9,"name":"Documentation","nodes":[{"id":91,"name":"Android Studio Integration","p":1,"nodes":[]},{"id":92,"name":"iOS Integration","p":2,"nodes":[]},{"id":93,"name":"Cordova Integration","p":3,"nodes":[]},{"id":94,"name":"React Integration","p":4,"nodes":[]}]},{"id":10,"name":"Reports","nodes":[{"id":101,"name":"Exports ","p":1,"nodes":[]}]}];
semusiConfig.googleMapApiKey = process.env.googleMapApiKey;
semusiConfig.AIEmailEditor = {
    client_id : process.env.AIEmailEditor_client_id,
    client_secret : process.env.AIEmailEditor_client_secret,
    endpoint : process.env.AIEmailEditor_endpoint,
    grant_type : process.env.AIEmailEditor_grant_type
} 
semusiConfig.sessionAge = new Date(Date.now() + (60 * 60 * 1000 * 24 * 60));

semusiConfig.mdALgo = process.env.mdALgo;
semusiConfig.shaV1Hash =process.env.shaV1Hash
semusiConfig.shaV2Hash = process.env.shaV2Hash
semusiConfig.passForEmail = process.env.forgetPasswordEmail;
semusiConfig.homePageNav = process.env.homePageNav;
semusiConfig.E2EKey = "appice-custom-segment-data";
module.exports = semusiConfig;
