5198b5e165d31ff147a6497dcae42c1520b06b26
[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 _0x1228=['delete','destroy','exports','multer','path','express','Router','fs-extra','../../components/interaction/service','../../config/environment','get','isAuthenticated','/:id','show','getConfigurations','post','create','/:id/configurations','addConfiguration','update'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x1228,0x12f));var _0x8122=function(_0x2a32a1,_0x6c6cbb){_0x2a32a1=_0x2a32a1-0x0;var _0xfba034=_0x1228[_0x2a32a1];return _0xfba034;};'use strict';var multer=require(_0x8122('0x0'));var util=require('util');var path=require(_0x8122('0x1'));var timeout=require('connect-timeout');var express=require(_0x8122('0x2'));var router=express[_0x8122('0x3')]();var fs_extra=require(_0x8122('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x8122('0x5'));var config=require(_0x8122('0x6'));var controller=require('./intZendeskAccount.controller');router[_0x8122('0x7')]('/',auth[_0x8122('0x8')](),controller['index']);router[_0x8122('0x7')](_0x8122('0x9'),auth['isAuthenticated'](),controller[_0x8122('0xa')]);router[_0x8122('0x7')]('/:id/configurations',auth[_0x8122('0x8')](),controller[_0x8122('0xb')]);router['get']('/:id/fields',auth['isAuthenticated'](),controller['getFields']);router[_0x8122('0xc')]('/',auth['isAuthenticated'](),controller[_0x8122('0xd')]);router[_0x8122('0xc')](_0x8122('0xe'),auth['isAuthenticated'](),controller[_0x8122('0xf')]);router['put'](_0x8122('0x9'),auth[_0x8122('0x8')](),controller[_0x8122('0x10')]);router[_0x8122('0x11')](_0x8122('0x9'),auth[_0x8122('0x8')](),controller[_0x8122('0x12')]);module[_0x8122('0x13')]=router;