import SQLite from 'react-native-sqlite-2';
import * as RNFS from 'react-native-fs';
import bgimage1 from '../assets/performics/circle_cream.svg';
import bgimage2 from '../assets/performics/circle_green.svg';
import bgimage3 from '../assets/performics/circle_red.svg';

const HierarchyTbls = { "Master_Category": "Master_Category", "Master_SubCategory": "Master_SubCategory", "Master_Brand": "Master_Brand", "Master_SubBrand": "Master_SubBrand", "Master_Product": "Master_Product", "Master_Program": "Master_Program" }

const fixedurl = 'https://api1.parinaam.in/api/generic/GetAppSetting';//'https://api.parinaam.in/api/GetAppDetails';
const resumeurl = 'https://hrm.parinaam.in/Webservice/GenericService.svc/'
const baseurl = '';//'https://th.parinaam.in/Webservice/Performics_ThailandService.svc/';
const URL_IMAGE = '';//'https://th.parinaam.in/webservice/Imageupload.asmx/';
// const URL_GET_OTP = "https://cpmmfa.parinaam.in/Webservice/MFMService.svc/";
// const URL_GETTRAINING = "https://th.parinaam.in/conten/training.html";
// const testurl='https://Anitemp.parinaam.in/Webservice/Abbott_MnancService.svc/DownloadJson';
// const testurl_upload='https://Anitemp.parinaam.in/Webservice/Abbott_MnancService.svc/UploadJson';
// const testurl_image='https://th.parinaam.in/webservice/Imageupload.asmx/';

const Production = false; //false for dev, true for prod
const DevType = Production ? "Prod" : "Dev" 
const sloganline = '...Any slogan line here...';
const appname = 'Supervisor App';
const AppVersion = '2.6';
const DBName = 'PerformicsSupervisor_' + AppVersion.replace(".", "_") + '.db';

console.log('DBName in contants:', DBName);
const db = SQLite.openDatabase(DBName, AppVersion);
// const db = SQLite.openDatabase('PerformicsSupervisor.db', '1.5')

const OQAD_TimeConstimeConst = 30;

const version = `Version ${AppVersion}`;
const copyrightText = '© copyright CPM India';
const cpm_logo = 'cpm_logo.png';
const logoImage = require('../assets/image/olay_logo.png');
const gMap_key = 'AIzaSyCI1EaTZk3eXA_J_UsnBC1STOAFd5unJ4A';
const OQAD_TimeConst = 30;

// const colors_Arr={"0":{bg:['#d0f5fb','#43b0c3'],color:'#0c8fa5'},"1":{bg:['#fdeacf','#ffbb58'],color:'#f39a19'},"2":{bg:['#ffdede','#f99292'],color:'#ff5f5f'},"3":{bg:['#ddd4ff','#a48ef9'],color:'#4551e7'},"4":{bg:['#d1efd3','#83c188'],color:'#3b9542'},"5":{bg:['#efeed1','#e1de7d'],color:'#bfbb44'},"6":{bg:['#fdeffd','#fdb9ff'],color:'#fc86ff'}};
const colors_Arr = { "0": { bg: ['#faf7ef', '#e4d9be'], color: '#0c8fa5', 'bgImage': bgimage1 }, "1": { bg: ['#e6f9f5', '#8cdccc'], color: '#f39a19', 'bgImage': bgimage2 }, "2": { bg: ['#faebed', '#eec8ce'], color: '#ff5f5f', 'bgImage': bgimage3 } };
const common_ImagePath = `${RNFS.DocumentDirectoryPath}/`;
const common_FilePath = `${RNFS.ExternalDirectoryPath}/`;
const TrainingContentFolderPath = `${common_FilePath}TrainingContent`;
const PosSaleFolderPath = `${common_ImagePath}POSSALE`;


// const common_ImagePath2=`${RNFS.DocumentDirectoryPath}/AppImages/`;

export {DevType, fixedurl, version, cpm_logo, sloganline, appname, db, baseurl, URL_IMAGE, copyrightText, logoImage, AppVersion, gMap_key, colors_Arr, common_ImagePath, resumeurl, OQAD_TimeConst, OQAD_TimeConstimeConst, TrainingContentFolderPath, HierarchyTbls, PosSaleFolderPath };