37a19dc401cbbdbd200a14a3f02d50643a70fe9d
[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 _0xc304=['index','isAuthenticated','show','create','post','/:id/clone','/:id/items','addItem','put','update','destroy','exports','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xc304,0xd2));var _0x4c30=function(_0x217c2e,_0x358f06){_0x217c2e=_0x217c2e-0x0;var _0x22b7d8=_0xc304[_0x217c2e];return _0x22b7d8;};'use strict';var multer=require('multer');var util=require(_0x4c30('0x0'));var path=require(_0x4c30('0x1'));var timeout=require(_0x4c30('0x2'));var express=require(_0x4c30('0x3'));var router=express[_0x4c30('0x4')]();var fs_extra=require(_0x4c30('0x5'));var auth=require(_0x4c30('0x6'));var interaction=require(_0x4c30('0x7'));var config=require(_0x4c30('0x8'));var controller=require('./dashboard.controller');router[_0x4c30('0x9')]('/',auth['isAuthenticated'](),controller[_0x4c30('0xa')]);router[_0x4c30('0x9')]('/:id',auth[_0x4c30('0xb')](),controller[_0x4c30('0xc')]);router[_0x4c30('0x9')]('/:id/items',auth[_0x4c30('0xb')](),controller['getItems']);router['post']('/',auth[_0x4c30('0xb')](),controller[_0x4c30('0xd')]);router[_0x4c30('0xe')](_0x4c30('0xf'),auth[_0x4c30('0xb')](),controller['clone']);router[_0x4c30('0xe')](_0x4c30('0x10'),auth[_0x4c30('0xb')](),controller[_0x4c30('0x11')]);router[_0x4c30('0x12')]('/:id',auth['isAuthenticated'](),controller[_0x4c30('0x13')]);router['delete']('/:id',auth[_0x4c30('0xb')](),controller[_0x4c30('0x14')]);module[_0x4c30('0x15')]=router;