import { environment } from '../environments/environment';

export class AppConfig {

  public static Origin: string = environment.baseUrl;

  public static ApiPaths = {
    getAllResources: `${AppConfig.Origin}/resource/getAllResources`,
    getResourcesForApproval: `${AppConfig.Origin}/admin/getResourceForApproval`,
    getResource: `${AppConfig.Origin}/resource/get`,
    hasImage: `${AppConfig.Origin}/resource/imageExist`,

    approveResource: `${AppConfig.Origin}/admin/approve`,
    deleteResource: `${AppConfig.Origin}/admin/delete`,
    archiveResource: `${AppConfig.Origin}/admin/archive`,
    deleteFile: `${AppConfig.Origin}/file/delete`,


    getFile: `${AppConfig.Origin}/resource/file`,
    getFileById: `${AppConfig.Origin}/file/get`,


    saveResource: `${AppConfig.Origin}/resource/saveResource`,
    searchResource: `${AppConfig.Origin}/resource/search`,
    addFile: `${AppConfig.Origin}/resource/add`,
    addHelpFile: `${AppConfig.Origin}/file/add`,
    download: `${AppConfig.Origin}/resource/download`,
    comment: `${AppConfig.Origin}/resource/comment`,


    getAllLanguages: `${AppConfig.Origin}/codebooks/getAllLanguages`,
    getAllSectors: `${AppConfig.Origin}/codebooks/getAllSectors`,
    getAllRegions: `${AppConfig.Origin}/codebooks/getAllRegions`,
    getAllResourceTypes: `${AppConfig.Origin}/codebooks/getAllResourceTypes`,
    getAllProjects: `${AppConfig.Origin}/codebooks/getAllProjects`,
    getAllPests: `${AppConfig.Origin}/codebooks/getAllPests`,
    getAllCrops: `${AppConfig.Origin}/codebooks/getAllCrops`,
    getAllKeywords: `${AppConfig.Origin}/codebooks/getAllKeywords`,
    addPest:`${AppConfig.Origin}/codebooks/savePest`,
    addCrop:`${AppConfig.Origin}/codebooks/saveCrop`,
    getAllHelpFilesDesc: `${AppConfig.Origin}/file/help/list`,

    login:`${AppConfig.Origin}/auth/authenticate`,
    startChangingPassword:`${AppConfig.Origin}/auth/startChangingPassword`,
    getUserName:`${AppConfig.Origin}/auth/validateToken`,
    changePassword:`${AppConfig.Origin}/auth/changePassword`


  };

}

