6129106b80b65545874b0ac8e9d99900124637cc
[motion2.git] / server / api / intZendeskField / 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 _0x297b=['/:id','multer','path','connect-timeout','express','../../components/interaction/service','../../config/environment','get','isAuthenticated','put','update'];(function(_0x4aac5a,_0x15b04c){var _0x42e7bc=function(_0x1da766){while(--_0x1da766){_0x4aac5a['push'](_0x4aac5a['shift']());}};_0x42e7bc(++_0x15b04c);}(_0x297b,0x85));var _0xb297=function(_0x1d50f2,_0x3c3ec6){_0x1d50f2=_0x1d50f2-0x0;var _0x3769b8=_0x297b[_0x1d50f2];return _0x3769b8;};'use strict';var multer=require(_0xb297('0x0'));var util=require('util');var path=require(_0xb297('0x1'));var timeout=require(_0xb297('0x2'));var express=require(_0xb297('0x3'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0xb297('0x4'));var config=require(_0xb297('0x5'));var controller=require('./intZendeskField.controller');router[_0xb297('0x6')]('/',auth[_0xb297('0x7')](),controller['index']);router['get']('/:id',auth[_0xb297('0x7')](),controller['show']);router['post']('/',auth[_0xb297('0x7')](),controller['create']);router[_0xb297('0x8')]('/:id',auth['isAuthenticated'](),controller[_0xb297('0x9')]);router['delete'](_0xb297('0xa'),auth['isAuthenticated'](),controller['destroy']);module['exports']=router;