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