import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Moment } from 'moment';
import { environment } from 'src/environments/environment';
import { Menu } from '../types/menu';
import { Status } from '../types/status';
import { Group } from '../types/group';
import { map, of } from 'rxjs';
import { Notification } from '../types/notification';
import { News } from '../types/news';
import { AKey } from '../types/key';
import * as moment from 'moment';
import { IUSettings } from './settings/settings.component';
import User from '../types/user';
@Injectable({
providedIn: 'root'
})
export class AdminCommService {
constructor(private http: HttpClient) { }
//#region Menu
menu = {
getMenu: (start?: Moment | null, end?: Moment | null) => {
if (start && end) {
const body = {start: start.toString(), end: end.toString()}
return this.http.get