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 _0xdac0=['Router','fs-extra','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index','/:id','show','create','put','update','multer','util','connect-timeout'];(function(_0x7b39b5,_0x24375c){var _0x1e54fd=function(_0x34ec67){while(--_0x34ec67){_0x7b39b5['push'](_0x7b39b5['shift']());}};_0x1e54fd(++_0x24375c);}(_0xdac0,0x11a));var _0x0dac=function(_0x582590,_0x5ecc4e){_0x582590=_0x582590-0x0;var _0x1121ec=_0xdac0[_0x582590];return _0x1121ec;};'use strict';var multer=require(_0x0dac('0x0'));var util=require(_0x0dac('0x1'));var path=require('path');var timeout=require(_0x0dac('0x2'));var express=require('express');var router=express[_0x0dac('0x3')]();var fs_extra=require(_0x0dac('0x4'));var auth=require(_0x0dac('0x5'));var interaction=require(_0x0dac('0x6'));var config=require('../../config/environment');var controller=require('./cmCustomField.controller');router[_0x0dac('0x7')]('/',auth[_0x0dac('0x8')](),controller[_0x0dac('0x9')]);router[_0x0dac('0x7')](_0x0dac('0xa'),auth['isAuthenticated'](),controller[_0x0dac('0xb')]);router['post']('/',auth[_0x0dac('0x8')](),controller[_0x0dac('0xc')]);router[_0x0dac('0xd')]('/:id',auth[_0x0dac('0x8')](),controller[_0x0dac('0xe')]);router['delete'](_0x0dac('0xa'),auth[_0x0dac('0x8')](),controller['destroy']);module['exports']=router;