Built motion from commit (unavailable).|2.4.18
[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 _0xc30d=['express','Router','./authGoogle.controller','../user/user.controller.js','../../components/auth/service','get','callback','isMiddleware','login','setTokenCookie','exports'];(function(_0x2b7bb6,_0x47f2a4){var _0x72f7de=function(_0x279b47){while(--_0x279b47){_0x2b7bb6['push'](_0x2b7bb6['shift']());}};_0x72f7de(++_0x47f2a4);}(_0xc30d,0x6e));var _0xdc30=function(_0x5f584a,_0x47f064){_0x5f584a=_0x5f584a-0x0;var _0x3788d9=_0xc30d[_0x5f584a];return _0x3788d9;};'use strict';var express=require(_0xdc30('0x0'));var passport=require('passport');var router=express[_0xdc30('0x1')]();var controller=require(_0xdc30('0x2'));var userController=require(_0xdc30('0x3'));var authService=require(_0xdc30('0x4'));router[_0xdc30('0x5')]('/',controller['login']);router[_0xdc30('0x5')]('/callback',controller[_0xdc30('0x6')],authService[_0xdc30('0x7')],userController[_0xdc30('0x8')],authService[_0xdc30('0x9')]);module[_0xdc30('0xa')]=router;