bfb5e2526015aebbcfc8da7efbc9f117c8c19e89
[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 _0xbc8d=['../user/user.controller.js','../../components/auth/service','login','get','/callback','isMiddleware','setTokenCookie','express','Router','./authGoogle.controller'];(function(_0x3f0c5d,_0x1f390a){var _0x172300=function(_0x238f98){while(--_0x238f98){_0x3f0c5d['push'](_0x3f0c5d['shift']());}};_0x172300(++_0x1f390a);}(_0xbc8d,0x15b));var _0xdbc8=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xbc8d[_0x3dd15e];return _0x231fd0;};'use strict';var express=require(_0xdbc8('0x0'));var passport=require('passport');var router=express[_0xdbc8('0x1')]();var controller=require(_0xdbc8('0x2'));var userController=require(_0xdbc8('0x3'));var authService=require(_0xdbc8('0x4'));router['get']('/',controller[_0xdbc8('0x5')]);router[_0xdbc8('0x6')](_0xdbc8('0x7'),controller['callback'],authService[_0xdbc8('0x8')],userController[_0xdbc8('0x5')],authService[_0xdbc8('0x9')]);module['exports']=router;