1ecca44408a985c87548db92fc8f72c78bb9828c
[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 _0x854e=['login','/callback','isMiddleware','setTokenCookie','exports','express','passport','Router','./authGoogle.controller','../user/user.controller.js','../../components/auth/service','get'];(function(_0x6552bc,_0x3ac19e){var _0x39011b=function(_0x2a1c78){while(--_0x2a1c78){_0x6552bc['push'](_0x6552bc['shift']());}};_0x39011b(++_0x3ac19e);}(_0x854e,0xdd));var _0xe854=function(_0x2e36a8,_0x4adb6e){_0x2e36a8=_0x2e36a8-0x0;var _0x74aaa2=_0x854e[_0x2e36a8];return _0x74aaa2;};'use strict';var express=require(_0xe854('0x0'));var passport=require(_0xe854('0x1'));var router=express[_0xe854('0x2')]();var controller=require(_0xe854('0x3'));var userController=require(_0xe854('0x4'));var authService=require(_0xe854('0x5'));router[_0xe854('0x6')]('/',controller[_0xe854('0x7')]);router[_0xe854('0x6')](_0xe854('0x8'),controller['callback'],authService[_0xe854('0x9')],userController['login'],authService[_0xe854('0xa')]);module[_0xe854('0xb')]=router;