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 _0x2da7=['express','Router','./authGoogle.controller','../../components/auth/service','get','login','isMiddleware','setTokenCookie','exports'];(function(_0x8de880,_0x5f5058){var _0x2f9718=function(_0x1ce1c3){while(--_0x1ce1c3){_0x8de880['push'](_0x8de880['shift']());}};_0x2f9718(++_0x5f5058);}(_0x2da7,0x99));var _0x72da=function(_0x2c3827,_0x281227){_0x2c3827=_0x2c3827-0x0;var _0x41f494=_0x2da7[_0x2c3827];return _0x41f494;};'use strict';var express=require(_0x72da('0x0'));var passport=require('passport');var router=express[_0x72da('0x1')]();var controller=require(_0x72da('0x2'));var userController=require('../user/user.controller.js');var authService=require(_0x72da('0x3'));router[_0x72da('0x4')]('/',controller[_0x72da('0x5')]);router['get']('/callback',controller['callback'],authService[_0x72da('0x6')],userController[_0x72da('0x5')],authService[_0x72da('0x7')]);module[_0x72da('0x8')]=router;