35b8d1139ea45ca5ab7454dc5867389beb17a2e6
[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 _0x58d9=['callback','login','setTokenCookie','express','passport','./authGoogle.controller','../user/user.controller.js','../../components/auth/service','get','/callback'];(function(_0x1895a9,_0x596414){var _0x1c1a43=function(_0x3eaef4){while(--_0x3eaef4){_0x1895a9['push'](_0x1895a9['shift']());}};_0x1c1a43(++_0x596414);}(_0x58d9,0xcb));var _0x958d=function(_0x224630,_0x3794f0){_0x224630=_0x224630-0x0;var _0x542038=_0x58d9[_0x224630];return _0x542038;};'use strict';var express=require(_0x958d('0x0'));var passport=require(_0x958d('0x1'));var router=express['Router']();var controller=require(_0x958d('0x2'));var userController=require(_0x958d('0x3'));var authService=require(_0x958d('0x4'));router[_0x958d('0x5')]('/',controller['login']);router[_0x958d('0x5')](_0x958d('0x6'),controller[_0x958d('0x7')],authService['isMiddleware'],userController[_0x958d('0x8')],authService[_0x958d('0x9')]);module['exports']=router;