e96bcd841a43bbc7f00caedb33d6f7be9ca5e987
[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 _0x642c=['update','delete','destroy','exports','multer','util','path','express','Router','../../config/environment','get','isAuthenticated','/:id','show','/:id/fields','getFields','/:id/subjects','/:id/descriptions','getDescriptions','/:id/tags','getTags','post','create','setTags','put'];(function(_0x502c7d,_0x2f1285){var _0x30b7ed=function(_0x2d92f3){while(--_0x2d92f3){_0x502c7d['push'](_0x502c7d['shift']());}};_0x30b7ed(++_0x2f1285);}(_0x642c,0x17b));var _0xc642=function(_0x2b67f7,_0x3df538){_0x2b67f7=_0x2b67f7-0x0;var _0x61fc62=_0x642c[_0x2b67f7];return _0x61fc62;};'use strict';var multer=require(_0xc642('0x0'));var util=require(_0xc642('0x1'));var path=require(_0xc642('0x2'));var timeout=require('connect-timeout');var express=require(_0xc642('0x3'));var router=express[_0xc642('0x4')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xc642('0x5'));var controller=require('./intZendeskConfiguration.controller');router[_0xc642('0x6')]('/',auth[_0xc642('0x7')](),controller['index']);router[_0xc642('0x6')](_0xc642('0x8'),auth[_0xc642('0x7')](),controller[_0xc642('0x9')]);router[_0xc642('0x6')](_0xc642('0xa'),auth[_0xc642('0x7')](),controller[_0xc642('0xb')]);router['get'](_0xc642('0xc'),auth[_0xc642('0x7')](),controller['getSubjects']);router[_0xc642('0x6')](_0xc642('0xd'),auth[_0xc642('0x7')](),controller[_0xc642('0xe')]);router['get'](_0xc642('0xf'),auth[_0xc642('0x7')](),controller[_0xc642('0x10')]);router[_0xc642('0x11')]('/',auth['isAuthenticated'](),controller[_0xc642('0x12')]);router[_0xc642('0x11')](_0xc642('0xf'),auth[_0xc642('0x7')](),controller[_0xc642('0x13')]);router[_0xc642('0x14')](_0xc642('0x8'),auth['isAuthenticated'](),controller[_0xc642('0x15')]);router[_0xc642('0x16')](_0xc642('0x8'),auth[_0xc642('0x7')](),controller[_0xc642('0x17')]);module[_0xc642('0x18')]=router;