54904850d4ca77fe4d8e61cdbed272441f22f41f
[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 _0x842a=['../../components/auth/service','get','login','callback','setTokenCookie','exports','Router','./authGoogle.controller'];(function(_0x2143c0,_0x306159){var _0x2a1cc0=function(_0x19be40){while(--_0x19be40){_0x2143c0['push'](_0x2143c0['shift']());}};_0x2a1cc0(++_0x306159);}(_0x842a,0x166));var _0xa842=function(_0x5ef55a,_0x2a03b1){_0x5ef55a=_0x5ef55a-0x0;var _0x20ae40=_0x842a[_0x5ef55a];return _0x20ae40;};'use strict';var express=require('express');var passport=require('passport');var router=express[_0xa842('0x0')]();var controller=require(_0xa842('0x1'));var userController=require('../user/user.controller.js');var authService=require(_0xa842('0x2'));router[_0xa842('0x3')]('/',controller[_0xa842('0x4')]);router[_0xa842('0x3')]('/callback',controller[_0xa842('0x5')],authService['isMiddleware'],userController[_0xa842('0x4')],authService[_0xa842('0x6')]);module[_0xa842('0x7')]=router;