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 _0xe651=['delete','destroy','exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../config/environment','./cmCustomField.controller','get','isAuthenticated','index','post','create','put','/:id'];(function(_0x1ca090,_0x228c7f){var _0x52c3ce=function(_0x38aa73){while(--_0x38aa73){_0x1ca090['push'](_0x1ca090['shift']());}};_0x52c3ce(++_0x228c7f);}(_0xe651,0x1a5));var _0x1e65=function(_0x4206f9,_0xbb9cd1){_0x4206f9=_0x4206f9-0x0;var _0x47cfda=_0xe651[_0x4206f9];return _0x47cfda;};'use strict';var multer=require(_0x1e65('0x0'));var util=require(_0x1e65('0x1'));var path=require(_0x1e65('0x2'));var timeout=require(_0x1e65('0x3'));var express=require(_0x1e65('0x4'));var router=express[_0x1e65('0x5')]();var auth=require(_0x1e65('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x1e65('0x7'));var controller=require(_0x1e65('0x8'));router[_0x1e65('0x9')]('/',auth[_0x1e65('0xa')](),controller[_0x1e65('0xb')]);router['get']('/:id',auth[_0x1e65('0xa')](),controller['show']);router[_0x1e65('0xc')]('/',auth[_0x1e65('0xa')](),controller[_0x1e65('0xd')]);router[_0x1e65('0xe')](_0x1e65('0xf'),auth[_0x1e65('0xa')](),controller['update']);router[_0x1e65('0x10')](_0x1e65('0xf'),auth['isAuthenticated'](),controller[_0x1e65('0x11')]);module[_0x1e65('0x12')]=router;