Built motion from commit efa66e19.|2.6.22
[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 _0x6a19=['login','get','callback','setTokenCookie','exports','passport','./authGoogle.controller','../user/user.controller.js','../../components/auth/service'];(function(_0x297fd3,_0x115406){var _0x2af381=function(_0x1dd31b){while(--_0x1dd31b){_0x297fd3['push'](_0x297fd3['shift']());}};_0x2af381(++_0x115406);}(_0x6a19,0x17f));var _0x96a1=function(_0x567097,_0x345516){_0x567097=_0x567097-0x0;var _0x5e84f8=_0x6a19[_0x567097];return _0x5e84f8;};'use strict';var express=require('express');var passport=require(_0x96a1('0x0'));var router=express['Router']();var controller=require(_0x96a1('0x1'));var userController=require(_0x96a1('0x2'));var authService=require(_0x96a1('0x3'));router['get']('/',controller[_0x96a1('0x4')]);router[_0x96a1('0x5')]('/callback',controller[_0x96a1('0x6')],authService['isMiddleware'],userController[_0x96a1('0x4')],authService[_0x96a1('0x7')]);module[_0x96a1('0x8')]=router;