a0d77bd724aa82c34dbcc698744da6cf3c7d022e
[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 _0x44d4=['setTokenCookie','exports','express','../user/user.controller.js','../../components/auth/service','/callback','callback','isMiddleware','login'];(function(_0x282e1f,_0x182046){var _0x50e30f=function(_0x54b3cc){while(--_0x54b3cc){_0x282e1f['push'](_0x282e1f['shift']());}};_0x50e30f(++_0x182046);}(_0x44d4,0x161));var _0x444d=function(_0x3abb36,_0x20012d){_0x3abb36=_0x3abb36-0x0;var _0x53be8b=_0x44d4[_0x3abb36];return _0x53be8b;};'use strict';var express=require(_0x444d('0x0'));var passport=require('passport');var router=express['Router']();var controller=require('./authGoogle.controller');var userController=require(_0x444d('0x1'));var authService=require(_0x444d('0x2'));router['get']('/',controller['login']);router['get'](_0x444d('0x3'),controller[_0x444d('0x4')],authService[_0x444d('0x5')],userController[_0x444d('0x6')],authService[_0x444d('0x7')]);module[_0x444d('0x8')]=router;