Built motion from commit 953226e6.|2.6.32
[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 _0x7c5b=['express','passport','Router','./authGoogle.controller','../user/user.controller.js','../../components/auth/service','get','login','callback','isMiddleware','setTokenCookie'];(function(_0x4be698,_0x4f2da2){var _0x57dd6c=function(_0x2fb3d2){while(--_0x2fb3d2){_0x4be698['push'](_0x4be698['shift']());}};_0x57dd6c(++_0x4f2da2);}(_0x7c5b,0x11e));var _0xb7c5=function(_0x218922,_0xb7bf28){_0x218922=_0x218922-0x0;var _0x430b85=_0x7c5b[_0x218922];return _0x430b85;};'use strict';var express=require(_0xb7c5('0x0'));var passport=require(_0xb7c5('0x1'));var router=express[_0xb7c5('0x2')]();var controller=require(_0xb7c5('0x3'));var userController=require(_0xb7c5('0x4'));var authService=require(_0xb7c5('0x5'));router[_0xb7c5('0x6')]('/',controller[_0xb7c5('0x7')]);router[_0xb7c5('0x6')]('/callback',controller[_0xb7c5('0x8')],authService[_0xb7c5('0x9')],userController[_0xb7c5('0x7')],authService[_0xb7c5('0xa')]);module['exports']=router;