Built motion from commit 00bf23f6.|2.6.16
[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 _0x69e8=['get','/callback','login','setTokenCookie','exports','express','Router','./authGoogle.controller','../../components/auth/service'];(function(_0x31510c,_0x5b445b){var _0xc98150=function(_0x104507){while(--_0x104507){_0x31510c['push'](_0x31510c['shift']());}};_0xc98150(++_0x5b445b);}(_0x69e8,0x137));var _0x869e=function(_0x5219ed,_0x54087e){_0x5219ed=_0x5219ed-0x0;var _0x510b27=_0x69e8[_0x5219ed];return _0x510b27;};'use strict';var express=require(_0x869e('0x0'));var passport=require('passport');var router=express[_0x869e('0x1')]();var controller=require(_0x869e('0x2'));var userController=require('../user/user.controller.js');var authService=require(_0x869e('0x3'));router['get']('/',controller['login']);router[_0x869e('0x4')](_0x869e('0x5'),controller['callback'],authService['isMiddleware'],userController[_0x869e('0x6')],authService[_0x869e('0x7')]);module[_0x869e('0x8')]=router;