d49c6922e5622f133f6b1d7b7b8b9431eec2d623
[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 _0x4532=['isMiddleware','setTokenCookie','passport','Router','../../components/auth/service','get','login','/callback'];(function(_0x40bc32,_0x428c83){var _0x2351e3=function(_0x3ba9f0){while(--_0x3ba9f0){_0x40bc32['push'](_0x40bc32['shift']());}};_0x2351e3(++_0x428c83);}(_0x4532,0x142));var _0x2453=function(_0x23a9c7,_0x22a546){_0x23a9c7=_0x23a9c7-0x0;var _0x56a791=_0x4532[_0x23a9c7];return _0x56a791;};'use strict';var express=require('express');var passport=require(_0x2453('0x0'));var router=express[_0x2453('0x1')]();var controller=require('./authGoogle.controller');var userController=require('../user/user.controller.js');var authService=require(_0x2453('0x2'));router[_0x2453('0x3')]('/',controller[_0x2453('0x4')]);router[_0x2453('0x3')](_0x2453('0x5'),controller['callback'],authService[_0x2453('0x6')],userController[_0x2453('0x4')],authService[_0x2453('0x7')]);module['exports']=router;