Built motion from commit 10af8726.|2.6.34
[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 _0x1099=['../../components/auth/service','get','login','callback','isMiddleware','setTokenCookie','exports','express','passport','../user/user.controller.js'];(function(_0x33446d,_0x1caf9b){var _0xe42dd4=function(_0x19bf2c){while(--_0x19bf2c){_0x33446d['push'](_0x33446d['shift']());}};_0xe42dd4(++_0x1caf9b);}(_0x1099,0x1b5));var _0x9109=function(_0x14056e,_0x1543db){_0x14056e=_0x14056e-0x0;var _0x3d36f5=_0x1099[_0x14056e];return _0x3d36f5;};'use strict';var express=require(_0x9109('0x0'));var passport=require(_0x9109('0x1'));var router=express['Router']();var controller=require('./authGoogle.controller');var userController=require(_0x9109('0x2'));var authService=require(_0x9109('0x3'));router[_0x9109('0x4')]('/',controller[_0x9109('0x5')]);router[_0x9109('0x4')]('/callback',controller[_0x9109('0x6')],authService[_0x9109('0x7')],userController[_0x9109('0x5')],authService[_0x9109('0x8')]);module[_0x9109('0x9')]=router;