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 _0x4d9e=['express','passport','./authGoogle.controller','../user/user.controller.js','../../components/auth/service','get','login','/callback','callback','setTokenCookie'];(function(_0x388535,_0x6d4692){var _0x4ab24c=function(_0x4c0bec){while(--_0x4c0bec){_0x388535['push'](_0x388535['shift']());}};_0x4ab24c(++_0x6d4692);}(_0x4d9e,0x17c));var _0xe4d9=function(_0xc62b80,_0x58ded6){_0xc62b80=_0xc62b80-0x0;var _0x4e4387=_0x4d9e[_0xc62b80];return _0x4e4387;};'use strict';var express=require(_0xe4d9('0x0'));var passport=require(_0xe4d9('0x1'));var router=express['Router']();var controller=require(_0xe4d9('0x2'));var userController=require(_0xe4d9('0x3'));var authService=require(_0xe4d9('0x4'));router[_0xe4d9('0x5')]('/',controller[_0xe4d9('0x6')]);router[_0xe4d9('0x5')](_0xe4d9('0x7'),controller[_0xe4d9('0x8')],authService['isMiddleware'],userController['login'],authService[_0xe4d9('0x9')]);module['exports']=router;