f97a46a518969615f32c0a1789ba27dfa37a13a9
[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 _0x4fe0=['express','passport','./authGoogle.controller','../user/user.controller.js','get','/callback','callback','isMiddleware','login','setTokenCookie','exports'];(function(_0x5e0dca,_0x33f5ec){var _0x30dec7=function(_0x1f9b75){while(--_0x1f9b75){_0x5e0dca['push'](_0x5e0dca['shift']());}};_0x30dec7(++_0x33f5ec);}(_0x4fe0,0x1d9));var _0x04fe=function(_0x3233f2,_0x56f729){_0x3233f2=_0x3233f2-0x0;var _0xe27a5d=_0x4fe0[_0x3233f2];return _0xe27a5d;};'use strict';var express=require(_0x04fe('0x0'));var passport=require(_0x04fe('0x1'));var router=express['Router']();var controller=require(_0x04fe('0x2'));var userController=require(_0x04fe('0x3'));var authService=require('../../components/auth/service');router[_0x04fe('0x4')]('/',controller['login']);router[_0x04fe('0x4')](_0x04fe('0x5'),controller[_0x04fe('0x6')],authService[_0x04fe('0x7')],userController[_0x04fe('0x8')],authService[_0x04fe('0x9')]);module[_0x04fe('0xa')]=router;