Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 60 | Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |

<?php
declare(strict_types = 1);
namespace LeadersLinked;

use Laminas\Router\Http\Literal;
use Laminas\Router\Http\Segment;

return [
    'navigation' => [
        'menu' => [
            [
                'label' => 'LABEL_HOME',
                'route' => 'dashboard',
                'class' => 'fa fa-home'
            ],
            [
                'label' => 'LABEL_PROFILE',
                'route' => 'profile',
                'class' => 'fa fa-home',
                'pages' => [
                    [
                        'label' => 'LABEL_MY_PROFILES',
                        'route' => 'profile/my-profiles'
                    ],
                    [
                        'label' => 'LABEL_WHO_HAS_SEEN_MY_PROFILE',
                        'route' => 'profile/people-viewed-profile'
                        
                    ]
                    
                ]
            ],
            [
                'label' => 'LABEL_HOME',
                'route' => 'marketplace',
                'class' => 'fa fa-cubes'
            ],
            [
                'label' => 'LABEL_CONNECTIONS',
                'route' => 'connection',
                'class' => 'fa fa-plug',
                'pages' => [
                    [
                        'label' => 'LABEL_MY_CONNECTIONS',
                        'route' => 'connection/my-connections'
                    ],
                    [
                        'label' => 'LABEL_INVITATIONS_SENT',
                        'route' => 'connection/invitations-sent'
                    ],
                    [
                        'label' => 'LABEL_INVITATIONS_RECEIVED',
                        'route' => 'connection/invitations-received'
                    ],
                    [
                        'label' => 'LABEL_PEOPLE_YOU_MAY_KNOW',
                        'route' => 'connection/people-you-may-know'
                    ],
                    [
                        'label' => 'LABEL_PEOPLE_BLOCKED',
                        'route' => 'connection/people-blocked'
                    ],

                ]
            ],
            [
                'label' => 'LABEL_COMPANIES',
                'route' => 'company',
                'class' => 'fa fa-building',
                'pages' => [
                    [
                        'label' => 'LABEL_MY_COMPANIES',
                        'route' => 'company/my-companies'
                    ],
                    [
                        'label' => 'LABEL_COMPANIES_I_FOLLOW',
                        'route' => 'company/following-companies'
                    ],
                    [
                        'label' => 'LABEL_COMPANIES_I_WORK_WITH',
                        'route' => 'company/i-work-with'
                    ],
                    [
                        'label' => 'LABEL_REQUESTS_SENT',
                        'route' => 'company/requests-sent'
                    ],
                    [
                        'label' => 'LABEL_INVITATIONS_RECEIVED',
                        'route' => 'company/invitations-received'
                    ]
                ]
            ],
            [
                'label' => 'LABEL_JOBS',
                'route' => 'job',
                'class' => 'fa fa-briefcase',
                'pages' => [
                    [
                        'label' => 'LABEL_JOBS_APPLIED',
                        'route' => 'job/applied-jobs'
                    ],
                    [
                        'label' => 'LABEL_JOBS_SAVED',
                        'route' => 'job/saved-jobs'
                    ]
                ]
            ],
            [
                'label' => 'LABEL_GROUPS',
                'route' => 'group',
                'class' => 'fa fa-cubes',
                'pages' => [
                    [
                        'label' => 'LABEL_MY_GROUPS',
                        'route' => 'group/my-groups'
                    ],
                    [
                        'label' => 'LABEL_JOINED_GROUPS',
                        'route' => 'group/joined-groups'
                    ],
                    [
                        'label' => 'LABEL_REQUESTS_SENT',
                        'route' => 'group/requests-sent'
                    ],
                    [
                        'label' => 'LABEL_INVITATIONS_RECEIVED',
                        'route' => 'group/invitations-received'
                    ]

                ]
            ],
            /*[
                'label' => 'LABEL_MESSAGES',
                'route' => 'inmail',
                'class' => 'fa fa-envelope',
            ],
            [
                'label' => 'LABEL_NOTIFICATIONS',
                'route' => 'dashboard',
                'class' => 'fa fa-bolt',
            ],*/

        ],
        'footer' => [
            [
                'label' => 'LABEL_PRIVACY_POLICY',
                'route' => 'privacy-policy'
            ],
            [
                'label' => 'LABEL_PROFESSIONALISM_POLICY',
                'route' => 'professionalism-policy'
            ],
            [
                'label' => 'LABEL_COOKIES_POLICY',
                'route' => 'cookies'
            ],
            [
                'label' => 'LABEL_TERMS_AND_CONDITIONS',
                'route' => 'terms-and-conditions'
            ],
        ]
    ],
    'router' => [
        'routes' => [

            'signin' => [
                'type' => Literal::class,
                'options' => [
                    'route' => '/signin',
                    'defaults' => [
                        'controller' => '\LeadersLinked\Controller\AuthController',
                        'action' => 'signin'
                    ]
                ],
                'may_terminate' => true,
                'child_routes' => [
                    /*'test' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/test',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\AuthController',
                                'action' => 'test',
                            ],
                        ],
                    ],*/
                    'facebook' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/facebook',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\AuthController',
                                'action' => 'facebook',
                            ],
                        ],
                    ],
                    'twitter' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/twitter',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\AuthController',
                                'action' => 'twitter',
                            ],
                        ],
                    ],
                    'google' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/google',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\AuthController',
                                'action' => 'google',
                            ],
                        ],
                    ],
                ]
            ],
            'reset-password' => [
                'type' => Segment::class,
                'options' => [
                    'route' => '/reset-password/:code',
                    'constraints' => [
                        'code' => '[a-zA-Z0-9--]+'
                    ],
                    'defaults' => [
                        'controller' => '\LeadersLinked\Controller\AuthController',
                        'action' => 'resetPassword'
                    ]
                ]
            ],
            'forgot-password' => [
                'type' => Literal::class,
                'options' => [
                    'route' => '/forgot-password',
                    'defaults' => [
                        'controller' => '\LeadersLinked\Controller\AuthController',
                        'action' => 'forgotPassword'
                    ]
                ]
            ],
            'signup' => [
                'type' => Literal::class,
                'options' => [
                    'route' => '/signup',
                    'defaults' => [
                        'controller' => '\LeadersLinked\Controller\AuthController',
                        'action' => 'signup'
                    ]
                ]
            ],
            'activate-account' => [
                'type' => Segment::class,
                'options' => [
                    'route' => '/activate-account/:code',
                    'constraints' => [
                        'code' => '[a-zA-Z0-9]+'
                    ],
                    'defaults' => [
                        'controller' => '\LeadersLinked\Controller\AuthController',
                        'action' => 'activateAccount'
                    ]
                ]
            ],
            'signout' => [
                'type' => Literal::class,
                'options' => [
                    'route' => '/signout',
                    'defaults' => [
                        'controller' => '\LeadersLinked\Controller\AuthController',
                        'action' => 'signout'
                    ]
                ]
            ],
            'onroom' => [
                'type' => Literal::class,
                'options' => [
                    'route' => '/onroom',
                    'defaults' => [
                        'controller' => '\LeadersLinked\Controller\AuthController',
                        'action' => 'onroom'
                    ]
                ]
            ],

            'home' => [
                'type' => Literal::class,
                'options' => [
                    'route' => '/',
                    'defaults' => [
                        'controller' => '\LeadersLinked\Controller\HomeController',
                        'action' => 'index'
                    ]
                ]
            ],
            'post' => [
                'type' => Segment::class,
                'options' => [
                    'route' => '/post/:id',
                    'constraints' => [
                        'id' => '[A-Za-z0-9\-]+\=*',
                    ],
                    'defaults' => [
                        'controller' => '\LeadersLinked\Controller\HomeController',
                        'action' => 'post'
                    ]
                ]
            ],
            
            'privacy-policy' => [
                'type' => Literal::class,
                'options' => [
                    'route' => '/privacy-policy',
                    'defaults' => [
                        'controller' => '\LeadersLinked\Controller\HomeController',
                        'action' => 'privacyPolicy'
                    ]
                ]
            ],
            'cookies' => [
                'type' => Literal::class,
                'options' => [
                    'route' => '/cookies',
                    'defaults' => [
                        'controller' => '\LeadersLinked\Controller\HomeController',
                        'action' => 'cookies'
                    ]
                ]
            ],
            'professionalism-policy' => [
                'type' => Literal::class,
                'options' => [
                    'route' => '/professionalism-policy',
                    'defaults' => [
                        'controller' => '\LeadersLinked\Controller\HomeController',
                        'action' => 'professionalismPolicy'
                    ]
                ]
            ],
            
            
            'terms-and-conditions' => [
                'type' => Literal::class,
                'options' => [
                    'route' => '/terms-and-conditions',
                    'defaults' => [
                        'controller' => '\LeadersLinked\Controller\HomeController',
                        'action' => 'termsAndConditions'
                    ]
                ]
            ],
            'check-session' => [
                'type' => Literal::class,
                'options' => [
                    'route' => '/check-session',
                    'defaults' => [
                        'controller' => '\LeadersLinked\Controller\HomeController',
                        'action' => 'checkSession'
                    ]
                ]
            ],
            
            'notifications' => [
                'type' => Literal::class,
                'options' => [
                    'route' => '/notifications',
                    'defaults' => [
                        'controller' => '\LeadersLinked\Controller\HomeController',
                        'action' => 'notifications'
                    ]
                ]
            ],
            
            'backend' => [
                'type' => Literal::class,
                'options' => [
                    'route' => '/backend',
                    'defaults' => [
                        'controller' => '\LeadersLinked\Controller\BackendController',
                        'action' => 'index'
                    ]
                ],
                'may_terminate' => true,
                'child_routes' => [
                    'signin-admin' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/signin-admin',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\BackendController',
                                'action' => 'signinAdmin'
                            ],
                        ],
                    ],
                    'signin-company' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/signin-company/:id',
                            'constraints' => [
                                'id' => '[A-Za-z0-9\-]+\=*',
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\BackendController',
                                'action' => 'signinCompany'
                            ],
                        ],
                    ],
                    
                   
                ]    
            ],
            


            'dashboard' => [
                'type' => Segment::class,
                'options' => [
                    'route' => '/dashboard[/feed/:feed]',
                    'constraints' => [
                        'feed' => '[A-Za-z0-9\-]+\=*',
                    ],
                    'defaults' => [
                        'controller' => '\LeadersLinked\Controller\DashboardController',
                        'action' => 'index'
                    ]
                ]
            ],
            
            
            'dashboard-500' => [
                'type' => Segment::class,
                'options' => [
                    'route' => '/dashboard-500',
                    'defaults' => [
                        'controller' => '\LeadersLinked\Controller\DashboardController',
                        'action' => 'error500'
                    ]
                ]
            ],
            
            

            'storage' => [
                'type' => Segment::class,
                'options' => [
                    'route' => '/storage/type/:type[/code/:code][/filename/:filename][/]',
                    'constraints' => [
                        'type' => 'user|user-profile|user-cover|company|company-cover|group|group-cover|job|chat|image|feed|post|message|microlearning-topic|microlearning-capsule|microlearning-slide',
                        'code' => '[A-Za-z0-9\-]+\=*',
                        'filename' => '[a-zA-Z0-9\-\_]+\.(jpg|jpeg|gif|png|mp3|mp4|flv|doc|pdf|docx|xls|ppt|pdf|xlsx|pptx)'
                    ],
                    // MjM5ODk0Mzgg
                    'defaults' => [
                        'controller' => '\LeadersLinked\Controller\StorageController',
                        'action' => 'download'
                    ]
                ]
            ],
            
            
            'paypal' => [
                'type' => Literal::class,
                'options' => [
                    'route' => '/paypal',
                    'defaults' => [
                        'controller' => '\LeadersLinked\Controller\PaypalController',
                        'action' => 'index'
                    ]
                ],
                'may_terminate' => true,
                'child_routes' => [
                    'success' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/success',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\PaypalController',
                                'action' => 'success',
                            ],
                        ],
                    ],
                    'cancel' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/cancel',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\PaypalController',
                                'action' => 'cancel',
                            ],
                        ],
                    ],
                ]
            ],    
            
            
            'chat' => [
                'type' => Literal::class,
                'options' => [
                    'route' => '/chat',
                    'defaults' => [
                        'controller' => '\LeadersLinked\Controller\ChatController',
                        'action' => 'index'
                    ]
                ],
                'may_terminate' => true,
                'child_routes' => [
                    
                    // Inicio de los Routes del Chat //
                    
                    'heart-beat' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/heart-beat',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\ChatController',
                                'action' => 'heartBeat',
                            ],
                        ],
                    ],
                    'create-group' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/create-group',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\ChatController',
                                'action' => 'createGroup',
                            ],
                        ],
                    ],
                    'add-user-to-group' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/add-user-to-group/:group_id',
                            'constraints' => [
                                'group_id' => '[A-Za-z0-9\-]+\=*',
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\ChatController',
                                'action' => 'addUserToGroup',
                            ],
                        ],
                    ],
                    
                    'mark-seen' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/mark-seen/:id',
                            'constraints' => [
                                'id' => '[A-Za-z0-9\-]+\=*',
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\ChatController',
                                'action' => 'markSeen',
                            ],
                        ],
                    ],
                    
                    'mark-received' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/mark-received/:id',
                            'constraints' => [
                                'id' => '[A-Za-z0-9\-]+\=*',
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\ChatController',
                                'action' => 'markReceived',
                            ],
                        ],
                    ],
                    
                    'remove-user-from-group' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/remove-user-from-group/:group_id/:user_id',
                            'constraints' => [
                                'group_id' => '[A-Za-z0-9\-]+\=*',
                                'user_id' => '[A-Za-z0-9\-]+\=*',
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\ChatController',
                                'action' => 'removeUserFromGroup',
                            ],
                        ],
                    ],
                    'get-all-messages' => [
                        'type' =>  Segment::class,
                        'options' => [
                            'route' => '/get-all-messages/:id',
                            'constraints' => [
                                'id' => '[A-Za-z0-9\-]+\=*',
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\ChatController',
                                'action' => 'getAllMessages',
                            ],
                        ],
                    ],
                    'send' => [
                        'type' =>  Segment::class,
                        'options' => [
                            'route' => '/send/:id',
                            'constraints' => [
                                'id' => '[A-Za-z0-9\-]+\=*',
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\ChatController',
                                'action' => 'send',
                            ],
                        ],
                    ],
                    'get-contacts-availables-for-group' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/get-contacts-availables-for-group/:group_id',
                            'constraints' => [
                                'group_id' => '[A-Za-z0-9\-]+\=*',
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\ChatController',
                                'action' => 'contactAvailableGroupList',
                            ],
                        ],
                    ],
                    'get-contact-group-list' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/get-contact-group-list/:group_id',
                            'constraints' => [
                                'group_id' => '[A-Za-z0-9\-]+\=*',
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\ChatController',
                                'action' => 'contactGroupList',
                            ],
                        ],
                    ],
                    'leave-group' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/leave-group/:group_id',
                            'constraints' => [
                                'group_id' => '[A-Za-z0-9\-]+\=*',
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\ChatController',
                                'action' => 'leaveGroup',
                            ],
                        ],
                    ],
                    'delete-group' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/delete-group/:group_id',
                            'constraints' => [
                                'group_id' => '[A-Za-z0-9\-]+\=*',
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\ChatController',
                                'action' => 'deleteGroup',
                            ],
                        ],
                    ],
                    'close' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/close/:id',
                            'constraints' => [
                                'id' => '[A-Za-z0-9\-]+\=*',
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\ChatController',
                                'action' => 'close',
                            ],
                        ],
                    ],
                    
                    'clear' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/clear/:id',
                            'constraints' => [
                                'id' => '[A-Za-z0-9\-]+\=*',
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\ChatController',
                                'action' => 'clear',
                            ],
                        ],
                    ],
                    
                    
                    
                    'upload' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/upload/:id',
                            'constraints' => [
                                'id' => '[A-Za-z0-9\-]+\=*',
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\ChatController',
                                'action' => 'upload',
                            ],
                        ],
                    ],
                ],
            ],  
            
            'inmail' => [
                'type' => Segment::class,
                'options' => [
                    'route' => '/inmail[/:id]',
                    'constraints' => [
                        'id' => '[A-Za-z0-9\-]+\=*',
                    ],
                    'defaults' => [
                        'controller' => '\LeadersLinked\Controller\InMailController',
                        'action' => 'index'
                    ]
                ],
                'may_terminate' => true,
                'child_routes' => [

                    'block' => [
                        'type' => Literal::class,
                            'options' => [
                            'route' => '/block',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\InMailController',
                                'action' => 'blockConversation'
                            ]
                          ]
                        ],
                        'delete' => [
                            'type' => Literal::class,
                            'options' => [
                                'route' => '/delete',
                                'defaults' => [
                                    'controller' => '\LeadersLinked\Controller\InMailController',
                                    'action' => 'deleteConversation'
                                ]
                            ]
                        ],
                        'message' => [
                            'type' => Literal::class,
                            'options' => [
                                'route' => '/message',
                                'defaults' => [
                                    'controller' => '\LeadersLinked\Controller\InMailController',
                                    'action' => 'message'
                                ]
                            ],
                            'may_terminate' => true,
                            'child_routes' => [
                                'send' => [
                                    'type' => Segment::class,
                                    'options' => [
                                        'route' => '/send[/encoding/:encoding]',
                                        'constraints' => [
                                            'encoding' => 'base64'
                                        ],
                                        'defaults' => [
                                            'controller' => '\LeadersLinked\Controller\InMailController',
                                            'action' => 'sendMessage'
                                        ]
                                    
                                    ]
                                ],
                                'delete' => [
                                    'type' => Segment::class,
                                    'options' => [
                                        'route' => '/delete/:message',
                                        'constraints' => [
                                            'message' => '[A-Za-z0-9\-]+\=*',
                                        ],
                                        'defaults' => [
                                            'controller' => '\LeadersLinked\Controller\InMailController',
                                            'action' => 'delete'
                                        ]
                                    ]
                                ],
                                
                            ],    
                         ],   
                        
                    ],
  
            ],               

            
            'connection' => [
                'type' => Literal::class,
                'options' => [
                    'route' => '/connection',
                    'defaults' => [
                        'controller' => '\LeadersLinked\Controller\ConnectionController',
                        'action' => 'index'
                    ]
                ],
                'may_terminate' => true,
                'child_routes' => [
                    'my-connections' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/my-connections',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
                                'action' => 'myConnections'
                            ]
                        ]
                    ],
                    'people-you-may-know' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/people-you-may-know',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
                                'action' => 'peopleYouMayKnow'
                            ]
                        ]
                    ],
                    'people-blocked' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/people-blocked',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
                                'action' => 'peopleBlocked'
                            ]
                        ],
                    ],
                    'invitations-sent' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/invitations-sent',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
                                'action' => 'invitationsSent'
                            ]
                        ]
                    ],
                    'invitations-received' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/invitations-received',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
                                'action' => 'invitationsReceived'
                            ]
                        ]
                    ],
                    'block' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/block/:id',
                            'constraints' => [
                                'id' => '[A-Za-z0-9\-]+\=*',
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
                                'action' => 'block'
                            ]
                        ]
                    ],
                    'unblock' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/unblock/:id',
                            'constraints' => [
                                'id' => '[A-Za-z0-9\-]+\=*',
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
                                'action' => 'unblock'
                            ]
                        ]
                    ],
                    'cancel' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/cancel/:id',
                            'constraints' => [
                                'id' => '[A-Za-z0-9\-]+\=*',
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
                                'action' => 'cancel'
                            ]
                        ]
                    ],
                    'request' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/request/:id',
                            'constraints' => [
                                'id' => '[A-Za-z0-9\-]+\=*',
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
                                'action' => 'request'
                            ]
                        ]
                    ],
                    'approve' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/approve/:id',
                            'constraints' => [
                                'id' => '[A-Za-z0-9\-]+\=*',
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
                                'action' => 'approve'
                            ]
                        ]
                    ],
                    'reject' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/reject/:id',
                            'constraints' => [
                                'id' => '[A-Za-z0-9\-]+\=*',
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
                                'action' => 'reject'
                            ]
                        ]
                    ],
                    'delete' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/delete/:id',
                            'constraints' => [
                                'id' => '[A-Za-z0-9\-]+\=*',
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
                                'action' => 'delete'
                            ]
                        ]
                    ],
                ]
            ],    
            

            
            'feed' => [
                'type' => Literal::class,
                'options' => [
                    'route' => '/feed',
                    'defaults' => [
                        'controller' => '\LeadersLinked\Controller\FeedController',
                        'action' => 'index'
                    ]
                ],
                'may_terminate' => true,
                'child_routes' => [
                    'timeline' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/timeline/:id/:type[/feed/:feed]',
                            'constraints' => [
                                'id' => '[A-Za-z0-9\-]+\=*',
                                'type' => 'user|company|group',
                                'feed' => '[A-Za-z0-9\-]+\=*',
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\FeedController',
                                'action' => 'timeline'
                            ]
                        ]
                    ],
                    'delete' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/delete/:id',
                            'constraints' => [
                                'id' => '[A-Za-z0-9\-]+\=*',
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\FeedController',
                                'action' => 'delete'
                            ],
                        ]
                    ],
                    'comment' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/comment/:id',
                            'constraints' => [
                                'id' => '[A-Za-z0-9\-]+\=*',
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\FeedController',
                                'action' => 'comment'
                            ],
                            
                        ],
                        'may_terminate' => true,
                        'child_routes' => [
                            'delete' => [
                                'type' => Segment::class,
                                'options' => [
                                    'route' => '/delete/:comment',
                                    'constraints' => [
                                        'comment' => '[A-Za-z0-9\-]+\=*',
                                    ],
                                    'defaults' => [
                                        'controller' => '\LeadersLinked\Controller\FeedController',
                                        'action' => 'commentDelete'
                                    ]
                                ]
                            ],
                            
                        ]
                    ],
                    'share' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/share/:id[/company/:company_id][/group/:group_id][/encoding/:encoding]',
                            'constraints' => [
                                'id' => '[A-Za-z0-9\-]+\=*',
                                'company_id' => '[A-Za-z0-9\-]+\=*',
                                'group_id' => '[A-Za-z0-9\-]+\=*',
                                'encoding' => 'base64'
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\FeedController',
                                'action' => 'share'
                            ]
                        ]
                    ],
                    'like' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/like/:id',
                            'constraints' => [
                                'id' => '[A-Za-z0-9\-]+\=*',
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\FeedController',
                                'action' => 'like'
                            ]
                        ]
                    ],
                    'unlike' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/unlike/:id',
                            'constraints' => [
                                'id' => '[A-Za-z0-9\-]+\=*',
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\FeedController',
                                'action' => 'unlike'
                            ]
                        ]
                    ],
                    'add' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/add[/company/:company_id][/group/:group_id][/encoding/:encoding]',
                            'constraints' => [
                                'company_id' => '[A-Za-z0-9\-]+\=*',
                                'group_id' => '[A-Za-z0-9\-]+\=*',
                                'encoding' => 'base64'
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\FeedController',
                                'action' => 'add'
                            ]
                        ]
                    ],
                ],
             ],   
            'job' => [
                'type' => Literal::class,
                'options' => [
                    'route' => '/job',
                    'defaults' => [
                        'controller' => '\LeadersLinked\Controller\JobController',
                        'action' => 'index'
                    ]
                ],
                'may_terminate' => true,
                'child_routes' => [
                    'view' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/view/:id',
                            'constraints' => [
                                'id' => '[A-Za-z0-9\-]+\=*'
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\JobController',
                                'action' => 'view'
                            ]
                        ]
                    ],
                    'apply-job' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/apply-job/:id',
                            'constraints' => [
                                'id' => '[A-Za-z0-9\-]+\=*'
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\JobController',
                                'action' => 'applyJob'
                            ]
                        ]
                    ],
                    'remove-apply-job' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/remove-apply-job/:id',
                            'constraints' => [
                                'id' => '[A-Za-z0-9\-]+\=*'
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\JobController',
                                'action' => 'removeApplyJob'
                            ]
                        ]
                    ],
                    'save-job' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/save-job/:id',
                            'constraints' => [
                                'id' => '[A-Za-z0-9\-]+\=*'
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\JobController',
                                'action' => 'saveJob'
                            ]
                        ]
                    ],
                    'remove-save-job' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/remove-save-job/:id',
                            'constraints' => [
                                'id' => '[A-Za-z0-9\-]+\=*'
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\JobController',
                                'action' => 'removeSaveJob'
                            ]
                        ]
                    ],
                    'applied-jobs' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/applied-jobs',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\JobController',
                                'action' => 'appliedJobs'
                            ]
                        ]
                    ],
                    'saved-jobs' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/saved-jobs',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\JobController',
                                'action' => 'savedJobs'
                            ]
                        ]
                    ],
                    
                ]    
            ],
            
            /*
                         'job' => [
                'type' => Literal::class,
                'options' => [
                    'route' => '/job',
                    'defaults' => [
                        'controller' => '\LeadersLinked\Controller\JobController',
                        'action' => 'index'
                    ]
                ],
                'may_terminate' => true,
                'child_routes' => [
                    'view' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/view/:id',
                            'constraints' => [
                                'id' => '[A-Za-z0-9\-]+\=*'
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\CompanyController',
                                'action' => 'job'
                            ]
                        ]
                    ],
                ]
            ],   
             */
            
            
            'search' => [
                'type' => Segment::class,
                'options' => [
                    'route' => '/search[/entity/:entity]',
                    'constraints' => [
                        'entity' => 'user|company|group|job'
                    ],
                    'defaults' => [
                        'controller' => '\LeadersLinked\Controller\SearchController',
                        'action' => 'index'
                    ]
                ],
            ],

            
            'group' => [
                'type' => Literal::class,
                'options' => [
                    'route' => '/group',
                    'defaults' => [
                        'controller' => '\LeadersLinked\GroupController',
                        'action' => 'index'
                    ]
                ],
                'may_terminate' => true,
                'child_routes' => [
                    'view' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/view/:id',
                            'constraints' => [
                                'id' => '[A-Za-z0-9\-]+\=*'
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\GroupController',
                                'action' => 'view'
                            ]
                        ]
                    ],
                    'request' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/request/:id',
                            'constraints' => [
                                'id' => '[A-Za-z0-9\-]+\=*'
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\GroupController',
                                'action' => 'request'
                            ]
                        ]
                    ],
                    'leave' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/leave/:id',
                            'constraints' => [
                                'id' => '[A-Za-z0-9\-]+\=*'
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\GroupController',
                                'action' => 'leave'
                            ]
                        ]
                    ],
                    'accept' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/accept/:id',
                            'constraints' => [
                                'id' => '[A-Za-z0-9\-]+\=*'
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\GroupController',
                                'action' => 'accept'
                            ]
                        ]
                    ],
                    'cancel' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/cancel/:id',
                            'constraints' => [
                                'id' => '[A-Za-z0-9\-]+\=*'
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\GroupController',
                                'action' => 'cancel'
                            ]
                        ]
                    ],
                    'reject' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/reject/:id',
                            'constraints' => [
                                'id' => '[A-Za-z0-9\-]+\=*'
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\GroupController',
                                'action' => 'reject'
                            ]
                        ]
                    ],
                    
                    
                    'joined-groups' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/joined-groups',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\GroupController',
                                'action' => 'joinedGroups'
                            ]
                        ],
                        
                    ],
                    'requests-sent' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/requests-sent',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\GroupController',
                                'action' => 'requestsSent'
                            ]
                        ],

                    ],
                    'invitations-received' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/invitations-received',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\GroupController',
                                'action' => 'invitationsReceived'
                            ]
                        ],

                    ],
                    'my-groups' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/my-groups',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\MyGroupsController',
                                'action' => 'index'
                            ]
                        ],
                        'may_terminate' => true,
                        'child_routes' => [
                            'add' => [
                                'type' => Literal::class,
                                'options' => [
                                    'route' => '/add',
                                    'defaults' => [
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
                                        'action' => 'add'
                                    ]
                                ]
                            ],
                            'edit' => [
                                'type' => Segment::class,
                                'options' => [
                                    'route' => '/edit/:id',
                                    'constraints' => [
                                        'id' => '[A-Za-z0-9\-]+\=*'
                                    ],
                                    'defaults' => [
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
                                        'action' => 'edit'
                                    ]
                                ]
                            ],
                            'delete' => [
                                'type' => Segment::class,
                                'options' => [
                                    'route' => '/delete/:id',
                                    'constraints' => [
                                        'id' => '[A-Za-z0-9\-]+\=*'
                                    ],
                                    'defaults' => [
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
                                        'action' => 'delete'
                                    ]
                                ]
                            ],
                            'extended' => [
                                'type' => Segment::class,
                                'options' => [
                                    'route' => '/extended/:id',
                                    'constraints' => [
                                        'id' => '[A-Za-z0-9\-]+\=*'
                                    ],
                                    'defaults' => [
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
                                        'action' => 'extended'
                                    ]
                                ]
                            ],
                            'image' => [
                                'type' => Segment::class,
                                'options' => [
                                    'route' => '/image/:id/operation/:operation',
                                    'constraints' => [
                                        'id' => '[A-Za-z0-9\-]+\=*',
                                        'operation' => 'upload|delete'
                                    ],
                                    'defaults' => [
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
                                        'action' => 'image'
                                    ]
                                ]
                            ],
                            'cover' => [
                                'type' => Segment::class,
                                'options' => [
                                    'route' => '/cover/:id/operation/:operation',
                                    'constraints' => [
                                        'id' => '[A-Za-z0-9\-]+\=*',
                                        'operation' => 'upload|delete'
                                    ],
                                    'defaults' => [
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
                                        'action' => 'cover'
                                    ]
                                ]
                            ],
                            'privacy' => [
                                'type' => Segment::class,
                                'options' => [
                                    'route' => '/privacy/:id',
                                    'constraints' => [
                                        'id' => '[A-Za-z0-9\-]+\=*'
                                    ],
                                    'defaults' => [
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
                                        'action' => 'privacy'
                                    ]
                                ]
                            ],
                            'website' => [
                                'type' => Segment::class,
                                'options' => [
                                    'route' => '/website/:id',
                                    'constraints' => [
                                        'id' => '[A-Za-z0-9\-]+\=*'
                                    ],
                                    'defaults' => [
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
                                        'action' => 'website'
                                    ]
                                ]
                            ],
                            'industry' => [
                                'type' => Segment::class,
                                'options' => [
                                    'route' => '/industry/:id',
                                    'constraints' => [
                                        'id' => '[A-Za-z0-9\-]+\=*'
                                    ],
                                    'defaults' => [
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
                                        'action' => 'industry'
                                    ]
                                ]
                            ],
                            'accessibility' => [
                                'type' => Segment::class,
                                'options' => [
                                    'route' => '/accessibility/:id',
                                    'constraints' => [
                                        'id' => '[A-Za-z0-9\-]+\=*'
                                    ],
                                    'defaults' => [
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
                                        'action' => 'accessibility'
                                    ]
                                ]
                            ],
                            'type' => [
                                'type' => Segment::class,
                                'options' => [
                                    'route' => '/type/:id',
                                    'constraints' => [
                                        'id' => '[A-Za-z0-9\-]+\=*'
                                    ],
                                    'defaults' => [
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
                                        'action' => 'type'
                                    ]
                                ]
                            ],
                            'status' => [
                                'type' => Segment::class,
                                'options' => [
                                    'route' => '/status/:id',
                                    'constraints' => [
                                        'id' => '[A-Za-z0-9\-]+\=*'
                                    ],
                                    'defaults' => [
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
                                        'action' => 'status'
                                    ]
                                ]
                            ],
                            'members' => [
                                'type' => Segment::class,
                                'options' => [
                                    'route' => '/members/:id',
                                    'constraints' => [
                                        'id' => '[A-Za-z0-9\-]+\=*'
                                    ],
                                    'defaults' => [
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
                                        'action' => 'members'
                                    ]
                                ],
                                'may_terminate' => true,
                                'child_routes' => [
                                    'invite' => [
                                        'type' => Segment::class,
                                        'options' => [
                                            'route' => '/invite/:user_id',
                                            'constraints' => [
                                                'user_id' => '[A-Za-z0-9\-]+\=*'
                                            ],
                                            'defaults' => [
                                                'controller' => '\LeadersLinked\Controller\MyGroupsController',
                                                'action' => 'invite'
                                            ]
                                        ]
                                    ],
                                    'approve' => [
                                        'type' => Segment::class,
                                        'options' => [
                                            'route' => '/approve/:user_id',
                                            'constraints' => [
                                                'user_id' => '[A-Za-z0-9\-]+\=*'
                                            ],
                                            'defaults' => [
                                                'controller' => '\LeadersLinked\Controller\MyGroupsController',
                                                'action' => 'approve'
                                            ]
                                        ]
                                    ],
                                    'reject' => [
                                        'type' => Segment::class,
                                        'options' => [
                                            'route' => '/reject/:user_id',
                                            'constraints' => [
                                                'user_id' => '[A-Za-z0-9\-]+\=*'
                                            ],
                                            'defaults' => [
                                                'controller' => '\LeadersLinked\Controller\MyGroupsController',
                                                'action' => 'reject'
                                            ]
                                        ]
                                    ],
                                    'cancel' => [
                                        'type' => Segment::class,
                                        'options' => [
                                            'route' => '/cancel/:user_id',
                                            'constraints' => [
                                                'user_id' => '[A-Za-z0-9\-]+\=*'
                                            ],
                                            'defaults' => [
                                                'controller' => '\LeadersLinked\Controller\MyGroupsController',
                                                'action' => 'cancel'
                                            ]
                                        ]
                                    ],
                                ]    
                            ],
                        ]
                    ]
                ]
            ],
            

            
            'profile' => [
                'type' => Literal::class,
                'options' => [
                    'route' => '/profile',
                    'defaults' => [
                        'controller' => '\LeadersLinked\ControllerProfileController',
                        'action' => 'index'
                    ]
                ],
                'may_terminate' => true,
                'child_routes' => [
                    
                    'microlearning' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/microlearning',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\ProfileMicrolearningController',
                                'action' => 'index'
                            ]
                        ],
                        'may_terminate' => true,
                        'child_routes' => [
                            'timeline' => [
                                'type' => Literal::class,
                                'options' => [
                                    'route' => '/timeline',
                                    'defaults' => [
                                        'controller' => '\LeadersLinked\Controller\ProfileMicrolearningController',
                                        'action' => 'timeline'
                                    ]
                                ]
                            ],
                            'progress' => [
                                'type' => Literal::class,
                                'options' => [
                                    'route' => '/progress',
                                    'defaults' => [
                                        'controller' => '\LeadersLinked\Controller\ProfileMicrolearningController',
                                        'action' => 'progress'
                                    ]
                                ]
                            ],
                            
                        ]
                    ],
                     
                    'people-viewed-profile' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/people-viewed-profile',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\ProfileController',
                                'action' => 'peopleViewedProfile'
                            ]
                        ]
                    ],

                    'view' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/view/:id',
                            'constraints' => [
                                'id' => '[A-Za-z0-9\-]+\=*'
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\ProfileController',
                                'action' => 'view'
                            ]
                        ]
                    ],
                    'my-profiles' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/my-profiles',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\MyProfilesController',
                                'action' => 'index'
                            ]
                        ],
                        'may_terminate' => true,
                        'child_routes' => [
                            'add' => [
                                'type' => Literal::class,
                                'options' => [
                                    'route' => '/add',
                                    'defaults' => [
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
                                        'action' => 'add'
                                    ]
                                ]
                            ],
                            'edit' => [
                                'type' => Segment::class,
                                'options' => [
                                    'route' => '/edit/:id',
                                    'constraints' => [
                                        'id' => '[A-Za-z0-9\-]+\=*'
                                    ],
                                    'defaults' => [
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
                                        'action' => 'edit'
                                    ]
                                ]
                            ],
                            'delete' => [
                                'type' => Segment::class,
                                'options' => [
                                    'route' => '/delete/:id',
                                    'constraints' => [
                                        'id' => '[A-Za-z0-9\-]+\=*'
                                    ],
                                    'defaults' => [
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
                                        'action' => 'delete'
                                    ]
                                ]
                            ],
                            'extended' => [
                                'type' => Segment::class,
                                'options' => [
                                    'route' => '/extended/:id',
                                    'constraints' => [
                                        'id' => '[A-Za-z0-9\-]+\=*'
                                    ],
                                    'defaults' => [
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
                                        'action' => 'extended'
                                    ]
                                ]
                            ],
                            'image' => [
                                'type' => Segment::class,
                                'options' => [
                                    'route' => '/image/:id/operation/:operation',
                                    'constraints' => [
                                        'id' => '[A-Za-z0-9\-]+\=*',
                                        'operation' => 'upload|delete'
                                    ],
                                    'defaults' => [
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
                                        'action' => 'image'
                                    ]
                                ]
                            ],
                            'cover' => [
                                'type' => Segment::class,
                                'options' => [
                                    'route' => '/cover/:id/operation/:operation',
                                    'constraints' => [
                                        'id' => '[A-Za-z0-9\-]+\=*',
                                        'operation' => 'upload|delete'
                                    ],
                                    'defaults' => [
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
                                        'action' => 'cover'
                                    ]
                                ]
                            ],
                            'experience' => [
                                'type' => Segment::class,
                                'options' => [
                                    'route' => '/experience/:id/operation/:operation[/:user_experience_id]',
                                    'constraints' => [
                                        'id' => '[A-Za-z0-9\-]+\=*',
                                        'operation' => 'add|edit|delete',
                                        'user_education_id' => '[A-Za-z0-9\-]+\=*'
                                    ],
                                    'defaults' => [
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
                                        'action' => 'experience'
                                    ]
                                ]
                            ],
                            'education' => [
                                'type' => Segment::class,
                                'options' => [
                                    'route' => '/education/:id/operation/:operation[/:user_education_id]',
                                    'constraints' => [
                                        'id' => '[A-Za-z0-9\-]+\=*',
                                        'operation' => 'add|edit|delete',
                                        'user_education_id' => '[A-Za-z0-9\-]+\=*'
                                    ],
                                    'defaults' => [
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
                                        'action' => 'education'
                                    ]
                                ]
                            ],
                            'language' => [
                                'type' => Segment::class,
                                'options' => [
                                    'route' => '/language/:id',
                                    'constraints' => [
                                        'id' => '[A-Za-z0-9\-]+\=*'
                                    ],
                                    'defaults' => [
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
                                        'action' => 'language'
                                    ]
                                ]
                            ],
                            'location' => [
                                'type' => Segment::class,
                                'options' => [
                                    'route' => '/location/:id',
                                    'constraints' => [
                                        'id' => '[A-Za-z0-9\-]+\=*'
                                    ],
                                    'defaults' => [
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
                                        'action' => 'location'
                                    ]
                                ]
                            ],
                            'skill' => [
                                'type' => Segment::class,
                                'options' => [
                                    'route' => '/skill/:id',
                                    'constraints' => [
                                        'id' => '[A-Za-z0-9\-]+\=*'
                                    ],
                                    'defaults' => [
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
                                        'action' => 'skill'
                                    ]
                                ]
                            ],
                            'social-network' => [
                                'type' => Segment::class,
                                'options' => [
                                    'route' => '/social-network/:id',
                                    'constraints' => [
                                        'id' => '[A-Za-z0-9\-]+\=*'
                                    ],
                                    'defaults' => [
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
                                        'action' => 'socialNetwork'
                                    ]
                                ]
                            ]
                        ]
                    ]
                ]
            ],
            
          

            'company' => [
                'type' => Literal::class,
                'options' => [
                    'route' => '/company',
                    'defaults' => [
                        'controller' => '\LeadersLinked\Controller\CompanyController',
                        'action' => 'index'
                    ]
                ],
                'may_terminate' => true,
                'child_routes' => [
                    'view' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/view/:id',
                            'constraints' => [
                                'id' => '[A-Za-z0-9\-]+\=*'
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\CompanyController',
                                'action' => 'view'
                            ]
                        ]
                    ],
                    'follow' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/follow/:id',
                            'constraints' => [
                                'id' => '[A-Za-z0-9\-]+\=*'
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\CompanyController',
                                'action' => 'follow'
                            ]
                            
                        ]
                    ],
                    'unfollow' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/unfollow/:id',
                            'constraints' => [
                                'id' => '[A-Za-z0-9\-]+\=*'
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\CompanyController',
                                'action' => 'unfollow'
                            ]
                        ]
                    ],
                    'request' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/request/:id',
                            'constraints' => [
                                'id' => '[A-Za-z0-9\-]+\=*'
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\CompanyController',
                                'action' => 'request'
                            ]
                        ]
                    ],
                    
                    
                    
                    'accept' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/accept/:id',
                            'constraints' => [
                                'id' => '[A-Za-z0-9\-]+\=*'
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\CompanyController',
                                'action' => 'accept'
                            ]
                        ]
                    ],
                    'cancel' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/cancel/:id',
                            'constraints' => [
                                'id' => '[A-Za-z0-9\-]+\=*'
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\CompanyController',
                                'action' => 'cancel'
                            ]
                        ]
                    ],
                    'reject' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/reject/:id',
                            'constraints' => [
                                'id' => '[A-Za-z0-9\-]+\=*'
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\CompanyController',
                                'action' => 'reject'
                            ]
                        ]
                    ],
                    'leave' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/leave/:id',
                            'constraints' => [
                                'id' => '[A-Za-z0-9\-]+\=*'
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\CompanyController',
                                'action' => 'leave'
                            ]
                        ]
                    ],
                    'following-companies' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/following-companies',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\CompanyController',
                                'action' => 'followingCompanies'
                            ]
                        ],
                    ],
                    'requests-sent' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/requests-sent',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\CompanyController',
                                'action' => 'requestsSent'
                            ]
                        ],
                        'may_terminate' => true,
                    ],
                    'invitations-received' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/invitations-received',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\CompanyController',
                                'action' => 'invitationsReceived'
                            ]
                        ],
                        'may_terminate' => true,
                    ],
                    
                    
                    
                    'i-work-with' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/i-work-with',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\CompanyController',
                                'action' => 'iWorkWith'
                            ]
                        ],
                        'may_terminate' => true,
                    ],
                    

                    
                    'my-companies' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/my-companies',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\MyCompaniesController',
                                'action' => 'index'
                            ]
                        ],
                        'may_terminate' => true,
                        'child_routes' => [
                            'add' => [
                                'type' => Literal::class,
                                'options' => [
                                    'route' => '/add',
                                    'defaults' => [
                                        'controller' => '\LeadersLinked\Controller\MyCompaniesController',
                                        'action' => 'add'
                                    ]
                                ]
                            ],
                            
                        ]
                    ],
                    
                ]
            ],

            'account-settings' => [
                'type' => Literal::class,
                'options' => [
                    'route' => '/account-settings',
                    'defaults' => [
                        'controller' => '\LeadersLinked\Controller\AccountSettingController',
                        'action' => 'index'
                    ]
                ],
                'may_terminate' => true,
                'child_routes' => [
                    'image' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/image/:operation',
                            'cconstraints' => [
                                'operation' => 'upload|delete'
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
                                'action' => 'image',
                                'operation' => 'upload'
                            ]
                        ]
                    ],
                    'deactivate' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/deactivate',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
                                'action' => 'deactivate'
                            ]
                        ]
                    ],
                    'notifications' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/notification',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
                                'action' => 'notification'
                            ]
                        ]
                    ],
                    'password' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/password',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
                                'action' => 'password'
                            ]
                        ]
                    ],
                    'add-facebook' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/add-facebook',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
                                'action' => 'addFacebook'
                            ]
                        ]
                    ],
                    'remove-facebook' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/remove-facebook',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
                                'action' => 'removeFacebook'
                            ]
                        ]
                    ],
                    'add-twitter' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/add-twitter',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
                                'action' => 'addTwitter'
                            ]
                        ]
                    ],
                    'remove-twitter' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/remove-twitter',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
                                'action' => 'removeTwitter'
                            ]
                        ]
                    ],
                    'add-google' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/add-google',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
                                'action' => 'addGoogle'
                            ]
                        ]
                    ],
                    'remove-google' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/remove-google',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
                                'action' => 'removeGoogle'
                            ]
                        ]
                    ],
                    'location' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/location',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
                                'action' => 'location'
                            ]
                        ]
                    ],
                    'privacy' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/privacy',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
                                'action' => 'privacy'
                            ]
                        ]
                    ],
                    'basic' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/basic',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
                                'action' => 'basic'
                            ]
                        ]
                    ],
                    'transactions' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/transactions',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
                                'action' => 'transactions'
                            ]
                        ],
                        'may_terminate' => true,
                        'child_routes' => [
                            'add-funds' => [
                                'type' => Literal::class,
                                'options' => [
                                    'route' => '/add-funds',
                                    'defaults' => [
                                        'controller' => '\LeadersLinked\Controller\AccountSettingController',
                                        'action' => 'addFund'
                                    ]
                                ]
                            ],
                        ]
                    ],
                    'browsers' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/browsers',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
                                'action' => 'browsers'
                            ]
                        ]
                    ],
                    'ips' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/ips',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
                                'action' => 'ips'
                            ]
                        ]
                    ],
                    'devices' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/devices',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
                                'action' => 'devices'
                            ]
                        ]
                    ]
                ],
                'may_terminate' => true
            ],

            'moodle' => [
                'type' => Literal::class,
                'options' => [
                    'route' => '/moodle',
                    'defaults' => [
                        'controller' => '\LeadersLinked\Controller\MoodleController',
                        'action' => 'index'
                    ]
                ],
                'may_terminate' => true
            ],

            'oauth' => [
                'type' => Literal::class,
                'options' => [
                    'route' => '/oauth',
                    'defaults' => [
                        'controller' => '\LeadersLinked\Controller\OauthController',
                        'action' => 'index'
                    ]
                ],
                'may_terminate' => true,
                'child_routes' => [
                    'facebook' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/facebook',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\OauthController',
                                'action' => 'facebook'
                            ]
                        ],
                        'may_terminate' => true,
                        'child_routes' => [
                            'delete' => [
                                'type' => Literal::class,
                                'options' => [
                                    'route' => '/delete',
                                    'defaults' => [
                                        'controller' => '\LeadersLinked\Controller\OauthController',
                                        'action' => 'facebookDelete'
                                    ]
                                ],
                                'may_terminate' => true,
                            ],
                            'cancel' => [
                                'type' => Literal::class,
                                'options' => [
                                    'route' => '/cancel',
                                    'defaults' => [
                                        'controller' => '\LeadersLinked\Controller\OauthController',
                                        'action' => 'facebookCancel'
                                    ]
                                ],
                                'may_terminate' => true,
                            ],
                        ],    
                    ],
                    'twitter' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/twitter',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\OauthController',
                                'action' => 'twitter'
                            ]
                        ],
                        'may_terminate' => true,
                    ],
                    'google' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/google',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\OauthController',
                                'action' => 'google'
                            ]
                        ],
                        'may_terminate' => true,
                    ],
                    /*'facebook' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/facebook',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\OauthController',
                                'action' => 'facebook'
                            ]
                        ],
                        'may_terminate' => true,
                        'child_routes' => [
                            'cancel' => [
                                'type' => Literal::class,
                                'options' => [
                                    'route' => '/cancel',
                                    'defaults' => [
                                        'controller' => '\LeadersLinked\Controller\OauthController',
                                        'action' => 'facebookCancel'
                                    ]
                                ]
                            ],
                            'delete' => [
                                'type' => Literal::class,
                                'options' => [
                                    'route' => '/delete',
                                    'defaults' => [
                                        'controller' => '\LeadersLinked\Controller\OauthController',
                                        'action' => 'facebookDelete'
                                    ]
                                ]
                            ]
                        ]
                    ]*/
                ]
            ],

           
            
            'helpers' => [
                'type' => Literal::class,
                'options' => [
                    'route' => '/helpers',
                    'defaults' => [
                        'controller' => '\LeadersLinked\Controller\HelperController',
                        'action' => 'index'
                    ]
                
                ],
                'may_terminate' => true,
                'child_routes' => [
                    'search-people' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/search-people',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\HelperController',
                                'action' => 'searchPeople'
                            ]
                        ]
                    ],
                    'company-suggestion' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/company-suggestion/:company_id',
                            'constraints' => [
                                'company_id' => '[A-Za-z0-9\-]+\=*'
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\HelperController',
                                'action' => 'companySuggestion'
                            ]
                        ]
                    ],
                    'posts' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/posts',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\HelperController',
                                'action' => 'posts'
                            ]
                        ]
                    ],
                    'people-you-may-know' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/people-you-may-know',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\HelperController',
                                'action' => 'peopleYouMayKnow'
                            ]
                        ]
                    ],
                    'people-viewed-profile' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/people-viewed-profile/:user_profile_id',
                            'constraints' => [
                                'user_profile_id' => '[A-Za-z0-9\-]+\=*'
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\HelperController',
                                'action' => 'peopleViewedProfile'
                            ]
                        ]
                    ],
                    'company-follower' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/company-follower/:company_id',
                            'constraints' => [
                                'company_id' => '[A-Za-z0-9\-]+\=*'
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\HelperController',
                                'action' => 'companyFollower'
                            ]
                        ]
                    ],
                    'group-members' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/group-members/:group_id',
                            'constraints' => [
                                'group_id' => '[A-Za-z0-9\-]+\=*'
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\HelperController',
                                'action' => 'groupMembers'
                            ]
                        ],
                        'may_terminate' => true,
                        'child_routes' => [
                            'invite' => [
                                'type' => Literal::class,
                                'options' => [
                                    'route' => '/invite',
                                    'defaults' => [
                                        'controller' => '\LeadersLinked\Controller\HelperController',
                                        'action' => 'groupMemberInvite'
                                    ]
                                ]
                            ],
                            'reject' => [
                                'type' => Segment::class,
                                'options' => [
                                    'route' => '/reject/:user_id',
                                    'constraints' => [
                                        'user_id' => '[A-Za-z0-9\-]+\=*'
                                    ],
                                    'defaults' => [
                                        'controller' => '\LeadersLinked\Controller\HelperController',
                                        'action' => 'groupMemberReject'
                                    ]
                                ]
                            ],
                            'cancel' => [
                                'type' => Segment::class,
                                'options' => [
                                    'route' => '/cancel/:user_id',
                                    'constraints' => [
                                        'user_id' => '[A-Za-z0-9\-]+\=*'
                                    ],
                                    'defaults' => [
                                        'controller' => '\LeadersLinked\Controller\HelperController',
                                        'action' => 'groupMemberCancel'
                                    ]
                                ]
                            ],
                            'approve' => [
                                'type' => Segment::class,
                                'options' => [
                                    'route' => '/approve/:user_id',
                                    'constraints' => [
                                        'user_id' => '[A-Za-z0-9\-]+\=*'
                                    ],
                                    'defaults' => [
                                        'controller' => '\LeadersLinked\Controller\HelperController',
                                        'action' => 'groupMemberApprove'
                                    ]
                                ]
                            ],
                        ]    
                    ],
                    
                    'groups-suggestion' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/groups-suggestion/:group_id',
                            'constraints' => [
                                'group_id' => '[A-Za-z0-9\-]+\=*'
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\HelperController',
                                'action' => 'groupsSuggestion'
                            ]
                        ]
                    ],
                ]
            ],
            
            'help' => [
                'type' => Literal::class,
                'options' => [
                    'route' => '/help',
                    'defaults' => [
                        'controller' => '\LeadersLinked\Controller\HelpController',
                        'action' => 'send'
                    ]
                ],
                'may_terminate' => true,
            ],  
            
            
            'services' => [
                'type' => Literal::class,
                'options' => [
                    'route' => '/services',
                    'defaults' => [
                        'controller' => '\LeadersLinked\Controller\ServiceController',
                        'action' => 'index'
                    ]
                ],
                'may_terminate' => true,
                'child_routes' => [
                    'storage' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/storage/type/:type[/code/:code][/filename/:filename]',
                            'constraints' => [
                                'type' => 'user|user-profile|user-cover|company|company-cover|group|group-cover|job|chat|image|feed|post|microlearning-topic|microlearning-capsule|microlearning-slide',
                                'code' => '[A-Za-z0-9\-]+\=*',
                                'filename' => '[a-zA-Z0-9\-\_]+\.(jpg|jpeg|gif|png|mp3|mp4|flv|doc|pdf|docx|xls|ppt|pdf|xlsx|pptx)'
                            ],
                            // MjM5ODk0Mzgg
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\ServiceController',
                                'action' => 'storage'
                            ]
                        ]
                    ],
                    'device' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/device',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\ServiceController',
                                'action' => 'device'
                            ]
                        ]
                    ],
                    'fcm' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/fcm',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\ServiceController',
                                'action' => 'fcm'
                            ]
                        ]
                    ],
                    'signin' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/signin',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\ServiceController',
                                'action' => 'signin'
                            ]
                        ]
                    ],
                    'check-session' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/check-session',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\ServiceController',
                                'action' => 'checkSession'
                            ]
                        ]
                    ],
    
                    
                   
                    
                    'signout' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/signout',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\ServiceController',
                                'action' => 'signout'
                            ]
                        ]
                    ],
                    /*'signup' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/signup',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\ServiceController',
                                'action' => 'signup'
                            ]
                        ]
                    ],
                    'activate-account' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/activate-account',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\ServiceController',
                                'action' => 'activateAccount'
                            ]
                        ]
                    ],
                    'forgot-password' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/forgot-password',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\ServiceController',
                                'action' => 'forgotPassword'
                            ]
                        ]
                    ],
                    'reset-password' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/reset-password',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\ServiceController',
                                'action' => 'resetPassword'
                            ]
                        ]
                    ],*/
                    'sync' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/sync',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\ServiceController',
                                'action' => 'sync'
                            ]
                        ]
                    ],
                    
                    'sync-batch' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/sync-batch',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\ServiceController',
                                'action' => 'syncBatch'
                            ]
                        ]
                    ],
                    
                    
                    'microlearning' => [
                        'type' => Literal::class,
                        'options' => [
                            'route' => '/microlearning',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\ServiceMicrolearningController',
                                'action' => 'index'
                            ]
                        ],
                        'may_terminate' => true,
                        'child_routes' => [
                            'refresh' => [
                                'type' => Literal::class,
                                'options' => [
                                    'route' => '/refresh',
                                    'defaults' => [
                                        'controller' => '\LeadersLinked\Controller\ServiceController',
                                        'action' => 'microlearningRefresh'
                                    ]
                                ]
                            ],
                            
                            'check-changes' => [
                                'type' => Literal::class,
                                'options' => [
                                    'route' => '/check-changes',
                                    'defaults' => [
                                        'controller' => '\LeadersLinked\Controller\ServiceController',
                                        'action' => 'microlearningCheckChanges'
                                    ]
                                ]
                            ],
                            
                        ]    
                    ],
   
                    
                ]
            ],

            
            'marketplace' => [
                'type' => Literal::class,
                'options' => [
                    'route' => '/marketplace',
                    'defaults' => [
                        'controller' => '\LeadersLinked\Controller\MarketPlaceController',
                        'action' => 'index'
                    ]
                ],
                'may_terminate' => true,
                'child_routes' => [
                    'categories' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/categories',
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\MarketPlaceController',
                                'action' => 'getCategories'
                            ]
                        ]
                    ],
                    'enroll' => [
                        'type' => Segment::class,
                        'options' => [
                            'route' => '/enroll/:company_id/:topic_id/:capsule_id',
                            'constraints' => [
                                'company_id' => '[A-Za-z0-9\-]+\=*',
                                'topic_id' => '[A-Za-z0-9\-]+\=*',
                                'capsule_id' => '[A-Za-z0-9\-]+\=*',
                            ],
                            'defaults' => [
                                'controller' => '\LeadersLinked\Controller\MarketPlaceController',
                                'action' => 'enroll'
                            ]
                        ]
                    ],
                ]
            ],  
            
            
            

           
        ]
    ],

    'controllers' => [
        'factories' => [
           
            \LeadersLinked\Controller\AccountSettingController::class => \LeadersLinked\Factory\Controller\AccountSettingControllerFactory::class,
            \LeadersLinked\Controller\AuthController::class => \LeadersLinked\Factory\Controller\AuthControllerFactory::class,
            \LeadersLinked\Controller\BackendController::class => \LeadersLinked\Factory\Controller\BackendControllerFactory::class,
            \LeadersLinked\Controller\ChatController::class => \LeadersLinked\Factory\Controller\ChatControllerFactory::class,
            \LeadersLinked\Controller\CompanyController::class => \LeadersLinked\Factory\Controller\CompanyControllerFactory::class,
            
            

            \LeadersLinked\Controller\DashboardController::class => \LeadersLinked\Factory\Controller\DashboardControllerFactory::class,
            \LeadersLinked\Controller\ConnectionController::class => \LeadersLinked\Factory\Controller\ConnectionControllerFactory::class,
            
            \LeadersLinked\Controller\HomeController::class => \LeadersLinked\Factory\Controller\HomeControllerFactory::class,
            \LeadersLinked\Controller\HelperController::class => \LeadersLinked\Factory\Controller\HelperControllerFactory::class,
            \LeadersLinked\Controller\HelpController::class => \LeadersLinked\Factory\Controller\HelpControllerFactory::class,
            \LeadersLinked\Controller\FeedController::class => \LeadersLinked\Factory\Controller\FeedControllerFactory::class,
           
            \LeadersLinked\Controller\MarketPlaceController::class => \LeadersLinked\Factory\Controller\MarketPlaceControllerFactory::class,
            \LeadersLinked\Controller\MoodleController::class => \LeadersLinked\Factory\Controller\MoodleControllerFactory::class,
            \LeadersLinked\Controller\OauthController::class => \LeadersLinked\Factory\Controller\OauthControllerFactory::class,

            
            \LeadersLinked\Controller\JobController::class => \LeadersLinked\Factory\Controller\JobControllerFactory::class,
            \LeadersLinked\Controller\InMailController::class => \LeadersLinked\Factory\Controller\InMailControllerFactory::class,
           
            
            \LeadersLinked\Controller\GroupController::class => \LeadersLinked\Factory\Controller\GroupControllerFactory::class,
            \LeadersLinked\Controller\MyGroupsController::class => \LeadersLinked\Factory\Controller\MyGroupsControllerFactory::class,
            
            \LeadersLinked\Controller\MyCompaniesController::class => \LeadersLinked\Factory\Controller\MyCompaniesControllerFactory::class,
           
            \LeadersLinked\Controller\PaypalController::class => \LeadersLinked\Factory\Controller\PaypalControllerFactory::class,
            \LeadersLinked\Controller\ProfileController::class => \LeadersLinked\Factory\Controller\ProfileControllerFactory::class,
            \LeadersLinked\Controller\ProfileMicrolearningController::class => \LeadersLinked\Factory\Controller\ProfileMicrolearningControllerFactory::class,
            \LeadersLinked\Controller\MyProfilesController::class => \LeadersLinked\Factory\Controller\MyProfilesControllerFactory::class,

            \LeadersLinked\Controller\SearchController::class => \LeadersLinked\Factory\Controller\SearchControllerFactory::class,
            \LeadersLinked\Controller\StorageController::class => \LeadersLinked\Factory\Controller\StorageControllerFactory::class,
            
            
            \LeadersLinked\Controller\ServiceController::class => \LeadersLinked\Factory\Controller\ServiceControllerFactory::class,

        ],

        'aliases' => [
           
            '\LeadersLinked\Controller\AuthController' => \LeadersLinked\Controller\AuthController::class,
            '\LeadersLinked\Controller\BackendController' => \LeadersLinked\Controller\BackendController::class,
            
            '\LeadersLinked\Controller\AccountSettingController' => \LeadersLinked\Controller\AccountSettingController::class,
            '\LeadersLinked\Controller\ChatController' => \LeadersLinked\Controller\ChatController::class,
            '\LeadersLinked\Controller\CompanyController' => \LeadersLinked\Controller\CompanyController::class,

            '\LeadersLinked\Controller\ConnectionController' => \LeadersLinked\Controller\ConnectionController::class,
            '\LeadersLinked\Controller\DashboardController' => \LeadersLinked\Controller\DashboardController::class,
           

            '\LeadersLinked\Controller\HomeController' => \LeadersLinked\Controller\HomeController::class,
            '\LeadersLinked\Controller\HelpController' => \LeadersLinked\Controller\HelpController::class,
            '\LeadersLinked\Controller\HelperController' => \LeadersLinked\Controller\HelperController::class,
            '\LeadersLinked\Controller\FeedController' => \LeadersLinked\Controller\FeedController::class,
            '\LeadersLinked\Controller\InMailController' =>  \LeadersLinked\Controller\InMailController::class,
           
            '\LeadersLinked\Controller\JobController' => \LeadersLinked\Controller\JobController::class,
         
            
            '\LeadersLinked\Controller\GroupController' => \LeadersLinked\Controller\GroupController::class,
            '\LeadersLinked\Controller\MyGroupsController' => \LeadersLinked\Controller\MyGroupsController::class,
            
            
            '\LeadersLinked\Controller\MyCompaniesController' => \LeadersLinked\Controller\MyCompaniesController::class,

            
            '\LeadersLinked\Controller\PaypalController' => \LeadersLinked\Controller\PaypalController::class,
            '\LeadersLinked\Controller\ProfileController' => \LeadersLinked\Controller\ProfileController::class,
            '\LeadersLinked\Controller\ProfileMicrolearningController' => \LeadersLinked\Controller\ProfileMicrolearningController::class,
            '\LeadersLinked\Controller\MyProfilesController' => \LeadersLinked\Controller\MyProfilesController::class,
            '\LeadersLinked\Controller\MarketPlaceController' => \LeadersLinked\Controller\MarketPlaceController::class,
            '\LeadersLinked\Controller\MoodleController' => \LeadersLinked\Controller\MoodleController::class,
            '\LeadersLinked\Controller\SearchController' => \LeadersLinked\Controller\SearchController::class,
            
   
            '\LeadersLinked\Controller\StorageController' => \LeadersLinked\Controller\StorageController::class,
            '\LeadersLinked\Controller\OauthController' => \LeadersLinked\Controller\OauthController::class,
            
            '\LeadersLinked\Controller\ServiceController' => \LeadersLinked\Controller\ServiceController::class,

        ]
    ],
    
    'laminas-cli' => [
        'commands' => [
            'process-queue-email' => \LeadersLinked\Command\ProcessQueueEmailCommand::class,
            'process-queue-push' => \LeadersLinked\Command\ProcessQueuePushCommand::class,
            'process-queue-video-convert' => \LeadersLinked\Command\ProcessQueueVideoConvertCommand::class,
            'recalculate-microlearning-progress' => \LeadersLinked\Command\RecalculateMicrolearningProgressCommand::class,
            'check-owner-user-for-company' => \LeadersLinked\Command\CheckOwnerUserForCompanyCommand::class,
        ]
    ],
    
    'service_manager' => [
        'abstract_factories' => [
            \Laminas\Db\Adapter\AdapterAbstractServiceFactory::class
        ],
        'factories' => [
            'RenderingStrategy' => function ($container) {
                $translator = $container->get('MvcTranslator');
                return new \LeadersLinked\View\RenderingStrategy($translator);
            },
            'menuNavigation' => \LeadersLinked\Navigation\MenuNavigation::class,
            'footerNavigation' => \LeadersLinked\Navigation\FooterNavigation::class,

            
            \LeadersLinked\Command\ProcessQueueEmailCommand::class => \LeadersLinked\Factory\Command\ProcessQueueEmailCommandFactory::class,
            \LeadersLinked\Command\ProcessQueuePushCommand::class => \LeadersLinked\Factory\Command\ProcessQueuePushCommandFactory::class,
            \LeadersLinked\Command\ProcessQueueVideoConvertCommand::class => \LeadersLinked\Factory\Command\ProcessQueueVideoConvertCommandFactory::class,
            \LeadersLinked\Command\RecalculateMicrolearningProgressCommand::class => \LeadersLinked\Factory\Command\RecalculateMicrolearningProgressCommandFactory::class,
            \LeadersLinked\Command\CheckOwnerUserForCompanyCommand::class => \LeadersLinked\Factory\Command\CheckOwnerUserForCompanyCommandFactory::class,
        ],
        'aliases' => [ // 'leaders-linked-storage' => \LeadersLinked\Service\StorageService::class
        ]
    ],
    'view_helpers' => [
        'factories' => [
           
            \LeadersLinked\Helper\ChatHelper::class => \LeadersLinked\Factory\Helper\ChatHelperFactory::class,
            \LeadersLinked\Helper\CompanyFollowerHelper::class => \LeadersLinked\Factory\Helper\CompanyFollowerHelperFactory::class,
            \LeadersLinked\Helper\CompanySuggestionHelper::class => \LeadersLinked\Factory\Helper\CompanySuggestionHelperFactory::class,
            \LeadersLinked\Helper\CurrentUserHelper::class => \LeadersLinked\Factory\Helper\CurrentUserHelperFactory::class,
            \LeadersLinked\Helper\GroupMembersHelper::class => \LeadersLinked\Factory\Helper\GroupMembersHelperFactory::class,
            \LeadersLinked\Helper\GroupsSuggestionHelper::class => \LeadersLinked\Factory\Helper\GroupsSuggestionHelperFactory::class,
            \LeadersLinked\Helper\MenuHelper::class => \LeadersLinked\Factory\Helper\MenuHelperFactory::class,
            \LeadersLinked\Helper\PeopleViewedProfileHelper::class => \LeadersLinked\Factory\Helper\PeopleViewedProfileHelperFactory::class,
            \LeadersLinked\Helper\PeopleYouMayKnowHelper::class => \LeadersLinked\Factory\Helper\PeopleYouMayKnowHelperFactory::class,
            \LeadersLinked\Helper\SimilarGroupsHelper::class => \LeadersLinked\Factory\Helper\SimilarGroupsHelperFactory::class
            
        ],
        'invokables' => [
        
            'menuBackendHelper' => \LeadersLinked\Helper\MenuBackendHelper::class,
            'menuMyCompanyHelper' => \LeadersLinked\Helper\MenuMyCompanyHelper::class,
            'footerHelper' => \LeadersLinked\Helper\FooterHelper::class
        ],
        'aliases' => [
            'chatHelper' => \LeadersLinked\Helper\ChatHelper::class,
            'companyFollowerHelper' => \LeadersLinked\Helper\CompanyFollowerHelper::class,
            'companySuggestionHelper' => \LeadersLinked\Helper\CompanySuggestionHelper::class,
            'currentUserHelper' => \LeadersLinked\Helper\CurrentUserHelper::class,
            'menuHelper' => \LeadersLinked\Helper\MenuHelper::class,
            'peopleViewedProfileHelper' => \LeadersLinked\Helper\PeopleViewedProfileHelper::class,
            'peopleYouMayKnowHelper' => \LeadersLinked\Helper\PeopleYouMayKnowHelper::class,
            'groupMembersHelper' => \LeadersLinked\Helper\GroupMembersHelper::class,
            'similarGroupsHelper' => \LeadersLinked\Helper\SimilarGroupsHelper::class
        ]
    ],
    'controller_plugins' => [
        'invokables' => [],
        'factories' => [
            \LeadersLinked\Plugin\CurrentUserPlugin::class => \LeadersLinked\Factory\Plugin\CurrentUserPluginFactory::class
        ],
        'aliases' => [
            'currentUserPlugin' => \LeadersLinked\Plugin\CurrentUserPlugin::class
        ]
    ],
    'view_manager' => [
        'display_not_found_reason' => true,
        'display_exceptions' => true,
        'doctype' => 'HTML5',
        'not_found_template' => 'error/404',
        'exception_template' => 'error/index',
        'template_map' => [
            'layout/layout' => __DIR__ . '/../view/layout/layout.phtml',
            'error/404' => __DIR__ . '/../view/error/404.phtml',
            'error/index' => __DIR__ . '/../view/error/index.phtml'
        ],
        'template_path_stack' => [
            __DIR__ . '/../view'
        ],
        'strategies' => [
            'ViewJsonStrategy',
            'RenderingStrategy'
        ]
    ]
];