Built motion from commit 47436d59.|2.6.7
[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 _0xaf61=['./intZendeskAccount.controller','isAuthenticated','index','get','/:id','/:id/fields','getFields','post','/:id/configurations','addConfiguration','delete','destroy','exports','multer','path','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x297528,_0x1517ff){var _0x39e58f=function(_0x33a541){while(--_0x33a541){_0x297528['push'](_0x297528['shift']());}};_0x39e58f(++_0x1517ff);}(_0xaf61,0xad));var _0x1af6=function(_0xd9cc7,_0x12a225){_0xd9cc7=_0xd9cc7-0x0;var _0x24046b=_0xaf61[_0xd9cc7];return _0x24046b;};'use strict';var multer=require(_0x1af6('0x0'));var util=require('util');var path=require(_0x1af6('0x1'));var timeout=require('connect-timeout');var express=require(_0x1af6('0x2'));var router=express['Router']();var fs_extra=require(_0x1af6('0x3'));var auth=require(_0x1af6('0x4'));var interaction=require(_0x1af6('0x5'));var config=require(_0x1af6('0x6'));var controller=require(_0x1af6('0x7'));router['get']('/',auth[_0x1af6('0x8')](),controller[_0x1af6('0x9')]);router[_0x1af6('0xa')](_0x1af6('0xb'),auth[_0x1af6('0x8')](),controller['show']);router[_0x1af6('0xa')]('/:id/configurations',auth['isAuthenticated'](),controller['getConfigurations']);router['get'](_0x1af6('0xc'),auth[_0x1af6('0x8')](),controller[_0x1af6('0xd')]);router[_0x1af6('0xe')]('/',auth[_0x1af6('0x8')](),controller['create']);router[_0x1af6('0xe')](_0x1af6('0xf'),auth[_0x1af6('0x8')](),controller[_0x1af6('0x10')]);router['put'](_0x1af6('0xb'),auth[_0x1af6('0x8')](),controller['update']);router[_0x1af6('0x11')]('/:id',auth[_0x1af6('0x8')](),controller[_0x1af6('0x12')]);module[_0x1af6('0x13')]=router;