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