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 _0xf5ca=['path','express','Router','../../components/auth/service','../../config/environment','./intZendeskField.controller','get','isAuthenticated','index','/:id','post','create','put','multer','util'];(function(_0xe574fc,_0x59cc04){var _0x5f3deb=function(_0xcfd59a){while(--_0xcfd59a){_0xe574fc['push'](_0xe574fc['shift']());}};_0x5f3deb(++_0x59cc04);}(_0xf5ca,0x1cf));var _0xaf5c=function(_0x2a1465,_0x8bf785){_0x2a1465=_0x2a1465-0x0;var _0x128933=_0xf5ca[_0x2a1465];return _0x128933;};'use strict';var multer=require(_0xaf5c('0x0'));var util=require(_0xaf5c('0x1'));var path=require(_0xaf5c('0x2'));var timeout=require('connect-timeout');var express=require(_0xaf5c('0x3'));var router=express[_0xaf5c('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0xaf5c('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xaf5c('0x6'));var controller=require(_0xaf5c('0x7'));router[_0xaf5c('0x8')]('/',auth[_0xaf5c('0x9')](),controller[_0xaf5c('0xa')]);router[_0xaf5c('0x8')](_0xaf5c('0xb'),auth[_0xaf5c('0x9')](),controller['show']);router[_0xaf5c('0xc')]('/',auth[_0xaf5c('0x9')](),controller[_0xaf5c('0xd')]);router[_0xaf5c('0xe')](_0xaf5c('0xb'),auth[_0xaf5c('0x9')](),controller['update']);router['delete'](_0xaf5c('0xb'),auth[_0xaf5c('0x9')](),controller['destroy']);module['exports']=router;