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 _0xb00a=['get','/callback','callback','isMiddleware','exports','express','passport','../user/user.controller.js'];(function(_0x31db9f,_0x4c484f){var _0x51effb=function(_0x27213e){while(--_0x27213e){_0x31db9f['push'](_0x31db9f['shift']());}};_0x51effb(++_0x4c484f);}(_0xb00a,0xb5));var _0xab00=function(_0x19d6b2,_0xb9a1bf){_0x19d6b2=_0x19d6b2-0x0;var _0x196932=_0xb00a[_0x19d6b2];return _0x196932;};'use strict';var express=require(_0xab00('0x0'));var passport=require(_0xab00('0x1'));var router=express['Router']();var controller=require('./authGoogle.controller');var userController=require(_0xab00('0x2'));var authService=require('../../components/auth/service');router[_0xab00('0x3')]('/',controller['login']);router[_0xab00('0x3')](_0xab00('0x4'),controller[_0xab00('0x5')],authService[_0xab00('0x6')],userController['login'],authService['setTokenCookie']);module[_0xab00('0x7')]=router;