Built motion from commit 775e2a94.|2.6.3
[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 _0xff8a=['addItem','update','exports','util','path','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./dashboard.controller','get','isAuthenticated','index','/:id','/:id/items','post','create','clone'];(function(_0x1be8af,_0x5e662f){var _0x49190e=function(_0x1800a4){while(--_0x1800a4){_0x1be8af['push'](_0x1be8af['shift']());}};_0x49190e(++_0x5e662f);}(_0xff8a,0x17f));var _0xaff8=function(_0x120d9d,_0x2548f8){_0x120d9d=_0x120d9d-0x0;var _0x18a229=_0xff8a[_0x120d9d];return _0x18a229;};'use strict';var multer=require('multer');var util=require(_0xaff8('0x0'));var path=require(_0xaff8('0x1'));var timeout=require(_0xaff8('0x2'));var express=require(_0xaff8('0x3'));var router=express['Router']();var fs_extra=require(_0xaff8('0x4'));var auth=require(_0xaff8('0x5'));var interaction=require(_0xaff8('0x6'));var config=require(_0xaff8('0x7'));var controller=require(_0xaff8('0x8'));router[_0xaff8('0x9')]('/',auth[_0xaff8('0xa')](),controller[_0xaff8('0xb')]);router[_0xaff8('0x9')](_0xaff8('0xc'),auth[_0xaff8('0xa')](),controller['show']);router[_0xaff8('0x9')](_0xaff8('0xd'),auth[_0xaff8('0xa')](),controller['getItems']);router[_0xaff8('0xe')]('/',auth['isAuthenticated'](),controller[_0xaff8('0xf')]);router[_0xaff8('0xe')]('/:id/clone',auth[_0xaff8('0xa')](),controller[_0xaff8('0x10')]);router[_0xaff8('0xe')]('/:id/items',auth[_0xaff8('0xa')](),controller[_0xaff8('0x11')]);router['put']('/:id',auth[_0xaff8('0xa')](),controller[_0xaff8('0x12')]);router['delete']('/:id',auth['isAuthenticated'](),controller['destroy']);module[_0xaff8('0x13')]=router;