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