Built motion from commit (unavailable).|2.5.11
[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 _0x6953=['exports','express','passport','../../components/auth/service','login','get','/callback','isMiddleware','setTokenCookie'];(function(_0x337cf7,_0x1e7a41){var _0x175ae5=function(_0x457c9f){while(--_0x457c9f){_0x337cf7['push'](_0x337cf7['shift']());}};_0x175ae5(++_0x1e7a41);}(_0x6953,0x91));var _0x3695=function(_0x2f2526,_0x2d32cd){_0x2f2526=_0x2f2526-0x0;var _0x160820=_0x6953[_0x2f2526];return _0x160820;};'use strict';var express=require(_0x3695('0x0'));var passport=require(_0x3695('0x1'));var router=express['Router']();var controller=require('./authGoogle.controller');var userController=require('../user/user.controller.js');var authService=require(_0x3695('0x2'));router['get']('/',controller[_0x3695('0x3')]);router[_0x3695('0x4')](_0x3695('0x5'),controller['callback'],authService[_0x3695('0x6')],userController['login'],authService[_0x3695('0x7')]);module[_0x3695('0x8')]=router;