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