Built motion from commit e38a297d.|2.6.18
[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 _0x2be2=['isAuthenticated','/:id/items','getItems','create','post','/:id/clone','clone','put','delete','destroy','exports','multer','util','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./dashboard.controller','get','index','/:id'];(function(_0x139564,_0x2cfb89){var _0x3729a9=function(_0x3aa16d){while(--_0x3aa16d){_0x139564['push'](_0x139564['shift']());}};_0x3729a9(++_0x2cfb89);}(_0x2be2,0x129));var _0x22be=function(_0x1628f6,_0x56a603){_0x1628f6=_0x1628f6-0x0;var _0x10ae25=_0x2be2[_0x1628f6];return _0x10ae25;};'use strict';var multer=require(_0x22be('0x0'));var util=require(_0x22be('0x1'));var path=require('path');var timeout=require(_0x22be('0x2'));var express=require('express');var router=express[_0x22be('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x22be('0x4'));var interaction=require(_0x22be('0x5'));var config=require(_0x22be('0x6'));var controller=require(_0x22be('0x7'));router[_0x22be('0x8')]('/',auth['isAuthenticated'](),controller[_0x22be('0x9')]);router[_0x22be('0x8')](_0x22be('0xa'),auth[_0x22be('0xb')](),controller['show']);router[_0x22be('0x8')](_0x22be('0xc'),auth['isAuthenticated'](),controller[_0x22be('0xd')]);router['post']('/',auth[_0x22be('0xb')](),controller[_0x22be('0xe')]);router[_0x22be('0xf')](_0x22be('0x10'),auth[_0x22be('0xb')](),controller[_0x22be('0x11')]);router[_0x22be('0xf')]('/:id/items',auth[_0x22be('0xb')](),controller['addItem']);router[_0x22be('0x12')]('/:id',auth[_0x22be('0xb')](),controller['update']);router[_0x22be('0x13')](_0x22be('0xa'),auth[_0x22be('0xb')](),controller[_0x22be('0x14')]);module[_0x22be('0x15')]=router;