Built motion from commit 3c2ce842.|2.6.31
[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 _0x8f14=['multer','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','./dashboard.controller','get','isAuthenticated','index','/:id','show','getItems','post','create','/:id/clone','addItem','put','update','delete','destroy','exports'];(function(_0x122ef9,_0x451d2a){var _0x42fba0=function(_0x17c9d3){while(--_0x17c9d3){_0x122ef9['push'](_0x122ef9['shift']());}};_0x42fba0(++_0x451d2a);}(_0x8f14,0x120));var _0x48f1=function(_0x35f393,_0x2720cb){_0x35f393=_0x35f393-0x0;var _0x4c05b1=_0x8f14[_0x35f393];return _0x4c05b1;};'use strict';var multer=require(_0x48f1('0x0'));var util=require('util');var path=require(_0x48f1('0x1'));var timeout=require(_0x48f1('0x2'));var express=require(_0x48f1('0x3'));var router=express[_0x48f1('0x4')]();var fs_extra=require(_0x48f1('0x5'));var auth=require(_0x48f1('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x48f1('0x7'));var controller=require(_0x48f1('0x8'));router[_0x48f1('0x9')]('/',auth[_0x48f1('0xa')](),controller[_0x48f1('0xb')]);router[_0x48f1('0x9')](_0x48f1('0xc'),auth[_0x48f1('0xa')](),controller[_0x48f1('0xd')]);router[_0x48f1('0x9')]('/:id/items',auth[_0x48f1('0xa')](),controller[_0x48f1('0xe')]);router[_0x48f1('0xf')]('/',auth[_0x48f1('0xa')](),controller[_0x48f1('0x10')]);router[_0x48f1('0xf')](_0x48f1('0x11'),auth['isAuthenticated'](),controller['clone']);router['post']('/:id/items',auth['isAuthenticated'](),controller[_0x48f1('0x12')]);router[_0x48f1('0x13')](_0x48f1('0xc'),auth[_0x48f1('0xa')](),controller[_0x48f1('0x14')]);router[_0x48f1('0x15')](_0x48f1('0xc'),auth[_0x48f1('0xa')](),controller[_0x48f1('0x16')]);module[_0x48f1('0x17')]=router;