d4d7a394341ba8732448e54bc8aefffb08edf005
[motion2.git] / server / api / squareProject / 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 _0xf734=['path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','index','isAuthenticated','show','/:id/users','getUsers','post','create','addUsers','put','/:id','delete','destroy','exports','multer','util'];(function(_0x579b5f,_0x5082c6){var _0x2cec9d=function(_0x1c9f9b){while(--_0x1c9f9b){_0x579b5f['push'](_0x579b5f['shift']());}};_0x2cec9d(++_0x5082c6);}(_0xf734,0x140));var _0x4f73=function(_0x2a1858,_0x4d5a4e){_0x2a1858=_0x2a1858-0x0;var _0x3d37f2=_0xf734[_0x2a1858];return _0x3d37f2;};'use strict';var multer=require(_0x4f73('0x0'));var util=require(_0x4f73('0x1'));var path=require(_0x4f73('0x2'));var timeout=require(_0x4f73('0x3'));var express=require(_0x4f73('0x4'));var router=express[_0x4f73('0x5')]();var auth=require(_0x4f73('0x6'));var interaction=require(_0x4f73('0x7'));var config=require(_0x4f73('0x8'));var controller=require('./squareProject.controller');router[_0x4f73('0x9')]('/',auth['isAuthenticated'](),controller[_0x4f73('0xa')]);router[_0x4f73('0x9')]('/:id',auth[_0x4f73('0xb')](),controller[_0x4f73('0xc')]);router[_0x4f73('0x9')](_0x4f73('0xd'),auth['isAuthenticated'](),controller[_0x4f73('0xe')]);router[_0x4f73('0xf')]('/',auth['isAuthenticated'](),controller[_0x4f73('0x10')]);router['post']('/:id/users',auth[_0x4f73('0xb')](),controller[_0x4f73('0x11')]);router[_0x4f73('0x12')](_0x4f73('0x13'),auth[_0x4f73('0xb')](),controller['update']);router[_0x4f73('0x14')]('/:id',auth['isAuthenticated'](),controller[_0x4f73('0x15')]);router['delete'](_0x4f73('0xd'),auth['isAuthenticated'](),controller['removeUsers']);module[_0x4f73('0x16')]=router;