762c2e463149c649b19adee8e035e44fa85526a5
[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 _0xad63=['express','passport','Router','../user/user.controller.js','login','/callback','isMiddleware','setTokenCookie'];(function(_0xa8cdc9,_0x268626){var _0x123794=function(_0x1f1b37){while(--_0x1f1b37){_0xa8cdc9['push'](_0xa8cdc9['shift']());}};_0x123794(++_0x268626);}(_0xad63,0xf8));var _0x3ad6=function(_0x5999c3,_0x5c547a){_0x5999c3=_0x5999c3-0x0;var _0x2d8178=_0xad63[_0x5999c3];return _0x2d8178;};'use strict';var express=require(_0x3ad6('0x0'));var passport=require(_0x3ad6('0x1'));var router=express[_0x3ad6('0x2')]();var controller=require('./authGoogle.controller');var userController=require(_0x3ad6('0x3'));var authService=require('../../components/auth/service');router['get']('/',controller[_0x3ad6('0x4')]);router['get'](_0x3ad6('0x5'),controller['callback'],authService[_0x3ad6('0x6')],userController[_0x3ad6('0x4')],authService[_0x3ad6('0x7')]);module['exports']=router;