Built motion from commit (unavailable).|2.5.15
[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(_0x15dfa5,_0x39e65f){var _0x13cd00=function(_0x31db48){while(--_0x31db48){_0x15dfa5['push'](_0x15dfa5['shift']());}};_0x13cd00(++_0x39e65f);}(_0x7070,0x1d7));var _0x0707=function(_0x4420dd,_0xd7d508){_0x4420dd=_0x4420dd-0x0;var _0x2a7027=_0x7070[_0x4420dd];return _0x2a7027;};'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;