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