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 _0xbb16=['isAuthenticated','index','create','update','delete','/:id','multer','util','express','../../components/auth/service','../../components/interaction/service','./contactItemType.controller','get'];(function(_0x8780e0,_0x76262a){var _0x34080e=function(_0x399a40){while(--_0x399a40){_0x8780e0['push'](_0x8780e0['shift']());}};_0x34080e(++_0x76262a);}(_0xbb16,0xc9));var _0x6bb1=function(_0x4e1a9b,_0x240494){_0x4e1a9b=_0x4e1a9b-0x0;var _0x536513=_0xbb16[_0x4e1a9b];return _0x536513;};'use strict';var multer=require(_0x6bb1('0x0'));var util=require(_0x6bb1('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x6bb1('0x2'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x6bb1('0x3'));var interaction=require(_0x6bb1('0x4'));var config=require('../../config/environment');var controller=require(_0x6bb1('0x5'));router[_0x6bb1('0x6')]('/',auth[_0x6bb1('0x7')](),controller[_0x6bb1('0x8')]);router[_0x6bb1('0x6')]('/:id',auth['isAuthenticated'](),controller['show']);router['post']('/',auth[_0x6bb1('0x7')](),controller[_0x6bb1('0x9')]);router['put']('/:id',auth[_0x6bb1('0x7')](),controller[_0x6bb1('0xa')]);router[_0x6bb1('0xb')](_0x6bb1('0xc'),auth[_0x6bb1('0x7')](),controller['destroy']);module['exports']=router;