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 _0xbc87=['../../config/environment','./cmContactHasItem.controller','get','isAuthenticated','/:id','post','create','put','update','delete','exports','multer','util','connect-timeout','express','Router','fs-extra','../../components/interaction/service'];(function(_0x8c43de,_0x90ff31){var _0xa6591b=function(_0x469716){while(--_0x469716){_0x8c43de['push'](_0x8c43de['shift']());}};_0xa6591b(++_0x90ff31);}(_0xbc87,0x1cd));var _0x7bc8=function(_0x326ef8,_0x11d7cd){_0x326ef8=_0x326ef8-0x0;var _0x5c2452=_0xbc87[_0x326ef8];return _0x5c2452;};'use strict';var multer=require(_0x7bc8('0x0'));var util=require(_0x7bc8('0x1'));var path=require('path');var timeout=require(_0x7bc8('0x2'));var express=require(_0x7bc8('0x3'));var router=express[_0x7bc8('0x4')]();var fs_extra=require(_0x7bc8('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x7bc8('0x6'));var config=require(_0x7bc8('0x7'));var controller=require(_0x7bc8('0x8'));router[_0x7bc8('0x9')]('/',auth[_0x7bc8('0xa')](),controller['index']);router['get'](_0x7bc8('0xb'),auth[_0x7bc8('0xa')](),controller['show']);router[_0x7bc8('0xc')]('/',auth['isAuthenticated'](),controller[_0x7bc8('0xd')]);router[_0x7bc8('0xe')]('/:id',auth[_0x7bc8('0xa')](),controller[_0x7bc8('0xf')]);router[_0x7bc8('0x10')](_0x7bc8('0xb'),auth[_0x7bc8('0xa')](),controller['destroy']);module[_0x7bc8('0x11')]=router;