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 _0xfbbb=['getDescriptions','put','update','delete','destroy','exports','multer','util','path','connect-timeout','express','Router','fs-extra','./intVtigerConfiguration.controller','get','/:id','show','/:id/fields','isAuthenticated','getFields','/:id/descriptions'];(function(_0x15dff3,_0x38cc9a){var _0x26966f=function(_0x5d943e){while(--_0x5d943e){_0x15dff3['push'](_0x15dff3['shift']());}};_0x26966f(++_0x38cc9a);}(_0xfbbb,0x1bf));var _0xbfbb=function(_0x5c1a42,_0x4915a9){_0x5c1a42=_0x5c1a42-0x0;var _0x11295b=_0xfbbb[_0x5c1a42];return _0x11295b;};'use strict';var multer=require(_0xbfbb('0x0'));var util=require(_0xbfbb('0x1'));var path=require(_0xbfbb('0x2'));var timeout=require(_0xbfbb('0x3'));var express=require(_0xbfbb('0x4'));var router=express[_0xbfbb('0x5')]();var fs_extra=require(_0xbfbb('0x6'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xbfbb('0x7'));router[_0xbfbb('0x8')]('/',auth['isAuthenticated'](),controller['index']);router[_0xbfbb('0x8')](_0xbfbb('0x9'),auth['isAuthenticated'](),controller[_0xbfbb('0xa')]);router['get'](_0xbfbb('0xb'),auth[_0xbfbb('0xc')](),controller[_0xbfbb('0xd')]);router[_0xbfbb('0x8')]('/:id/subjects',auth[_0xbfbb('0xc')](),controller['getSubjects']);router[_0xbfbb('0x8')](_0xbfbb('0xe'),auth[_0xbfbb('0xc')](),controller[_0xbfbb('0xf')]);router['post']('/',auth[_0xbfbb('0xc')](),controller['create']);router[_0xbfbb('0x10')](_0xbfbb('0x9'),auth[_0xbfbb('0xc')](),controller[_0xbfbb('0x11')]);router[_0xbfbb('0x12')](_0xbfbb('0x9'),auth[_0xbfbb('0xc')](),controller[_0xbfbb('0x13')]);module[_0xbfbb('0x14')]=router;