Built motion from commit 953226e6.|2.6.32
[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 _0x21b3=['connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./dashboard.controller','get','isAuthenticated','index','/:id','/:id/items','getItems','post','create','clone','addItem','delete','destroy'];(function(_0x16b242,_0xadbe54){var _0x52da18=function(_0x16cbfd){while(--_0x16cbfd){_0x16b242['push'](_0x16b242['shift']());}};_0x52da18(++_0xadbe54);}(_0x21b3,0x130));var _0x321b=function(_0x1cb484,_0x110b9c){_0x1cb484=_0x1cb484-0x0;var _0x5976b1=_0x21b3[_0x1cb484];return _0x5976b1;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require(_0x321b('0x0'));var express=require(_0x321b('0x1'));var router=express[_0x321b('0x2')]();var fs_extra=require(_0x321b('0x3'));var auth=require(_0x321b('0x4'));var interaction=require(_0x321b('0x5'));var config=require('../../config/environment');var controller=require(_0x321b('0x6'));router[_0x321b('0x7')]('/',auth[_0x321b('0x8')](),controller[_0x321b('0x9')]);router[_0x321b('0x7')](_0x321b('0xa'),auth['isAuthenticated'](),controller['show']);router[_0x321b('0x7')](_0x321b('0xb'),auth[_0x321b('0x8')](),controller[_0x321b('0xc')]);router[_0x321b('0xd')]('/',auth[_0x321b('0x8')](),controller[_0x321b('0xe')]);router[_0x321b('0xd')]('/:id/clone',auth[_0x321b('0x8')](),controller[_0x321b('0xf')]);router[_0x321b('0xd')](_0x321b('0xb'),auth['isAuthenticated'](),controller[_0x321b('0x10')]);router['put'](_0x321b('0xa'),auth[_0x321b('0x8')](),controller['update']);router[_0x321b('0x11')](_0x321b('0xa'),auth[_0x321b('0x8')](),controller[_0x321b('0x12')]);module['exports']=router;