Built motion from commit 14588770.|2.5.38
[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 _0xadf9=['express','Router','./authGoogle.controller','../user/user.controller.js','../../components/auth/service','login','get','/callback','callback','exports'];(function(_0x12023a,_0x11873d){var _0x3f89a6=function(_0x19ca08){while(--_0x19ca08){_0x12023a['push'](_0x12023a['shift']());}};_0x3f89a6(++_0x11873d);}(_0xadf9,0x154));var _0x9adf=function(_0x5c6244,_0x112ab8){_0x5c6244=_0x5c6244-0x0;var _0x5800ce=_0xadf9[_0x5c6244];return _0x5800ce;};'use strict';var express=require(_0x9adf('0x0'));var passport=require('passport');var router=express[_0x9adf('0x1')]();var controller=require(_0x9adf('0x2'));var userController=require(_0x9adf('0x3'));var authService=require(_0x9adf('0x4'));router['get']('/',controller[_0x9adf('0x5')]);router[_0x9adf('0x6')](_0x9adf('0x7'),controller[_0x9adf('0x8')],authService['isMiddleware'],userController[_0x9adf('0x5')],authService['setTokenCookie']);module[_0x9adf('0x9')]=router;