Built motion from commit 497d3d92.|2.5.43
[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 _0x10d3=['get','callback','isMiddleware','login','setTokenCookie','exports','passport','Router','./authGoogle.controller','../../components/auth/service'];(function(_0x2bbc5e,_0x30951e){var _0x2f1d30=function(_0x2f15c2){while(--_0x2f15c2){_0x2bbc5e['push'](_0x2bbc5e['shift']());}};_0x2f1d30(++_0x30951e);}(_0x10d3,0x7e));var _0x310d=function(_0x5d52ed,_0x575a9e){_0x5d52ed=_0x5d52ed-0x0;var _0x252d5c=_0x10d3[_0x5d52ed];return _0x252d5c;};'use strict';var express=require('express');var passport=require(_0x310d('0x0'));var router=express[_0x310d('0x1')]();var controller=require(_0x310d('0x2'));var userController=require('../user/user.controller.js');var authService=require(_0x310d('0x3'));router[_0x310d('0x4')]('/',controller['login']);router[_0x310d('0x4')]('/callback',controller[_0x310d('0x5')],authService[_0x310d('0x6')],userController[_0x310d('0x7')],authService[_0x310d('0x8')]);module[_0x310d('0x9')]=router;