Built motion from commit 9d0783e6.|2.6.13
[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 _0x4e7b=['util','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','./intZendeskAccount.controller','get','isAuthenticated','/:id','show','getConfigurations','/:id/fields','getFields','post','create','/:id/configurations','update','destroy','exports','multer'];(function(_0x35c38d,_0x245e04){var _0x197c45=function(_0x539cec){while(--_0x539cec){_0x35c38d['push'](_0x35c38d['shift']());}};_0x197c45(++_0x245e04);}(_0x4e7b,0x83));var _0xb4e7=function(_0x290be4,_0x2df3bd){_0x290be4=_0x290be4-0x0;var _0x2cbe14=_0x4e7b[_0x290be4];return _0x2cbe14;};'use strict';var multer=require(_0xb4e7('0x0'));var util=require(_0xb4e7('0x1'));var path=require('path');var timeout=require(_0xb4e7('0x2'));var express=require(_0xb4e7('0x3'));var router=express[_0xb4e7('0x4')]();var fs_extra=require(_0xb4e7('0x5'));var auth=require(_0xb4e7('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0xb4e7('0x7'));var controller=require(_0xb4e7('0x8'));router[_0xb4e7('0x9')]('/',auth[_0xb4e7('0xa')](),controller['index']);router[_0xb4e7('0x9')](_0xb4e7('0xb'),auth[_0xb4e7('0xa')](),controller[_0xb4e7('0xc')]);router['get']('/:id/configurations',auth[_0xb4e7('0xa')](),controller[_0xb4e7('0xd')]);router[_0xb4e7('0x9')](_0xb4e7('0xe'),auth['isAuthenticated'](),controller[_0xb4e7('0xf')]);router[_0xb4e7('0x10')]('/',auth[_0xb4e7('0xa')](),controller[_0xb4e7('0x11')]);router['post'](_0xb4e7('0x12'),auth['isAuthenticated'](),controller['addConfiguration']);router['put'](_0xb4e7('0xb'),auth[_0xb4e7('0xa')](),controller[_0xb4e7('0x13')]);router['delete'](_0xb4e7('0xb'),auth[_0xb4e7('0xa')](),controller[_0xb4e7('0x14')]);module[_0xb4e7('0x15')]=router;