d4f2dc5ef7f142ba96d763af92d8613712ff9f4e
[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 _0x36b9=['express','Router','./authGoogle.controller','../user/user.controller.js','../../components/auth/service','get','/callback','callback','isMiddleware','login','setTokenCookie'];(function(_0x5e0e83,_0x49f7b3){var _0x52fa4d=function(_0x43c04c){while(--_0x43c04c){_0x5e0e83['push'](_0x5e0e83['shift']());}};_0x52fa4d(++_0x49f7b3);}(_0x36b9,0xe7));var _0x936b=function(_0x39f1cf,_0x4d4eb3){_0x39f1cf=_0x39f1cf-0x0;var _0x45114c=_0x36b9[_0x39f1cf];return _0x45114c;};'use strict';var express=require(_0x936b('0x0'));var passport=require('passport');var router=express[_0x936b('0x1')]();var controller=require(_0x936b('0x2'));var userController=require(_0x936b('0x3'));var authService=require(_0x936b('0x4'));router[_0x936b('0x5')]('/',controller['login']);router[_0x936b('0x5')](_0x936b('0x6'),controller[_0x936b('0x7')],authService[_0x936b('0x8')],userController[_0x936b('0x9')],authService[_0x936b('0xa')]);module['exports']=router;