ea26d721fee98f8279a5e687cdc550d826894ba7
[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 _0xffcc=['setTokenCookie','exports','passport','./authGoogle.controller','../user/user.controller.js','get','callback','login'];(function(_0x3110b8,_0x1e54b1){var _0xd41d04=function(_0x1eb317){while(--_0x1eb317){_0x3110b8['push'](_0x3110b8['shift']());}};_0xd41d04(++_0x1e54b1);}(_0xffcc,0x112));var _0xcffc=function(_0x210e2b,_0x377c45){_0x210e2b=_0x210e2b-0x0;var _0x5e1dbc=_0xffcc[_0x210e2b];return _0x5e1dbc;};'use strict';var express=require('express');var passport=require(_0xcffc('0x0'));var router=express['Router']();var controller=require(_0xcffc('0x1'));var userController=require(_0xcffc('0x2'));var authService=require('../../components/auth/service');router['get']('/',controller['login']);router[_0xcffc('0x3')]('/callback',controller[_0xcffc('0x4')],authService['isMiddleware'],userController[_0xcffc('0x5')],authService[_0xcffc('0x6')]);module[_0xcffc('0x7')]=router;