Built motion from commit 74d9782e.|2.6.30
[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 _0xfe87=['isAuthenticated','index','get','/:id','getItems','post','create','/:id/clone','clone','/:id/items','update','exports','util','connect-timeout','express','Router','fs-extra','../../config/environment','./dashboard.controller'];(function(_0x3ab46c,_0x4d26cc){var _0x2c7e90=function(_0x29e83d){while(--_0x29e83d){_0x3ab46c['push'](_0x3ab46c['shift']());}};_0x2c7e90(++_0x4d26cc);}(_0xfe87,0x162));var _0x7fe8=function(_0xf295e9,_0x4657c0){_0xf295e9=_0xf295e9-0x0;var _0x562421=_0xfe87[_0xf295e9];return _0x562421;};'use strict';var multer=require('multer');var util=require(_0x7fe8('0x0'));var path=require('path');var timeout=require(_0x7fe8('0x1'));var express=require(_0x7fe8('0x2'));var router=express[_0x7fe8('0x3')]();var fs_extra=require(_0x7fe8('0x4'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x7fe8('0x5'));var controller=require(_0x7fe8('0x6'));router['get']('/',auth[_0x7fe8('0x7')](),controller[_0x7fe8('0x8')]);router[_0x7fe8('0x9')](_0x7fe8('0xa'),auth['isAuthenticated'](),controller['show']);router[_0x7fe8('0x9')]('/:id/items',auth[_0x7fe8('0x7')](),controller[_0x7fe8('0xb')]);router[_0x7fe8('0xc')]('/',auth[_0x7fe8('0x7')](),controller[_0x7fe8('0xd')]);router['post'](_0x7fe8('0xe'),auth['isAuthenticated'](),controller[_0x7fe8('0xf')]);router[_0x7fe8('0xc')](_0x7fe8('0x10'),auth[_0x7fe8('0x7')](),controller['addItem']);router['put'](_0x7fe8('0xa'),auth[_0x7fe8('0x7')](),controller[_0x7fe8('0x11')]);router['delete'](_0x7fe8('0xa'),auth['isAuthenticated'](),controller['destroy']);module[_0x7fe8('0x12')]=router;