Built motion from commit (unavailable).|2.5.31
[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 _0xfc1e=['../../components/auth/service','get','login','/callback','callback','setTokenCookie','exports','./authGoogle.controller','../user/user.controller.js'];(function(_0x410318,_0x4d5043){var _0x170b55=function(_0x4256be){while(--_0x4256be){_0x410318['push'](_0x410318['shift']());}};_0x170b55(++_0x4d5043);}(_0xfc1e,0x1c9));var _0xefc1=function(_0x54d49e,_0x5d9911){_0x54d49e=_0x54d49e-0x0;var _0x4af0f1=_0xfc1e[_0x54d49e];return _0x4af0f1;};'use strict';var express=require('express');var passport=require('passport');var router=express['Router']();var controller=require(_0xefc1('0x0'));var userController=require(_0xefc1('0x1'));var authService=require(_0xefc1('0x2'));router[_0xefc1('0x3')]('/',controller[_0xefc1('0x4')]);router['get'](_0xefc1('0x5'),controller[_0xefc1('0x6')],authService['isMiddleware'],userController['login'],authService[_0xefc1('0x7')]);module[_0xefc1('0x8')]=router;