Built motion from commit (unavailable).|2.5.5
[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 _0x7070=['login','/callback','isMiddleware','passport','./authGoogle.controller','get'];(function(_0x4bfe17,_0x435710){var _0xb3cfad=function(_0x3e30c8){while(--_0x3e30c8){_0x4bfe17['push'](_0x4bfe17['shift']());}};_0xb3cfad(++_0x435710);}(_0x7070,0x1d7));var _0x0707=function(_0x7b6b32,_0x4f1d70){_0x7b6b32=_0x7b6b32-0x0;var _0x29f8fd=_0x7070[_0x7b6b32];return _0x29f8fd;};'use strict';var express=require('express');var passport=require(_0x0707('0x0'));var router=express['Router']();var controller=require(_0x0707('0x1'));var userController=require('../user/user.controller.js');var authService=require('../../components/auth/service');router[_0x0707('0x2')]('/',controller[_0x0707('0x3')]);router[_0x0707('0x2')](_0x0707('0x4'),controller['callback'],authService[_0x0707('0x5')],userController[_0x0707('0x3')],authService['setTokenCookie']);module['exports']=router;