c397e3bf90af2771bce7517acaba73f8282bf640
[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 _0xb879=['./authGoogle.controller','../user/user.controller.js','../../components/auth/service','login','get','/callback','callback','setTokenCookie','exports','Router'];(function(_0x42cae2,_0x284ef8){var _0x5f256f=function(_0x41abc8){while(--_0x41abc8){_0x42cae2['push'](_0x42cae2['shift']());}};_0x5f256f(++_0x284ef8);}(_0xb879,0x15d));var _0x9b87=function(_0x1694f5,_0x49b7c3){_0x1694f5=_0x1694f5-0x0;var _0x5b4321=_0xb879[_0x1694f5];return _0x5b4321;};'use strict';var express=require('express');var passport=require('passport');var router=express[_0x9b87('0x0')]();var controller=require(_0x9b87('0x1'));var userController=require(_0x9b87('0x2'));var authService=require(_0x9b87('0x3'));router['get']('/',controller[_0x9b87('0x4')]);router[_0x9b87('0x5')](_0x9b87('0x6'),controller[_0x9b87('0x7')],authService['isMiddleware'],userController[_0x9b87('0x4')],authService[_0x9b87('0x8')]);module[_0x9b87('0x9')]=router;