Built motion from commit 449495f6.|2.6.27
[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 _0xc7e1=['fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./dashboard.controller','isAuthenticated','index','get','/:id','/:id/items','post','create','/:id/clone','clone','addItem','put','delete','destroy','exports','util','path','connect-timeout','express','Router'];(function(_0x5e630e,_0x105b73){var _0x20405b=function(_0x519df3){while(--_0x519df3){_0x5e630e['push'](_0x5e630e['shift']());}};_0x20405b(++_0x105b73);}(_0xc7e1,0x193));var _0x1c7e=function(_0x16467f,_0x32ac47){_0x16467f=_0x16467f-0x0;var _0x51f72b=_0xc7e1[_0x16467f];return _0x51f72b;};'use strict';var multer=require('multer');var util=require(_0x1c7e('0x0'));var path=require(_0x1c7e('0x1'));var timeout=require(_0x1c7e('0x2'));var express=require(_0x1c7e('0x3'));var router=express[_0x1c7e('0x4')]();var fs_extra=require(_0x1c7e('0x5'));var auth=require(_0x1c7e('0x6'));var interaction=require(_0x1c7e('0x7'));var config=require(_0x1c7e('0x8'));var controller=require(_0x1c7e('0x9'));router['get']('/',auth[_0x1c7e('0xa')](),controller[_0x1c7e('0xb')]);router[_0x1c7e('0xc')](_0x1c7e('0xd'),auth[_0x1c7e('0xa')](),controller['show']);router[_0x1c7e('0xc')](_0x1c7e('0xe'),auth[_0x1c7e('0xa')](),controller['getItems']);router[_0x1c7e('0xf')]('/',auth['isAuthenticated'](),controller[_0x1c7e('0x10')]);router[_0x1c7e('0xf')](_0x1c7e('0x11'),auth['isAuthenticated'](),controller[_0x1c7e('0x12')]);router[_0x1c7e('0xf')]('/:id/items',auth[_0x1c7e('0xa')](),controller[_0x1c7e('0x13')]);router[_0x1c7e('0x14')](_0x1c7e('0xd'),auth['isAuthenticated'](),controller['update']);router[_0x1c7e('0x15')](_0x1c7e('0xd'),auth[_0x1c7e('0xa')](),controller[_0x1c7e('0x16')]);module[_0x1c7e('0x17')]=router;