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