1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
17 // *************************************************************************
18 var _0x6921=['get','callback','isMiddleware','login','setTokenCookie','exports','passport','./authGoogle.controller','../../components/auth/service'];(function(_0x1b189e,_0x48a43a){var _0x21ffee=function(_0x3ef8e4){while(--_0x3ef8e4){_0x1b189e['push'](_0x1b189e['shift']());}};_0x21ffee(++_0x48a43a);}(_0x6921,0x1d1));var _0x1692=function(_0x39ddab,_0x1bdf06){_0x39ddab=_0x39ddab-0x0;var _0x3dd5e9=_0x6921[_0x39ddab];return _0x3dd5e9;};'use strict';var express=require('express');var passport=require(_0x1692('0x0'));var router=express['Router']();var controller=require(_0x1692('0x1'));var userController=require('../user/user.controller.js');var authService=require(_0x1692('0x2'));router[_0x1692('0x3')]('/',controller['login']);router[_0x1692('0x3')]('/callback',controller[_0x1692('0x4')],authService[_0x1692('0x5')],userController[_0x1692('0x6')],authService[_0x1692('0x7')]);module[_0x1692('0x8')]=router;