Built motion from commit 91ed41ac.|2.5.44
[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 _0xe8b1=['post','put','/:id','destroy','delete','removeUsers','exports','multer','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./squareProject.controller','get','isAuthenticated','index','show','/:id/users','getUsers','create'];(function(_0x36e6d2,_0x1b814c){var _0x15a97a=function(_0xfeef9a){while(--_0xfeef9a){_0x36e6d2['push'](_0x36e6d2['shift']());}};_0x15a97a(++_0x1b814c);}(_0xe8b1,0x104));var _0x1e8b=function(_0x2b698c,_0x5bbdd5){_0x2b698c=_0x2b698c-0x0;var _0x535317=_0xe8b1[_0x2b698c];return _0x535317;};'use strict';var multer=require(_0x1e8b('0x0'));var util=require(_0x1e8b('0x1'));var path=require('path');var timeout=require(_0x1e8b('0x2'));var express=require(_0x1e8b('0x3'));var router=express[_0x1e8b('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x1e8b('0x5'));var interaction=require(_0x1e8b('0x6'));var config=require(_0x1e8b('0x7'));var controller=require(_0x1e8b('0x8'));router[_0x1e8b('0x9')]('/',auth[_0x1e8b('0xa')](),controller[_0x1e8b('0xb')]);router['get']('/:id',auth['isAuthenticated'](),controller[_0x1e8b('0xc')]);router[_0x1e8b('0x9')](_0x1e8b('0xd'),auth['isAuthenticated'](),controller[_0x1e8b('0xe')]);router['post']('/',auth['isAuthenticated'](),controller[_0x1e8b('0xf')]);router[_0x1e8b('0x10')](_0x1e8b('0xd'),auth[_0x1e8b('0xa')](),controller['addUsers']);router[_0x1e8b('0x11')](_0x1e8b('0x12'),auth['isAuthenticated'](),controller['update']);router['delete']('/:id',auth[_0x1e8b('0xa')](),controller[_0x1e8b('0x13')]);router[_0x1e8b('0x14')]('/:id/users',auth[_0x1e8b('0xa')](),controller[_0x1e8b('0x15')]);module[_0x1e8b('0x16')]=router;