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 _0xd6c9=['isAuthenticated','index','/:id','show','post','create','update','delete','exports','multer','util','connect-timeout','express','Router','../../components/interaction/service','./cmCustomField.controller','get'];(function(_0x2a1049,_0x4844f7){var _0x59054a=function(_0x4c42db){while(--_0x4c42db){_0x2a1049['push'](_0x2a1049['shift']());}};_0x59054a(++_0x4844f7);}(_0xd6c9,0xa2));var _0x9d6c=function(_0x40ba7c,_0x3622f5){_0x40ba7c=_0x40ba7c-0x0;var _0x59b6b6=_0xd6c9[_0x40ba7c];return _0x59b6b6;};'use strict';var multer=require(_0x9d6c('0x0'));var util=require(_0x9d6c('0x1'));var path=require('path');var timeout=require(_0x9d6c('0x2'));var express=require(_0x9d6c('0x3'));var router=express[_0x9d6c('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x9d6c('0x5'));var config=require('../../config/environment');var controller=require(_0x9d6c('0x6'));router[_0x9d6c('0x7')]('/',auth[_0x9d6c('0x8')](),controller[_0x9d6c('0x9')]);router[_0x9d6c('0x7')](_0x9d6c('0xa'),auth['isAuthenticated'](),controller[_0x9d6c('0xb')]);router[_0x9d6c('0xc')]('/',auth['isAuthenticated'](),controller[_0x9d6c('0xd')]);router['put']('/:id',auth[_0x9d6c('0x8')](),controller[_0x9d6c('0xe')]);router[_0x9d6c('0xf')](_0x9d6c('0xa'),auth['isAuthenticated'](),controller['destroy']);module[_0x9d6c('0x10')]=router;