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 _0xc88f=['create','update','destroy','multer','util','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','./intDeskField.controller','isAuthenticated','index','get','/:id','show','post'];(function(_0x35199d,_0x3e120e){var _0x1a75e5=function(_0x49581f){while(--_0x49581f){_0x35199d['push'](_0x35199d['shift']());}};_0x1a75e5(++_0x3e120e);}(_0xc88f,0x19b));var _0xfc88=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0xc88f[_0x321bb2];return _0x9c12ed;};'use strict';var multer=require(_0xfc88('0x0'));var util=require(_0xfc88('0x1'));var path=require(_0xfc88('0x2'));var timeout=require(_0xfc88('0x3'));var express=require(_0xfc88('0x4'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0xfc88('0x5'));var interaction=require(_0xfc88('0x6'));var config=require('../../config/environment');var controller=require(_0xfc88('0x7'));router['get']('/',auth[_0xfc88('0x8')](),controller[_0xfc88('0x9')]);router[_0xfc88('0xa')](_0xfc88('0xb'),auth[_0xfc88('0x8')](),controller[_0xfc88('0xc')]);router[_0xfc88('0xd')]('/',auth[_0xfc88('0x8')](),controller[_0xfc88('0xe')]);router['put'](_0xfc88('0xb'),auth[_0xfc88('0x8')](),controller[_0xfc88('0xf')]);router['delete'](_0xfc88('0xb'),auth['isAuthenticated'](),controller[_0xfc88('0x10')]);module['exports']=router;