Built motion from commit e6806ed6.|2.6.0
[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 _0x93aa=['path','express','Router','fs-extra','../../config/environment','./intZendeskAccount.controller','get','isAuthenticated','index','/:id','/:id/configurations','getFields','post','create','addConfiguration','put','update','delete','exports','multer','util'];(function(_0x3a6e4b,_0x118cd9){var _0x36572d=function(_0x2a53cf){while(--_0x2a53cf){_0x3a6e4b['push'](_0x3a6e4b['shift']());}};_0x36572d(++_0x118cd9);}(_0x93aa,0x1b7));var _0xa93a=function(_0xae7d44,_0x2caa1e){_0xae7d44=_0xae7d44-0x0;var _0x4f3ec2=_0x93aa[_0xae7d44];return _0x4f3ec2;};'use strict';var multer=require(_0xa93a('0x0'));var util=require(_0xa93a('0x1'));var path=require(_0xa93a('0x2'));var timeout=require('connect-timeout');var express=require(_0xa93a('0x3'));var router=express[_0xa93a('0x4')]();var fs_extra=require(_0xa93a('0x5'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xa93a('0x6'));var controller=require(_0xa93a('0x7'));router[_0xa93a('0x8')]('/',auth[_0xa93a('0x9')](),controller[_0xa93a('0xa')]);router['get'](_0xa93a('0xb'),auth[_0xa93a('0x9')](),controller['show']);router['get'](_0xa93a('0xc'),auth[_0xa93a('0x9')](),controller['getConfigurations']);router['get']('/:id/fields',auth[_0xa93a('0x9')](),controller[_0xa93a('0xd')]);router[_0xa93a('0xe')]('/',auth[_0xa93a('0x9')](),controller[_0xa93a('0xf')]);router[_0xa93a('0xe')](_0xa93a('0xc'),auth[_0xa93a('0x9')](),controller[_0xa93a('0x10')]);router[_0xa93a('0x11')](_0xa93a('0xb'),auth[_0xa93a('0x9')](),controller[_0xa93a('0x12')]);router[_0xa93a('0x13')](_0xa93a('0xb'),auth['isAuthenticated'](),controller['destroy']);module[_0xa93a('0x14')]=router;