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 _0x7ee1=['exports','express','Router','./authGoogle.controller','../user/user.controller.js','../../components/auth/service','get','isMiddleware','login','setTokenCookie'];(function(_0x4007ce,_0x338eb1){var _0x464b3e=function(_0x345281){while(--_0x345281){_0x4007ce['push'](_0x4007ce['shift']());}};_0x464b3e(++_0x338eb1);}(_0x7ee1,0xab));var _0x17ee=function(_0x479e85,_0x6cf248){_0x479e85=_0x479e85-0x0;var _0x1444a0=_0x7ee1[_0x479e85];return _0x1444a0;};'use strict';var express=require(_0x17ee('0x0'));var passport=require('passport');var router=express[_0x17ee('0x1')]();var controller=require(_0x17ee('0x2'));var userController=require(_0x17ee('0x3'));var authService=require(_0x17ee('0x4'));router[_0x17ee('0x5')]('/',controller['login']);router[_0x17ee('0x5')]('/callback',controller['callback'],authService[_0x17ee('0x6')],userController[_0x17ee('0x7')],authService[_0x17ee('0x8')]);module[_0x17ee('0x9')]=router;