a8cd0b6c9af10ca9b1717befeec55b2910a07fd2
[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 _0xf910=['getUsers','create','addUsers','update','delete','/:id','destroy','removeUsers','exports','multer','connect-timeout','Router','./squareProject.controller','get','isAuthenticated','index','/:id/users'];(function(_0x229238,_0x3de4cf){var _0xba34bf=function(_0x379642){while(--_0x379642){_0x229238['push'](_0x229238['shift']());}};_0xba34bf(++_0x3de4cf);}(_0xf910,0xb3));var _0x0f91=function(_0x50183b,_0x236d69){_0x50183b=_0x50183b-0x0;var _0x32567f=_0xf910[_0x50183b];return _0x32567f;};'use strict';var multer=require(_0x0f91('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x0f91('0x1'));var express=require('express');var router=express[_0x0f91('0x2')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x0f91('0x3'));router[_0x0f91('0x4')]('/',auth[_0x0f91('0x5')](),controller[_0x0f91('0x6')]);router[_0x0f91('0x4')]('/:id',auth[_0x0f91('0x5')](),controller['show']);router[_0x0f91('0x4')](_0x0f91('0x7'),auth['isAuthenticated'](),controller[_0x0f91('0x8')]);router['post']('/',auth[_0x0f91('0x5')](),controller[_0x0f91('0x9')]);router['post'](_0x0f91('0x7'),auth[_0x0f91('0x5')](),controller[_0x0f91('0xa')]);router['put']('/:id',auth[_0x0f91('0x5')](),controller[_0x0f91('0xb')]);router[_0x0f91('0xc')](_0x0f91('0xd'),auth[_0x0f91('0x5')](),controller[_0x0f91('0xe')]);router[_0x0f91('0xc')](_0x0f91('0x7'),auth[_0x0f91('0x5')](),controller[_0x0f91('0xf')]);module[_0x0f91('0x10')]=router;