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 _0xaf45=['../../components/interaction/service','./cmCustomField.controller','get','isAuthenticated','index','/:id','post','create','put','delete','exports','multer','util','connect-timeout','express','Router','fs-extra','../../components/auth/service'];(function(_0x346737,_0x3e6081){var _0x1ade2e=function(_0x15e50e){while(--_0x15e50e){_0x346737['push'](_0x346737['shift']());}};_0x1ade2e(++_0x3e6081);}(_0xaf45,0xbf));var _0x5af4=function(_0x3cdf76,_0x63322b){_0x3cdf76=_0x3cdf76-0x0;var _0x1f1bdb=_0xaf45[_0x3cdf76];return _0x1f1bdb;};'use strict';var multer=require(_0x5af4('0x0'));var util=require(_0x5af4('0x1'));var path=require('path');var timeout=require(_0x5af4('0x2'));var express=require(_0x5af4('0x3'));var router=express[_0x5af4('0x4')]();var fs_extra=require(_0x5af4('0x5'));var auth=require(_0x5af4('0x6'));var interaction=require(_0x5af4('0x7'));var config=require('../../config/environment');var controller=require(_0x5af4('0x8'));router[_0x5af4('0x9')]('/',auth[_0x5af4('0xa')](),controller[_0x5af4('0xb')]);router[_0x5af4('0x9')](_0x5af4('0xc'),auth[_0x5af4('0xa')](),controller['show']);router[_0x5af4('0xd')]('/',auth[_0x5af4('0xa')](),controller[_0x5af4('0xe')]);router[_0x5af4('0xf')](_0x5af4('0xc'),auth['isAuthenticated'](),controller['update']);router[_0x5af4('0x10')]('/:id',auth[_0x5af4('0xa')](),controller['destroy']);module[_0x5af4('0x11')]=router;