Built motion from commit b5a10faa.|2.6.13
[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 _0x0c4d=['isMiddleware','express','passport','./authGoogle.controller','../user/user.controller.js','../../components/auth/service','login','get','callback'];(function(_0x24259d,_0x64a194){var _0x5a701=function(_0x204516){while(--_0x204516){_0x24259d['push'](_0x24259d['shift']());}};_0x5a701(++_0x64a194);}(_0x0c4d,0x1a8));var _0xd0c4=function(_0x439413,_0x4af831){_0x439413=_0x439413-0x0;var _0x50655d=_0x0c4d[_0x439413];return _0x50655d;};'use strict';var express=require(_0xd0c4('0x0'));var passport=require(_0xd0c4('0x1'));var router=express['Router']();var controller=require(_0xd0c4('0x2'));var userController=require(_0xd0c4('0x3'));var authService=require(_0xd0c4('0x4'));router['get']('/',controller[_0xd0c4('0x5')]);router[_0xd0c4('0x6')]('/callback',controller[_0xd0c4('0x7')],authService[_0xd0c4('0x8')],userController[_0xd0c4('0x5')],authService['setTokenCookie']);module['exports']=router;