Built motion from commit bab6f49e.|2.6.17
[motion2.git] / server / api / dashboard / 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 _0xfd7e=['put','/:id','update','delete','destroy','exports','multer','util','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','get','isAuthenticated','show','/:id/items','getItems','/:id/clone','clone','post','addItem'];(function(_0x186376,_0x5d988a){var _0x2dbdd9=function(_0x96908e){while(--_0x96908e){_0x186376['push'](_0x186376['shift']());}};_0x2dbdd9(++_0x5d988a);}(_0xfd7e,0x1d2));var _0xefd7=function(_0x57fade,_0x3d4d19){_0x57fade=_0x57fade-0x0;var _0x1dfb0c=_0xfd7e[_0x57fade];return _0x1dfb0c;};'use strict';var multer=require(_0xefd7('0x0'));var util=require(_0xefd7('0x1'));var path=require('path');var timeout=require(_0xefd7('0x2'));var express=require(_0xefd7('0x3'));var router=express[_0xefd7('0x4')]();var fs_extra=require(_0xefd7('0x5'));var auth=require(_0xefd7('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0xefd7('0x7'));var controller=require('./dashboard.controller');router[_0xefd7('0x8')]('/',auth[_0xefd7('0x9')](),controller['index']);router[_0xefd7('0x8')]('/:id',auth[_0xefd7('0x9')](),controller[_0xefd7('0xa')]);router[_0xefd7('0x8')](_0xefd7('0xb'),auth[_0xefd7('0x9')](),controller[_0xefd7('0xc')]);router['post']('/',auth[_0xefd7('0x9')](),controller['create']);router['post'](_0xefd7('0xd'),auth[_0xefd7('0x9')](),controller[_0xefd7('0xe')]);router[_0xefd7('0xf')](_0xefd7('0xb'),auth[_0xefd7('0x9')](),controller[_0xefd7('0x10')]);router[_0xefd7('0x11')](_0xefd7('0x12'),auth[_0xefd7('0x9')](),controller[_0xefd7('0x13')]);router[_0xefd7('0x14')](_0xefd7('0x12'),auth[_0xefd7('0x9')](),controller[_0xefd7('0x15')]);module[_0xefd7('0x16')]=router;