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 _0xf57a=['../../components/interaction/service','../../config/environment','./intVtigerAccount.controller','get','isAuthenticated','/:id','/:id/configurations','getConfigurations','post','addConfiguration','destroy','exports','util','express','Router','../../components/auth/service'];(function(_0x1f7413,_0x3388c3){var _0x2d2775=function(_0x5e5b4){while(--_0x5e5b4){_0x1f7413['push'](_0x1f7413['shift']());}};_0x2d2775(++_0x3388c3);}(_0xf57a,0x17c));var _0xaf57=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0xf57a[_0x321bb2];return _0x9c12ed;};'use strict';var multer=require('multer');var util=require(_0xaf57('0x0'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0xaf57('0x1'));var router=express[_0xaf57('0x2')]();var auth=require(_0xaf57('0x3'));var interaction=require(_0xaf57('0x4'));var config=require(_0xaf57('0x5'));var controller=require(_0xaf57('0x6'));router[_0xaf57('0x7')]('/',auth[_0xaf57('0x8')](),controller['index']);router['get'](_0xaf57('0x9'),auth[_0xaf57('0x8')](),controller['show']);router[_0xaf57('0x7')](_0xaf57('0xa'),auth[_0xaf57('0x8')](),controller[_0xaf57('0xb')]);router[_0xaf57('0x7')]('/:id/fields',auth[_0xaf57('0x8')](),controller['getFields']);router[_0xaf57('0xc')]('/',auth[_0xaf57('0x8')](),controller['create']);router[_0xaf57('0xc')](_0xaf57('0xa'),auth[_0xaf57('0x8')](),controller[_0xaf57('0xd')]);router['put'](_0xaf57('0x9'),auth[_0xaf57('0x8')](),controller['update']);router['delete']('/:id',auth[_0xaf57('0x8')](),controller[_0xaf57('0xe')]);module[_0xaf57('0xf')]=router;