eb435d1de772b07f60277007c8be8a78cd5e6bf2
[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 _0x524a=['get','login','callback','isMiddleware','exports','express','passport','Router','./authGoogle.controller','../../components/auth/service'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0x524a,0xf5));var _0xa524=function(_0x40cf36,_0x2e6ab1){_0x40cf36=_0x40cf36-0x0;var _0x58b7a4=_0x524a[_0x40cf36];return _0x58b7a4;};'use strict';var express=require(_0xa524('0x0'));var passport=require(_0xa524('0x1'));var router=express[_0xa524('0x2')]();var controller=require(_0xa524('0x3'));var userController=require('../user/user.controller.js');var authService=require(_0xa524('0x4'));router[_0xa524('0x5')]('/',controller[_0xa524('0x6')]);router['get']('/callback',controller[_0xa524('0x7')],authService[_0xa524('0x8')],userController[_0xa524('0x6')],authService['setTokenCookie']);module[_0xa524('0x9')]=router;