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 _0x1a80=['../../components/interaction/service','../../config/environment','./intDeskField.controller','get','index','isAuthenticated','show','post','create','/:id','update','delete','exports','multer','path','express','fs-extra','../../components/auth/service'];(function(_0x30b0d8,_0x57470c){var _0x459c09=function(_0x5e51b6){while(--_0x5e51b6){_0x30b0d8['push'](_0x30b0d8['shift']());}};_0x459c09(++_0x57470c);}(_0x1a80,0x1e1));var _0x01a8=function(_0xf824f1,_0x499c90){_0xf824f1=_0xf824f1-0x0;var _0x47b9f5=_0x1a80[_0xf824f1];return _0x47b9f5;};'use strict';var multer=require(_0x01a8('0x0'));var util=require('util');var path=require(_0x01a8('0x1'));var timeout=require('connect-timeout');var express=require(_0x01a8('0x2'));var router=express['Router']();var fs_extra=require(_0x01a8('0x3'));var auth=require(_0x01a8('0x4'));var interaction=require(_0x01a8('0x5'));var config=require(_0x01a8('0x6'));var controller=require(_0x01a8('0x7'));router[_0x01a8('0x8')]('/',auth['isAuthenticated'](),controller[_0x01a8('0x9')]);router[_0x01a8('0x8')]('/:id',auth[_0x01a8('0xa')](),controller[_0x01a8('0xb')]);router[_0x01a8('0xc')]('/',auth['isAuthenticated'](),controller[_0x01a8('0xd')]);router['put'](_0x01a8('0xe'),auth[_0x01a8('0xa')](),controller[_0x01a8('0xf')]);router[_0x01a8('0x10')](_0x01a8('0xe'),auth['isAuthenticated'](),controller['destroy']);module[_0x01a8('0x11')]=router;