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 _0x24ba=['../../components/auth/service','get','login','isMiddleware','express','Router','../user/user.controller.js'];(function(_0x48a6cb,_0x2f146f){var _0x12e4d8=function(_0x81faca){while(--_0x81faca){_0x48a6cb['push'](_0x48a6cb['shift']());}};_0x12e4d8(++_0x2f146f);}(_0x24ba,0xf2));var _0xa24b=function(_0x5d76ad,_0x26158d){_0x5d76ad=_0x5d76ad-0x0;var _0x4f7937=_0x24ba[_0x5d76ad];return _0x4f7937;};'use strict';var express=require(_0xa24b('0x0'));var passport=require('passport');var router=express[_0xa24b('0x1')]();var controller=require('./authGoogle.controller');var userController=require(_0xa24b('0x2'));var authService=require(_0xa24b('0x3'));router[_0xa24b('0x4')]('/',controller[_0xa24b('0x5')]);router[_0xa24b('0x4')]('/callback',controller['callback'],authService[_0xa24b('0x6')],userController[_0xa24b('0x5')],authService['setTokenCookie']);module['exports']=router;