033ae0775c37f48afd74cb5f08c9937a270cbf22
[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 _0x82e0=['exports','express','passport','Router','../user/user.controller.js','../../components/auth/service','get','login','callback','isMiddleware'];(function(_0x482a1c,_0xcecccf){var _0x2dab39=function(_0x314535){while(--_0x314535){_0x482a1c['push'](_0x482a1c['shift']());}};_0x2dab39(++_0xcecccf);}(_0x82e0,0xb5));var _0x082e=function(_0xfadccd,_0x290136){_0xfadccd=_0xfadccd-0x0;var _0x482ac4=_0x82e0[_0xfadccd];return _0x482ac4;};'use strict';var express=require(_0x082e('0x0'));var passport=require(_0x082e('0x1'));var router=express[_0x082e('0x2')]();var controller=require('./authGoogle.controller');var userController=require(_0x082e('0x3'));var authService=require(_0x082e('0x4'));router[_0x082e('0x5')]('/',controller[_0x082e('0x6')]);router[_0x082e('0x5')]('/callback',controller[_0x082e('0x7')],authService[_0x082e('0x8')],userController[_0x082e('0x6')],authService['setTokenCookie']);module[_0x082e('0x9')]=router;