a3bb5e7a4c9e3813cd4b385c96fd2723075f4b3f
[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 _0xc9b7=['get','/callback','callback','isMiddleware','login','setTokenCookie','exports','express','passport','Router','./authGoogle.controller','../../components/auth/service'];(function(_0x59ee6f,_0x450239){var _0x4c0979=function(_0x565e92){while(--_0x565e92){_0x59ee6f['push'](_0x59ee6f['shift']());}};_0x4c0979(++_0x450239);}(_0xc9b7,0x1ab));var _0x7c9b=function(_0x1892f9,_0x2cb4ab){_0x1892f9=_0x1892f9-0x0;var _0x5a765f=_0xc9b7[_0x1892f9];return _0x5a765f;};'use strict';var express=require(_0x7c9b('0x0'));var passport=require(_0x7c9b('0x1'));var router=express[_0x7c9b('0x2')]();var controller=require(_0x7c9b('0x3'));var userController=require('../user/user.controller.js');var authService=require(_0x7c9b('0x4'));router[_0x7c9b('0x5')]('/',controller['login']);router[_0x7c9b('0x5')](_0x7c9b('0x6'),controller[_0x7c9b('0x7')],authService[_0x7c9b('0x8')],userController[_0x7c9b('0x9')],authService[_0x7c9b('0xa')]);module[_0x7c9b('0xb')]=router;