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 _0xc573=['destroy','util','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment','get','index','/:id','show','post','isAuthenticated','create','put','delete'];(function(_0x11005e,_0x20c3d2){var _0x29338f=function(_0x3384e9){while(--_0x3384e9){_0x11005e['push'](_0x11005e['shift']());}};_0x29338f(++_0x20c3d2);}(_0xc573,0xab));var _0x3c57=function(_0x45b034,_0x3a57dd){_0x45b034=_0x45b034-0x0;var _0x509cb0=_0xc573[_0x45b034];return _0x509cb0;};'use strict';var multer=require('multer');var util=require(_0x3c57('0x0'));var path=require(_0x3c57('0x1'));var timeout=require(_0x3c57('0x2'));var express=require(_0x3c57('0x3'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x3c57('0x4'));var interaction=require(_0x3c57('0x5'));var config=require(_0x3c57('0x6'));var controller=require('./intVtigerField.controller');router[_0x3c57('0x7')]('/',auth['isAuthenticated'](),controller[_0x3c57('0x8')]);router[_0x3c57('0x7')](_0x3c57('0x9'),auth['isAuthenticated'](),controller[_0x3c57('0xa')]);router[_0x3c57('0xb')]('/',auth[_0x3c57('0xc')](),controller[_0x3c57('0xd')]);router[_0x3c57('0xe')](_0x3c57('0x9'),auth[_0x3c57('0xc')](),controller['update']);router[_0x3c57('0xf')](_0x3c57('0x9'),auth['isAuthenticated'](),controller[_0x3c57('0x10')]);module['exports']=router;