Built motion from commit 377f727e.|2.6.28
[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 _0xe073=['express','Router','fs-extra','../../components/interaction/service','../../config/environment','./dashboard.controller','get','isAuthenticated','index','/:id','/:id/items','getItems','post','create','addItem','put','update','delete','destroy','exports','multer','connect-timeout'];(function(_0x2e4929,_0x26bada){var _0x2f6153=function(_0xb558c3){while(--_0xb558c3){_0x2e4929['push'](_0x2e4929['shift']());}};_0x2f6153(++_0x26bada);}(_0xe073,0x1b6));var _0x3e07=function(_0x1a0c7f,_0x2137de){_0x1a0c7f=_0x1a0c7f-0x0;var _0x557663=_0xe073[_0x1a0c7f];return _0x557663;};'use strict';var multer=require(_0x3e07('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x3e07('0x1'));var express=require(_0x3e07('0x2'));var router=express[_0x3e07('0x3')]();var fs_extra=require(_0x3e07('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x3e07('0x5'));var config=require(_0x3e07('0x6'));var controller=require(_0x3e07('0x7'));router[_0x3e07('0x8')]('/',auth[_0x3e07('0x9')](),controller[_0x3e07('0xa')]);router[_0x3e07('0x8')](_0x3e07('0xb'),auth[_0x3e07('0x9')](),controller['show']);router[_0x3e07('0x8')](_0x3e07('0xc'),auth['isAuthenticated'](),controller[_0x3e07('0xd')]);router[_0x3e07('0xe')]('/',auth['isAuthenticated'](),controller[_0x3e07('0xf')]);router[_0x3e07('0xe')]('/:id/clone',auth[_0x3e07('0x9')](),controller['clone']);router[_0x3e07('0xe')](_0x3e07('0xc'),auth[_0x3e07('0x9')](),controller[_0x3e07('0x10')]);router[_0x3e07('0x11')](_0x3e07('0xb'),auth[_0x3e07('0x9')](),controller[_0x3e07('0x12')]);router[_0x3e07('0x13')](_0x3e07('0xb'),auth[_0x3e07('0x9')](),controller[_0x3e07('0x14')]);module[_0x3e07('0x15')]=router;