Built motion from commit (unavailable).|2.0.84
[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 _0x27a3=['create','post','/:id/clone','clone','put','update','delete','exports','multer','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','/:id','/:id/items','getItems'];(function(_0x22e2cd,_0x171e63){var _0x552783=function(_0x16d14a){while(--_0x16d14a){_0x22e2cd['push'](_0x22e2cd['shift']());}};_0x552783(++_0x171e63);}(_0x27a3,0x12e));var _0x327a=function(_0x2f8a10,_0x3bef5b){_0x2f8a10=_0x2f8a10-0x0;var _0x357761=_0x27a3[_0x2f8a10];return _0x357761;};'use strict';var multer=require(_0x327a('0x0'));var util=require('util');var path=require(_0x327a('0x1'));var timeout=require(_0x327a('0x2'));var express=require(_0x327a('0x3'));var router=express[_0x327a('0x4')]();var auth=require(_0x327a('0x5'));var interaction=require(_0x327a('0x6'));var config=require(_0x327a('0x7'));var controller=require('./dashboard.controller');router[_0x327a('0x8')]('/',auth[_0x327a('0x9')](),controller['index']);router[_0x327a('0x8')](_0x327a('0xa'),auth[_0x327a('0x9')](),controller['show']);router[_0x327a('0x8')](_0x327a('0xb'),auth[_0x327a('0x9')](),controller[_0x327a('0xc')]);router['post']('/',auth['isAuthenticated'](),controller[_0x327a('0xd')]);router[_0x327a('0xe')](_0x327a('0xf'),auth[_0x327a('0x9')](),controller[_0x327a('0x10')]);router['post'](_0x327a('0xb'),auth[_0x327a('0x9')](),controller['addItem']);router[_0x327a('0x11')](_0x327a('0xa'),auth[_0x327a('0x9')](),controller[_0x327a('0x12')]);router[_0x327a('0x13')](_0x327a('0xa'),auth['isAuthenticated'](),controller['destroy']);module[_0x327a('0x14')]=router;