                                             return StatisticsResult(current: current, last: last)
         })
     }
-    
-    
-//    public static func loadSalesStatistics(
-//        auth: Auth,
-//        moment: StatisticsMoment,
-//        interval: StatisticsIntervalArgument,
-//        retailStore: StatisticsRerailStoreArgument? = nil
-//    ) {
-//        let statisticsRequest = loadStatistics(auth: auth, type: .sales, moment: moment, interval: interval)
-////        let productReportRequest = 
-//    }
 }

        })
    }
    
    public static func loadOrderStatisticsOfMonth(
        auth: Auth,
        retailStore: StatisticsRerailStoreArgument? = nil
        )-> Observable<StatisticsResult> {
        let interval = StatisticsIntervalArgument(type: .day)
        
        let currentRequest = loadStatistics(auth: auth,
                                            type: .orders,
                                            moment: StatisticsMoment(from: Date().startOfMonth(), to: Date().endOfMonth()),
                                            interval: interval,
                                            retailStore: retailStore)
        
        let lastRequest = loadStatistics(auth: auth,
                                         type: .orders,
                                         moment: StatisticsMoment(from: Date().startOfLastMonth(), to: Date().startOfMonth()),
                                         interval: interval,
                                         retailStore: retailStore)

                                        })
    }
    
    public static func loadStatisticsOfWeek(
        auth: Auth,
        type: MSStatisticsType,
        retailStore: StatisticsRerailStoreArgument? = nil
        )-> Observable<StatisticsResult> {
        let interval = StatisticsIntervalArgument(type: .day)
        
        let currentRequest = loadStatistics(auth: auth,
                                            type: type,
                                            moment: StatisticsMoment(from: Date().startOfWeek(), to: Date().endOfWeek()),
                                            interval: interval,
                                            retailStore: retailStore)
        
        let lastRequest = loadStatistics(auth: auth,
                                         type: type,
                                         moment: StatisticsMoment(from: Date().startOfLastWeek(), to: Date().endOfLastWeek()),
                                         interval: interval,
                                         retailStore: retailStore)
