Built motion from commit (unavailable).|2.5.22
[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 _0x6176=['delete','destroy','exports','multer','util','path','connect-timeout','Router','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','show','getFields','/:id/subjects','/:id/descriptions','getDescriptions','/:id/tags','post','setTags','put','update'];(function(_0x42a8f8,_0x1a996e){var _0xf682b4=function(_0x2a0864){while(--_0x2a0864){_0x42a8f8['push'](_0x42a8f8['shift']());}};_0xf682b4(++_0x1a996e);}(_0x6176,0xf3));var _0x6617=function(_0xf606ee,_0x48433c){_0xf606ee=_0xf606ee-0x0;var _0x530f9a=_0x6176[_0xf606ee];return _0x530f9a;};'use strict';var multer=require(_0x6617('0x0'));var util=require(_0x6617('0x1'));var path=require(_0x6617('0x2'));var timeout=require(_0x6617('0x3'));var express=require('express');var router=express[_0x6617('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x6617('0x5'));var config=require(_0x6617('0x6'));var controller=require('./intZendeskConfiguration.controller');router[_0x6617('0x7')]('/',auth[_0x6617('0x8')](),controller[_0x6617('0x9')]);router[_0x6617('0x7')](_0x6617('0xa'),auth['isAuthenticated'](),controller[_0x6617('0xb')]);router[_0x6617('0x7')]('/:id/fields',auth[_0x6617('0x8')](),controller[_0x6617('0xc')]);router[_0x6617('0x7')](_0x6617('0xd'),auth[_0x6617('0x8')](),controller['getSubjects']);router['get'](_0x6617('0xe'),auth[_0x6617('0x8')](),controller[_0x6617('0xf')]);router[_0x6617('0x7')](_0x6617('0x10'),auth[_0x6617('0x8')](),controller['getTags']);router[_0x6617('0x11')]('/',auth[_0x6617('0x8')](),controller['create']);router[_0x6617('0x11')](_0x6617('0x10'),auth[_0x6617('0x8')](),controller[_0x6617('0x12')]);router[_0x6617('0x13')](_0x6617('0xa'),auth[_0x6617('0x8')](),controller[_0x6617('0x14')]);router[_0x6617('0x15')](_0x6617('0xa'),auth['isAuthenticated'](),controller[_0x6617('0x16')]);module[_0x6617('0x17')]=router;