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 _0x2214=['util','connect-timeout','express','Router','fs-extra','../../components/auth/service','./dashboard.controller','get','isAuthenticated','index','/:id','show','/:id/items','getItems','post','create','/:id/clone','clone','addItem','put','update','delete','destroy','exports'];(function(_0x2ac61f,_0x3f0ec0){var _0x5df70a=function(_0x21c7be){while(--_0x21c7be){_0x2ac61f['push'](_0x2ac61f['shift']());}};_0x5df70a(++_0x3f0ec0);}(_0x2214,0x138));var _0x4221=function(_0x1f8399,_0x29a098){_0x1f8399=_0x1f8399-0x0;var _0x27f551=_0x2214[_0x1f8399];return _0x27f551;};'use strict';var multer=require('multer');var util=require(_0x4221('0x0'));var path=require('path');var timeout=require(_0x4221('0x1'));var express=require(_0x4221('0x2'));var router=express[_0x4221('0x3')]();var fs_extra=require(_0x4221('0x4'));var auth=require(_0x4221('0x5'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x4221('0x6'));router[_0x4221('0x7')]('/',auth[_0x4221('0x8')](),controller[_0x4221('0x9')]);router[_0x4221('0x7')](_0x4221('0xa'),auth['isAuthenticated'](),controller[_0x4221('0xb')]);router[_0x4221('0x7')](_0x4221('0xc'),auth['isAuthenticated'](),controller[_0x4221('0xd')]);router[_0x4221('0xe')]('/',auth[_0x4221('0x8')](),controller[_0x4221('0xf')]);router['post'](_0x4221('0x10'),auth[_0x4221('0x8')](),controller[_0x4221('0x11')]);router[_0x4221('0xe')](_0x4221('0xc'),auth[_0x4221('0x8')](),controller[_0x4221('0x12')]);router[_0x4221('0x13')](_0x4221('0xa'),auth[_0x4221('0x8')](),controller[_0x4221('0x14')]);router[_0x4221('0x15')](_0x4221('0xa'),auth[_0x4221('0x8')](),controller[_0x4221('0x16')]);module[_0x4221('0x17')]=router;