9fc12313acf2a7465abe23e841351cfbc86de506
[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 _0xcf1c=['../user/user.controller.js','../../components/auth/service','get','callback','login','setTokenCookie','exports','express','passport','./authGoogle.controller'];(function(_0xbe200f,_0x4b50eb){var _0x192597=function(_0x106cfd){while(--_0x106cfd){_0xbe200f['push'](_0xbe200f['shift']());}};_0x192597(++_0x4b50eb);}(_0xcf1c,0x18d));var _0xccf1=function(_0x2912b9,_0x55e6e1){_0x2912b9=_0x2912b9-0x0;var _0x154da8=_0xcf1c[_0x2912b9];return _0x154da8;};'use strict';var express=require(_0xccf1('0x0'));var passport=require(_0xccf1('0x1'));var router=express['Router']();var controller=require(_0xccf1('0x2'));var userController=require(_0xccf1('0x3'));var authService=require(_0xccf1('0x4'));router[_0xccf1('0x5')]('/',controller['login']);router['get']('/callback',controller[_0xccf1('0x6')],authService['isMiddleware'],userController[_0xccf1('0x7')],authService[_0xccf1('0x8')]);module[_0xccf1('0x9')]=router;