Built motion from commit 20b39a97.|2.6.29
[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 _0x6e64=['../../components/auth/service','../../config/environment','./intZendeskAccount.controller','get','isAuthenticated','index','show','/:id/configurations','getConfigurations','/:id/fields','getFields','addConfiguration','put','update','delete','/:id','destroy','exports','multer','util','path','connect-timeout','Router'];(function(_0x2359c5,_0x27c819){var _0x4f8179=function(_0x165a89){while(--_0x165a89){_0x2359c5['push'](_0x2359c5['shift']());}};_0x4f8179(++_0x27c819);}(_0x6e64,0x10f));var _0x46e6=function(_0x256513,_0x433740){_0x256513=_0x256513-0x0;var _0x226fa9=_0x6e64[_0x256513];return _0x226fa9;};'use strict';var multer=require(_0x46e6('0x0'));var util=require(_0x46e6('0x1'));var path=require(_0x46e6('0x2'));var timeout=require(_0x46e6('0x3'));var express=require('express');var router=express[_0x46e6('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x46e6('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x46e6('0x6'));var controller=require(_0x46e6('0x7'));router[_0x46e6('0x8')]('/',auth[_0x46e6('0x9')](),controller[_0x46e6('0xa')]);router[_0x46e6('0x8')]('/:id',auth[_0x46e6('0x9')](),controller[_0x46e6('0xb')]);router[_0x46e6('0x8')](_0x46e6('0xc'),auth[_0x46e6('0x9')](),controller[_0x46e6('0xd')]);router[_0x46e6('0x8')](_0x46e6('0xe'),auth[_0x46e6('0x9')](),controller[_0x46e6('0xf')]);router['post']('/',auth[_0x46e6('0x9')](),controller['create']);router['post'](_0x46e6('0xc'),auth[_0x46e6('0x9')](),controller[_0x46e6('0x10')]);router[_0x46e6('0x11')]('/:id',auth['isAuthenticated'](),controller[_0x46e6('0x12')]);router[_0x46e6('0x13')](_0x46e6('0x14'),auth[_0x46e6('0x9')](),controller[_0x46e6('0x15')]);module[_0x46e6('0x16')]=router;