Built motion from commit bab6f49e.|2.6.17
[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 _0x3a6f=['../../components/interaction/service','./intZendeskAccount.controller','isAuthenticated','index','get','/:id','show','/:id/configurations','getFields','post','create','addConfiguration','update','destroy','exports','util','path','express','Router','fs-extra','../../components/auth/service'];(function(_0x1ac595,_0x5d2081){var _0x455fff=function(_0x3043ee){while(--_0x3043ee){_0x1ac595['push'](_0x1ac595['shift']());}};_0x455fff(++_0x5d2081);}(_0x3a6f,0x1b3));var _0xf3a6=function(_0x2b3d7f,_0x163e3a){_0x2b3d7f=_0x2b3d7f-0x0;var _0x4b9170=_0x3a6f[_0x2b3d7f];return _0x4b9170;};'use strict';var multer=require('multer');var util=require(_0xf3a6('0x0'));var path=require(_0xf3a6('0x1'));var timeout=require('connect-timeout');var express=require(_0xf3a6('0x2'));var router=express[_0xf3a6('0x3')]();var fs_extra=require(_0xf3a6('0x4'));var auth=require(_0xf3a6('0x5'));var interaction=require(_0xf3a6('0x6'));var config=require('../../config/environment');var controller=require(_0xf3a6('0x7'));router['get']('/',auth[_0xf3a6('0x8')](),controller[_0xf3a6('0x9')]);router[_0xf3a6('0xa')](_0xf3a6('0xb'),auth[_0xf3a6('0x8')](),controller[_0xf3a6('0xc')]);router[_0xf3a6('0xa')](_0xf3a6('0xd'),auth[_0xf3a6('0x8')](),controller['getConfigurations']);router[_0xf3a6('0xa')]('/:id/fields',auth[_0xf3a6('0x8')](),controller[_0xf3a6('0xe')]);router[_0xf3a6('0xf')]('/',auth[_0xf3a6('0x8')](),controller[_0xf3a6('0x10')]);router[_0xf3a6('0xf')]('/:id/configurations',auth[_0xf3a6('0x8')](),controller[_0xf3a6('0x11')]);router['put'](_0xf3a6('0xb'),auth['isAuthenticated'](),controller[_0xf3a6('0x12')]);router['delete'](_0xf3a6('0xb'),auth[_0xf3a6('0x8')](),controller[_0xf3a6('0x13')]);module[_0xf3a6('0x14')]=router;