Built motion from commit 25580385.|2.6.2
[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 _0xeec6=['post','destroy','delete','removeUsers','exports','multer','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','get','isAuthenticated','/:id','show','/:id/users','getUsers'];(function(_0x16e534,_0x122388){var _0x38928c=function(_0x26cc81){while(--_0x26cc81){_0x16e534['push'](_0x16e534['shift']());}};_0x38928c(++_0x122388);}(_0xeec6,0x125));var _0x6eec=function(_0x4c8a8f,_0x997ef){_0x4c8a8f=_0x4c8a8f-0x0;var _0x404500=_0xeec6[_0x4c8a8f];return _0x404500;};'use strict';var multer=require(_0x6eec('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x6eec('0x1'));var express=require(_0x6eec('0x2'));var router=express[_0x6eec('0x3')]();var fs_extra=require(_0x6eec('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x6eec('0x5'));var config=require(_0x6eec('0x6'));var controller=require('./squareProject.controller');router[_0x6eec('0x7')]('/',auth[_0x6eec('0x8')](),controller['index']);router[_0x6eec('0x7')](_0x6eec('0x9'),auth[_0x6eec('0x8')](),controller[_0x6eec('0xa')]);router['get'](_0x6eec('0xb'),auth[_0x6eec('0x8')](),controller[_0x6eec('0xc')]);router['post']('/',auth[_0x6eec('0x8')](),controller['create']);router[_0x6eec('0xd')](_0x6eec('0xb'),auth[_0x6eec('0x8')](),controller['addUsers']);router['put']('/:id',auth[_0x6eec('0x8')](),controller['update']);router['delete']('/:id',auth[_0x6eec('0x8')](),controller[_0x6eec('0xe')]);router[_0x6eec('0xf')]('/:id/users',auth[_0x6eec('0x8')](),controller[_0x6eec('0x10')]);module[_0x6eec('0x11')]=router;