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 _0x41b5=['../../components/interaction/service','../../config/environment','./intDeskField.controller','get','isAuthenticated','index','/:id','show','put','delete','destroy','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service'];(function(_0x429eab,_0x1c9888){var _0x13ad27=function(_0x4cbcf1){while(--_0x4cbcf1){_0x429eab['push'](_0x429eab['shift']());}};_0x13ad27(++_0x1c9888);}(_0x41b5,0x124));var _0x541b=function(_0x46375a,_0x2e4712){_0x46375a=_0x46375a-0x0;var _0x38c615=_0x41b5[_0x46375a];return _0x38c615;};'use strict';var multer=require(_0x541b('0x0'));var util=require(_0x541b('0x1'));var path=require(_0x541b('0x2'));var timeout=require(_0x541b('0x3'));var express=require(_0x541b('0x4'));var router=express[_0x541b('0x5')]();var fs_extra=require(_0x541b('0x6'));var auth=require(_0x541b('0x7'));var interaction=require(_0x541b('0x8'));var config=require(_0x541b('0x9'));var controller=require(_0x541b('0xa'));router[_0x541b('0xb')]('/',auth[_0x541b('0xc')](),controller[_0x541b('0xd')]);router[_0x541b('0xb')](_0x541b('0xe'),auth['isAuthenticated'](),controller[_0x541b('0xf')]);router['post']('/',auth['isAuthenticated'](),controller['create']);router[_0x541b('0x10')](_0x541b('0xe'),auth[_0x541b('0xc')](),controller['update']);router[_0x541b('0x11')](_0x541b('0xe'),auth[_0x541b('0xc')](),controller[_0x541b('0x12')]);module[_0x541b('0x13')]=router;