2022-06-28 07:40:33 +00:00
|
|
|
import { Route } from '@angular/router';
|
|
|
|
import { AuthGuard } from 'app/core/auth/guards/auth.guard';
|
|
|
|
import { NoAuthGuard } from 'app/core/auth/guards/noAuth.guard';
|
|
|
|
import { LayoutComponent } from 'app/layout/layout.component';
|
|
|
|
import { InitialDataResolver } from 'app/app.resolvers';
|
|
|
|
|
|
|
|
// @formatter:off
|
|
|
|
/* eslint-disable max-len */
|
|
|
|
/* eslint-disable @typescript-eslint/explicit-function-return-type */
|
|
|
|
export const appRoutes: Route[] = [
|
|
|
|
// Redirect empty path to '/dashboards/user'
|
|
|
|
{ path: '', pathMatch: 'full', redirectTo: 'dashboards/user' },
|
|
|
|
|
|
|
|
// Redirect signed in user to the '/dashboards/user'
|
|
|
|
//
|
|
|
|
// After the user signs in, the sign in page will redirect the user to the 'signed-in-redirect'
|
|
|
|
// path. Below is another redirection for that path to redirect the user to the desired
|
|
|
|
// location. This is a small convenience to keep all main routes together here on this file.
|
|
|
|
{
|
|
|
|
path: 'signed-in-redirect',
|
|
|
|
pathMatch: 'full',
|
|
|
|
redirectTo: 'dashboards/user',
|
|
|
|
},
|
|
|
|
|
|
|
|
// Auth routes for guests
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
canActivate: [NoAuthGuard],
|
|
|
|
canActivateChild: [NoAuthGuard],
|
|
|
|
component: LayoutComponent,
|
|
|
|
data: {
|
|
|
|
layout: 'empty',
|
|
|
|
},
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'confirmation-required',
|
|
|
|
loadChildren: () =>
|
|
|
|
import(
|
|
|
|
'app/modules/auth/confirmation-required/confirmation-required.module'
|
|
|
|
).then((m: any) => m.AuthConfirmationRequiredModule),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'forgot-password',
|
|
|
|
loadChildren: () =>
|
|
|
|
import(
|
|
|
|
'app/modules/auth/forgot-password/forgot-password.module'
|
|
|
|
).then((m: any) => m.AuthForgotPasswordModule),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'reset-password',
|
|
|
|
loadChildren: () =>
|
|
|
|
import('app/modules/auth/reset-password/reset-password.module').then(
|
|
|
|
(m: any) => m.AuthResetPasswordModule
|
|
|
|
),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'sign-in',
|
|
|
|
loadChildren: () =>
|
|
|
|
import('app/modules/auth/sign-in/sign-in.module').then(
|
|
|
|
(m: any) => m.AuthSignInModule
|
|
|
|
),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'sign-up',
|
|
|
|
loadChildren: () =>
|
|
|
|
import('app/modules/auth/sign-up/sign-up.module').then(
|
|
|
|
(m: any) => m.AuthSignUpModule
|
|
|
|
),
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
|
|
|
|
// Auth routes for authenticated users
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
canActivate: [AuthGuard],
|
|
|
|
canActivateChild: [AuthGuard],
|
|
|
|
component: LayoutComponent,
|
|
|
|
data: {
|
|
|
|
layout: 'empty',
|
|
|
|
},
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'sign-out',
|
|
|
|
loadChildren: () =>
|
|
|
|
import('app/modules/auth/sign-out/sign-out.module').then(
|
|
|
|
(m: any) => m.AuthSignOutModule
|
|
|
|
),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'unlock-session',
|
|
|
|
loadChildren: () =>
|
|
|
|
import('app/modules/auth/unlock-session/unlock-session.module').then(
|
|
|
|
(m: any) => m.AuthUnlockSessionModule
|
|
|
|
),
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
|
|
|
|
// Landing routes
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
component: LayoutComponent,
|
|
|
|
data: {
|
|
|
|
layout: 'empty',
|
|
|
|
},
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'home',
|
|
|
|
loadChildren: () =>
|
|
|
|
import('app/modules/landing/home/home.module').then(
|
|
|
|
(m: any) => m.LandingHomeModule
|
|
|
|
),
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
|
|
|
|
// Admin routes
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
canActivate: [AuthGuard],
|
|
|
|
canActivateChild: [AuthGuard],
|
|
|
|
component: LayoutComponent,
|
|
|
|
resolve: {
|
|
|
|
initialData: InitialDataResolver,
|
|
|
|
},
|
|
|
|
children: [
|
|
|
|
// Dashboards
|
|
|
|
{
|
|
|
|
path: 'dashboards',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'user',
|
|
|
|
loadChildren: () =>
|
|
|
|
import('app/modules/admin/dashboards/user/user.module').then(
|
|
|
|
(m: any) => m.UserModule
|
|
|
|
),
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
|
|
|
|
// Apps
|
|
|
|
{
|
|
|
|
path: 'member',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'user',
|
|
|
|
loadChildren: () =>
|
|
|
|
import('app/modules/admin/member/user/user.module').then(
|
|
|
|
(m: any) => m.UserModule
|
|
|
|
),
|
|
|
|
},
|
2022-07-07 10:06:51 +00:00
|
|
|
{
|
|
|
|
path: 'casinomoney',
|
|
|
|
loadChildren: () =>
|
|
|
|
import(
|
|
|
|
'app/modules/admin/member/casinomoney/casinomoney.module'
|
|
|
|
).then((m: any) => m.CasinomoneyModule),
|
|
|
|
},
|
2022-07-07 12:19:24 +00:00
|
|
|
{
|
|
|
|
path: 'unconnected',
|
|
|
|
loadChildren: () =>
|
|
|
|
import(
|
|
|
|
'app/modules/admin/member/unconnected/unconnected.module'
|
|
|
|
).then((m: any) => m.UnconnectedModule),
|
|
|
|
},
|
2022-07-09 11:56:11 +00:00
|
|
|
{
|
|
|
|
path: 'current-user',
|
|
|
|
loadChildren: () =>
|
|
|
|
import(
|
|
|
|
'app/modules/admin/member/current-user/current-user.module'
|
|
|
|
).then((m: any) => m.CurrentUserModule),
|
|
|
|
},
|
2022-07-12 06:05:24 +00:00
|
|
|
{
|
|
|
|
path: 'partner',
|
|
|
|
loadChildren: () =>
|
|
|
|
import('app/modules/admin/member/partner/partner.module').then(
|
|
|
|
(m: any) => m.PartnerModule
|
|
|
|
),
|
|
|
|
},
|
2022-07-13 02:10:43 +00:00
|
|
|
{
|
|
|
|
path: 'partner-mainoffice',
|
|
|
|
loadChildren: () =>
|
|
|
|
import(
|
|
|
|
'app/modules/admin/member/partner-mainoffice/partner-mainoffice.module'
|
|
|
|
).then((m: any) => m.PartnerMainofficeModule),
|
|
|
|
},
|
2022-07-12 13:32:33 +00:00
|
|
|
{
|
|
|
|
path: 'partner-branch',
|
|
|
|
loadChildren: () =>
|
|
|
|
import(
|
|
|
|
'app/modules/admin/member/partner-branch/partner-branch.module'
|
|
|
|
).then((m: any) => m.PartnerBranchModule),
|
|
|
|
},
|
2022-07-13 01:29:00 +00:00
|
|
|
{
|
|
|
|
path: 'partner-division',
|
|
|
|
loadChildren: () =>
|
|
|
|
import(
|
|
|
|
'app/modules/admin/member/partner-division/partner-division.module'
|
|
|
|
).then((m: any) => m.PartnerDivisionModule),
|
|
|
|
},
|
2022-07-13 02:28:19 +00:00
|
|
|
{
|
|
|
|
path: 'partner-office',
|
|
|
|
loadChildren: () =>
|
|
|
|
import(
|
|
|
|
'app/modules/admin/member/partner-office/partner-office.module'
|
|
|
|
).then((m: any) => m.PartnerOfficeModule),
|
|
|
|
},
|
2022-07-13 04:50:42 +00:00
|
|
|
{
|
|
|
|
path: 'partner-store',
|
|
|
|
loadChildren: () =>
|
|
|
|
import(
|
|
|
|
'app/modules/admin/member/partner-store/partner-store.module'
|
|
|
|
).then((m: any) => m.PartnerStoreModule),
|
|
|
|
},
|
2022-07-13 05:23:31 +00:00
|
|
|
{
|
|
|
|
path: 'partner-recommendation',
|
|
|
|
loadChildren: () =>
|
|
|
|
import(
|
|
|
|
'app/modules/admin/member/partner-recommendation/partner-recommendation.module'
|
|
|
|
).then((m: any) => m.PartnerRecommendationModule),
|
|
|
|
},
|
2022-07-13 05:58:28 +00:00
|
|
|
{
|
|
|
|
path: 'coupon',
|
|
|
|
loadChildren: () =>
|
|
|
|
import('app/modules/admin/member/coupon/coupon.module').then(
|
|
|
|
(m: any) => m.CouponModule
|
|
|
|
),
|
|
|
|
},
|
2022-07-13 06:47:59 +00:00
|
|
|
{
|
|
|
|
path: 'coupon-moneylog',
|
|
|
|
loadChildren: () =>
|
|
|
|
import(
|
|
|
|
'app/modules/admin/member/coupon-moneylog/coupon-moneylog.module'
|
|
|
|
).then((m: any) => m.CouponMoneylogModule),
|
|
|
|
},
|
2022-07-13 08:02:41 +00:00
|
|
|
{
|
|
|
|
path: 'coupon-log',
|
|
|
|
loadChildren: () =>
|
|
|
|
import(
|
|
|
|
'app/modules/admin/member/coupon-log/coupon-log.module'
|
|
|
|
).then((m: any) => m.CouponLogModule),
|
|
|
|
},
|
2022-06-28 07:40:33 +00:00
|
|
|
],
|
|
|
|
},
|
2022-07-05 08:38:41 +00:00
|
|
|
{
|
|
|
|
path: 'bank',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'deposit',
|
|
|
|
loadChildren: () =>
|
|
|
|
import('app/modules/admin/bank/deposit/deposit.module').then(
|
|
|
|
(m: any) => m.DepositModule
|
|
|
|
),
|
|
|
|
},
|
2022-07-05 13:31:15 +00:00
|
|
|
{
|
|
|
|
path: 'withdraw',
|
|
|
|
loadChildren: () =>
|
|
|
|
import('app/modules/admin/bank/withdraw/withdraw.module').then(
|
|
|
|
(m: any) => m.WithdrawModule
|
|
|
|
),
|
|
|
|
},
|
2022-07-05 08:38:41 +00:00
|
|
|
],
|
|
|
|
},
|
2022-07-06 06:45:28 +00:00
|
|
|
{
|
|
|
|
path: 'game',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'powerball',
|
|
|
|
loadChildren: () =>
|
|
|
|
import('app/modules/admin/game/powerball/powerball.module').then(
|
|
|
|
(m: any) => m.PowerballModule
|
|
|
|
),
|
|
|
|
},
|
2022-07-07 01:35:36 +00:00
|
|
|
{
|
|
|
|
path: 'casino',
|
|
|
|
loadChildren: () =>
|
|
|
|
import('app/modules/admin/game/casino/casino.module').then(
|
|
|
|
(m: any) => m.CasinoModule
|
|
|
|
),
|
|
|
|
},
|
2022-07-07 06:34:30 +00:00
|
|
|
{
|
|
|
|
path: 'evolution',
|
|
|
|
loadChildren: () =>
|
|
|
|
import('app/modules/admin/game/evolution/evolution.module').then(
|
|
|
|
(m: any) => m.EvolutionModule
|
|
|
|
),
|
|
|
|
},
|
2022-07-07 08:02:23 +00:00
|
|
|
{
|
|
|
|
path: 'slot',
|
|
|
|
loadChildren: () =>
|
|
|
|
import('app/modules/admin/game/slot/slot.module').then(
|
|
|
|
(m: any) => m.SlotModule
|
|
|
|
),
|
|
|
|
},
|
2022-07-06 06:45:28 +00:00
|
|
|
],
|
|
|
|
},
|
2022-07-13 09:19:57 +00:00
|
|
|
{
|
|
|
|
path: 'settings',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'basic',
|
|
|
|
loadChildren: () =>
|
|
|
|
import('app/modules/admin/settings/basic/basic.module').then(
|
|
|
|
(m: any) => m.BasicModule
|
|
|
|
),
|
|
|
|
},
|
2022-07-14 06:07:40 +00:00
|
|
|
{
|
|
|
|
path: 'ladder',
|
|
|
|
loadChildren: () =>
|
|
|
|
import('app/modules/admin/settings/ladder/ladder.module').then(
|
|
|
|
(m: any) => m.LadderModule
|
|
|
|
),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'game',
|
|
|
|
loadChildren: () =>
|
|
|
|
import('app/modules/admin/settings/game/game.module').then(
|
|
|
|
(m: any) => m.GameModule
|
|
|
|
),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'evo',
|
|
|
|
loadChildren: () =>
|
|
|
|
import('app/modules/admin/settings/evo/evo.module').then(
|
|
|
|
(m: any) => m.EvoModule
|
|
|
|
),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'branch',
|
|
|
|
loadChildren: () =>
|
|
|
|
import('app/modules/admin/settings/branch/branch.module').then(
|
|
|
|
(m: any) => m.BranchModule
|
|
|
|
),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'indexing',
|
|
|
|
loadChildren: () =>
|
|
|
|
import(
|
|
|
|
'app/modules/admin/settings/indexing/indexing.module'
|
|
|
|
).then((m: any) => m.IndexingModule),
|
|
|
|
},
|
2022-07-13 09:19:57 +00:00
|
|
|
],
|
|
|
|
},
|
2022-07-13 08:45:52 +00:00
|
|
|
{
|
|
|
|
path: 'report',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'daily',
|
|
|
|
loadChildren: () =>
|
|
|
|
import('app/modules/admin/report/daily/daily.module').then(
|
|
|
|
(m: any) => m.DailyModule
|
|
|
|
),
|
|
|
|
},
|
2022-07-13 09:16:31 +00:00
|
|
|
{
|
|
|
|
path: 'monthly',
|
|
|
|
loadChildren: () =>
|
|
|
|
import('app/modules/admin/report/monthly/monthly.module').then(
|
|
|
|
(m: any) => m.MonthlyModule
|
|
|
|
),
|
|
|
|
},
|
2022-07-13 11:34:11 +00:00
|
|
|
{
|
|
|
|
path: 'daily-partner',
|
|
|
|
loadChildren: () =>
|
|
|
|
import(
|
|
|
|
'app/modules/admin/report/daily-partner/daily-partner.module'
|
|
|
|
).then((m: any) => m.DailyPartnerModule),
|
|
|
|
},
|
2022-07-13 12:25:58 +00:00
|
|
|
{
|
|
|
|
path: 'today-bet',
|
|
|
|
loadChildren: () =>
|
|
|
|
import(
|
|
|
|
'app/modules/admin/report/today-bet/today-bet.module'
|
|
|
|
).then((m: any) => m.TodayBetModule),
|
|
|
|
},
|
2022-07-13 22:13:21 +00:00
|
|
|
{
|
|
|
|
path: 'statistics',
|
|
|
|
loadChildren: () =>
|
|
|
|
import(
|
|
|
|
'app/modules/admin/report/statistics/statistics.module'
|
|
|
|
).then((m: any) => m.StatisticsModule),
|
|
|
|
},
|
2022-07-13 22:53:01 +00:00
|
|
|
{
|
|
|
|
path: 'money-log',
|
|
|
|
loadChildren: () =>
|
|
|
|
import(
|
|
|
|
'app/modules/admin/report/money-log/money-log.module'
|
|
|
|
).then((m: any) => m.MoneyLogModule),
|
|
|
|
},
|
2022-07-13 23:09:00 +00:00
|
|
|
{
|
|
|
|
path: 'comp-log',
|
|
|
|
loadChildren: () =>
|
|
|
|
import('app/modules/admin/report/comp-log/comp-log.module').then(
|
|
|
|
(m: any) => m.CompLogModule
|
|
|
|
),
|
|
|
|
},
|
2022-07-13 23:28:04 +00:00
|
|
|
{
|
|
|
|
path: 'modification-log',
|
|
|
|
loadChildren: () =>
|
|
|
|
import(
|
|
|
|
'app/modules/admin/report/modification-log/modification-log.module'
|
|
|
|
).then((m: any) => m.ModificationLogModule),
|
|
|
|
},
|
2022-07-13 23:49:08 +00:00
|
|
|
{
|
|
|
|
path: 'payment-log',
|
|
|
|
loadChildren: () =>
|
|
|
|
import(
|
|
|
|
'app/modules/admin/report/payment-log/payment-log.module'
|
|
|
|
).then((m: any) => m.PaymentLogModule),
|
|
|
|
},
|
2022-07-14 05:04:54 +00:00
|
|
|
{
|
|
|
|
path: 'sessionin-info',
|
|
|
|
loadChildren: () =>
|
|
|
|
import(
|
|
|
|
'app/modules/admin/report/sessionin-info/sessionin-info.module'
|
|
|
|
).then((m: any) => m.SessioninInfoModule),
|
|
|
|
},
|
2022-07-14 05:25:53 +00:00
|
|
|
{
|
|
|
|
path: 'sessionin-overlap',
|
|
|
|
loadChildren: () =>
|
|
|
|
import(
|
|
|
|
'app/modules/admin/report/sessionin-overlap/sessionin-overlap.module'
|
|
|
|
).then((m: any) => m.SessioninOverlapModule),
|
|
|
|
},
|
2022-07-14 05:45:55 +00:00
|
|
|
{
|
|
|
|
path: 'sessionin-admin',
|
|
|
|
loadChildren: () =>
|
|
|
|
import(
|
|
|
|
'app/modules/admin/report/sessionin-admin/sessionin-admin.module'
|
|
|
|
).then((m: any) => m.SessioninAdminModule),
|
|
|
|
},
|
2022-07-14 02:48:44 +00:00
|
|
|
{
|
|
|
|
path: 'excel-log',
|
|
|
|
loadChildren: () =>
|
|
|
|
import(
|
|
|
|
'app/modules/admin/report/excel-log/excel-log.module'
|
|
|
|
).then((m: any) => m.ExcelLogModule),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'loosing',
|
|
|
|
loadChildren: () =>
|
|
|
|
import('app/modules/admin/report/loosing/loosing.module').then(
|
|
|
|
(m: any) => m.LoosingModule
|
|
|
|
),
|
|
|
|
},
|
2022-07-14 06:58:37 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'board',
|
|
|
|
children: [
|
2022-07-14 06:22:04 +00:00
|
|
|
{
|
|
|
|
path: 'notice',
|
|
|
|
loadChildren: () =>
|
|
|
|
import('app/modules/admin/board/notice/notice.module').then(
|
|
|
|
(m: any) => m.NoticeModule
|
|
|
|
),
|
|
|
|
},
|
2022-07-14 06:58:37 +00:00
|
|
|
{
|
|
|
|
path: 'notice-oneline',
|
|
|
|
loadChildren: () =>
|
|
|
|
import(
|
|
|
|
'app/modules/admin/board/notice-oneline/notice-oneline.module'
|
|
|
|
).then((m: any) => m.NoticeOnelineModule),
|
|
|
|
},
|
2022-07-13 08:45:52 +00:00
|
|
|
],
|
|
|
|
},
|
2022-06-28 07:40:33 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
];
|