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 _0xf559=['../../components/interaction/service','../../config/environment','get','index','/:id','isAuthenticated','show','/:id/configurations','getConfigurations','/:id/fields','create','post','addConfiguration','put','update','destroy','util','path','connect-timeout','express','../../components/auth/service'];(function(_0x43a532,_0x339921){var _0x4688e3=function(_0x1c6959){while(--_0x1c6959){_0x43a532['push'](_0x43a532['shift']());}};_0x4688e3(++_0x339921);}(_0xf559,0xb8));var _0x9f55=function(_0x24ad22,_0x4fbd1c){_0x24ad22=_0x24ad22-0x0;var _0xba9838=_0xf559[_0x24ad22];return _0xba9838;};'use strict';var multer=require('multer');var util=require(_0x9f55('0x0'));var path=require(_0x9f55('0x1'));var timeout=require(_0x9f55('0x2'));var express=require(_0x9f55('0x3'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x9f55('0x4'));var interaction=require(_0x9f55('0x5'));var config=require(_0x9f55('0x6'));var controller=require('./intDeskAccount.controller');router[_0x9f55('0x7')]('/',auth['isAuthenticated'](),controller[_0x9f55('0x8')]);router['get'](_0x9f55('0x9'),auth[_0x9f55('0xa')](),controller[_0x9f55('0xb')]);router[_0x9f55('0x7')](_0x9f55('0xc'),auth['isAuthenticated'](),controller[_0x9f55('0xd')]);router[_0x9f55('0x7')](_0x9f55('0xe'),auth[_0x9f55('0xa')](),controller['getFields']);router['post']('/',auth[_0x9f55('0xa')](),controller[_0x9f55('0xf')]);router[_0x9f55('0x10')](_0x9f55('0xc'),auth['isAuthenticated'](),controller[_0x9f55('0x11')]);router[_0x9f55('0x12')](_0x9f55('0x9'),auth[_0x9f55('0xa')](),controller[_0x9f55('0x13')]);router['delete'](_0x9f55('0x9'),auth[_0x9f55('0xa')](),controller[_0x9f55('0x14')]);module['exports']=router;