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 _0xbf82=['Router','../user/user.controller.js','../../components/auth/service','get','/callback','callback','isMiddleware','login','setTokenCookie','express'];(function(_0x18197d,_0x233a0d){var _0x2c78e0=function(_0x30a60e){while(--_0x30a60e){_0x18197d['push'](_0x18197d['shift']());}};_0x2c78e0(++_0x233a0d);}(_0xbf82,0x1cb));var _0x2bf8=function(_0x3a76cf,_0x38a63b){_0x3a76cf=_0x3a76cf-0x0;var _0xa91744=_0xbf82[_0x3a76cf];return _0xa91744;};'use strict';var express=require(_0x2bf8('0x0'));var passport=require('passport');var router=express[_0x2bf8('0x1')]();var controller=require('./authGoogle.controller');var userController=require(_0x2bf8('0x2'));var authService=require(_0x2bf8('0x3'));router[_0x2bf8('0x4')]('/',controller['login']);router['get'](_0x2bf8('0x5'),controller[_0x2bf8('0x6')],authService[_0x2bf8('0x7')],userController[_0x2bf8('0x8')],authService[_0x2bf8('0x9')]);module['exports']=router;