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 _0x1e3f=['Router','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','show','post','create','put','update','delete','exports','multer','util','connect-timeout','express'];(function(_0x4565bf,_0x5ad9d6){var _0x5610ba=function(_0x170988){while(--_0x170988){_0x4565bf['push'](_0x4565bf['shift']());}};_0x5610ba(++_0x5ad9d6);}(_0x1e3f,0x10a));var _0xf1e3=function(_0x162ee0,_0x291661){_0x162ee0=_0x162ee0-0x0;var _0x48fc5e=_0x1e3f[_0x162ee0];return _0x48fc5e;};'use strict';var multer=require(_0xf1e3('0x0'));var util=require(_0xf1e3('0x1'));var path=require('path');var timeout=require(_0xf1e3('0x2'));var express=require(_0xf1e3('0x3'));var router=express[_0xf1e3('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0xf1e3('0x5'));var config=require(_0xf1e3('0x6'));var controller=require('./cmCustomField.controller');router[_0xf1e3('0x7')]('/',auth[_0xf1e3('0x8')](),controller[_0xf1e3('0x9')]);router['get'](_0xf1e3('0xa'),auth['isAuthenticated'](),controller[_0xf1e3('0xb')]);router[_0xf1e3('0xc')]('/',auth[_0xf1e3('0x8')](),controller[_0xf1e3('0xd')]);router[_0xf1e3('0xe')]('/:id',auth['isAuthenticated'](),controller[_0xf1e3('0xf')]);router[_0xf1e3('0x10')](_0xf1e3('0xa'),auth[_0xf1e3('0x8')](),controller['destroy']);module[_0xf1e3('0x11')]=router;