6967ecf670cbb8b98d85bda0446dfc254147e2ac
[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 _0x9d3f=['passport','Router','../../components/auth/service','get','login','/callback','isMiddleware','exports','express'];(function(_0xc78bf7,_0x584020){var _0xfce0da=function(_0x4aebc2){while(--_0x4aebc2){_0xc78bf7['push'](_0xc78bf7['shift']());}};_0xfce0da(++_0x584020);}(_0x9d3f,0x1b8));var _0xf9d3=function(_0x2be1e0,_0x2ec1d3){_0x2be1e0=_0x2be1e0-0x0;var _0x57485b=_0x9d3f[_0x2be1e0];return _0x57485b;};'use strict';var express=require(_0xf9d3('0x0'));var passport=require(_0xf9d3('0x1'));var router=express[_0xf9d3('0x2')]();var controller=require('./authGoogle.controller');var userController=require('../user/user.controller.js');var authService=require(_0xf9d3('0x3'));router[_0xf9d3('0x4')]('/',controller[_0xf9d3('0x5')]);router['get'](_0xf9d3('0x6'),controller['callback'],authService[_0xf9d3('0x7')],userController['login'],authService['setTokenCookie']);module[_0xf9d3('0x8')]=router;