Built motion from commit (unavailable).|2.5.15
[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 _0x49f9=['../../components/auth/service','../../components/interaction/service','../../config/environment','./squareProject.controller','isAuthenticated','index','/:id','show','/:id/users','getUsers','post','create','addUsers','put','update','delete','destroy','removeUsers','exports','util','path','connect-timeout','express','Router'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0x49f9,0xbb));var _0x949f=function(_0x50dbc2,_0x1cc018){_0x50dbc2=_0x50dbc2-0x0;var _0x16f4ab=_0x49f9[_0x50dbc2];return _0x16f4ab;};'use strict';var multer=require('multer');var util=require(_0x949f('0x0'));var path=require(_0x949f('0x1'));var timeout=require(_0x949f('0x2'));var express=require(_0x949f('0x3'));var router=express[_0x949f('0x4')]();var auth=require(_0x949f('0x5'));var interaction=require(_0x949f('0x6'));var config=require(_0x949f('0x7'));var controller=require(_0x949f('0x8'));router['get']('/',auth[_0x949f('0x9')](),controller[_0x949f('0xa')]);router['get'](_0x949f('0xb'),auth[_0x949f('0x9')](),controller[_0x949f('0xc')]);router['get'](_0x949f('0xd'),auth['isAuthenticated'](),controller[_0x949f('0xe')]);router[_0x949f('0xf')]('/',auth[_0x949f('0x9')](),controller[_0x949f('0x10')]);router[_0x949f('0xf')]('/:id/users',auth[_0x949f('0x9')](),controller[_0x949f('0x11')]);router[_0x949f('0x12')](_0x949f('0xb'),auth[_0x949f('0x9')](),controller[_0x949f('0x13')]);router[_0x949f('0x14')]('/:id',auth['isAuthenticated'](),controller[_0x949f('0x15')]);router[_0x949f('0x14')](_0x949f('0xd'),auth[_0x949f('0x9')](),controller[_0x949f('0x16')]);module[_0x949f('0x17')]=router;