6c0c45121f6688a6b19513d5561239bc6fed5242
[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 _0x73e5=['get','/:id','isAuthenticated','show','post','update','delete','destroy','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment'];(function(_0x9ac38c,_0x280f26){var _0xeb1244=function(_0x555217){while(--_0x555217){_0x9ac38c['push'](_0x9ac38c['shift']());}};_0xeb1244(++_0x280f26);}(_0x73e5,0xad));var _0x573e=function(_0x9b3efc,_0x577a0d){_0x9b3efc=_0x9b3efc-0x0;var _0x200f05=_0x73e5[_0x9b3efc];return _0x200f05;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x573e('0x0'));var timeout=require(_0x573e('0x1'));var express=require(_0x573e('0x2'));var router=express[_0x573e('0x3')]();var fs_extra=require(_0x573e('0x4'));var auth=require(_0x573e('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x573e('0x6'));var controller=require('./squareProject.controller');router[_0x573e('0x7')]('/',auth['isAuthenticated'](),controller['index']);router[_0x573e('0x7')](_0x573e('0x8'),auth[_0x573e('0x9')](),controller[_0x573e('0xa')]);router[_0x573e('0xb')]('/',auth['isAuthenticated'](),controller['create']);router['put'](_0x573e('0x8'),auth['isAuthenticated'](),controller[_0x573e('0xc')]);router[_0x573e('0xd')]('/:id',auth[_0x573e('0x9')](),controller[_0x573e('0xe')]);module['exports']=router;