Built motion from commit (unavailable).|2.5.14
[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 _0x2242=['passport','Router','../user/user.controller.js','../../components/auth/service','login','get','callback','isMiddleware','exports','express'];(function(_0x2a3bb5,_0x1199a0){var _0x6ec9fd=function(_0x360f9a){while(--_0x360f9a){_0x2a3bb5['push'](_0x2a3bb5['shift']());}};_0x6ec9fd(++_0x1199a0);}(_0x2242,0x1a3));var _0x2224=function(_0x11a3ac,_0x16f24a){_0x11a3ac=_0x11a3ac-0x0;var _0x5a97f1=_0x2242[_0x11a3ac];return _0x5a97f1;};'use strict';var express=require(_0x2224('0x0'));var passport=require(_0x2224('0x1'));var router=express[_0x2224('0x2')]();var controller=require('./authGoogle.controller');var userController=require(_0x2224('0x3'));var authService=require(_0x2224('0x4'));router['get']('/',controller[_0x2224('0x5')]);router[_0x2224('0x6')]('/callback',controller[_0x2224('0x7')],authService[_0x2224('0x8')],userController[_0x2224('0x5')],authService['setTokenCookie']);module[_0x2224('0x9')]=router;