6aa2f35ed90cbcdefed61ea007cab0e6436b1286
[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 _0x3e0b=['show','post','create','put','delete','destroy','util','connect-timeout','express','Router','../../components/auth/service','get','isAuthenticated','index','/:id'];(function(_0x5e104f,_0x24ce2d){var _0x1a7234=function(_0x5d7634){while(--_0x5d7634){_0x5e104f['push'](_0x5e104f['shift']());}};_0x1a7234(++_0x24ce2d);}(_0x3e0b,0x16e));var _0xb3e0=function(_0x3eb760,_0x47832e){_0x3eb760=_0x3eb760-0x0;var _0x410372=_0x3e0b[_0x3eb760];return _0x410372;};'use strict';var multer=require('multer');var util=require(_0xb3e0('0x0'));var path=require('path');var timeout=require(_0xb3e0('0x1'));var express=require(_0xb3e0('0x2'));var router=express[_0xb3e0('0x3')]();var auth=require(_0xb3e0('0x4'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./intZendeskField.controller');router[_0xb3e0('0x5')]('/',auth[_0xb3e0('0x6')](),controller[_0xb3e0('0x7')]);router[_0xb3e0('0x5')](_0xb3e0('0x8'),auth[_0xb3e0('0x6')](),controller[_0xb3e0('0x9')]);router[_0xb3e0('0xa')]('/',auth['isAuthenticated'](),controller[_0xb3e0('0xb')]);router[_0xb3e0('0xc')](_0xb3e0('0x8'),auth[_0xb3e0('0x6')](),controller['update']);router[_0xb3e0('0xd')]('/:id',auth[_0xb3e0('0x6')](),controller[_0xb3e0('0xe')]);module['exports']=router;