Built motion from commit (unavailable).|2.5.13
[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 _0x1c4f=['get','/callback','isMiddleware','setTokenCookie','exports','express','passport','Router','../user/user.controller.js','../../components/auth/service','login'];(function(_0x1b2ff7,_0x12a034){var _0x31656a=function(_0x1165a5){while(--_0x1165a5){_0x1b2ff7['push'](_0x1b2ff7['shift']());}};_0x31656a(++_0x12a034);}(_0x1c4f,0x1f4));var _0xf1c4=function(_0x2b72ad,_0x162235){_0x2b72ad=_0x2b72ad-0x0;var _0x1bfee8=_0x1c4f[_0x2b72ad];return _0x1bfee8;};'use strict';var express=require(_0xf1c4('0x0'));var passport=require(_0xf1c4('0x1'));var router=express[_0xf1c4('0x2')]();var controller=require('./authGoogle.controller');var userController=require(_0xf1c4('0x3'));var authService=require(_0xf1c4('0x4'));router['get']('/',controller[_0xf1c4('0x5')]);router[_0xf1c4('0x6')](_0xf1c4('0x7'),controller['callback'],authService[_0xf1c4('0x8')],userController[_0xf1c4('0x5')],authService[_0xf1c4('0x9')]);module[_0xf1c4('0xa')]=router;