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 _0xc39c=['passport','Router','./authGoogle.controller','../../components/auth/service','get','login','/callback','callback','isMiddleware','exports'];(function(_0x4450b1,_0x214ace){var _0x399b0b=function(_0x2197df){while(--_0x2197df){_0x4450b1['push'](_0x4450b1['shift']());}};_0x399b0b(++_0x214ace);}(_0xc39c,0xd2));var _0xcc39=function(_0x94d4c,_0x42df71){_0x94d4c=_0x94d4c-0x0;var _0x56dc9a=_0xc39c[_0x94d4c];return _0x56dc9a;};'use strict';var express=require('express');var passport=require(_0xcc39('0x0'));var router=express[_0xcc39('0x1')]();var controller=require(_0xcc39('0x2'));var userController=require('../user/user.controller.js');var authService=require(_0xcc39('0x3'));router[_0xcc39('0x4')]('/',controller[_0xcc39('0x5')]);router['get'](_0xcc39('0x6'),controller[_0xcc39('0x7')],authService[_0xcc39('0x8')],userController[_0xcc39('0x5')],authService['setTokenCookie']);module[_0xcc39('0x9')]=router;