Built motion from commit (unavailable).|2.5.23
[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 _0xb481=['removeUsers','exports','multer','path','express','../../components/interaction/service','isAuthenticated','index','get','/:id','/:id/users','getUsers','create','post','put','update'];(function(_0x2c1578,_0x4a1066){var _0x26cb29=function(_0x10f5fb){while(--_0x10f5fb){_0x2c1578['push'](_0x2c1578['shift']());}};_0x26cb29(++_0x4a1066);}(_0xb481,0xe2));var _0x1b48=function(_0x29dedd,_0x3c7419){_0x29dedd=_0x29dedd-0x0;var _0x4e6d4f=_0xb481[_0x29dedd];return _0x4e6d4f;};'use strict';var multer=require(_0x1b48('0x0'));var util=require('util');var path=require(_0x1b48('0x1'));var timeout=require('connect-timeout');var express=require(_0x1b48('0x2'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0x1b48('0x3'));var config=require('../../config/environment');var controller=require('./squareProject.controller');router['get']('/',auth[_0x1b48('0x4')](),controller[_0x1b48('0x5')]);router[_0x1b48('0x6')](_0x1b48('0x7'),auth[_0x1b48('0x4')](),controller['show']);router[_0x1b48('0x6')](_0x1b48('0x8'),auth['isAuthenticated'](),controller[_0x1b48('0x9')]);router['post']('/',auth[_0x1b48('0x4')](),controller[_0x1b48('0xa')]);router[_0x1b48('0xb')](_0x1b48('0x8'),auth['isAuthenticated'](),controller['addUsers']);router[_0x1b48('0xc')](_0x1b48('0x7'),auth['isAuthenticated'](),controller[_0x1b48('0xd')]);router['delete'](_0x1b48('0x7'),auth[_0x1b48('0x4')](),controller['destroy']);router['delete'](_0x1b48('0x8'),auth[_0x1b48('0x4')](),controller[_0x1b48('0xe')]);module[_0x1b48('0xf')]=router;