Built motion from commit a679711e.|2.6.15
[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 _0xf9a3=['login','/callback','callback','exports','express','passport','Router','./authGoogle.controller','../user/user.controller.js','../../components/auth/service','get'];(function(_0x8d6333,_0x3abc16){var _0x151cf4=function(_0x57e912){while(--_0x57e912){_0x8d6333['push'](_0x8d6333['shift']());}};_0x151cf4(++_0x3abc16);}(_0xf9a3,0x17a));var _0x3f9a=function(_0x4e283d,_0x29ced1){_0x4e283d=_0x4e283d-0x0;var _0x566f7c=_0xf9a3[_0x4e283d];return _0x566f7c;};'use strict';var express=require(_0x3f9a('0x0'));var passport=require(_0x3f9a('0x1'));var router=express[_0x3f9a('0x2')]();var controller=require(_0x3f9a('0x3'));var userController=require(_0x3f9a('0x4'));var authService=require(_0x3f9a('0x5'));router[_0x3f9a('0x6')]('/',controller[_0x3f9a('0x7')]);router[_0x3f9a('0x6')](_0x3f9a('0x8'),controller[_0x3f9a('0x9')],authService['isMiddleware'],userController[_0x3f9a('0x7')],authService['setTokenCookie']);module[_0x3f9a('0xa')]=router;