Built motion from commit (unavailable).|2.3.4
[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 _0xf0be=['passport','Router','./authGoogle.controller','../../components/auth/service','setTokenCookie','get','exports','express'];(function(_0x2b5ee5,_0x3741bf){var _0x1c480b=function(_0x437a18){while(--_0x437a18){_0x2b5ee5['push'](_0x2b5ee5['shift']());}};_0x1c480b(++_0x3741bf);}(_0xf0be,0xd7));var _0xef0b=function(_0x51648c,_0x2318ed){_0x51648c=_0x51648c-0x0;var _0x378326=_0xf0be[_0x51648c];return _0x378326;};'use strict';var express=require(_0xef0b('0x0'));var passport=require(_0xef0b('0x1'));var router=express[_0xef0b('0x2')]();var controller=require(_0xef0b('0x3'));var setTokenCookie=require(_0xef0b('0x4'))[_0xef0b('0x5')];router['get']('/',controller['login']);router[_0xef0b('0x6')]('/callback',controller['callback'],setTokenCookie);module[_0xef0b('0x7')]=router;