d388f22feed9da50c3db23adba83a154e3fb4e1e
[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 _0x805c=['login','get','/callback','callback','isMiddleware','setTokenCookie','exports','express','passport','Router','./authGoogle.controller','../user/user.controller.js'];(function(_0x5d3aa0,_0x233563){var _0x4453bf=function(_0x53e836){while(--_0x53e836){_0x5d3aa0['push'](_0x5d3aa0['shift']());}};_0x4453bf(++_0x233563);}(_0x805c,0x103));var _0xc805=function(_0x5f1e6a,_0x1d226b){_0x5f1e6a=_0x5f1e6a-0x0;var _0x544c90=_0x805c[_0x5f1e6a];return _0x544c90;};'use strict';var express=require(_0xc805('0x0'));var passport=require(_0xc805('0x1'));var router=express[_0xc805('0x2')]();var controller=require(_0xc805('0x3'));var userController=require(_0xc805('0x4'));var authService=require('../../components/auth/service');router['get']('/',controller[_0xc805('0x5')]);router[_0xc805('0x6')](_0xc805('0x7'),controller[_0xc805('0x8')],authService[_0xc805('0x9')],userController[_0xc805('0x5')],authService[_0xc805('0xa')]);module[_0xc805('0xb')]=router;