725cce556c610df510f3b4b2229b02e7d269f0b0
[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 _0xd12f=['addItem','delete','destroy','exports','multer','util','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./dashboard.controller','get','isAuthenticated','index','/:id','getItems','create','post','/:id/clone','clone','/:id/items'];(function(_0x22433e,_0xfef270){var _0x46ecab=function(_0x38cedb){while(--_0x38cedb){_0x22433e['push'](_0x22433e['shift']());}};_0x46ecab(++_0xfef270);}(_0xd12f,0x1d2));var _0xfd12=function(_0x7c596,_0x2bf61f){_0x7c596=_0x7c596-0x0;var _0x427fc0=_0xd12f[_0x7c596];return _0x427fc0;};'use strict';var multer=require(_0xfd12('0x0'));var util=require(_0xfd12('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0xfd12('0x2'));var router=express[_0xfd12('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0xfd12('0x4'));var interaction=require(_0xfd12('0x5'));var config=require(_0xfd12('0x6'));var controller=require(_0xfd12('0x7'));router[_0xfd12('0x8')]('/',auth[_0xfd12('0x9')](),controller[_0xfd12('0xa')]);router[_0xfd12('0x8')](_0xfd12('0xb'),auth[_0xfd12('0x9')](),controller['show']);router[_0xfd12('0x8')]('/:id/items',auth[_0xfd12('0x9')](),controller[_0xfd12('0xc')]);router['post']('/',auth[_0xfd12('0x9')](),controller[_0xfd12('0xd')]);router[_0xfd12('0xe')](_0xfd12('0xf'),auth[_0xfd12('0x9')](),controller[_0xfd12('0x10')]);router[_0xfd12('0xe')](_0xfd12('0x11'),auth[_0xfd12('0x9')](),controller[_0xfd12('0x12')]);router['put'](_0xfd12('0xb'),auth[_0xfd12('0x9')](),controller['update']);router[_0xfd12('0x13')](_0xfd12('0xb'),auth[_0xfd12('0x9')](),controller[_0xfd12('0x14')]);module[_0xfd12('0x15')]=router;