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 _0x38ca=['/:id','update','delete','destroy','exports','multer','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./cmCustomField.controller','isAuthenticated','index','show','post','create'];(function(_0x232b67,_0x3dc89e){var _0x39fcc0=function(_0x3e20c6){while(--_0x3e20c6){_0x232b67['push'](_0x232b67['shift']());}};_0x39fcc0(++_0x3dc89e);}(_0x38ca,0xb0));var _0xa38c=function(_0x4b125b,_0x3e0a6d){_0x4b125b=_0x4b125b-0x0;var _0x4b5eff=_0x38ca[_0x4b125b];return _0x4b5eff;};'use strict';var multer=require(_0xa38c('0x0'));var util=require('util');var path=require(_0xa38c('0x1'));var timeout=require(_0xa38c('0x2'));var express=require(_0xa38c('0x3'));var router=express[_0xa38c('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0xa38c('0x5'));var interaction=require(_0xa38c('0x6'));var config=require(_0xa38c('0x7'));var controller=require(_0xa38c('0x8'));router['get']('/',auth[_0xa38c('0x9')](),controller[_0xa38c('0xa')]);router['get']('/:id',auth[_0xa38c('0x9')](),controller[_0xa38c('0xb')]);router[_0xa38c('0xc')]('/',auth['isAuthenticated'](),controller[_0xa38c('0xd')]);router['put'](_0xa38c('0xe'),auth[_0xa38c('0x9')](),controller[_0xa38c('0xf')]);router[_0xa38c('0x10')](_0xa38c('0xe'),auth['isAuthenticated'](),controller[_0xa38c('0x11')]);module[_0xa38c('0x12')]=router;