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 _0x06a8=['callback','passport','Router','./authGoogle.controller','../user/user.controller.js','../../components/auth/service','get','login','/callback'];(function(_0x3d0e15,_0xdb46ae){var _0x4723bc=function(_0x5a02d4){while(--_0x5a02d4){_0x3d0e15['push'](_0x3d0e15['shift']());}};_0x4723bc(++_0xdb46ae);}(_0x06a8,0x157));var _0x806a=function(_0x40a045,_0x516f0e){_0x40a045=_0x40a045-0x0;var _0x1a687c=_0x06a8[_0x40a045];return _0x1a687c;};'use strict';var express=require('express');var passport=require(_0x806a('0x0'));var router=express[_0x806a('0x1')]();var controller=require(_0x806a('0x2'));var userController=require(_0x806a('0x3'));var authService=require(_0x806a('0x4'));router[_0x806a('0x5')]('/',controller[_0x806a('0x6')]);router[_0x806a('0x5')](_0x806a('0x7'),controller[_0x806a('0x8')],authService['isMiddleware'],userController[_0x806a('0x6')],authService['setTokenCookie']);module['exports']=router;