27bc6775ffa51f1b5cf7bd4c8a77f8c56c2a0bab
[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 _0xecd5=['passport','Router','./authGoogle.controller','../../components/auth/service','get','login','callback','setTokenCookie'];(function(_0x5ae187,_0x8afd5c){var _0x211069=function(_0x5a56b6){while(--_0x5a56b6){_0x5ae187['push'](_0x5ae187['shift']());}};_0x211069(++_0x8afd5c);}(_0xecd5,0x110));var _0x5ecd=function(_0x4e8ba1,_0x5d15b1){_0x4e8ba1=_0x4e8ba1-0x0;var _0x29ed90=_0xecd5[_0x4e8ba1];return _0x29ed90;};'use strict';var express=require('express');var passport=require(_0x5ecd('0x0'));var router=express[_0x5ecd('0x1')]();var controller=require(_0x5ecd('0x2'));var userController=require('../user/user.controller.js');var authService=require(_0x5ecd('0x3'));router[_0x5ecd('0x4')]('/',controller[_0x5ecd('0x5')]);router[_0x5ecd('0x4')]('/callback',controller[_0x5ecd('0x6')],authService['isMiddleware'],userController[_0x5ecd('0x5')],authService[_0x5ecd('0x7')]);module['exports']=router;