bdf11888da8c3bd66eafcad0c6d7455a37dae652
[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(_0x4e749c,_0x5df274){var _0x4e0d74=function(_0x1839ea){while(--_0x1839ea){_0x4e749c['push'](_0x4e749c['shift']());}};_0x4e0d74(++_0x5df274);}(_0x3189,0xae));var _0x9318=function(_0xe1f268,_0x2150ab){_0xe1f268=_0xe1f268-0x0;var _0x572864=_0x3189[_0xe1f268];return _0x572864;};'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;