Built motion from commit 00bf23f6.|2.6.16
[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 _0x37b7=['./squareProject.controller','get','index','/:id','show','post','isAuthenticated','create','update','delete','multer','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service'];(function(_0x278e3c,_0x1c9cfd){var _0x3e2d9b=function(_0x34d928){while(--_0x34d928){_0x278e3c['push'](_0x278e3c['shift']());}};_0x3e2d9b(++_0x1c9cfd);}(_0x37b7,0xb4));var _0x737b=function(_0x557fd2,_0x2c0a7a){_0x557fd2=_0x557fd2-0x0;var _0x1b54a2=_0x37b7[_0x557fd2];return _0x1b54a2;};'use strict';var multer=require(_0x737b('0x0'));var util=require('util');var path=require(_0x737b('0x1'));var timeout=require(_0x737b('0x2'));var express=require(_0x737b('0x3'));var router=express[_0x737b('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x737b('0x5'));var interaction=require(_0x737b('0x6'));var config=require('../../config/environment');var controller=require(_0x737b('0x7'));router[_0x737b('0x8')]('/',auth['isAuthenticated'](),controller[_0x737b('0x9')]);router['get'](_0x737b('0xa'),auth['isAuthenticated'](),controller[_0x737b('0xb')]);router[_0x737b('0xc')]('/',auth[_0x737b('0xd')](),controller[_0x737b('0xe')]);router['put']('/:id',auth[_0x737b('0xd')](),controller[_0x737b('0xf')]);router[_0x737b('0x10')](_0x737b('0xa'),auth[_0x737b('0xd')](),controller['destroy']);module['exports']=router;