7253ea8865275765ea7eb74189b9c109751590a5
[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 _0xfb4c=['./authGoogle.controller','../user/user.controller.js','../../components/auth/service','get','login','isMiddleware','exports','express','passport','Router'];(function(_0xa4f435,_0x5be8a0){var _0x3b1cb6=function(_0x3eef8e){while(--_0x3eef8e){_0xa4f435['push'](_0xa4f435['shift']());}};_0x3b1cb6(++_0x5be8a0);}(_0xfb4c,0xc5));var _0xcfb4=function(_0x22376f,_0x1d3e6c){_0x22376f=_0x22376f-0x0;var _0x45c934=_0xfb4c[_0x22376f];return _0x45c934;};'use strict';var express=require(_0xcfb4('0x0'));var passport=require(_0xcfb4('0x1'));var router=express[_0xcfb4('0x2')]();var controller=require(_0xcfb4('0x3'));var userController=require(_0xcfb4('0x4'));var authService=require(_0xcfb4('0x5'));router[_0xcfb4('0x6')]('/',controller[_0xcfb4('0x7')]);router[_0xcfb4('0x6')]('/callback',controller['callback'],authService[_0xcfb4('0x8')],userController['login'],authService['setTokenCookie']);module[_0xcfb4('0x9')]=router;