Built motion from commit 0c5f406c.|2.6.29
[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 _0x785d=['../../components/auth/service','login','get','callback','isMiddleware','exports','express','passport','Router','./authGoogle.controller','../user/user.controller.js'];(function(_0x224b56,_0x2415f0){var _0xe0a2d3=function(_0x24c6af){while(--_0x24c6af){_0x224b56['push'](_0x224b56['shift']());}};_0xe0a2d3(++_0x2415f0);}(_0x785d,0x1b3));var _0xd785=function(_0x26b841,_0x36a2bd){_0x26b841=_0x26b841-0x0;var _0x100c93=_0x785d[_0x26b841];return _0x100c93;};'use strict';var express=require(_0xd785('0x0'));var passport=require(_0xd785('0x1'));var router=express[_0xd785('0x2')]();var controller=require(_0xd785('0x3'));var userController=require(_0xd785('0x4'));var authService=require(_0xd785('0x5'));router['get']('/',controller[_0xd785('0x6')]);router[_0xd785('0x7')]('/callback',controller[_0xd785('0x8')],authService[_0xd785('0x9')],userController['login'],authService['setTokenCookie']);module[_0xd785('0xa')]=router;