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