Built motion from commit 1fa89557.|2.6.10
[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 _0xb922=['destroy','exports','multer','util','path','express','Router','fs-extra','../../components/auth/service','./dashboard.controller','get','isAuthenticated','index','/:id','/:id/items','getItems','post','/:id/clone','addItem','put','update'];(function(_0x5f3245,_0x35fbbf){var _0xc4a18e=function(_0x2bd03e){while(--_0x2bd03e){_0x5f3245['push'](_0x5f3245['shift']());}};_0xc4a18e(++_0x35fbbf);}(_0xb922,0x167));var _0x2b92=function(_0x3fa933,_0x190a6d){_0x3fa933=_0x3fa933-0x0;var _0x52846d=_0xb922[_0x3fa933];return _0x52846d;};'use strict';var multer=require(_0x2b92('0x0'));var util=require(_0x2b92('0x1'));var path=require(_0x2b92('0x2'));var timeout=require('connect-timeout');var express=require(_0x2b92('0x3'));var router=express[_0x2b92('0x4')]();var fs_extra=require(_0x2b92('0x5'));var auth=require(_0x2b92('0x6'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x2b92('0x7'));router[_0x2b92('0x8')]('/',auth[_0x2b92('0x9')](),controller[_0x2b92('0xa')]);router[_0x2b92('0x8')](_0x2b92('0xb'),auth[_0x2b92('0x9')](),controller['show']);router['get'](_0x2b92('0xc'),auth[_0x2b92('0x9')](),controller[_0x2b92('0xd')]);router[_0x2b92('0xe')]('/',auth['isAuthenticated'](),controller['create']);router[_0x2b92('0xe')](_0x2b92('0xf'),auth[_0x2b92('0x9')](),controller['clone']);router['post']('/:id/items',auth['isAuthenticated'](),controller[_0x2b92('0x10')]);router[_0x2b92('0x11')](_0x2b92('0xb'),auth[_0x2b92('0x9')](),controller[_0x2b92('0x12')]);router['delete']('/:id',auth[_0x2b92('0x9')](),controller[_0x2b92('0x13')]);module[_0x2b92('0x14')]=router;