Built motion from commit (unavailable).|2.5.0
[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 _0xa5fa=['post','put','update','delete','removeUsers','exports','util','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','./squareProject.controller','get','isAuthenticated','index','/:id','show','/:id/users'];(function(_0x38a34e,_0x42896c){var _0x94a171=function(_0x48e5db){while(--_0x48e5db){_0x38a34e['push'](_0x38a34e['shift']());}};_0x94a171(++_0x42896c);}(_0xa5fa,0xc4));var _0xaa5f=function(_0x232715,_0x4bd63e){_0x232715=_0x232715-0x0;var _0x1e6090=_0xa5fa[_0x232715];return _0x1e6090;};'use strict';var multer=require('multer');var util=require(_0xaa5f('0x0'));var path=require(_0xaa5f('0x1'));var timeout=require(_0xaa5f('0x2'));var express=require(_0xaa5f('0x3'));var router=express['Router']();var auth=require(_0xaa5f('0x4'));var interaction=require(_0xaa5f('0x5'));var config=require('../../config/environment');var controller=require(_0xaa5f('0x6'));router[_0xaa5f('0x7')]('/',auth[_0xaa5f('0x8')](),controller[_0xaa5f('0x9')]);router[_0xaa5f('0x7')](_0xaa5f('0xa'),auth[_0xaa5f('0x8')](),controller[_0xaa5f('0xb')]);router[_0xaa5f('0x7')](_0xaa5f('0xc'),auth[_0xaa5f('0x8')](),controller['getUsers']);router[_0xaa5f('0xd')]('/',auth[_0xaa5f('0x8')](),controller['create']);router['post'](_0xaa5f('0xc'),auth['isAuthenticated'](),controller['addUsers']);router[_0xaa5f('0xe')]('/:id',auth[_0xaa5f('0x8')](),controller[_0xaa5f('0xf')]);router[_0xaa5f('0x10')](_0xaa5f('0xa'),auth[_0xaa5f('0x8')](),controller['destroy']);router[_0xaa5f('0x10')]('/:id/users',auth[_0xaa5f('0x8')](),controller[_0xaa5f('0x11')]);module[_0xaa5f('0x12')]=router;