58408c065ed817b247bb52c198b65f4be18b645e
[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 _0x14a0=['../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index','show','getUsers','/:id/users','addUsers','put','update','delete','/:id','destroy','removeUsers','exports','util','path','connect-timeout','express','Router'];(function(_0x397e5f,_0x454c8f){var _0x5302b8=function(_0x1a29ef){while(--_0x1a29ef){_0x397e5f['push'](_0x397e5f['shift']());}};_0x5302b8(++_0x454c8f);}(_0x14a0,0x8e));var _0x014a=function(_0x3457ce,_0x22b413){_0x3457ce=_0x3457ce-0x0;var _0x4e5205=_0x14a0[_0x3457ce];return _0x4e5205;};'use strict';var multer=require('multer');var util=require(_0x014a('0x0'));var path=require(_0x014a('0x1'));var timeout=require(_0x014a('0x2'));var express=require(_0x014a('0x3'));var router=express[_0x014a('0x4')]();var auth=require(_0x014a('0x5'));var interaction=require(_0x014a('0x6'));var config=require('../../config/environment');var controller=require('./squareProject.controller');router[_0x014a('0x7')]('/',auth[_0x014a('0x8')](),controller[_0x014a('0x9')]);router['get']('/:id',auth[_0x014a('0x8')](),controller[_0x014a('0xa')]);router[_0x014a('0x7')]('/:id/users',auth['isAuthenticated'](),controller[_0x014a('0xb')]);router['post']('/',auth['isAuthenticated'](),controller['create']);router['post'](_0x014a('0xc'),auth['isAuthenticated'](),controller[_0x014a('0xd')]);router[_0x014a('0xe')]('/:id',auth[_0x014a('0x8')](),controller[_0x014a('0xf')]);router[_0x014a('0x10')](_0x014a('0x11'),auth[_0x014a('0x8')](),controller[_0x014a('0x12')]);router[_0x014a('0x10')](_0x014a('0xc'),auth[_0x014a('0x8')](),controller[_0x014a('0x13')]);module[_0x014a('0x14')]=router;