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 _0xc54b=['util','path','../../components/auth/service','../../config/environment','./intZendeskAccount.controller','get','index','/:id','isAuthenticated','/:id/configurations','getConfigurations','/:id/fields','getFields','create','addConfiguration','put','destroy','multer'];(function(_0x26f1b2,_0x33d843){var _0x1624a4=function(_0x58dfb7){while(--_0x58dfb7){_0x26f1b2['push'](_0x26f1b2['shift']());}};_0x1624a4(++_0x33d843);}(_0xc54b,0xd7));var _0xbc54=function(_0x108b66,_0x37db88){_0x108b66=_0x108b66-0x0;var _0x3ed76=_0xc54b[_0x108b66];return _0x3ed76;};'use strict';var multer=require(_0xbc54('0x0'));var util=require(_0xbc54('0x1'));var path=require(_0xbc54('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var auth=require(_0xbc54('0x3'));var interaction=require('../../components/interaction/service');var config=require(_0xbc54('0x4'));var controller=require(_0xbc54('0x5'));router[_0xbc54('0x6')]('/',auth['isAuthenticated'](),controller[_0xbc54('0x7')]);router['get'](_0xbc54('0x8'),auth[_0xbc54('0x9')](),controller['show']);router[_0xbc54('0x6')](_0xbc54('0xa'),auth[_0xbc54('0x9')](),controller[_0xbc54('0xb')]);router['get'](_0xbc54('0xc'),auth[_0xbc54('0x9')](),controller[_0xbc54('0xd')]);router['post']('/',auth[_0xbc54('0x9')](),controller[_0xbc54('0xe')]);router['post'](_0xbc54('0xa'),auth['isAuthenticated'](),controller[_0xbc54('0xf')]);router[_0xbc54('0x10')](_0xbc54('0x8'),auth[_0xbc54('0x9')](),controller['update']);router['delete'](_0xbc54('0x8'),auth[_0xbc54('0x9')](),controller[_0xbc54('0x11')]);module['exports']=router;