3469b2360b091ab5ddde17bb5e688d2d744998a7
[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 _0xf3dc=['../../components/auth/service','get','login','/callback','express','passport','Router','../user/user.controller.js'];(function(_0x4f3b2d,_0x3bbf46){var _0x3dddfa=function(_0xb8179a){while(--_0xb8179a){_0x4f3b2d['push'](_0x4f3b2d['shift']());}};_0x3dddfa(++_0x3bbf46);}(_0xf3dc,0x9c));var _0xcf3d=function(_0x18da77,_0x3976ac){_0x18da77=_0x18da77-0x0;var _0x25c82b=_0xf3dc[_0x18da77];return _0x25c82b;};'use strict';var express=require(_0xcf3d('0x0'));var passport=require(_0xcf3d('0x1'));var router=express[_0xcf3d('0x2')]();var controller=require('./authGoogle.controller');var userController=require(_0xcf3d('0x3'));var authService=require(_0xcf3d('0x4'));router[_0xcf3d('0x5')]('/',controller[_0xcf3d('0x6')]);router[_0xcf3d('0x5')](_0xcf3d('0x7'),controller['callback'],authService['isMiddleware'],userController['login'],authService['setTokenCookie']);module['exports']=router;