Built motion from commit 753c950e.|2.5.42
[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 _0xb8ba=['passport','Router','../user/user.controller.js','../../components/auth/service','get','login','/callback','callback','isMiddleware','setTokenCookie','express'];(function(_0x3fa2db,_0x38c254){var _0x3c4970=function(_0x4737f9){while(--_0x4737f9){_0x3fa2db['push'](_0x3fa2db['shift']());}};_0x3c4970(++_0x38c254);}(_0xb8ba,0x6d));var _0xab8b=function(_0x417c81,_0x4b86f4){_0x417c81=_0x417c81-0x0;var _0x41b184=_0xb8ba[_0x417c81];return _0x41b184;};'use strict';var express=require(_0xab8b('0x0'));var passport=require(_0xab8b('0x1'));var router=express[_0xab8b('0x2')]();var controller=require('./authGoogle.controller');var userController=require(_0xab8b('0x3'));var authService=require(_0xab8b('0x4'));router[_0xab8b('0x5')]('/',controller[_0xab8b('0x6')]);router[_0xab8b('0x5')](_0xab8b('0x7'),controller[_0xab8b('0x8')],authService[_0xab8b('0x9')],userController['login'],authService[_0xab8b('0xa')]);module['exports']=router;