e762e72c9150be18c406fc7c9cce1aca05f42539
[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 _0xac13=['delete','destroy','exports','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','get','isAuthenticated','index','show','post','create','put','/:id'];(function(_0x3c4c13,_0x4f4776){var _0x91c448=function(_0x2c6334){while(--_0x2c6334){_0x3c4c13['push'](_0x3c4c13['shift']());}};_0x91c448(++_0x4f4776);}(_0xac13,0xd4));var _0x3ac1=function(_0x53c83a,_0x2a441b){_0x53c83a=_0x53c83a-0x0;var _0x390792=_0xac13[_0x53c83a];return _0x390792;};'use strict';var multer=require('multer');var util=require(_0x3ac1('0x0'));var path=require(_0x3ac1('0x1'));var timeout=require(_0x3ac1('0x2'));var express=require(_0x3ac1('0x3'));var router=express[_0x3ac1('0x4')]();var fs_extra=require(_0x3ac1('0x5'));var auth=require(_0x3ac1('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x3ac1('0x7'));var controller=require('./squareProject.controller');router[_0x3ac1('0x8')]('/',auth[_0x3ac1('0x9')](),controller[_0x3ac1('0xa')]);router['get']('/:id',auth['isAuthenticated'](),controller[_0x3ac1('0xb')]);router[_0x3ac1('0xc')]('/',auth[_0x3ac1('0x9')](),controller[_0x3ac1('0xd')]);router[_0x3ac1('0xe')](_0x3ac1('0xf'),auth[_0x3ac1('0x9')](),controller['update']);router[_0x3ac1('0x10')](_0x3ac1('0xf'),auth[_0x3ac1('0x9')](),controller[_0x3ac1('0x11')]);module[_0x3ac1('0x12')]=router;