Built motion from commit 1fa89557.|2.6.10
[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 _0x9788=['../../components/auth/service','get','login','callback','isMiddleware','setTokenCookie','exports','express','passport','Router','../user/user.controller.js'];(function(_0x3d05f6,_0x12a7b9){var _0x18a711=function(_0x5d0b0e){while(--_0x5d0b0e){_0x3d05f6['push'](_0x3d05f6['shift']());}};_0x18a711(++_0x12a7b9);}(_0x9788,0xf9));var _0x8978=function(_0x584cbd,_0x5084ba){_0x584cbd=_0x584cbd-0x0;var _0x3957c4=_0x9788[_0x584cbd];return _0x3957c4;};'use strict';var express=require(_0x8978('0x0'));var passport=require(_0x8978('0x1'));var router=express[_0x8978('0x2')]();var controller=require('./authGoogle.controller');var userController=require(_0x8978('0x3'));var authService=require(_0x8978('0x4'));router[_0x8978('0x5')]('/',controller[_0x8978('0x6')]);router[_0x8978('0x5')]('/callback',controller[_0x8978('0x7')],authService[_0x8978('0x8')],userController[_0x8978('0x6')],authService[_0x8978('0x9')]);module[_0x8978('0xa')]=router;