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 _0xd246=['login','/callback','isMiddleware','setTokenCookie','exports','express','passport','Router','./authGoogle.controller','../user/user.controller.js','../../components/auth/service','get'];(function(_0x36186a,_0x4ab8de){var _0x4fb753=function(_0x514766){while(--_0x514766){_0x36186a['push'](_0x36186a['shift']());}};_0x4fb753(++_0x4ab8de);}(_0xd246,0xf5));var _0x6d24=function(_0x2111bc,_0x2d65d5){_0x2111bc=_0x2111bc-0x0;var _0x1ff93b=_0xd246[_0x2111bc];return _0x1ff93b;};'use strict';var express=require(_0x6d24('0x0'));var passport=require(_0x6d24('0x1'));var router=express[_0x6d24('0x2')]();var controller=require(_0x6d24('0x3'));var userController=require(_0x6d24('0x4'));var authService=require(_0x6d24('0x5'));router[_0x6d24('0x6')]('/',controller[_0x6d24('0x7')]);router['get'](_0x6d24('0x8'),controller['callback'],authService[_0x6d24('0x9')],userController['login'],authService[_0x6d24('0xa')]);module[_0x6d24('0xb')]=router;