Built motion from commit 14588770.|2.5.38
[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 _0x316b=['express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./squareProject.controller','isAuthenticated','index','get','/:id','show','getUsers','post','/:id/users','addUsers','put','update','delete','destroy','removeUsers','exports','multer','path'];(function(_0x358806,_0x322b66){var _0x19fdcb=function(_0xe01b8d){while(--_0xe01b8d){_0x358806['push'](_0x358806['shift']());}};_0x19fdcb(++_0x322b66);}(_0x316b,0x17e));var _0xb316=function(_0x20d73e,_0x39f9ec){_0x20d73e=_0x20d73e-0x0;var _0x52e84b=_0x316b[_0x20d73e];return _0x52e84b;};'use strict';var multer=require(_0xb316('0x0'));var util=require('util');var path=require(_0xb316('0x1'));var timeout=require('connect-timeout');var express=require(_0xb316('0x2'));var router=express[_0xb316('0x3')]();var fs_extra=require(_0xb316('0x4'));var auth=require(_0xb316('0x5'));var interaction=require(_0xb316('0x6'));var config=require(_0xb316('0x7'));var controller=require(_0xb316('0x8'));router['get']('/',auth[_0xb316('0x9')](),controller[_0xb316('0xa')]);router[_0xb316('0xb')](_0xb316('0xc'),auth['isAuthenticated'](),controller[_0xb316('0xd')]);router[_0xb316('0xb')]('/:id/users',auth[_0xb316('0x9')](),controller[_0xb316('0xe')]);router[_0xb316('0xf')]('/',auth[_0xb316('0x9')](),controller['create']);router[_0xb316('0xf')](_0xb316('0x10'),auth[_0xb316('0x9')](),controller[_0xb316('0x11')]);router[_0xb316('0x12')](_0xb316('0xc'),auth[_0xb316('0x9')](),controller[_0xb316('0x13')]);router[_0xb316('0x14')](_0xb316('0xc'),auth['isAuthenticated'](),controller[_0xb316('0x15')]);router[_0xb316('0x14')]('/:id/users',auth[_0xb316('0x9')](),controller[_0xb316('0x16')]);module[_0xb316('0x17')]=router;