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 _0x7d7f=['./cmCustomField.controller','index','get','/:id','isAuthenticated','show','create','update','delete','multer','util','connect-timeout','express','Router'];(function(_0x443e7b,_0x3fa5dc){var _0x5c32d3=function(_0x19a08b){while(--_0x19a08b){_0x443e7b['push'](_0x443e7b['shift']());}};_0x5c32d3(++_0x3fa5dc);}(_0x7d7f,0xa3));var _0xf7d7=function(_0x5ef4d6,_0x421fa4){_0x5ef4d6=_0x5ef4d6-0x0;var _0x1113d9=_0x7d7f[_0x5ef4d6];return _0x1113d9;};'use strict';var multer=require(_0xf7d7('0x0'));var util=require(_0xf7d7('0x1'));var path=require('path');var timeout=require(_0xf7d7('0x2'));var express=require(_0xf7d7('0x3'));var router=express[_0xf7d7('0x4')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xf7d7('0x5'));router['get']('/',auth['isAuthenticated'](),controller[_0xf7d7('0x6')]);router[_0xf7d7('0x7')](_0xf7d7('0x8'),auth[_0xf7d7('0x9')](),controller[_0xf7d7('0xa')]);router['post']('/',auth['isAuthenticated'](),controller[_0xf7d7('0xb')]);router['put'](_0xf7d7('0x8'),auth[_0xf7d7('0x9')](),controller[_0xf7d7('0xc')]);router[_0xf7d7('0xd')](_0xf7d7('0x8'),auth[_0xf7d7('0x9')](),controller['destroy']);module['exports']=router;