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