77cf88613c2d36e93e919a0c8b2dbe48b2fd1c30
[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 _0xe820=['destroy','multer','path','Router','../../components/auth/service','../../components/interaction/service','./squareProject.controller','isAuthenticated','index','get','/:id','/:id/users','getUsers','post','create','addUsers','put','update','delete'];(function(_0x40beba,_0x2917e2){var _0x3ababf=function(_0x29fbb7){while(--_0x29fbb7){_0x40beba['push'](_0x40beba['shift']());}};_0x3ababf(++_0x2917e2);}(_0xe820,0xd2));var _0x0e82=function(_0x56a055,_0x4e2e54){_0x56a055=_0x56a055-0x0;var _0x218571=_0xe820[_0x56a055];return _0x218571;};'use strict';var multer=require(_0x0e82('0x0'));var util=require('util');var path=require(_0x0e82('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x0e82('0x2')]();var auth=require(_0x0e82('0x3'));var interaction=require(_0x0e82('0x4'));var config=require('../../config/environment');var controller=require(_0x0e82('0x5'));router['get']('/',auth[_0x0e82('0x6')](),controller[_0x0e82('0x7')]);router[_0x0e82('0x8')](_0x0e82('0x9'),auth[_0x0e82('0x6')](),controller['show']);router[_0x0e82('0x8')](_0x0e82('0xa'),auth[_0x0e82('0x6')](),controller[_0x0e82('0xb')]);router[_0x0e82('0xc')]('/',auth['isAuthenticated'](),controller[_0x0e82('0xd')]);router[_0x0e82('0xc')](_0x0e82('0xa'),auth[_0x0e82('0x6')](),controller[_0x0e82('0xe')]);router[_0x0e82('0xf')](_0x0e82('0x9'),auth['isAuthenticated'](),controller[_0x0e82('0x10')]);router[_0x0e82('0x11')](_0x0e82('0x9'),auth[_0x0e82('0x6')](),controller[_0x0e82('0x12')]);router[_0x0e82('0x11')]('/:id/users',auth[_0x0e82('0x6')](),controller['removeUsers']);module['exports']=router;