Built motion from commit (unavailable).|2.4.18
[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 _0x8d53=['passport','./authGoogle.controller','../user/user.controller.js','../../components/auth/service','get','login','/callback','callback','setTokenCookie','exports','express'];(function(_0x8beec4,_0x33f4c7){var _0x376f14=function(_0x3c5d9b){while(--_0x3c5d9b){_0x8beec4['push'](_0x8beec4['shift']());}};_0x376f14(++_0x33f4c7);}(_0x8d53,0x1c2));var _0x38d5=function(_0x72e9dd,_0x34b28e){_0x72e9dd=_0x72e9dd-0x0;var _0x11e337=_0x8d53[_0x72e9dd];return _0x11e337;};'use strict';var express=require(_0x38d5('0x0'));var passport=require(_0x38d5('0x1'));var router=express['Router']();var controller=require(_0x38d5('0x2'));var userController=require(_0x38d5('0x3'));var authService=require(_0x38d5('0x4'));router[_0x38d5('0x5')]('/',controller[_0x38d5('0x6')]);router[_0x38d5('0x5')](_0x38d5('0x7'),controller[_0x38d5('0x8')],authService['isMiddleware'],userController[_0x38d5('0x6')],authService[_0x38d5('0x9')]);module[_0x38d5('0xa')]=router;