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 _0x01fe=['get','login','/callback','isMiddleware','setTokenCookie','exports','express','Router','./authGoogle.controller'];(function(_0x58319a,_0x145060){var _0x4cf654=function(_0x314238){while(--_0x314238){_0x58319a['push'](_0x58319a['shift']());}};_0x4cf654(++_0x145060);}(_0x01fe,0x102));var _0xe01f=function(_0xaff1c8,_0x28bf3f){_0xaff1c8=_0xaff1c8-0x0;var _0xe14f7f=_0x01fe[_0xaff1c8];return _0xe14f7f;};'use strict';var express=require(_0xe01f('0x0'));var passport=require('passport');var router=express[_0xe01f('0x1')]();var controller=require(_0xe01f('0x2'));var userController=require('../user/user.controller.js');var authService=require('../../components/auth/service');router[_0xe01f('0x3')]('/',controller[_0xe01f('0x4')]);router[_0xe01f('0x3')](_0xe01f('0x5'),controller['callback'],authService[_0xe01f('0x6')],userController['login'],authService[_0xe01f('0x7')]);module[_0xe01f('0x8')]=router;