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