Built motion from commit (unavailable).|2.5.1
[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 _0x8c99=['../../components/auth/service','get','login','/callback','callback','isMiddleware','setTokenCookie','exports','express','passport','Router','./authGoogle.controller','../user/user.controller.js'];(function(_0x122ef9,_0x451d2a){var _0x42fba0=function(_0x17c9d3){while(--_0x17c9d3){_0x122ef9['push'](_0x122ef9['shift']());}};_0x42fba0(++_0x451d2a);}(_0x8c99,0x1a8));var _0x98c9=function(_0xfb0281,_0x3ff38b){_0xfb0281=_0xfb0281-0x0;var _0x408dd3=_0x8c99[_0xfb0281];return _0x408dd3;};'use strict';var express=require(_0x98c9('0x0'));var passport=require(_0x98c9('0x1'));var router=express[_0x98c9('0x2')]();var controller=require(_0x98c9('0x3'));var userController=require(_0x98c9('0x4'));var authService=require(_0x98c9('0x5'));router[_0x98c9('0x6')]('/',controller[_0x98c9('0x7')]);router[_0x98c9('0x6')](_0x98c9('0x8'),controller[_0x98c9('0x9')],authService[_0x98c9('0xa')],userController['login'],authService[_0x98c9('0xb')]);module[_0x98c9('0xc')]=router;