e4b70b3cb1ee7305e04c68b3e76b687305bca1dc
[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 _0x286e=['../../config/environment','get','isAuthenticated','/:id','show','post','create','put','update','delete','destroy','multer','util','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service'];(function(_0x336376,_0xe4b28d){var _0x1d2a8e=function(_0x3afe68){while(--_0x3afe68){_0x336376['push'](_0x336376['shift']());}};_0x1d2a8e(++_0xe4b28d);}(_0x286e,0x1cd));var _0xe286=function(_0x3adae5,_0x1fa321){_0x3adae5=_0x3adae5-0x0;var _0x11ca6d=_0x286e[_0x3adae5];return _0x11ca6d;};'use strict';var multer=require(_0xe286('0x0'));var util=require(_0xe286('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0xe286('0x2'));var router=express[_0xe286('0x3')]();var fs_extra=require(_0xe286('0x4'));var auth=require(_0xe286('0x5'));var interaction=require(_0xe286('0x6'));var config=require(_0xe286('0x7'));var controller=require('./intZendeskField.controller');router[_0xe286('0x8')]('/',auth[_0xe286('0x9')](),controller['index']);router['get'](_0xe286('0xa'),auth[_0xe286('0x9')](),controller[_0xe286('0xb')]);router[_0xe286('0xc')]('/',auth[_0xe286('0x9')](),controller[_0xe286('0xd')]);router[_0xe286('0xe')](_0xe286('0xa'),auth[_0xe286('0x9')](),controller[_0xe286('0xf')]);router[_0xe286('0x10')](_0xe286('0xa'),auth['isAuthenticated'](),controller[_0xe286('0x11')]);module['exports']=router;