Built motion from commit (unavailable).|2.5.8
[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 _0xc271=['/:id/tags','getTags','post','update','destroy','multer','util','path','connect-timeout','Router','../../components/interaction/service','./intZendeskConfiguration.controller','isAuthenticated','index','get','/:id','/:id/fields','getFields','/:id/descriptions'];(function(_0x21d64c,_0x52a58c){var _0x9c76b5=function(_0x3cfe0b){while(--_0x3cfe0b){_0x21d64c['push'](_0x21d64c['shift']());}};_0x9c76b5(++_0x52a58c);}(_0xc271,0x1f3));var _0x1c27=function(_0x104447,_0x309f3e){_0x104447=_0x104447-0x0;var _0x194df3=_0xc271[_0x104447];return _0x194df3;};'use strict';var multer=require(_0x1c27('0x0'));var util=require(_0x1c27('0x1'));var path=require(_0x1c27('0x2'));var timeout=require(_0x1c27('0x3'));var express=require('express');var router=express[_0x1c27('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x1c27('0x5'));var config=require('../../config/environment');var controller=require(_0x1c27('0x6'));router['get']('/',auth[_0x1c27('0x7')](),controller[_0x1c27('0x8')]);router[_0x1c27('0x9')](_0x1c27('0xa'),auth[_0x1c27('0x7')](),controller['show']);router[_0x1c27('0x9')](_0x1c27('0xb'),auth[_0x1c27('0x7')](),controller[_0x1c27('0xc')]);router[_0x1c27('0x9')]('/:id/subjects',auth[_0x1c27('0x7')](),controller['getSubjects']);router[_0x1c27('0x9')](_0x1c27('0xd'),auth[_0x1c27('0x7')](),controller['getDescriptions']);router[_0x1c27('0x9')](_0x1c27('0xe'),auth['isAuthenticated'](),controller[_0x1c27('0xf')]);router[_0x1c27('0x10')]('/',auth[_0x1c27('0x7')](),controller['create']);router['post'](_0x1c27('0xe'),auth[_0x1c27('0x7')](),controller['setTags']);router['put'](_0x1c27('0xa'),auth[_0x1c27('0x7')](),controller[_0x1c27('0x11')]);router['delete'](_0x1c27('0xa'),auth['isAuthenticated'](),controller[_0x1c27('0x12')]);module['exports']=router;