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 _0x3c2d=['post','put','/:id','update','exports','multer','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','index','get','getConfigurations','/:id/fields','getFields'];(function(_0x40c58c,_0x2d371f){var _0x4bcb9f=function(_0x3e5df3){while(--_0x3e5df3){_0x40c58c['push'](_0x40c58c['shift']());}};_0x4bcb9f(++_0x2d371f);}(_0x3c2d,0x1d9));var _0xd3c2=function(_0x2be8c2,_0x14a4b5){_0x2be8c2=_0x2be8c2-0x0;var _0x97f531=_0x3c2d[_0x2be8c2];return _0x97f531;};'use strict';var multer=require(_0xd3c2('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xd3c2('0x1'));var express=require('express');var router=express[_0xd3c2('0x2')]();var fs_extra=require(_0xd3c2('0x3'));var auth=require(_0xd3c2('0x4'));var interaction=require(_0xd3c2('0x5'));var config=require(_0xd3c2('0x6'));var controller=require('./intDeskAccount.controller');router['get']('/',auth[_0xd3c2('0x7')](),controller[_0xd3c2('0x8')]);router[_0xd3c2('0x9')]('/:id',auth[_0xd3c2('0x7')](),controller['show']);router[_0xd3c2('0x9')]('/:id/configurations',auth[_0xd3c2('0x7')](),controller[_0xd3c2('0xa')]);router[_0xd3c2('0x9')](_0xd3c2('0xb'),auth[_0xd3c2('0x7')](),controller[_0xd3c2('0xc')]);router[_0xd3c2('0xd')]('/',auth[_0xd3c2('0x7')](),controller['create']);router['post']('/:id/configurations',auth[_0xd3c2('0x7')](),controller['addConfiguration']);router[_0xd3c2('0xe')](_0xd3c2('0xf'),auth[_0xd3c2('0x7')](),controller[_0xd3c2('0x10')]);router['delete']('/:id',auth[_0xd3c2('0x7')](),controller['destroy']);module[_0xd3c2('0x11')]=router;