5c89eb4e9a59738f6b1530d66fe4ef3918f61105
[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 _0xafe6=['../../components/interaction/service','../../config/environment','isAuthenticated','get','/:id','show','post','create','update','delete','destroy','exports','multer','util','path','connect-timeout','express','../../components/auth/service'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0xafe6,0x66));var _0x6afe=function(_0xf68b07,_0x5d5522){_0xf68b07=_0xf68b07-0x0;var _0x1e9b86=_0xafe6[_0xf68b07];return _0x1e9b86;};'use strict';var multer=require(_0x6afe('0x0'));var util=require(_0x6afe('0x1'));var path=require(_0x6afe('0x2'));var timeout=require(_0x6afe('0x3'));var express=require(_0x6afe('0x4'));var router=express['Router']();var auth=require(_0x6afe('0x5'));var interaction=require(_0x6afe('0x6'));var config=require(_0x6afe('0x7'));var controller=require('./intZendeskField.controller');router['get']('/',auth[_0x6afe('0x8')](),controller['index']);router[_0x6afe('0x9')](_0x6afe('0xa'),auth[_0x6afe('0x8')](),controller[_0x6afe('0xb')]);router[_0x6afe('0xc')]('/',auth['isAuthenticated'](),controller[_0x6afe('0xd')]);router['put'](_0x6afe('0xa'),auth['isAuthenticated'](),controller[_0x6afe('0xe')]);router[_0x6afe('0xf')](_0x6afe('0xa'),auth[_0x6afe('0x8')](),controller[_0x6afe('0x10')]);module[_0x6afe('0x11')]=router;