6b2c71c6179d7bd7a40cc7b1a127809ef8103530
[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 _0x6214=['isMiddleware','setTokenCookie','express','passport','Router','./authGoogle.controller','../user/user.controller.js','../../components/auth/service','login','get','/callback','callback'];(function(_0x1584a1,_0x34371a){var _0x14fb5e=function(_0x2c9ce3){while(--_0x2c9ce3){_0x1584a1['push'](_0x1584a1['shift']());}};_0x14fb5e(++_0x34371a);}(_0x6214,0xda));var _0x4621=function(_0x45bf86,_0x75586e){_0x45bf86=_0x45bf86-0x0;var _0x1f02b7=_0x6214[_0x45bf86];return _0x1f02b7;};'use strict';var express=require(_0x4621('0x0'));var passport=require(_0x4621('0x1'));var router=express[_0x4621('0x2')]();var controller=require(_0x4621('0x3'));var userController=require(_0x4621('0x4'));var authService=require(_0x4621('0x5'));router['get']('/',controller[_0x4621('0x6')]);router[_0x4621('0x7')](_0x4621('0x8'),controller[_0x4621('0x9')],authService[_0x4621('0xa')],userController[_0x4621('0x6')],authService[_0x4621('0xb')]);module['exports']=router;