3931c84417503562038ff0c067962c96efddba03
[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 _0x64b0=['passport','Router','../../components/auth/service','get','/callback','isMiddleware','login','exports','express'];(function(_0x5bad83,_0x5c216d){var _0x1bddfd=function(_0x236e94){while(--_0x236e94){_0x5bad83['push'](_0x5bad83['shift']());}};_0x1bddfd(++_0x5c216d);}(_0x64b0,0x74));var _0x064b=function(_0x45f622,_0x21020b){_0x45f622=_0x45f622-0x0;var _0x27bbfb=_0x64b0[_0x45f622];return _0x27bbfb;};'use strict';var express=require(_0x064b('0x0'));var passport=require(_0x064b('0x1'));var router=express[_0x064b('0x2')]();var controller=require('./authGoogle.controller');var userController=require('../user/user.controller.js');var authService=require(_0x064b('0x3'));router[_0x064b('0x4')]('/',controller['login']);router[_0x064b('0x4')](_0x064b('0x5'),controller['callback'],authService[_0x064b('0x6')],userController[_0x064b('0x7')],authService['setTokenCookie']);module[_0x064b('0x8')]=router;