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 _0xdd94=['../../components/auth/service','../../components/interaction/service','../../config/environment','./cmCustomField.controller','get','isAuthenticated','index','/:id','show','put','exports','multer','util','path','express','Router'];(function(_0x42a932,_0x1a0dcf){var _0x122955=function(_0x12de17){while(--_0x12de17){_0x42a932['push'](_0x42a932['shift']());}};_0x122955(++_0x1a0dcf);}(_0xdd94,0x18b));var _0x4dd9=function(_0x5fff96,_0x49b8c8){_0x5fff96=_0x5fff96-0x0;var _0x5532bc=_0xdd94[_0x5fff96];return _0x5532bc;};'use strict';var multer=require(_0x4dd9('0x0'));var util=require(_0x4dd9('0x1'));var path=require(_0x4dd9('0x2'));var timeout=require('connect-timeout');var express=require(_0x4dd9('0x3'));var router=express[_0x4dd9('0x4')]();var auth=require(_0x4dd9('0x5'));var interaction=require(_0x4dd9('0x6'));var config=require(_0x4dd9('0x7'));var controller=require(_0x4dd9('0x8'));router[_0x4dd9('0x9')]('/',auth[_0x4dd9('0xa')](),controller[_0x4dd9('0xb')]);router[_0x4dd9('0x9')](_0x4dd9('0xc'),auth['isAuthenticated'](),controller[_0x4dd9('0xd')]);router['post']('/',auth[_0x4dd9('0xa')](),controller['create']);router[_0x4dd9('0xe')]('/:id',auth[_0x4dd9('0xa')](),controller['update']);router['delete'](_0x4dd9('0xc'),auth[_0x4dd9('0xa')](),controller['destroy']);module[_0x4dd9('0xf')]=router;