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 _0x6e6f=['express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./cmCustomField.controller','isAuthenticated','index','get','/:id','show','post','put','update','delete','destroy','exports','util','path'];(function(_0x15e9d4,_0x39f34a){var _0x2ec5e7=function(_0xf3cb7e){while(--_0xf3cb7e){_0x15e9d4['push'](_0x15e9d4['shift']());}};_0x2ec5e7(++_0x39f34a);}(_0x6e6f,0x76));var _0xf6e6=function(_0x3439bc,_0xc03879){_0x3439bc=_0x3439bc-0x0;var _0x484801=_0x6e6f[_0x3439bc];return _0x484801;};'use strict';var multer=require('multer');var util=require(_0xf6e6('0x0'));var path=require(_0xf6e6('0x1'));var timeout=require('connect-timeout');var express=require(_0xf6e6('0x2'));var router=express[_0xf6e6('0x3')]();var fs_extra=require(_0xf6e6('0x4'));var auth=require(_0xf6e6('0x5'));var interaction=require(_0xf6e6('0x6'));var config=require(_0xf6e6('0x7'));var controller=require(_0xf6e6('0x8'));router['get']('/',auth[_0xf6e6('0x9')](),controller[_0xf6e6('0xa')]);router[_0xf6e6('0xb')](_0xf6e6('0xc'),auth[_0xf6e6('0x9')](),controller[_0xf6e6('0xd')]);router[_0xf6e6('0xe')]('/',auth[_0xf6e6('0x9')](),controller['create']);router[_0xf6e6('0xf')](_0xf6e6('0xc'),auth['isAuthenticated'](),controller[_0xf6e6('0x10')]);router[_0xf6e6('0x11')](_0xf6e6('0xc'),auth[_0xf6e6('0x9')](),controller[_0xf6e6('0x12')]);module[_0xf6e6('0x13')]=router;