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