aed918935aa03eaa837372717294e20a48eff5bd
[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 _0x0a18=['../../components/auth/service','../../config/environment','index','get','/:id','/:id/fields','isAuthenticated','getFields','/:id/subjects','getSubjects','/:id/descriptions','post','create','/:id/tags','setTags','update','delete','exports','multer','util','express','Router'];(function(_0x3cb27f,_0x1db6db){var _0x461ca0=function(_0x32c6e6){while(--_0x32c6e6){_0x3cb27f['push'](_0x3cb27f['shift']());}};_0x461ca0(++_0x1db6db);}(_0x0a18,0x80));var _0x80a1=function(_0x119d5a,_0x19b457){_0x119d5a=_0x119d5a-0x0;var _0x15bff4=_0x0a18[_0x119d5a];return _0x15bff4;};'use strict';var multer=require(_0x80a1('0x0'));var util=require(_0x80a1('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x80a1('0x2'));var router=express[_0x80a1('0x3')]();var auth=require(_0x80a1('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x80a1('0x5'));var controller=require('./intZendeskConfiguration.controller');router['get']('/',auth['isAuthenticated'](),controller[_0x80a1('0x6')]);router[_0x80a1('0x7')](_0x80a1('0x8'),auth['isAuthenticated'](),controller['show']);router[_0x80a1('0x7')](_0x80a1('0x9'),auth[_0x80a1('0xa')](),controller[_0x80a1('0xb')]);router[_0x80a1('0x7')](_0x80a1('0xc'),auth[_0x80a1('0xa')](),controller[_0x80a1('0xd')]);router[_0x80a1('0x7')](_0x80a1('0xe'),auth[_0x80a1('0xa')](),controller['getDescriptions']);router[_0x80a1('0x7')]('/:id/tags',auth[_0x80a1('0xa')](),controller['getTags']);router[_0x80a1('0xf')]('/',auth[_0x80a1('0xa')](),controller[_0x80a1('0x10')]);router[_0x80a1('0xf')](_0x80a1('0x11'),auth[_0x80a1('0xa')](),controller[_0x80a1('0x12')]);router['put'](_0x80a1('0x8'),auth['isAuthenticated'](),controller[_0x80a1('0x13')]);router[_0x80a1('0x14')](_0x80a1('0x8'),auth[_0x80a1('0xa')](),controller['destroy']);module[_0x80a1('0x15')]=router;