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 _0x2b4d=['show','/:id/items','getItems','post','/:id/clone','clone','addItem','put','update','delete','destroy','util','path','Router','../../components/auth/service','../../config/environment','./dashboard.controller','get','isAuthenticated','index','/:id'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x2b4d,0x1ee));var _0xd2b4=function(_0x4b4d43,_0x1590f7){_0x4b4d43=_0x4b4d43-0x0;var _0x5706ba=_0x2b4d[_0x4b4d43];return _0x5706ba;};'use strict';var multer=require('multer');var util=require(_0xd2b4('0x0'));var path=require(_0xd2b4('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xd2b4('0x2')]();var fs_extra=require('fs-extra');var auth=require(_0xd2b4('0x3'));var interaction=require('../../components/interaction/service');var config=require(_0xd2b4('0x4'));var controller=require(_0xd2b4('0x5'));router[_0xd2b4('0x6')]('/',auth[_0xd2b4('0x7')](),controller[_0xd2b4('0x8')]);router[_0xd2b4('0x6')](_0xd2b4('0x9'),auth[_0xd2b4('0x7')](),controller[_0xd2b4('0xa')]);router[_0xd2b4('0x6')](_0xd2b4('0xb'),auth['isAuthenticated'](),controller[_0xd2b4('0xc')]);router[_0xd2b4('0xd')]('/',auth[_0xd2b4('0x7')](),controller['create']);router['post'](_0xd2b4('0xe'),auth[_0xd2b4('0x7')](),controller[_0xd2b4('0xf')]);router[_0xd2b4('0xd')](_0xd2b4('0xb'),auth[_0xd2b4('0x7')](),controller[_0xd2b4('0x10')]);router[_0xd2b4('0x11')](_0xd2b4('0x9'),auth['isAuthenticated'](),controller[_0xd2b4('0x12')]);router[_0xd2b4('0x13')]('/:id',auth[_0xd2b4('0x7')](),controller[_0xd2b4('0x14')]);module['exports']=router;