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 _0x92e8=['exports','multer','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intVtigerAccount.controller','isAuthenticated','get','/:id/configurations','/:id/fields','getFields','post','create','addConfiguration','/:id','update','delete','destroy'];(function(_0x837f30,_0x551b26){var _0x2aee22=function(_0x24e559){while(--_0x24e559){_0x837f30['push'](_0x837f30['shift']());}};_0x2aee22(++_0x551b26);}(_0x92e8,0x7f));var _0x892e=function(_0x59f0dc,_0x1e2497){_0x59f0dc=_0x59f0dc-0x0;var _0x5b5445=_0x92e8[_0x59f0dc];return _0x5b5445;};'use strict';var multer=require(_0x892e('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x892e('0x1'));var express=require('express');var router=express[_0x892e('0x2')]();var fs_extra=require(_0x892e('0x3'));var auth=require(_0x892e('0x4'));var interaction=require(_0x892e('0x5'));var config=require(_0x892e('0x6'));var controller=require(_0x892e('0x7'));router['get']('/',auth[_0x892e('0x8')](),controller['index']);router[_0x892e('0x9')]('/:id',auth[_0x892e('0x8')](),controller['show']);router[_0x892e('0x9')](_0x892e('0xa'),auth[_0x892e('0x8')](),controller['getConfigurations']);router[_0x892e('0x9')](_0x892e('0xb'),auth[_0x892e('0x8')](),controller[_0x892e('0xc')]);router[_0x892e('0xd')]('/',auth['isAuthenticated'](),controller[_0x892e('0xe')]);router[_0x892e('0xd')](_0x892e('0xa'),auth['isAuthenticated'](),controller[_0x892e('0xf')]);router['put'](_0x892e('0x10'),auth[_0x892e('0x8')](),controller[_0x892e('0x11')]);router[_0x892e('0x12')](_0x892e('0x10'),auth[_0x892e('0x8')](),controller[_0x892e('0x13')]);module[_0x892e('0x14')]=router;