Built motion from commit ffdca78c.|2.6.24
[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 _0x5d3b=['../../config/environment','get','isAuthenticated','index','/:id','/:id/items','getItems','post','create','/:id/clone','addItem','put','update','delete','destroy','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service'];(function(_0x16dbcd,_0x274516){var _0x34706e=function(_0x43433d){while(--_0x43433d){_0x16dbcd['push'](_0x16dbcd['shift']());}};_0x34706e(++_0x274516);}(_0x5d3b,0xa6));var _0xb5d3=function(_0x32a04b,_0x84f0af){_0x32a04b=_0x32a04b-0x0;var _0x5b1791=_0x5d3b[_0x32a04b];return _0x5b1791;};'use strict';var multer=require(_0xb5d3('0x0'));var util=require(_0xb5d3('0x1'));var path=require(_0xb5d3('0x2'));var timeout=require(_0xb5d3('0x3'));var express=require(_0xb5d3('0x4'));var router=express[_0xb5d3('0x5')]();var fs_extra=require(_0xb5d3('0x6'));var auth=require(_0xb5d3('0x7'));var interaction=require(_0xb5d3('0x8'));var config=require(_0xb5d3('0x9'));var controller=require('./dashboard.controller');router[_0xb5d3('0xa')]('/',auth[_0xb5d3('0xb')](),controller[_0xb5d3('0xc')]);router[_0xb5d3('0xa')](_0xb5d3('0xd'),auth[_0xb5d3('0xb')](),controller['show']);router['get'](_0xb5d3('0xe'),auth[_0xb5d3('0xb')](),controller[_0xb5d3('0xf')]);router[_0xb5d3('0x10')]('/',auth[_0xb5d3('0xb')](),controller[_0xb5d3('0x11')]);router['post'](_0xb5d3('0x12'),auth['isAuthenticated'](),controller['clone']);router[_0xb5d3('0x10')]('/:id/items',auth[_0xb5d3('0xb')](),controller[_0xb5d3('0x13')]);router[_0xb5d3('0x14')](_0xb5d3('0xd'),auth[_0xb5d3('0xb')](),controller[_0xb5d3('0x15')]);router[_0xb5d3('0x16')](_0xb5d3('0xd'),auth[_0xb5d3('0xb')](),controller[_0xb5d3('0x17')]);module[_0xb5d3('0x18')]=router;