1642cc90a28c321ccf89bf7baac756ab67ceccfc
[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 _0xb63f=['exports','Router','./authGoogle.controller','../user/user.controller.js','../../components/auth/service','get','login','/callback','callback'];(function(_0x19e35c,_0x29cd1e){var _0x3e1fe8=function(_0x17258b){while(--_0x17258b){_0x19e35c['push'](_0x19e35c['shift']());}};_0x3e1fe8(++_0x29cd1e);}(_0xb63f,0xa3));var _0xfb63=function(_0x12fc8d,_0x19ee33){_0x12fc8d=_0x12fc8d-0x0;var _0x3f9d04=_0xb63f[_0x12fc8d];return _0x3f9d04;};'use strict';var express=require('express');var passport=require('passport');var router=express[_0xfb63('0x0')]();var controller=require(_0xfb63('0x1'));var userController=require(_0xfb63('0x2'));var authService=require(_0xfb63('0x3'));router[_0xfb63('0x4')]('/',controller[_0xfb63('0x5')]);router[_0xfb63('0x4')](_0xfb63('0x6'),controller[_0xfb63('0x7')],authService['isMiddleware'],userController[_0xfb63('0x5')],authService['setTokenCookie']);module[_0xfb63('0x8')]=router;