7f2b4bb9d09b8b5a494d66744891b666f384e42d
[motion2.git] / server / api / intZendeskAccount / 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 _0xd246=['getFields','post','addConfiguration','destroy','exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./intZendeskAccount.controller','isAuthenticated','get','/:id','show','/:id/configurations','/:id/fields'];(function(_0x13f769,_0x4e3b4a){var _0x317d4b=function(_0xee206f){while(--_0xee206f){_0x13f769['push'](_0x13f769['shift']());}};_0x317d4b(++_0x4e3b4a);}(_0xd246,0xf5));var _0x6d24=function(_0x4432f2,_0x22697a){_0x4432f2=_0x4432f2-0x0;var _0x1c97d6=_0xd246[_0x4432f2];return _0x1c97d6;};'use strict';var multer=require(_0x6d24('0x0'));var util=require(_0x6d24('0x1'));var path=require(_0x6d24('0x2'));var timeout=require(_0x6d24('0x3'));var express=require(_0x6d24('0x4'));var router=express[_0x6d24('0x5')]();var auth=require(_0x6d24('0x6'));var interaction=require(_0x6d24('0x7'));var config=require('../../config/environment');var controller=require(_0x6d24('0x8'));router['get']('/',auth[_0x6d24('0x9')](),controller['index']);router[_0x6d24('0xa')](_0x6d24('0xb'),auth[_0x6d24('0x9')](),controller[_0x6d24('0xc')]);router[_0x6d24('0xa')](_0x6d24('0xd'),auth[_0x6d24('0x9')](),controller['getConfigurations']);router['get'](_0x6d24('0xe'),auth['isAuthenticated'](),controller[_0x6d24('0xf')]);router['post']('/',auth[_0x6d24('0x9')](),controller['create']);router[_0x6d24('0x10')](_0x6d24('0xd'),auth['isAuthenticated'](),controller[_0x6d24('0x11')]);router['put'](_0x6d24('0xb'),auth[_0x6d24('0x9')](),controller['update']);router['delete']('/:id',auth[_0x6d24('0x9')](),controller[_0x6d24('0x12')]);module[_0x6d24('0x13')]=router;