Built motion from commit 14588770.|2.5.38
[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 _0x09c9=['index','isAuthenticated','show','post','put','/:id','update','exports','util','express','../../components/interaction/service','get'];(function(_0x542b5c,_0x53f81a){var _0x4ffc81=function(_0xe584ec){while(--_0xe584ec){_0x542b5c['push'](_0x542b5c['shift']());}};_0x4ffc81(++_0x53f81a);}(_0x09c9,0xbc));var _0x909c=function(_0x2670b8,_0x3444f8){_0x2670b8=_0x2670b8-0x0;var _0x3581fd=_0x09c9[_0x2670b8];return _0x3581fd;};'use strict';var multer=require('multer');var util=require(_0x909c('0x0'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x909c('0x1'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x909c('0x2'));var config=require('../../config/environment');var controller=require('./intZendeskField.controller');router[_0x909c('0x3')]('/',auth['isAuthenticated'](),controller[_0x909c('0x4')]);router[_0x909c('0x3')]('/:id',auth[_0x909c('0x5')](),controller[_0x909c('0x6')]);router[_0x909c('0x7')]('/',auth[_0x909c('0x5')](),controller['create']);router[_0x909c('0x8')](_0x909c('0x9'),auth[_0x909c('0x5')](),controller[_0x909c('0xa')]);router['delete'](_0x909c('0x9'),auth[_0x909c('0x5')](),controller['destroy']);module[_0x909c('0xb')]=router;