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 _0x8cb1=['multer','util','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index','/:id','/:id/configurations','getConfigurations','getFields','post','create','addConfiguration','put','update','delete','destroy','exports'];(function(_0x1add2d,_0x340983){var _0x5b2c32=function(_0x14e3ac){while(--_0x14e3ac){_0x1add2d['push'](_0x1add2d['shift']());}};_0x5b2c32(++_0x340983);}(_0x8cb1,0xfd));var _0x18cb=function(_0x23a43d,_0x4d825b){_0x23a43d=_0x23a43d-0x0;var _0x237807=_0x8cb1[_0x23a43d];return _0x237807;};'use strict';var multer=require(_0x18cb('0x0'));var util=require(_0x18cb('0x1'));var path=require(_0x18cb('0x2'));var timeout=require(_0x18cb('0x3'));var express=require('express');var router=express[_0x18cb('0x4')]();var fs_extra=require(_0x18cb('0x5'));var auth=require(_0x18cb('0x6'));var interaction=require(_0x18cb('0x7'));var config=require('../../config/environment');var controller=require('./intZendeskAccount.controller');router[_0x18cb('0x8')]('/',auth[_0x18cb('0x9')](),controller[_0x18cb('0xa')]);router[_0x18cb('0x8')](_0x18cb('0xb'),auth['isAuthenticated'](),controller['show']);router[_0x18cb('0x8')](_0x18cb('0xc'),auth[_0x18cb('0x9')](),controller[_0x18cb('0xd')]);router[_0x18cb('0x8')]('/:id/fields',auth[_0x18cb('0x9')](),controller[_0x18cb('0xe')]);router[_0x18cb('0xf')]('/',auth[_0x18cb('0x9')](),controller[_0x18cb('0x10')]);router['post'](_0x18cb('0xc'),auth[_0x18cb('0x9')](),controller[_0x18cb('0x11')]);router[_0x18cb('0x12')](_0x18cb('0xb'),auth[_0x18cb('0x9')](),controller[_0x18cb('0x13')]);router[_0x18cb('0x14')](_0x18cb('0xb'),auth[_0x18cb('0x9')](),controller[_0x18cb('0x15')]);module[_0x18cb('0x16')]=router;