f8a4db28412d0ae77141bd0743313a7d0ad553e7
[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 _0x330c=['express','passport','Router','./authGoogle.controller','../../components/auth/service','get','login','/callback','callback','exports'];(function(_0x5027b1,_0x1409a5){var _0x4a46cf=function(_0x121920){while(--_0x121920){_0x5027b1['push'](_0x5027b1['shift']());}};_0x4a46cf(++_0x1409a5);}(_0x330c,0x186));var _0xc330=function(_0x5f5a7d,_0x4d0d53){_0x5f5a7d=_0x5f5a7d-0x0;var _0x43efb8=_0x330c[_0x5f5a7d];return _0x43efb8;};'use strict';var express=require(_0xc330('0x0'));var passport=require(_0xc330('0x1'));var router=express[_0xc330('0x2')]();var controller=require(_0xc330('0x3'));var userController=require('../user/user.controller.js');var authService=require(_0xc330('0x4'));router[_0xc330('0x5')]('/',controller[_0xc330('0x6')]);router[_0xc330('0x5')](_0xc330('0x7'),controller[_0xc330('0x8')],authService['isMiddleware'],userController['login'],authService['setTokenCookie']);module[_0xc330('0x9')]=router;