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 _0x0d84=['post','create','update','delete','destroy','multer','util','path','connect-timeout','express','Router','../../config/environment','isAuthenticated','index','/:id','show'];(function(_0x107fb1,_0xc6adfd){var _0x448459=function(_0x127f33){while(--_0x127f33){_0x107fb1['push'](_0x107fb1['shift']());}};_0x448459(++_0xc6adfd);}(_0x0d84,0x115));var _0x40d8=function(_0x523bda,_0x43763e){_0x523bda=_0x523bda-0x0;var _0x6c1178=_0x0d84[_0x523bda];return _0x6c1178;};'use strict';var multer=require(_0x40d8('0x0'));var util=require(_0x40d8('0x1'));var path=require(_0x40d8('0x2'));var timeout=require(_0x40d8('0x3'));var express=require(_0x40d8('0x4'));var router=express[_0x40d8('0x5')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x40d8('0x6'));var controller=require('./intDeskField.controller');router['get']('/',auth[_0x40d8('0x7')](),controller[_0x40d8('0x8')]);router['get'](_0x40d8('0x9'),auth[_0x40d8('0x7')](),controller[_0x40d8('0xa')]);router[_0x40d8('0xb')]('/',auth[_0x40d8('0x7')](),controller[_0x40d8('0xc')]);router['put'](_0x40d8('0x9'),auth['isAuthenticated'](),controller[_0x40d8('0xd')]);router[_0x40d8('0xe')](_0x40d8('0x9'),auth[_0x40d8('0x7')](),controller[_0x40d8('0xf')]);module['exports']=router;