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 _0xb41e=['index','/:id','show','post','create','update','delete','destroy','util','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','get','isAuthenticated'];(function(_0x46a922,_0x24a18b){var _0x306708=function(_0x1d1cbf){while(--_0x1d1cbf){_0x46a922['push'](_0x46a922['shift']());}};_0x306708(++_0x24a18b);}(_0xb41e,0x68));var _0xeb41=function(_0x544861,_0x31753d){_0x544861=_0x544861-0x0;var _0x2dd0df=_0xb41e[_0x544861];return _0x2dd0df;};'use strict';var multer=require('multer');var util=require(_0xeb41('0x0'));var path=require('path');var timeout=require(_0xeb41('0x1'));var express=require(_0xeb41('0x2'));var router=express[_0xeb41('0x3')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0xeb41('0x4'));var config=require(_0xeb41('0x5'));var controller=require('./cmContactHasItem.controller');router[_0xeb41('0x6')]('/',auth[_0xeb41('0x7')](),controller[_0xeb41('0x8')]);router[_0xeb41('0x6')](_0xeb41('0x9'),auth[_0xeb41('0x7')](),controller[_0xeb41('0xa')]);router[_0xeb41('0xb')]('/',auth[_0xeb41('0x7')](),controller[_0xeb41('0xc')]);router['put'](_0xeb41('0x9'),auth[_0xeb41('0x7')](),controller[_0xeb41('0xd')]);router[_0xeb41('0xe')](_0xeb41('0x9'),auth[_0xeb41('0x7')](),controller[_0xeb41('0xf')]);module['exports']=router;