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 _0x59cf=['util','path','../../components/auth/service','../../components/interaction/service','../../config/environment','get','index','isAuthenticated','show','create','put','/:id','delete','destroy','multer'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x59cf,0x158));var _0xf59c=function(_0x48c4ef,_0x319d44){_0x48c4ef=_0x48c4ef-0x0;var _0x435715=_0x59cf[_0x48c4ef];return _0x435715;};'use strict';var multer=require(_0xf59c('0x0'));var util=require(_0xf59c('0x1'));var path=require(_0xf59c('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0xf59c('0x3'));var interaction=require(_0xf59c('0x4'));var config=require(_0xf59c('0x5'));var controller=require('./cmCustomField.controller');router[_0xf59c('0x6')]('/',auth['isAuthenticated'](),controller[_0xf59c('0x7')]);router[_0xf59c('0x6')]('/:id',auth[_0xf59c('0x8')](),controller[_0xf59c('0x9')]);router['post']('/',auth[_0xf59c('0x8')](),controller[_0xf59c('0xa')]);router[_0xf59c('0xb')](_0xf59c('0xc'),auth[_0xf59c('0x8')](),controller['update']);router[_0xf59c('0xd')](_0xf59c('0xc'),auth[_0xf59c('0x8')](),controller[_0xf59c('0xe')]);module['exports']=router;