1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x400a=['../../components/interaction/service','../../config/environment','./dashboard.controller','get','index','/:id','isAuthenticated','show','getItems','create','post','/:id/clone','clone','addItem','put','update','delete','destroy','exports','connect-timeout','express','Router','fs-extra','../../components/auth/service'];(function(_0x680821,_0x23e67f){var _0x3f132c=function(_0x1bbcea){while(--_0x1bbcea){_0x680821['push'](_0x680821['shift']());}};_0x3f132c(++_0x23e67f);}(_0x400a,0x1f3));var _0xa400=function(_0x325ba7,_0x68f81){_0x325ba7=_0x325ba7-0x0;var _0x6e8de5=_0x400a[_0x325ba7];return _0x6e8de5;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require(_0xa400('0x0'));var express=require(_0xa400('0x1'));var router=express[_0xa400('0x2')]();var fs_extra=require(_0xa400('0x3'));var auth=require(_0xa400('0x4'));var interaction=require(_0xa400('0x5'));var config=require(_0xa400('0x6'));var controller=require(_0xa400('0x7'));router[_0xa400('0x8')]('/',auth['isAuthenticated'](),controller[_0xa400('0x9')]);router[_0xa400('0x8')](_0xa400('0xa'),auth[_0xa400('0xb')](),controller[_0xa400('0xc')]);router['get']('/:id/items',auth['isAuthenticated'](),controller[_0xa400('0xd')]);router['post']('/',auth[_0xa400('0xb')](),controller[_0xa400('0xe')]);router[_0xa400('0xf')](_0xa400('0x10'),auth[_0xa400('0xb')](),controller[_0xa400('0x11')]);router[_0xa400('0xf')]('/:id/items',auth[_0xa400('0xb')](),controller[_0xa400('0x12')]);router[_0xa400('0x13')]('/:id',auth[_0xa400('0xb')](),controller[_0xa400('0x14')]);router[_0xa400('0x15')](_0xa400('0xa'),auth[_0xa400('0xb')](),controller[_0xa400('0x16')]);module[_0xa400('0x17')]=router;