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