/** Angular Imports */ import { Injectable } from '@angular/core' ; import { HttpClient , HttpParams } from '@angular/common/http' ; /** rxjs Imports */ import { Observable } from 'rxjs' ; /**
 * Home Service
 */ @ Injectable ( { providedIn : 'root' } ) export class HomeService { param { HttpClient } http constructor ( private http ) { } param { number } officeId returns { Observable < any > } getCollectedAmount ( officeId ) { const httpParams = new HttpParams ( ) . set ( 'R_officeId' , officeId . toString ( ) ) . set ( 'genericResultSet' , 'false' ) ; return this . http . get ( '/runreports/Demand_Vs_Collection' , { params : httpParams } ) ; } param { number } officeId returns { Observable < any > } getDisbursedAmount ( officeId ) { const httpParams = new HttpParams ( ) . set ( 'R_officeId' , officeId . toString ( ) ) . set ( 'genericResultSet' , 'false' ) ; return this . http . get ( '/runreports/Disbursal_Vs_Awaitingdisbursal' , { params : httpParams } ) ; } param { number } officeId returns { Observable < any > } getClientTrendsByDay ( officeId ) { const httpParams = new HttpParams ( ) . set ( 'R_officeId' , officeId . toString ( ) ) . set ( 'genericResultSet' , 'false' ) ; return this . http . get ( '/runreports/ClientTrendsByDay' , { params : httpParams } ) ; } param { number } officeId returns { Observable < any > } getClientTrendsByWeek ( officeId ) { const httpParams = new HttpParams ( ) . set ( 'R_officeId' , officeId . toString ( ) ) . set ( 'genericResultSet' , 'false' ) ; return this . http . get ( '/runreports/ClientTrendsByWeek' , { params : httpParams } ) ; } param { number } officeId returns { Observable < any > } getClientTrendsByMonth ( officeId ) { const httpParams = new HttpParams ( ) . set ( 'R_officeId' , officeId . toString ( ) ) . set ( 'genericResultSet' , 'false' ) ; return this . http . get ( '/runreports/ClientTrendsByMonth' , { params : httpParams } ) ; } param { number } officeId returns { Observable < any > } getLoanTrendsByDay ( officeId ) { const httpParams = new HttpParams ( ) . set ( 'R_officeId' , officeId . toString ( ) ) . set ( 'genericResultSet' , 'false' ) ; return this . http . get ( '/runreports/LoanTrendsByDay' , { params : httpParams } ) ; } param { number } officeId returns { Observable < any > } getLoanTrendsByWeek ( officeId ) { const httpParams = new HttpParams ( ) . set ( 'R_officeId' , officeId . toString ( ) ) . set ( 'genericResultSet' , 'false' ) ; return this . http . get ( '/runreports/LoanTrendsByWeek' , { params : httpParams } ) ; } param { number } officeId returns { Observable < any > } getLoanTrendsByMonth ( officeId ) { const httpParams = new HttpParams ( ) . set ( 'R_officeId' , officeId . toString ( ) ) . set ( 'genericResultSet' , 'false' ) ; return this . http . get ( '/runreports/LoanTrendsByMonth' , { params : httpParams } ) ; } }