a4861eb9d331b0f5c329b9c3c3dbffc086157121
[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 _0x3189=['callback','isMiddleware','setTokenCookie','express','passport','./authGoogle.controller','../user/user.controller.js','../../components/auth/service','login'];(function(_0x14fa0b,_0x58efd6){var _0x55bb13=function(_0x4f6b78){while(--_0x4f6b78){_0x14fa0b['push'](_0x14fa0b['shift']());}};_0x55bb13(++_0x58efd6);}(_0x3189,0xae));var _0x9318=function(_0x11b2c2,_0x33c0ba){_0x11b2c2=_0x11b2c2-0x0;var _0x23487f=_0x3189[_0x11b2c2];return _0x23487f;};'use strict';var express=require(_0x9318('0x0'));var passport=require(_0x9318('0x1'));var router=express['Router']();var controller=require(_0x9318('0x2'));var userController=require(_0x9318('0x3'));var authService=require(_0x9318('0x4'));router['get']('/',controller[_0x9318('0x5')]);router['get']('/callback',controller[_0x9318('0x6')],authService[_0x9318('0x7')],userController['login'],authService[_0x9318('0x8')]);module['exports']=router;