Built motion from commit ddca4d0d.|2.5.47
[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 _0xef29=['isMiddleware','setTokenCookie','express','Router','./authGoogle.controller','../user/user.controller.js','../../components/auth/service','get','/callback','callback'];(function(_0x530258,_0xa4ecc){var _0x486eda=function(_0x208845){while(--_0x208845){_0x530258['push'](_0x530258['shift']());}};_0x486eda(++_0xa4ecc);}(_0xef29,0x188));var _0x9ef2=function(_0x4565bf,_0x5ad9d6){_0x4565bf=_0x4565bf-0x0;var _0x5610ba=_0xef29[_0x4565bf];return _0x5610ba;};'use strict';var express=require(_0x9ef2('0x0'));var passport=require('passport');var router=express[_0x9ef2('0x1')]();var controller=require(_0x9ef2('0x2'));var userController=require(_0x9ef2('0x3'));var authService=require(_0x9ef2('0x4'));router['get']('/',controller['login']);router[_0x9ef2('0x5')](_0x9ef2('0x6'),controller[_0x9ef2('0x7')],authService[_0x9ef2('0x8')],userController['login'],authService[_0x9ef2('0x9')]);module['exports']=router;