7fb1d889cdffe6c85b2d0990ae61eb4daf8fbae7
[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 _0x2fe9=['/callback','callback','isMiddleware','exports','express','passport','Router','../user/user.controller.js','../../components/auth/service','get','login'];(function(_0x39096d,_0x51f8a0){var _0x13da4f=function(_0x11e6b2){while(--_0x11e6b2){_0x39096d['push'](_0x39096d['shift']());}};_0x13da4f(++_0x51f8a0);}(_0x2fe9,0x143));var _0x92fe=function(_0x3188ab,_0x4eeca7){_0x3188ab=_0x3188ab-0x0;var _0x239a99=_0x2fe9[_0x3188ab];return _0x239a99;};'use strict';var express=require(_0x92fe('0x0'));var passport=require(_0x92fe('0x1'));var router=express[_0x92fe('0x2')]();var controller=require('./authGoogle.controller');var userController=require(_0x92fe('0x3'));var authService=require(_0x92fe('0x4'));router[_0x92fe('0x5')]('/',controller[_0x92fe('0x6')]);router[_0x92fe('0x5')](_0x92fe('0x7'),controller[_0x92fe('0x8')],authService[_0x92fe('0x9')],userController[_0x92fe('0x6')],authService['setTokenCookie']);module[_0x92fe('0xa')]=router;