0a4febc5a95b618da3f48eb90e087312087649c9
[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 _0xb43e=['/:id/fields','getFields','post','put','delete','destroy','exports','multer','path','express','../../components/interaction/service','../../config/environment','./intZendeskAccount.controller','isAuthenticated','index','get','/:id','/:id/configurations','getConfigurations'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0xb43e,0x183));var _0xeb43=function(_0xc378f5,_0x49b94d){_0xc378f5=_0xc378f5-0x0;var _0x484767=_0xb43e[_0xc378f5];return _0x484767;};'use strict';var multer=require(_0xeb43('0x0'));var util=require('util');var path=require(_0xeb43('0x1'));var timeout=require('connect-timeout');var express=require(_0xeb43('0x2'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0xeb43('0x3'));var config=require(_0xeb43('0x4'));var controller=require(_0xeb43('0x5'));router['get']('/',auth[_0xeb43('0x6')](),controller[_0xeb43('0x7')]);router[_0xeb43('0x8')](_0xeb43('0x9'),auth[_0xeb43('0x6')](),controller['show']);router['get'](_0xeb43('0xa'),auth['isAuthenticated'](),controller[_0xeb43('0xb')]);router[_0xeb43('0x8')](_0xeb43('0xc'),auth[_0xeb43('0x6')](),controller[_0xeb43('0xd')]);router[_0xeb43('0xe')]('/',auth[_0xeb43('0x6')](),controller['create']);router[_0xeb43('0xe')]('/:id/configurations',auth[_0xeb43('0x6')](),controller['addConfiguration']);router[_0xeb43('0xf')](_0xeb43('0x9'),auth['isAuthenticated'](),controller['update']);router[_0xeb43('0x10')](_0xeb43('0x9'),auth[_0xeb43('0x6')](),controller[_0xeb43('0x11')]);module[_0xeb43('0x12')]=router;