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 _0x665f=['multer','path','connect-timeout','express','fs-extra','../../components/interaction/service','get','isAuthenticated','index','/:id','show','post','delete','destroy'];(function(_0x7f3388,_0x13830b){var _0x1af35f=function(_0x32c215){while(--_0x32c215){_0x7f3388['push'](_0x7f3388['shift']());}};_0x1af35f(++_0x13830b);}(_0x665f,0x7e));var _0xf665=function(_0x2bedea,_0x4a1808){_0x2bedea=_0x2bedea-0x0;var _0x210a03=_0x665f[_0x2bedea];return _0x210a03;};'use strict';var multer=require(_0xf665('0x0'));var util=require('util');var path=require(_0xf665('0x1'));var timeout=require(_0xf665('0x2'));var express=require(_0xf665('0x3'));var router=express['Router']();var fs_extra=require(_0xf665('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0xf665('0x5'));var config=require('../../config/environment');var controller=require('./intVtigerField.controller');router[_0xf665('0x6')]('/',auth[_0xf665('0x7')](),controller[_0xf665('0x8')]);router[_0xf665('0x6')](_0xf665('0x9'),auth[_0xf665('0x7')](),controller[_0xf665('0xa')]);router[_0xf665('0xb')]('/',auth[_0xf665('0x7')](),controller['create']);router['put']('/:id',auth[_0xf665('0x7')](),controller['update']);router[_0xf665('0xc')](_0xf665('0x9'),auth[_0xf665('0x7')](),controller[_0xf665('0xd')]);module['exports']=router;