3d7d9da81a91a19368ade04930e79ea05f56ea7d
[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 _0xbd3b=['exports','express','passport','Router','../user/user.controller.js','../../components/auth/service','get','login','/callback','callback'];(function(_0x4bd33b,_0x2b7fbe){var _0x5e2048=function(_0x27c634){while(--_0x27c634){_0x4bd33b['push'](_0x4bd33b['shift']());}};_0x5e2048(++_0x2b7fbe);}(_0xbd3b,0x1c3));var _0xbbd3=function(_0x3ae1c8,_0x4f1c21){_0x3ae1c8=_0x3ae1c8-0x0;var _0x5a2621=_0xbd3b[_0x3ae1c8];return _0x5a2621;};'use strict';var express=require(_0xbbd3('0x0'));var passport=require(_0xbbd3('0x1'));var router=express[_0xbbd3('0x2')]();var controller=require('./authGoogle.controller');var userController=require(_0xbbd3('0x3'));var authService=require(_0xbbd3('0x4'));router[_0xbbd3('0x5')]('/',controller[_0xbbd3('0x6')]);router['get'](_0xbbd3('0x7'),controller[_0xbbd3('0x8')],authService['isMiddleware'],userController[_0xbbd3('0x6')],authService['setTokenCookie']);module[_0xbbd3('0x9')]=router;