553a103c428a59f4052dd0199e7a0a3dd83e218c
[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 _0xafcd=['path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./squareProject.controller','isAuthenticated','index','get','show','/:id/users','getUsers','post','create','put','/:id','update','delete','exports','multer','util'];(function(_0x55e2f3,_0x49febe){var _0x236bf0=function(_0x27f4ab){while(--_0x27f4ab){_0x55e2f3['push'](_0x55e2f3['shift']());}};_0x236bf0(++_0x49febe);}(_0xafcd,0x157));var _0xdafc=function(_0x421e36,_0x18776e){_0x421e36=_0x421e36-0x0;var _0x20b3e3=_0xafcd[_0x421e36];return _0x20b3e3;};'use strict';var multer=require(_0xdafc('0x0'));var util=require(_0xdafc('0x1'));var path=require(_0xdafc('0x2'));var timeout=require(_0xdafc('0x3'));var express=require(_0xdafc('0x4'));var router=express[_0xdafc('0x5')]();var fs_extra=require(_0xdafc('0x6'));var auth=require('../../components/auth/service');var interaction=require(_0xdafc('0x7'));var config=require(_0xdafc('0x8'));var controller=require(_0xdafc('0x9'));router['get']('/',auth[_0xdafc('0xa')](),controller[_0xdafc('0xb')]);router[_0xdafc('0xc')]('/:id',auth[_0xdafc('0xa')](),controller[_0xdafc('0xd')]);router[_0xdafc('0xc')](_0xdafc('0xe'),auth[_0xdafc('0xa')](),controller[_0xdafc('0xf')]);router[_0xdafc('0x10')]('/',auth[_0xdafc('0xa')](),controller[_0xdafc('0x11')]);router[_0xdafc('0x10')](_0xdafc('0xe'),auth['isAuthenticated'](),controller['addUsers']);router[_0xdafc('0x12')](_0xdafc('0x13'),auth[_0xdafc('0xa')](),controller[_0xdafc('0x14')]);router[_0xdafc('0x15')]('/:id',auth['isAuthenticated'](),controller['destroy']);router[_0xdafc('0x15')]('/:id/users',auth[_0xdafc('0xa')](),controller['removeUsers']);module[_0xdafc('0x16')]=router;