2f46335124f6f913efa461352532f3759178f900
[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 _0x16be=['/:id/items','post','create','/:id/clone','clone','addItem','/:id','update','delete','destroy','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','./dashboard.controller','get','isAuthenticated','index','show'];(function(_0x32c93a,_0x7d169b){var _0x44a498=function(_0x46c1bf){while(--_0x46c1bf){_0x32c93a['push'](_0x32c93a['shift']());}};_0x44a498(++_0x7d169b);}(_0x16be,0x6f));var _0xe16b=function(_0x241d59,_0x5d3923){_0x241d59=_0x241d59-0x0;var _0x4ff05f=_0x16be[_0x241d59];return _0x4ff05f;};'use strict';var multer=require(_0xe16b('0x0'));var util=require(_0xe16b('0x1'));var path=require(_0xe16b('0x2'));var timeout=require(_0xe16b('0x3'));var express=require(_0xe16b('0x4'));var router=express[_0xe16b('0x5')]();var fs_extra=require(_0xe16b('0x6'));var auth=require(_0xe16b('0x7'));var interaction=require('../../components/interaction/service');var config=require(_0xe16b('0x8'));var controller=require(_0xe16b('0x9'));router[_0xe16b('0xa')]('/',auth[_0xe16b('0xb')](),controller[_0xe16b('0xc')]);router[_0xe16b('0xa')]('/:id',auth[_0xe16b('0xb')](),controller[_0xe16b('0xd')]);router[_0xe16b('0xa')](_0xe16b('0xe'),auth[_0xe16b('0xb')](),controller['getItems']);router[_0xe16b('0xf')]('/',auth['isAuthenticated'](),controller[_0xe16b('0x10')]);router['post'](_0xe16b('0x11'),auth['isAuthenticated'](),controller[_0xe16b('0x12')]);router[_0xe16b('0xf')](_0xe16b('0xe'),auth[_0xe16b('0xb')](),controller[_0xe16b('0x13')]);router['put'](_0xe16b('0x14'),auth['isAuthenticated'](),controller[_0xe16b('0x15')]);router[_0xe16b('0x16')](_0xe16b('0x14'),auth[_0xe16b('0xb')](),controller[_0xe16b('0x17')]);module[_0xe16b('0x18')]=router;