Built motion from commit 19a84241.|2.5.34
[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 _0x98ca=['Router','./authGoogle.controller','../user/user.controller.js','get','/callback','callback','isMiddleware','login','setTokenCookie','exports','express','passport'];(function(_0x1be26d,_0x228743){var _0x5eb76a=function(_0x3fe1b3){while(--_0x3fe1b3){_0x1be26d['push'](_0x1be26d['shift']());}};_0x5eb76a(++_0x228743);}(_0x98ca,0x136));var _0xa98c=function(_0x2b1a30,_0x36a78e){_0x2b1a30=_0x2b1a30-0x0;var _0x5b9b53=_0x98ca[_0x2b1a30];return _0x5b9b53;};'use strict';var express=require(_0xa98c('0x0'));var passport=require(_0xa98c('0x1'));var router=express[_0xa98c('0x2')]();var controller=require(_0xa98c('0x3'));var userController=require(_0xa98c('0x4'));var authService=require('../../components/auth/service');router[_0xa98c('0x5')]('/',controller['login']);router[_0xa98c('0x5')](_0xa98c('0x6'),controller[_0xa98c('0x7')],authService[_0xa98c('0x8')],userController[_0xa98c('0x9')],authService[_0xa98c('0xa')]);module[_0xa98c('0xb')]=router;