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