Built motion from commit b5413ace.|2.6.9
[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 _0xc68a=['../../components/interaction/service','../../config/environment','./dashboard.controller','get','isAuthenticated','index','/:id','/:id/items','getItems','post','/:id/clone','clone','addItem','put','update','delete','destroy','exports','multer','util','connect-timeout','express','Router','../../components/auth/service'];(function(_0x476618,_0x530f7e){var _0x36b6d2=function(_0x465460){while(--_0x465460){_0x476618['push'](_0x476618['shift']());}};_0x36b6d2(++_0x530f7e);}(_0xc68a,0x1c2));var _0xac68=function(_0x223c0d,_0x3ec04d){_0x223c0d=_0x223c0d-0x0;var _0x207827=_0xc68a[_0x223c0d];return _0x207827;};'use strict';var multer=require(_0xac68('0x0'));var util=require(_0xac68('0x1'));var path=require('path');var timeout=require(_0xac68('0x2'));var express=require(_0xac68('0x3'));var router=express[_0xac68('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0xac68('0x5'));var interaction=require(_0xac68('0x6'));var config=require(_0xac68('0x7'));var controller=require(_0xac68('0x8'));router[_0xac68('0x9')]('/',auth[_0xac68('0xa')](),controller[_0xac68('0xb')]);router['get'](_0xac68('0xc'),auth[_0xac68('0xa')](),controller['show']);router['get'](_0xac68('0xd'),auth['isAuthenticated'](),controller[_0xac68('0xe')]);router['post']('/',auth[_0xac68('0xa')](),controller['create']);router[_0xac68('0xf')](_0xac68('0x10'),auth[_0xac68('0xa')](),controller[_0xac68('0x11')]);router[_0xac68('0xf')](_0xac68('0xd'),auth[_0xac68('0xa')](),controller[_0xac68('0x12')]);router[_0xac68('0x13')](_0xac68('0xc'),auth[_0xac68('0xa')](),controller[_0xac68('0x14')]);router[_0xac68('0x15')](_0xac68('0xc'),auth[_0xac68('0xa')](),controller[_0xac68('0x16')]);module[_0xac68('0x17')]=router;