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