Built motion from commit 753c950e.|2.5.42
[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 _0xb4b8=['Router','fs-extra','../../components/auth/service','../../config/environment','./dashboard.controller','get','/:id','isAuthenticated','show','/:id/items','getItems','clone','post','put','destroy','exports','multer','util','path','connect-timeout','express'];(function(_0x325e78,_0x1b22d4){var _0x3b3186=function(_0x5f4bf9){while(--_0x5f4bf9){_0x325e78['push'](_0x325e78['shift']());}};_0x3b3186(++_0x1b22d4);}(_0xb4b8,0x175));var _0x8b4b=function(_0x491d89,_0x42a116){_0x491d89=_0x491d89-0x0;var _0x9418cb=_0xb4b8[_0x491d89];return _0x9418cb;};'use strict';var multer=require(_0x8b4b('0x0'));var util=require(_0x8b4b('0x1'));var path=require(_0x8b4b('0x2'));var timeout=require(_0x8b4b('0x3'));var express=require(_0x8b4b('0x4'));var router=express[_0x8b4b('0x5')]();var fs_extra=require(_0x8b4b('0x6'));var auth=require(_0x8b4b('0x7'));var interaction=require('../../components/interaction/service');var config=require(_0x8b4b('0x8'));var controller=require(_0x8b4b('0x9'));router[_0x8b4b('0xa')]('/',auth['isAuthenticated'](),controller['index']);router['get'](_0x8b4b('0xb'),auth[_0x8b4b('0xc')](),controller[_0x8b4b('0xd')]);router[_0x8b4b('0xa')](_0x8b4b('0xe'),auth['isAuthenticated'](),controller[_0x8b4b('0xf')]);router['post']('/',auth['isAuthenticated'](),controller['create']);router['post']('/:id/clone',auth['isAuthenticated'](),controller[_0x8b4b('0x10')]);router[_0x8b4b('0x11')]('/:id/items',auth[_0x8b4b('0xc')](),controller['addItem']);router[_0x8b4b('0x12')](_0x8b4b('0xb'),auth[_0x8b4b('0xc')](),controller['update']);router['delete'](_0x8b4b('0xb'),auth['isAuthenticated'](),controller[_0x8b4b('0x13')]);module[_0x8b4b('0x14')]=router;