57d0ad629dbced11a0fc6de76ace5ca33f99eec3
[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 _0xf2b2=['show','post','create','put','update','destroy','exports','multer','util','path','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./squareProject.controller','isAuthenticated','index','/:id'];(function(_0x17cf52,_0x203843){var _0x25a297=function(_0x252e7b){while(--_0x252e7b){_0x17cf52['push'](_0x17cf52['shift']());}};_0x25a297(++_0x203843);}(_0xf2b2,0xeb));var _0x2f2b=function(_0x1bdfa8,_0x5c93d4){_0x1bdfa8=_0x1bdfa8-0x0;var _0x5ed32d=_0xf2b2[_0x1bdfa8];return _0x5ed32d;};'use strict';var multer=require(_0x2f2b('0x0'));var util=require(_0x2f2b('0x1'));var path=require(_0x2f2b('0x2'));var timeout=require('connect-timeout');var express=require(_0x2f2b('0x3'));var router=express['Router']();var fs_extra=require(_0x2f2b('0x4'));var auth=require(_0x2f2b('0x5'));var interaction=require(_0x2f2b('0x6'));var config=require(_0x2f2b('0x7'));var controller=require(_0x2f2b('0x8'));router['get']('/',auth[_0x2f2b('0x9')](),controller[_0x2f2b('0xa')]);router['get'](_0x2f2b('0xb'),auth[_0x2f2b('0x9')](),controller[_0x2f2b('0xc')]);router[_0x2f2b('0xd')]('/',auth['isAuthenticated'](),controller[_0x2f2b('0xe')]);router[_0x2f2b('0xf')]('/:id',auth[_0x2f2b('0x9')](),controller[_0x2f2b('0x10')]);router['delete'](_0x2f2b('0xb'),auth[_0x2f2b('0x9')](),controller[_0x2f2b('0x11')]);module[_0x2f2b('0x12')]=router;