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