f4a030309af501bcea1ac425e2819932b8983185
[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 _0x34a8=['./authGoogle.controller','../user/user.controller.js','get','login','/callback','callback','exports','express','passport','Router'];(function(_0xb2872,_0xe2c2db){var _0x1ca3f1=function(_0x26c8fa){while(--_0x26c8fa){_0xb2872['push'](_0xb2872['shift']());}};_0x1ca3f1(++_0xe2c2db);}(_0x34a8,0x1ab));var _0x834a=function(_0x5c70ae,_0x1ccbd6){_0x5c70ae=_0x5c70ae-0x0;var _0x2f6022=_0x34a8[_0x5c70ae];return _0x2f6022;};'use strict';var express=require(_0x834a('0x0'));var passport=require(_0x834a('0x1'));var router=express[_0x834a('0x2')]();var controller=require(_0x834a('0x3'));var userController=require(_0x834a('0x4'));var authService=require('../../components/auth/service');router[_0x834a('0x5')]('/',controller[_0x834a('0x6')]);router['get'](_0x834a('0x7'),controller[_0x834a('0x8')],authService['isMiddleware'],userController['login'],authService['setTokenCookie']);module[_0x834a('0x9')]=router;