Built motion from commit (unavailable).|2.5.14
[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 _0x1c4d=['callback','setTokenCookie','exports','passport','Router','./authGoogle.controller','../../components/auth/service','get','login'];(function(_0x3a7db0,_0xe93c50){var _0x17cbba=function(_0x577f4c){while(--_0x577f4c){_0x3a7db0['push'](_0x3a7db0['shift']());}};_0x17cbba(++_0xe93c50);}(_0x1c4d,0x1d7));var _0xd1c4=function(_0x42a206,_0x2b1612){_0x42a206=_0x42a206-0x0;var _0x35eb3b=_0x1c4d[_0x42a206];return _0x35eb3b;};'use strict';var express=require('express');var passport=require(_0xd1c4('0x0'));var router=express[_0xd1c4('0x1')]();var controller=require(_0xd1c4('0x2'));var userController=require('../user/user.controller.js');var authService=require(_0xd1c4('0x3'));router[_0xd1c4('0x4')]('/',controller[_0xd1c4('0x5')]);router[_0xd1c4('0x4')]('/callback',controller[_0xd1c4('0x6')],authService['isMiddleware'],userController[_0xd1c4('0x5')],authService[_0xd1c4('0x7')]);module[_0xd1c4('0x8')]=router;