Built motion from commit da617fac.|2.6.6
[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 _0xf0f8=['express','passport','Router','./authGoogle.controller','../user/user.controller.js','login','get','/callback','callback','isMiddleware','setTokenCookie'];(function(_0x31f7f7,_0x4b4e1e){var _0xfcd721=function(_0x2683fd){while(--_0x2683fd){_0x31f7f7['push'](_0x31f7f7['shift']());}};_0xfcd721(++_0x4b4e1e);}(_0xf0f8,0xbb));var _0x8f0f=function(_0x2f8400,_0x84ca65){_0x2f8400=_0x2f8400-0x0;var _0x5c9c39=_0xf0f8[_0x2f8400];return _0x5c9c39;};'use strict';var express=require(_0x8f0f('0x0'));var passport=require(_0x8f0f('0x1'));var router=express[_0x8f0f('0x2')]();var controller=require(_0x8f0f('0x3'));var userController=require(_0x8f0f('0x4'));var authService=require('../../components/auth/service');router['get']('/',controller[_0x8f0f('0x5')]);router[_0x8f0f('0x6')](_0x8f0f('0x7'),controller[_0x8f0f('0x8')],authService[_0x8f0f('0x9')],userController[_0x8f0f('0x5')],authService[_0x8f0f('0xa')]);module['exports']=router;