5824f1d19de9b88a4d2630da227bab38b982e02b
[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 _0x4dc8=['../../config/environment','get','index','isAuthenticated','show','create','put','/:id','update','delete','exports','multer','util','path','connect-timeout','express','Router'];(function(_0x1dd20c,_0x12c9ff){var _0x349852=function(_0x4dbb61){while(--_0x4dbb61){_0x1dd20c['push'](_0x1dd20c['shift']());}};_0x349852(++_0x12c9ff);}(_0x4dc8,0x1e7));var _0x84dc=function(_0x7a3298,_0x41d1ee){_0x7a3298=_0x7a3298-0x0;var _0x821110=_0x4dc8[_0x7a3298];return _0x821110;};'use strict';var multer=require(_0x84dc('0x0'));var util=require(_0x84dc('0x1'));var path=require(_0x84dc('0x2'));var timeout=require(_0x84dc('0x3'));var express=require(_0x84dc('0x4'));var router=express[_0x84dc('0x5')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x84dc('0x6'));var controller=require('./intZendeskField.controller');router[_0x84dc('0x7')]('/',auth['isAuthenticated'](),controller[_0x84dc('0x8')]);router[_0x84dc('0x7')]('/:id',auth[_0x84dc('0x9')](),controller[_0x84dc('0xa')]);router['post']('/',auth[_0x84dc('0x9')](),controller[_0x84dc('0xb')]);router[_0x84dc('0xc')](_0x84dc('0xd'),auth[_0x84dc('0x9')](),controller[_0x84dc('0xe')]);router[_0x84dc('0xf')](_0x84dc('0xd'),auth['isAuthenticated'](),controller['destroy']);module[_0x84dc('0x10')]=router;