dbe4e399e81f67f8706331b7a3d3b74e189b6cbc
[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 _0x945d=['isAuthenticated','/:id','show','/:id/users','post','create','addUsers','update','delete','destroy','multer','util','connect-timeout','../../components/auth/service','../../components/interaction/service','../../config/environment','./squareProject.controller','get'];(function(_0x5a1245,_0x517cc4){var _0x46fbe7=function(_0x12bb39){while(--_0x12bb39){_0x5a1245['push'](_0x5a1245['shift']());}};_0x46fbe7(++_0x517cc4);}(_0x945d,0xe2));var _0xd945=function(_0x1a2e66,_0x10980d){_0x1a2e66=_0x1a2e66-0x0;var _0x58dcba=_0x945d[_0x1a2e66];return _0x58dcba;};'use strict';var multer=require(_0xd945('0x0'));var util=require(_0xd945('0x1'));var path=require('path');var timeout=require(_0xd945('0x2'));var express=require('express');var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0xd945('0x3'));var interaction=require(_0xd945('0x4'));var config=require(_0xd945('0x5'));var controller=require(_0xd945('0x6'));router[_0xd945('0x7')]('/',auth[_0xd945('0x8')](),controller['index']);router['get'](_0xd945('0x9'),auth['isAuthenticated'](),controller[_0xd945('0xa')]);router[_0xd945('0x7')](_0xd945('0xb'),auth['isAuthenticated'](),controller['getUsers']);router[_0xd945('0xc')]('/',auth[_0xd945('0x8')](),controller[_0xd945('0xd')]);router[_0xd945('0xc')](_0xd945('0xb'),auth[_0xd945('0x8')](),controller[_0xd945('0xe')]);router['put'](_0xd945('0x9'),auth[_0xd945('0x8')](),controller[_0xd945('0xf')]);router[_0xd945('0x10')](_0xd945('0x9'),auth[_0xd945('0x8')](),controller[_0xd945('0x11')]);router[_0xd945('0x10')](_0xd945('0xb'),auth[_0xd945('0x8')](),controller['removeUsers']);module['exports']=router;