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 _0x5495=['/:id','show','post','create','update','destroy','exports','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','get','isAuthenticated'];(function(_0x18332a,_0x2eaadf){var _0x894744=function(_0x44a245){while(--_0x44a245){_0x18332a['push'](_0x18332a['shift']());}};_0x894744(++_0x2eaadf);}(_0x5495,0x6d));var _0x5549=function(_0x3f04d8,_0x188183){_0x3f04d8=_0x3f04d8-0x0;var _0x338673=_0x5495[_0x3f04d8];return _0x338673;};'use strict';var multer=require('multer');var util=require(_0x5549('0x0'));var path=require(_0x5549('0x1'));var timeout=require(_0x5549('0x2'));var express=require(_0x5549('0x3'));var router=express[_0x5549('0x4')]();var fs_extra=require(_0x5549('0x5'));var auth=require(_0x5549('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x5549('0x7'));var controller=require('./cmCustomField.controller');router[_0x5549('0x8')]('/',auth[_0x5549('0x9')](),controller['index']);router[_0x5549('0x8')](_0x5549('0xa'),auth[_0x5549('0x9')](),controller[_0x5549('0xb')]);router[_0x5549('0xc')]('/',auth[_0x5549('0x9')](),controller[_0x5549('0xd')]);router['put'](_0x5549('0xa'),auth[_0x5549('0x9')](),controller[_0x5549('0xe')]);router['delete']('/:id',auth[_0x5549('0x9')](),controller[_0x5549('0xf')]);module[_0x5549('0x10')]=router;