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