import {InjectionToken} from '@angular/core';
import {IAppConfig} from './iapp.config';

export let APP_CONFIG = new InjectionToken('app.config');

export const AppConfig: IAppConfig = {
    routes: {
        home: 'home',
        cart: 'cart',
        specials: 'specials',
        lists: 'lists',
        search: 'search',
        password: 'password',
        list: 'list',
        categories: 'categories',
        products: 'products',
        product: 'product',
        login: '/',
        error404: '404'
    },
    baseURL: '/FWDemo',
    showPrices: true,
    relativeURL: '/',
    loginURL: function () {
        return this.baseURL + '/fluid/FluidAppServerProxy?ipApi=userLogin&domain=frameworks&extra=tportal';
    },
    endpointURL: function () {
        return this.baseURL + '/fluid/FluidAppServerProxy?ipApi=presenter&ipService=Frameworks.Interfaces.Mobile.TradePortal';
    },
    endpoints: {
        getCustomLists: '&ipFunction=getCustomLists&ipContextId=',
        getProductCategories: '&ipFunction=getProductCategories&ipContextId=',
        getProductsByCategoryTP: '&ipFunction=getProductsByCategoryTP&ipContextId=',
        getCartContents: '&ipFunction=getCartContents&ipContextId=',
        getProductDetails: '&ipFunction=getProductDetails&ipContextId=',
        getFeaturesAndBenefits: '&ipFunction=getFeaturesAndBenefits&ipContextId=',
        getProductInformation: '&ipFunction=getProductInformation&ipContextId=',
        getUserDetails: '&ipFunction=getUserDetails&ipContextId=',
        searchProductTP: '&ipFunction=searchProductTP&ipContextId=',
        processComplete: '&ipFunction=processComplete&ipContextId=',
        createCart: '&ipFunction=createCart&ipContextId=',
        deleteCart: '&ipFunction=deleteCart&ipContextId=',
        addCartProduct: '&ipFunction=addCartProduct&ipContextId=',
        updateCartProduct: '&ipFunction=updateCartProduct&ipContextId=',
        deleteCartProduct: '&ipFunction=deleteCartProduct&ipContextId=',
        getVehicleTypes: '&ipFunction=getVehicleTypes&ipContextId=',
        getState: '&ipFunction=getState&ipContextId=',
        getBranches: '&ipFunction=getBranches&ipContextId=',
        getListRequestedTimeCodes: '&ipFunction=getListRequestedTimeCodes&ipContextId=',
        updateCustomerPassword: '&ipFunction=updateCustomerPassword&ipContextId=',
        getGeocode: '&ipFunction=getGeocode&ipContextId=',
        getDeliveryCharge: '&ipFunction=getDeliveryCharge&ipContextId=',
        getClosestBranch: '&ipFunction=getClosestBranch&ipContextId=',
        getPriceViewOptionsTP: '&ipFunction=getPriceViewOptionsTP&ipContextId=',
    }

};
