Built motion from commit (unavailable).|2.5.26
[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 _0xe84f=['/:id','show','getUsers','post','create','/:id/users','addUsers','update','delete','destroy','multer','path','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./squareProject.controller','isAuthenticated','get'];(function(_0x64f672,_0xad6bed){var _0x1e63a9=function(_0x148740){while(--_0x148740){_0x64f672['push'](_0x64f672['shift']());}};_0x1e63a9(++_0xad6bed);}(_0xe84f,0xaa));var _0xfe84=function(_0x3a8478,_0x4be1cb){_0x3a8478=_0x3a8478-0x0;var _0x27b185=_0xe84f[_0x3a8478];return _0x27b185;};'use strict';var multer=require(_0xfe84('0x0'));var util=require('util');var path=require(_0xfe84('0x1'));var timeout=require('connect-timeout');var express=require(_0xfe84('0x2'));var router=express['Router']();var fs_extra=require(_0xfe84('0x3'));var auth=require(_0xfe84('0x4'));var interaction=require(_0xfe84('0x5'));var config=require(_0xfe84('0x6'));var controller=require(_0xfe84('0x7'));router['get']('/',auth[_0xfe84('0x8')](),controller['index']);router[_0xfe84('0x9')](_0xfe84('0xa'),auth[_0xfe84('0x8')](),controller[_0xfe84('0xb')]);router['get']('/:id/users',auth[_0xfe84('0x8')](),controller[_0xfe84('0xc')]);router[_0xfe84('0xd')]('/',auth[_0xfe84('0x8')](),controller[_0xfe84('0xe')]);router[_0xfe84('0xd')](_0xfe84('0xf'),auth[_0xfe84('0x8')](),controller[_0xfe84('0x10')]);router['put']('/:id',auth[_0xfe84('0x8')](),controller[_0xfe84('0x11')]);router[_0xfe84('0x12')](_0xfe84('0xa'),auth['isAuthenticated'](),controller[_0xfe84('0x13')]);router[_0xfe84('0x12')](_0xfe84('0xf'),auth[_0xfe84('0x8')](),controller['removeUsers']);module['exports']=router;