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 _0xacfc=['express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','/:id','isAuthenticated','show','/:id/configurations','getConfigurations','/:id/fields','getFields','post','addConfiguration','put','update','exports','multer','util','path'];(function(_0x27afba,_0x1926e8){var _0xb79f5d=function(_0xc11934){while(--_0xc11934){_0x27afba['push'](_0x27afba['shift']());}};_0xb79f5d(++_0x1926e8);}(_0xacfc,0x1b6));var _0xcacf=function(_0x10daab,_0x21159d){_0x10daab=_0x10daab-0x0;var _0xa4e0c8=_0xacfc[_0x10daab];return _0xa4e0c8;};'use strict';var multer=require(_0xcacf('0x0'));var util=require(_0xcacf('0x1'));var path=require(_0xcacf('0x2'));var timeout=require('connect-timeout');var express=require(_0xcacf('0x3'));var router=express[_0xcacf('0x4')]();var auth=require(_0xcacf('0x5'));var interaction=require(_0xcacf('0x6'));var config=require(_0xcacf('0x7'));var controller=require('./intVtigerAccount.controller');router[_0xcacf('0x8')]('/',auth['isAuthenticated'](),controller['index']);router[_0xcacf('0x8')](_0xcacf('0x9'),auth[_0xcacf('0xa')](),controller[_0xcacf('0xb')]);router[_0xcacf('0x8')](_0xcacf('0xc'),auth['isAuthenticated'](),controller[_0xcacf('0xd')]);router[_0xcacf('0x8')](_0xcacf('0xe'),auth[_0xcacf('0xa')](),controller[_0xcacf('0xf')]);router[_0xcacf('0x10')]('/',auth[_0xcacf('0xa')](),controller['create']);router[_0xcacf('0x10')](_0xcacf('0xc'),auth[_0xcacf('0xa')](),controller[_0xcacf('0x11')]);router[_0xcacf('0x12')]('/:id',auth[_0xcacf('0xa')](),controller[_0xcacf('0x13')]);router['delete'](_0xcacf('0x9'),auth[_0xcacf('0xa')](),controller['destroy']);module[_0xcacf('0x14')]=router;