99a3f05c2ad339444b30a9e550208e5ff2be6e7b
[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 _0x88ce=['exports','passport','./authGoogle.controller','../user/user.controller.js','../../components/auth/service','get','login','callback','isMiddleware','setTokenCookie'];(function(_0x22a9b7,_0x58e5d4){var _0x8a8568=function(_0x271479){while(--_0x271479){_0x22a9b7['push'](_0x22a9b7['shift']());}};_0x8a8568(++_0x58e5d4);}(_0x88ce,0xab));var _0xe88c=function(_0x190c2d,_0x2c9528){_0x190c2d=_0x190c2d-0x0;var _0x19f5d3=_0x88ce[_0x190c2d];return _0x19f5d3;};'use strict';var express=require('express');var passport=require(_0xe88c('0x0'));var router=express['Router']();var controller=require(_0xe88c('0x1'));var userController=require(_0xe88c('0x2'));var authService=require(_0xe88c('0x3'));router[_0xe88c('0x4')]('/',controller[_0xe88c('0x5')]);router[_0xe88c('0x4')]('/callback',controller[_0xe88c('0x6')],authService[_0xe88c('0x7')],userController[_0xe88c('0x5')],authService[_0xe88c('0x8')]);module[_0xe88c('0x9')]=router;