7292f0c29e45c2a23600bf102726c229ce48f10f
[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 _0xf2d3=['create','put','delete','/:id','destroy','exports','multer','util','path','Router','fs-extra','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','show','post'];(function(_0x515208,_0x5a12fd){var _0x4c3f8c=function(_0x1873c5){while(--_0x1873c5){_0x515208['push'](_0x515208['shift']());}};_0x4c3f8c(++_0x5a12fd);}(_0xf2d3,0x138));var _0x3f2d=function(_0x42cc47,_0x1e03a6){_0x42cc47=_0x42cc47-0x0;var _0x34318b=_0xf2d3[_0x42cc47];return _0x34318b;};'use strict';var multer=require(_0x3f2d('0x0'));var util=require(_0x3f2d('0x1'));var path=require(_0x3f2d('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x3f2d('0x3')]();var fs_extra=require(_0x3f2d('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x3f2d('0x5'));var config=require(_0x3f2d('0x6'));var controller=require('./intZendeskField.controller');router[_0x3f2d('0x7')]('/',auth[_0x3f2d('0x8')](),controller[_0x3f2d('0x9')]);router[_0x3f2d('0x7')]('/:id',auth[_0x3f2d('0x8')](),controller[_0x3f2d('0xa')]);router[_0x3f2d('0xb')]('/',auth[_0x3f2d('0x8')](),controller[_0x3f2d('0xc')]);router[_0x3f2d('0xd')]('/:id',auth[_0x3f2d('0x8')](),controller['update']);router[_0x3f2d('0xe')](_0x3f2d('0xf'),auth[_0x3f2d('0x8')](),controller[_0x3f2d('0x10')]);module[_0x3f2d('0x11')]=router;