Built motion from commit 3d3e98f2.|2.6.29
[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 _0x9362=['express','passport','Router','./authGoogle.controller','../user/user.controller.js','get','login','/callback','callback','isMiddleware','setTokenCookie','exports'];(function(_0xd8bc86,_0x2d70de){var _0x139174=function(_0x48fccd){while(--_0x48fccd){_0xd8bc86['push'](_0xd8bc86['shift']());}};_0x139174(++_0x2d70de);}(_0x9362,0xcc));var _0x2936=function(_0x20a584,_0xe384a5){_0x20a584=_0x20a584-0x0;var _0x4b41a8=_0x9362[_0x20a584];return _0x4b41a8;};'use strict';var express=require(_0x2936('0x0'));var passport=require(_0x2936('0x1'));var router=express[_0x2936('0x2')]();var controller=require(_0x2936('0x3'));var userController=require(_0x2936('0x4'));var authService=require('../../components/auth/service');router[_0x2936('0x5')]('/',controller[_0x2936('0x6')]);router[_0x2936('0x5')](_0x2936('0x7'),controller[_0x2936('0x8')],authService[_0x2936('0x9')],userController[_0x2936('0x6')],authService[_0x2936('0xa')]);module[_0x2936('0xb')]=router;