aa6ef4a2e15a16d9fdcfd35113192152c8dc373d
[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 _0xb8e1=['get','getUsers','post','create','addUsers','put','delete','destroy','/:id/users','multer','util','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','index','/:id','show'];(function(_0x3a1de8,_0x3cd4c0){var _0x1d4499=function(_0x47aeca){while(--_0x47aeca){_0x3a1de8['push'](_0x3a1de8['shift']());}};_0x1d4499(++_0x3cd4c0);}(_0xb8e1,0x11a));var _0x1b8e=function(_0x2f199a,_0x151017){_0x2f199a=_0x2f199a-0x0;var _0x393ae9=_0xb8e1[_0x2f199a];return _0x393ae9;};'use strict';var multer=require(_0x1b8e('0x0'));var util=require(_0x1b8e('0x1'));var path=require('path');var timeout=require(_0x1b8e('0x2'));var express=require('express');var router=express[_0x1b8e('0x3')]();var fs_extra=require(_0x1b8e('0x4'));var auth=require(_0x1b8e('0x5'));var interaction=require(_0x1b8e('0x6'));var config=require(_0x1b8e('0x7'));var controller=require('./squareProject.controller');router['get']('/',auth[_0x1b8e('0x8')](),controller[_0x1b8e('0x9')]);router['get'](_0x1b8e('0xa'),auth['isAuthenticated'](),controller[_0x1b8e('0xb')]);router[_0x1b8e('0xc')]('/:id/users',auth[_0x1b8e('0x8')](),controller[_0x1b8e('0xd')]);router[_0x1b8e('0xe')]('/',auth[_0x1b8e('0x8')](),controller[_0x1b8e('0xf')]);router[_0x1b8e('0xe')]('/:id/users',auth[_0x1b8e('0x8')](),controller[_0x1b8e('0x10')]);router[_0x1b8e('0x11')]('/:id',auth[_0x1b8e('0x8')](),controller['update']);router[_0x1b8e('0x12')](_0x1b8e('0xa'),auth[_0x1b8e('0x8')](),controller[_0x1b8e('0x13')]);router[_0x1b8e('0x12')](_0x1b8e('0x14'),auth['isAuthenticated'](),controller['removeUsers']);module['exports']=router;