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 _0xd4bd=['setTokenCookie','express','passport','Router','./authGoogle.controller','../user/user.controller.js','get','login','/callback','callback'];(function(_0x4daabb,_0x33435d){var _0x1ed50e=function(_0x3bef86){while(--_0x3bef86){_0x4daabb['push'](_0x4daabb['shift']());}};_0x1ed50e(++_0x33435d);}(_0xd4bd,0x15f));var _0xdd4b=function(_0x5ac5c8,_0x473065){_0x5ac5c8=_0x5ac5c8-0x0;var _0x4229c7=_0xd4bd[_0x5ac5c8];return _0x4229c7;};'use strict';var express=require(_0xdd4b('0x0'));var passport=require(_0xdd4b('0x1'));var router=express[_0xdd4b('0x2')]();var controller=require(_0xdd4b('0x3'));var userController=require(_0xdd4b('0x4'));var authService=require('../../components/auth/service');router[_0xdd4b('0x5')]('/',controller[_0xdd4b('0x6')]);router[_0xdd4b('0x5')](_0xdd4b('0x7'),controller[_0xdd4b('0x8')],authService['isMiddleware'],userController['login'],authService[_0xdd4b('0x9')]);module['exports']=router;