Built motion from commit f67b3b02.|2.6.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 _0x1f10=['/callback','callback','isMiddleware','setTokenCookie','exports','express','passport','./authGoogle.controller','../user/user.controller.js','login'];(function(_0x2aa0e7,_0x4e5145){var _0x1472c0=function(_0x4deaeb){while(--_0x4deaeb){_0x2aa0e7['push'](_0x2aa0e7['shift']());}};_0x1472c0(++_0x4e5145);}(_0x1f10,0x69));var _0x01f1=function(_0x1cfb84,_0x17ceb4){_0x1cfb84=_0x1cfb84-0x0;var _0xdee636=_0x1f10[_0x1cfb84];return _0xdee636;};'use strict';var express=require(_0x01f1('0x0'));var passport=require(_0x01f1('0x1'));var router=express['Router']();var controller=require(_0x01f1('0x2'));var userController=require(_0x01f1('0x3'));var authService=require('../../components/auth/service');router['get']('/',controller[_0x01f1('0x4')]);router['get'](_0x01f1('0x5'),controller[_0x01f1('0x6')],authService[_0x01f1('0x7')],userController['login'],authService[_0x01f1('0x8')]);module[_0x01f1('0x9')]=router;