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 _0x9eb3=['index','get','/:id','isAuthenticated','show','create','put','update','delete','util','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intZendeskField.controller'];(function(_0x4e1c75,_0x22cede){var _0x5d103e=function(_0x3a9880){while(--_0x3a9880){_0x4e1c75['push'](_0x4e1c75['shift']());}};_0x5d103e(++_0x22cede);}(_0x9eb3,0x90));var _0x39eb=function(_0x1297ff,_0x40e6c9){_0x1297ff=_0x1297ff-0x0;var _0x349ac6=_0x9eb3[_0x1297ff];return _0x349ac6;};'use strict';var multer=require('multer');var util=require(_0x39eb('0x0'));var path=require('path');var express=require('express');var router=express[_0x39eb('0x1')]();var auth=require(_0x39eb('0x2'));var interaction=require(_0x39eb('0x3'));var config=require(_0x39eb('0x4'));var controller=require(_0x39eb('0x5'));router['get']('/',auth['isAuthenticated'](),controller[_0x39eb('0x6')]);router[_0x39eb('0x7')](_0x39eb('0x8'),auth[_0x39eb('0x9')](),controller[_0x39eb('0xa')]);router['post']('/',auth['isAuthenticated'](),controller[_0x39eb('0xb')]);router[_0x39eb('0xc')](_0x39eb('0x8'),auth[_0x39eb('0x9')](),controller[_0x39eb('0xd')]);router[_0x39eb('0xe')]('/:id',auth[_0x39eb('0x9')](),controller['destroy']);module['exports']=router;