8498dc2dec8e240c617c270b66f7a3fc24615bde
[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 _0xe651=['express','Router','fs-extra','../../components/interaction/service','../../config/environment','./squareProject.controller','get','isAuthenticated','/:id','show','/:id/users','getUsers','post','create','addUsers','put','update','delete','destroy','removeUsers','exports','multer','util','path','connect-timeout'];(function(_0x7b401a,_0x5cd5d7){var _0x8ad574=function(_0x219600){while(--_0x219600){_0x7b401a['push'](_0x7b401a['shift']());}};_0x8ad574(++_0x5cd5d7);}(_0xe651,0x1a5));var _0x1e65=function(_0x508a0a,_0x3ed316){_0x508a0a=_0x508a0a-0x0;var _0x4acf06=_0xe651[_0x508a0a];return _0x4acf06;};'use strict';var multer=require(_0x1e65('0x0'));var util=require(_0x1e65('0x1'));var path=require(_0x1e65('0x2'));var timeout=require(_0x1e65('0x3'));var express=require(_0x1e65('0x4'));var router=express[_0x1e65('0x5')]();var fs_extra=require(_0x1e65('0x6'));var auth=require('../../components/auth/service');var interaction=require(_0x1e65('0x7'));var config=require(_0x1e65('0x8'));var controller=require(_0x1e65('0x9'));router[_0x1e65('0xa')]('/',auth[_0x1e65('0xb')](),controller['index']);router['get'](_0x1e65('0xc'),auth['isAuthenticated'](),controller[_0x1e65('0xd')]);router[_0x1e65('0xa')](_0x1e65('0xe'),auth[_0x1e65('0xb')](),controller[_0x1e65('0xf')]);router[_0x1e65('0x10')]('/',auth['isAuthenticated'](),controller[_0x1e65('0x11')]);router[_0x1e65('0x10')]('/:id/users',auth[_0x1e65('0xb')](),controller[_0x1e65('0x12')]);router[_0x1e65('0x13')](_0x1e65('0xc'),auth['isAuthenticated'](),controller[_0x1e65('0x14')]);router[_0x1e65('0x15')]('/:id',auth[_0x1e65('0xb')](),controller[_0x1e65('0x16')]);router['delete']('/:id/users',auth['isAuthenticated'](),controller[_0x1e65('0x17')]);module[_0x1e65('0x18')]=router;