5ab27a9f547e3a8a8569deec907d8a8ea8603116
[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 _0xc678=['/callback','isMiddleware','setTokenCookie','exports','Router','./authGoogle.controller','../user/user.controller.js','get','login'];(function(_0x1f36bb,_0x8af718){var _0xaf97fa=function(_0xeca489){while(--_0xeca489){_0x1f36bb['push'](_0x1f36bb['shift']());}};_0xaf97fa(++_0x8af718);}(_0xc678,0x1b4));var _0x8c67=function(_0x173b2f,_0x5d153a){_0x173b2f=_0x173b2f-0x0;var _0xa39407=_0xc678[_0x173b2f];return _0xa39407;};'use strict';var express=require('express');var passport=require('passport');var router=express[_0x8c67('0x0')]();var controller=require(_0x8c67('0x1'));var userController=require(_0x8c67('0x2'));var authService=require('../../components/auth/service');router[_0x8c67('0x3')]('/',controller[_0x8c67('0x4')]);router[_0x8c67('0x3')](_0x8c67('0x5'),controller['callback'],authService[_0x8c67('0x6')],userController['login'],authService[_0x8c67('0x7')]);module[_0x8c67('0x8')]=router;