Built motion from commit f7863d46.|2.5.41
[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 _0xf03c=['exports','express','passport','Router','../user/user.controller.js','../../components/auth/service','get','/callback','callback','isMiddleware','login','setTokenCookie'];(function(_0xbc2ce3,_0x5d3dea){var _0x1e5f75=function(_0x2860c9){while(--_0x2860c9){_0xbc2ce3['push'](_0xbc2ce3['shift']());}};_0x1e5f75(++_0x5d3dea);}(_0xf03c,0x199));var _0xcf03=function(_0x1edf14,_0x388a0f){_0x1edf14=_0x1edf14-0x0;var _0x59fc05=_0xf03c[_0x1edf14];return _0x59fc05;};'use strict';var express=require(_0xcf03('0x0'));var passport=require(_0xcf03('0x1'));var router=express[_0xcf03('0x2')]();var controller=require('./authGoogle.controller');var userController=require(_0xcf03('0x3'));var authService=require(_0xcf03('0x4'));router[_0xcf03('0x5')]('/',controller['login']);router[_0xcf03('0x5')](_0xcf03('0x6'),controller[_0xcf03('0x7')],authService[_0xcf03('0x8')],userController[_0xcf03('0x9')],authService[_0xcf03('0xa')]);module[_0xcf03('0xb')]=router;