Built motion from commit fe909640.|2.6.8
[motion2.git] / server / api / dashboardItem / 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 _0xd629=['fs-extra','../../components/interaction/service','../../config/environment','get','show','post','isAuthenticated','create','put','delete','/:id','exports','multer','connect-timeout','express','Router'];(function(_0x530672,_0x3ecb78){var _0xbfa2aa=function(_0xe0f438){while(--_0xe0f438){_0x530672['push'](_0x530672['shift']());}};_0xbfa2aa(++_0x3ecb78);}(_0xd629,0xec));var _0x9d62=function(_0x40220a,_0x22feb1){_0x40220a=_0x40220a-0x0;var _0x3903cc=_0xd629[_0x40220a];return _0x3903cc;};'use strict';var multer=require(_0x9d62('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x9d62('0x1'));var express=require(_0x9d62('0x2'));var router=express[_0x9d62('0x3')]();var fs_extra=require(_0x9d62('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x9d62('0x5'));var config=require(_0x9d62('0x6'));var controller=require('./dashboardItem.controller');router[_0x9d62('0x7')]('/:id',auth['isAuthenticated'](),controller[_0x9d62('0x8')]);router[_0x9d62('0x9')]('/',auth[_0x9d62('0xa')](),controller[_0x9d62('0xb')]);router[_0x9d62('0xc')]('/:id',auth[_0x9d62('0xa')](),controller['update']);router[_0x9d62('0xd')](_0x9d62('0xe'),auth[_0x9d62('0xa')](),controller['destroy']);module[_0x9d62('0xf')]=router;