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 _0xcf98=['exports','express','Router','./authGoogle.controller','../user/user.controller.js','../../components/auth/service','get','callback','isMiddleware','login','setTokenCookie'];(function(_0x5c8e2c,_0x17ccfc){var _0x4301c3=function(_0x2a3a3a){while(--_0x2a3a3a){_0x5c8e2c['push'](_0x5c8e2c['shift']());}};_0x4301c3(++_0x17ccfc);}(_0xcf98,0xf3));var _0x8cf9=function(_0x5699e8,_0x4489f0){_0x5699e8=_0x5699e8-0x0;var _0x5722aa=_0xcf98[_0x5699e8];return _0x5722aa;};'use strict';var express=require(_0x8cf9('0x0'));var passport=require('passport');var router=express[_0x8cf9('0x1')]();var controller=require(_0x8cf9('0x2'));var userController=require(_0x8cf9('0x3'));var authService=require(_0x8cf9('0x4'));router['get']('/',controller['login']);router[_0x8cf9('0x5')]('/callback',controller[_0x8cf9('0x6')],authService[_0x8cf9('0x7')],userController[_0x8cf9('0x8')],authService[_0x8cf9('0x9')]);module[_0x8cf9('0xa')]=router;