Built motion from commit (unavailable).|2.5.1
[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 _0xbdeb=['./authGoogle.controller','../../components/auth/service','get','login','isMiddleware','setTokenCookie','exports','passport'];(function(_0x4f2c3a,_0x6bde90){var _0x17d91c=function(_0xaaf630){while(--_0xaaf630){_0x4f2c3a['push'](_0x4f2c3a['shift']());}};_0x17d91c(++_0x6bde90);}(_0xbdeb,0x6f));var _0xbbde=function(_0x3728bd,_0x405db5){_0x3728bd=_0x3728bd-0x0;var _0xdf5cb5=_0xbdeb[_0x3728bd];return _0xdf5cb5;};'use strict';var express=require('express');var passport=require(_0xbbde('0x0'));var router=express['Router']();var controller=require(_0xbbde('0x1'));var userController=require('../user/user.controller.js');var authService=require(_0xbbde('0x2'));router[_0xbbde('0x3')]('/',controller[_0xbbde('0x4')]);router[_0xbbde('0x3')]('/callback',controller['callback'],authService[_0xbbde('0x5')],userController[_0xbbde('0x4')],authService[_0xbbde('0x6')]);module[_0xbbde('0x7')]=router;