Built motion from commit da617fac.|2.6.6
[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 _0x6412=['get','login','/callback','callback','isMiddleware','express','passport','Router','./authGoogle.controller','../user/user.controller.js','../../components/auth/service'];(function(_0x4e3780,_0x5c62fb){var _0x1d8532=function(_0x1010ab){while(--_0x1010ab){_0x4e3780['push'](_0x4e3780['shift']());}};_0x1d8532(++_0x5c62fb);}(_0x6412,0x1c8));var _0x2641=function(_0x40ae87,_0x29c4c6){_0x40ae87=_0x40ae87-0x0;var _0x49a0bb=_0x6412[_0x40ae87];return _0x49a0bb;};'use strict';var express=require(_0x2641('0x0'));var passport=require(_0x2641('0x1'));var router=express[_0x2641('0x2')]();var controller=require(_0x2641('0x3'));var userController=require(_0x2641('0x4'));var authService=require(_0x2641('0x5'));router[_0x2641('0x6')]('/',controller[_0x2641('0x7')]);router['get'](_0x2641('0x8'),controller[_0x2641('0x9')],authService[_0x2641('0xa')],userController[_0x2641('0x7')],authService['setTokenCookie']);module['exports']=router;