Built motion from commit d5e4af8c.|2.6.23
[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 _0x83dc=['path','Router','../../components/interaction/service','../../config/environment','./dashboard.controller','get','isAuthenticated','index','/:id','create','post','/:id/items','addItem','put','update','delete','destroy','exports','multer'];(function(_0x2dafbe,_0x5d04de){var _0x58a45a=function(_0x50ac96){while(--_0x50ac96){_0x2dafbe['push'](_0x2dafbe['shift']());}};_0x58a45a(++_0x5d04de);}(_0x83dc,0x97));var _0xc83d=function(_0x22062d,_0x4a7dcd){_0x22062d=_0x22062d-0x0;var _0x173a35=_0x83dc[_0x22062d];return _0x173a35;};'use strict';var multer=require(_0xc83d('0x0'));var util=require('util');var path=require(_0xc83d('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xc83d('0x2')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0xc83d('0x3'));var config=require(_0xc83d('0x4'));var controller=require(_0xc83d('0x5'));router[_0xc83d('0x6')]('/',auth[_0xc83d('0x7')](),controller[_0xc83d('0x8')]);router[_0xc83d('0x6')](_0xc83d('0x9'),auth[_0xc83d('0x7')](),controller['show']);router['get']('/:id/items',auth['isAuthenticated'](),controller['getItems']);router['post']('/',auth['isAuthenticated'](),controller[_0xc83d('0xa')]);router['post']('/:id/clone',auth[_0xc83d('0x7')](),controller['clone']);router[_0xc83d('0xb')](_0xc83d('0xc'),auth[_0xc83d('0x7')](),controller[_0xc83d('0xd')]);router[_0xc83d('0xe')](_0xc83d('0x9'),auth[_0xc83d('0x7')](),controller[_0xc83d('0xf')]);router[_0xc83d('0x10')](_0xc83d('0x9'),auth[_0xc83d('0x7')](),controller[_0xc83d('0x11')]);module[_0xc83d('0x12')]=router;