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