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 _0x6a13=['/:id','show','isAuthenticated','create','put','update','util','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment','index','get'];(function(_0x4eacfe,_0x598820){var _0x4118ba=function(_0x1ff903){while(--_0x1ff903){_0x4eacfe['push'](_0x4eacfe['shift']());}};_0x4118ba(++_0x598820);}(_0x6a13,0xf4));var _0x36a1=function(_0x2cde2f,_0x4dd3c6){_0x2cde2f=_0x2cde2f-0x0;var _0xc43f6c=_0x6a13[_0x2cde2f];return _0xc43f6c;};'use strict';var multer=require('multer');var util=require(_0x36a1('0x0'));var path=require('path');var timeout=require(_0x36a1('0x1'));var express=require(_0x36a1('0x2'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x36a1('0x3'));var interaction=require(_0x36a1('0x4'));var config=require(_0x36a1('0x5'));var controller=require('./cmContactHasItem.controller');router['get']('/',auth['isAuthenticated'](),controller[_0x36a1('0x6')]);router[_0x36a1('0x7')](_0x36a1('0x8'),auth['isAuthenticated'](),controller[_0x36a1('0x9')]);router['post']('/',auth[_0x36a1('0xa')](),controller[_0x36a1('0xb')]);router[_0x36a1('0xc')](_0x36a1('0x8'),auth[_0x36a1('0xa')](),controller[_0x36a1('0xd')]);router['delete'](_0x36a1('0x8'),auth[_0x36a1('0xa')](),controller['destroy']);module['exports']=router;