ac7b7e415066506c2d447ac8eee9f9c126bfc7c2
[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 _0x4d2a=['express','passport','Router','./authGoogle.controller','../user/user.controller.js','login','/callback','callback','isMiddleware','exports'];(function(_0x1ab1da,_0x2d2af4){var _0x47f818=function(_0x28eb7d){while(--_0x28eb7d){_0x1ab1da['push'](_0x1ab1da['shift']());}};_0x47f818(++_0x2d2af4);}(_0x4d2a,0x1cc));var _0xa4d2=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x4d2a[_0x3dd15e];return _0x231fd0;};'use strict';var express=require(_0xa4d2('0x0'));var passport=require(_0xa4d2('0x1'));var router=express[_0xa4d2('0x2')]();var controller=require(_0xa4d2('0x3'));var userController=require(_0xa4d2('0x4'));var authService=require('../../components/auth/service');router['get']('/',controller[_0xa4d2('0x5')]);router['get'](_0xa4d2('0x6'),controller[_0xa4d2('0x7')],authService[_0xa4d2('0x8')],userController['login'],authService['setTokenCookie']);module[_0xa4d2('0x9')]=router;