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 _0x48a0=['post','create','put','/:id','update','destroy','exports','multer','util','path','connect-timeout','express','Router','../../config/environment','index','isAuthenticated','show'];(function(_0xa1ee9f,_0x14786c){var _0x4510eb=function(_0x2a1723){while(--_0x2a1723){_0xa1ee9f['push'](_0xa1ee9f['shift']());}};_0x4510eb(++_0x14786c);}(_0x48a0,0x1e3));var _0x048a=function(_0x57b54c,_0x54ce0d){_0x57b54c=_0x57b54c-0x0;var _0x59cc19=_0x48a0[_0x57b54c];return _0x59cc19;};'use strict';var multer=require(_0x048a('0x0'));var util=require(_0x048a('0x1'));var path=require(_0x048a('0x2'));var timeout=require(_0x048a('0x3'));var express=require(_0x048a('0x4'));var router=express[_0x048a('0x5')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x048a('0x6'));var controller=require('./cmCustomField.controller');router['get']('/',auth['isAuthenticated'](),controller[_0x048a('0x7')]);router['get']('/:id',auth[_0x048a('0x8')](),controller[_0x048a('0x9')]);router[_0x048a('0xa')]('/',auth['isAuthenticated'](),controller[_0x048a('0xb')]);router[_0x048a('0xc')](_0x048a('0xd'),auth['isAuthenticated'](),controller[_0x048a('0xe')]);router['delete'](_0x048a('0xd'),auth[_0x048a('0x8')](),controller[_0x048a('0xf')]);module[_0x048a('0x10')]=router;