Built motion from commit da24aabd.|2.6.20
[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 _0x56f4=['destroy','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./squareProject.controller','get','isAuthenticated','index','/:id','post','create','put','update','delete'];(function(_0x3fc823,_0x4e978f){var _0x1d8073=function(_0x2d4f83){while(--_0x2d4f83){_0x3fc823['push'](_0x3fc823['shift']());}};_0x1d8073(++_0x4e978f);}(_0x56f4,0x99));var _0x456f=function(_0x429aca,_0x82730a){_0x429aca=_0x429aca-0x0;var _0x19f033=_0x56f4[_0x429aca];return _0x19f033;};'use strict';var multer=require('multer');var util=require(_0x456f('0x0'));var path=require(_0x456f('0x1'));var timeout=require(_0x456f('0x2'));var express=require(_0x456f('0x3'));var router=express[_0x456f('0x4')]();var fs_extra=require(_0x456f('0x5'));var auth=require(_0x456f('0x6'));var interaction=require(_0x456f('0x7'));var config=require('../../config/environment');var controller=require(_0x456f('0x8'));router[_0x456f('0x9')]('/',auth[_0x456f('0xa')](),controller[_0x456f('0xb')]);router[_0x456f('0x9')](_0x456f('0xc'),auth[_0x456f('0xa')](),controller['show']);router[_0x456f('0xd')]('/',auth[_0x456f('0xa')](),controller[_0x456f('0xe')]);router[_0x456f('0xf')](_0x456f('0xc'),auth['isAuthenticated'](),controller[_0x456f('0x10')]);router[_0x456f('0x11')]('/:id',auth[_0x456f('0xa')](),controller[_0x456f('0x12')]);module['exports']=router;