6bf22ef90d5fecc5bf1ca714db4a76a1b4c86e61
[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 _0xf45e=['isAuthenticated','index','/:id','show','/:id/users','getUsers','post','addUsers','put','update','delete','destroy','exports','multer','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./squareProject.controller','get'];(function(_0x5de720,_0x34759a){var _0x26f4a6=function(_0x2fc323){while(--_0x2fc323){_0x5de720['push'](_0x5de720['shift']());}};_0x26f4a6(++_0x34759a);}(_0xf45e,0x115));var _0xef45=function(_0x5e94e0,_0x56fd23){_0x5e94e0=_0x5e94e0-0x0;var _0x6e72dd=_0xf45e[_0x5e94e0];return _0x6e72dd;};'use strict';var multer=require(_0xef45('0x0'));var util=require('util');var path=require(_0xef45('0x1'));var timeout=require('connect-timeout');var express=require(_0xef45('0x2'));var router=express[_0xef45('0x3')]();var auth=require(_0xef45('0x4'));var interaction=require(_0xef45('0x5'));var config=require(_0xef45('0x6'));var controller=require(_0xef45('0x7'));router[_0xef45('0x8')]('/',auth[_0xef45('0x9')](),controller[_0xef45('0xa')]);router[_0xef45('0x8')](_0xef45('0xb'),auth[_0xef45('0x9')](),controller[_0xef45('0xc')]);router[_0xef45('0x8')](_0xef45('0xd'),auth[_0xef45('0x9')](),controller[_0xef45('0xe')]);router[_0xef45('0xf')]('/',auth[_0xef45('0x9')](),controller['create']);router[_0xef45('0xf')](_0xef45('0xd'),auth[_0xef45('0x9')](),controller[_0xef45('0x10')]);router[_0xef45('0x11')](_0xef45('0xb'),auth['isAuthenticated'](),controller[_0xef45('0x12')]);router[_0xef45('0x13')](_0xef45('0xb'),auth[_0xef45('0x9')](),controller[_0xef45('0x14')]);router['delete']('/:id/users',auth[_0xef45('0x9')](),controller['removeUsers']);module[_0xef45('0x15')]=router;