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 _0x3885=['express','fs-extra','../../components/auth/service','../../config/environment','get','isAuthenticated','index','/:id','show','post','create','delete','destroy','exports','multer','connect-timeout'];(function(_0x1ddedd,_0x485606){var _0xa3e1ac=function(_0x580444){while(--_0x580444){_0x1ddedd['push'](_0x1ddedd['shift']());}};_0xa3e1ac(++_0x485606);}(_0x3885,0x10e));var _0x5388=function(_0x40a045,_0x516f0e){_0x40a045=_0x40a045-0x0;var _0x1a687c=_0x3885[_0x40a045];return _0x1a687c;};'use strict';var multer=require(_0x5388('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x5388('0x1'));var express=require(_0x5388('0x2'));var router=express['Router']();var fs_extra=require(_0x5388('0x3'));var auth=require(_0x5388('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x5388('0x5'));var controller=require('./cmCustomField.controller');router[_0x5388('0x6')]('/',auth[_0x5388('0x7')](),controller[_0x5388('0x8')]);router[_0x5388('0x6')](_0x5388('0x9'),auth[_0x5388('0x7')](),controller[_0x5388('0xa')]);router[_0x5388('0xb')]('/',auth[_0x5388('0x7')](),controller[_0x5388('0xc')]);router['put'](_0x5388('0x9'),auth[_0x5388('0x7')](),controller['update']);router[_0x5388('0xd')](_0x5388('0x9'),auth[_0x5388('0x7')](),controller[_0x5388('0xe')]);module[_0x5388('0xf')]=router;