Built motion from commit 639a1a7f.|2.6.19
[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 _0x3fbb=['util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./dashboard.controller','get','isAuthenticated','index','/:id','show','/:id/items','post','create','/:id/clone','clone','addItem','put','update','delete','destroy','multer'];(function(_0x3d4449,_0x2b4f48){var _0x3c603c=function(_0x5d546c){while(--_0x5d546c){_0x3d4449['push'](_0x3d4449['shift']());}};_0x3c603c(++_0x2b4f48);}(_0x3fbb,0xc7));var _0xb3fb=function(_0x5cb3de,_0x4ae1f7){_0x5cb3de=_0x5cb3de-0x0;var _0x16279a=_0x3fbb[_0x5cb3de];return _0x16279a;};'use strict';var multer=require(_0xb3fb('0x0'));var util=require(_0xb3fb('0x1'));var path=require(_0xb3fb('0x2'));var timeout=require(_0xb3fb('0x3'));var express=require(_0xb3fb('0x4'));var router=express[_0xb3fb('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0xb3fb('0x6'));var interaction=require(_0xb3fb('0x7'));var config=require(_0xb3fb('0x8'));var controller=require(_0xb3fb('0x9'));router[_0xb3fb('0xa')]('/',auth[_0xb3fb('0xb')](),controller[_0xb3fb('0xc')]);router['get'](_0xb3fb('0xd'),auth[_0xb3fb('0xb')](),controller[_0xb3fb('0xe')]);router[_0xb3fb('0xa')](_0xb3fb('0xf'),auth['isAuthenticated'](),controller['getItems']);router[_0xb3fb('0x10')]('/',auth[_0xb3fb('0xb')](),controller[_0xb3fb('0x11')]);router[_0xb3fb('0x10')](_0xb3fb('0x12'),auth[_0xb3fb('0xb')](),controller[_0xb3fb('0x13')]);router[_0xb3fb('0x10')](_0xb3fb('0xf'),auth[_0xb3fb('0xb')](),controller[_0xb3fb('0x14')]);router[_0xb3fb('0x15')]('/:id',auth[_0xb3fb('0xb')](),controller[_0xb3fb('0x16')]);router[_0xb3fb('0x17')](_0xb3fb('0xd'),auth[_0xb3fb('0xb')](),controller[_0xb3fb('0x18')]);module['exports']=router;