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 _0x194f=['exports','multer','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./cmCustomField.controller','get','isAuthenticated','index','post','create','put','/:id'];(function(_0xd13a88,_0x3c5269){var _0x1c993c=function(_0x245af5){while(--_0x245af5){_0xd13a88['push'](_0xd13a88['shift']());}};_0x1c993c(++_0x3c5269);}(_0x194f,0x188));var _0xf194=function(_0xa7f826,_0x508057){_0xa7f826=_0xa7f826-0x0;var _0x199210=_0x194f[_0xa7f826];return _0x199210;};'use strict';var multer=require(_0xf194('0x0'));var util=require(_0xf194('0x1'));var path=require('path');var timeout=require(_0xf194('0x2'));var express=require(_0xf194('0x3'));var router=express[_0xf194('0x4')]();var auth=require(_0xf194('0x5'));var interaction=require(_0xf194('0x6'));var config=require(_0xf194('0x7'));var controller=require(_0xf194('0x8'));router[_0xf194('0x9')]('/',auth[_0xf194('0xa')](),controller[_0xf194('0xb')]);router[_0xf194('0x9')]('/:id',auth[_0xf194('0xa')](),controller['show']);router[_0xf194('0xc')]('/',auth['isAuthenticated'](),controller[_0xf194('0xd')]);router[_0xf194('0xe')](_0xf194('0xf'),auth[_0xf194('0xa')](),controller['update']);router['delete'](_0xf194('0xf'),auth['isAuthenticated'](),controller['destroy']);module[_0xf194('0x10')]=router;