4a82538dcf0820f429534d4a7029888aa6c32db5
[motion2.git] / server / api / intZendeskConfiguration / index.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0xc9ab=['update','destroy','exports','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','isAuthenticated','show','get','getFields','getSubjects','/:id/descriptions','post','/:id/tags','put','/:id'];(function(_0x810e4d,_0x909ef4){var _0x13f01c=function(_0x12fd89){while(--_0x12fd89){_0x810e4d['push'](_0x810e4d['shift']());}};_0x13f01c(++_0x909ef4);}(_0xc9ab,0xf3));var _0xbc9a=function(_0x4edb2c,_0x15d29d){_0x4edb2c=_0x4edb2c-0x0;var _0xdc6421=_0xc9ab[_0x4edb2c];return _0xdc6421;};'use strict';var multer=require('multer');var util=require(_0xbc9a('0x0'));var path=require(_0xbc9a('0x1'));var timeout=require(_0xbc9a('0x2'));var express=require(_0xbc9a('0x3'));var router=express[_0xbc9a('0x4')]();var auth=require(_0xbc9a('0x5'));var interaction=require(_0xbc9a('0x6'));var config=require('../../config/environment');var controller=require('./intZendeskConfiguration.controller');router['get']('/',auth['isAuthenticated'](),controller['index']);router['get']('/:id',auth[_0xbc9a('0x7')](),controller[_0xbc9a('0x8')]);router[_0xbc9a('0x9')]('/:id/fields',auth['isAuthenticated'](),controller[_0xbc9a('0xa')]);router['get']('/:id/subjects',auth[_0xbc9a('0x7')](),controller[_0xbc9a('0xb')]);router['get'](_0xbc9a('0xc'),auth[_0xbc9a('0x7')](),controller['getDescriptions']);router['get']('/:id/tags',auth['isAuthenticated'](),controller['getTags']);router[_0xbc9a('0xd')]('/',auth[_0xbc9a('0x7')](),controller['create']);router['post'](_0xbc9a('0xe'),auth[_0xbc9a('0x7')](),controller['setTags']);router[_0xbc9a('0xf')](_0xbc9a('0x10'),auth[_0xbc9a('0x7')](),controller[_0xbc9a('0x11')]);router['delete'](_0xbc9a('0x10'),auth[_0xbc9a('0x7')](),controller[_0xbc9a('0x12')]);module[_0xbc9a('0x13')]=router;