33dc23eff118387f8cc7aba3416dbb386d26a9d3
[motion2.git] / server / api / authGoogle / index.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0xd2bb=['callback','isMiddleware','setTokenCookie','exports','passport','./authGoogle.controller','../user/user.controller.js','../../components/auth/service','get','login'];(function(_0x18fbfd,_0x1f0d8a){var _0xc546bc=function(_0xff0b28){while(--_0xff0b28){_0x18fbfd['push'](_0x18fbfd['shift']());}};_0xc546bc(++_0x1f0d8a);}(_0xd2bb,0x9a));var _0xbd2b=function(_0x54362f,_0x58cef5){_0x54362f=_0x54362f-0x0;var _0x58d5f6=_0xd2bb[_0x54362f];return _0x58d5f6;};'use strict';var express=require('express');var passport=require(_0xbd2b('0x0'));var router=express['Router']();var controller=require(_0xbd2b('0x1'));var userController=require(_0xbd2b('0x2'));var authService=require(_0xbd2b('0x3'));router[_0xbd2b('0x4')]('/',controller[_0xbd2b('0x5')]);router[_0xbd2b('0x4')]('/callback',controller[_0xbd2b('0x6')],authService[_0xbd2b('0x7')],userController[_0xbd2b('0x5')],authService[_0xbd2b('0x8')]);module[_0xbd2b('0x9')]=router;