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 _0x4bc9=['put','update','delete','destroy','exports','multer','util','path','express','Router','../../components/interaction/service','../../config/environment','./intZendeskField.controller','get','isAuthenticated','index','/:id','show','create'];(function(_0x3dacb8,_0x48eab5){var _0x16d5a0=function(_0x1397bf){while(--_0x1397bf){_0x3dacb8['push'](_0x3dacb8['shift']());}};_0x16d5a0(++_0x48eab5);}(_0x4bc9,0x135));var _0x94bc=function(_0x57a35a,_0x7eb9b1){_0x57a35a=_0x57a35a-0x0;var _0x4abe87=_0x4bc9[_0x57a35a];return _0x4abe87;};'use strict';var multer=require(_0x94bc('0x0'));var util=require(_0x94bc('0x1'));var path=require(_0x94bc('0x2'));var timeout=require('connect-timeout');var express=require(_0x94bc('0x3'));var router=express[_0x94bc('0x4')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x94bc('0x5'));var config=require(_0x94bc('0x6'));var controller=require(_0x94bc('0x7'));router[_0x94bc('0x8')]('/',auth[_0x94bc('0x9')](),controller[_0x94bc('0xa')]);router[_0x94bc('0x8')](_0x94bc('0xb'),auth['isAuthenticated'](),controller[_0x94bc('0xc')]);router['post']('/',auth[_0x94bc('0x9')](),controller[_0x94bc('0xd')]);router[_0x94bc('0xe')](_0x94bc('0xb'),auth['isAuthenticated'](),controller[_0x94bc('0xf')]);router[_0x94bc('0x10')](_0x94bc('0xb'),auth[_0x94bc('0x9')](),controller[_0x94bc('0x11')]);module[_0x94bc('0x12')]=router;