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 _0x5697=['Router','./authGoogle.controller','../user/user.controller.js','callback','exports','express'];(function(_0x35885a,_0x42fed7){var _0xe86249=function(_0x98edb3){while(--_0x98edb3){_0x35885a['push'](_0x35885a['shift']());}};_0xe86249(++_0x42fed7);}(_0x5697,0x1b5));var _0x7569=function(_0xf80b3,_0x25d5f3){_0xf80b3=_0xf80b3-0x0;var _0x10c489=_0x5697[_0xf80b3];return _0x10c489;};'use strict';var express=require(_0x7569('0x0'));var passport=require('passport');var router=express[_0x7569('0x1')]();var controller=require(_0x7569('0x2'));var userController=require(_0x7569('0x3'));var authService=require('../../components/auth/service');router['get']('/',controller['login']);router['get']('/callback',controller[_0x7569('0x4')],authService['isMiddleware'],userController['login'],authService['setTokenCookie']);module[_0x7569('0x5')]=router;