Built motion from commit (unavailable).|2.6.0
[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 _0xf0ba=['/callback','isMiddleware','exports','express','passport','Router','./authGoogle.controller','../user/user.controller.js','get','login'];(function(_0x1b1bca,_0x582efb){var _0x4b2dae=function(_0x5e9976){while(--_0x5e9976){_0x1b1bca['push'](_0x1b1bca['shift']());}};_0x4b2dae(++_0x582efb);}(_0xf0ba,0x1ed));var _0xaf0b=function(_0x20a584,_0xe384a5){_0x20a584=_0x20a584-0x0;var _0x4b41a8=_0xf0ba[_0x20a584];return _0x4b41a8;};'use strict';var express=require(_0xaf0b('0x0'));var passport=require(_0xaf0b('0x1'));var router=express[_0xaf0b('0x2')]();var controller=require(_0xaf0b('0x3'));var userController=require(_0xaf0b('0x4'));var authService=require('../../components/auth/service');router[_0xaf0b('0x5')]('/',controller[_0xaf0b('0x6')]);router['get'](_0xaf0b('0x7'),controller['callback'],authService[_0xaf0b('0x8')],userController['login'],authService['setTokenCookie']);module[_0xaf0b('0x9')]=router;