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 _0x0a34=['util','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','./intZendeskAccount.controller','isAuthenticated','index','get','/:id','show','/:id/configurations','getConfigurations','/:id/fields','post','create','put','update','delete','destroy','exports','multer'];(function(_0x1359de,_0x553f25){var _0x44ce8e=function(_0x120562){while(--_0x120562){_0x1359de['push'](_0x1359de['shift']());}};_0x44ce8e(++_0x553f25);}(_0x0a34,0x12a));var _0x40a3=function(_0x4f9b18,_0x2cb5ca){_0x4f9b18=_0x4f9b18-0x0;var _0x29f20c=_0x0a34[_0x4f9b18];return _0x29f20c;};'use strict';var multer=require(_0x40a3('0x0'));var util=require(_0x40a3('0x1'));var path=require('path');var timeout=require(_0x40a3('0x2'));var express=require(_0x40a3('0x3'));var router=express[_0x40a3('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x40a3('0x5'));var config=require(_0x40a3('0x6'));var controller=require(_0x40a3('0x7'));router['get']('/',auth[_0x40a3('0x8')](),controller[_0x40a3('0x9')]);router[_0x40a3('0xa')](_0x40a3('0xb'),auth[_0x40a3('0x8')](),controller[_0x40a3('0xc')]);router['get'](_0x40a3('0xd'),auth[_0x40a3('0x8')](),controller[_0x40a3('0xe')]);router[_0x40a3('0xa')](_0x40a3('0xf'),auth[_0x40a3('0x8')](),controller['getFields']);router[_0x40a3('0x10')]('/',auth[_0x40a3('0x8')](),controller[_0x40a3('0x11')]);router['post'](_0x40a3('0xd'),auth[_0x40a3('0x8')](),controller['addConfiguration']);router[_0x40a3('0x12')](_0x40a3('0xb'),auth['isAuthenticated'](),controller[_0x40a3('0x13')]);router[_0x40a3('0x14')]('/:id',auth[_0x40a3('0x8')](),controller[_0x40a3('0x15')]);module[_0x40a3('0x16')]=router;