c3538f65ecbd54465dbb65f38aa596227de189d1
[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 _0x20f4=['put','/:id','update','delete','exports','multer','util','fs-extra','../../components/auth/service','get','index','isAuthenticated','show','create'];(function(_0x29ef48,_0x5bfb9f){var _0x38c117=function(_0x5008e1){while(--_0x5008e1){_0x29ef48['push'](_0x29ef48['shift']());}};_0x38c117(++_0x5bfb9f);}(_0x20f4,0x9f));var _0x420f=function(_0x5aae53,_0x33c6d4){_0x5aae53=_0x5aae53-0x0;var _0x11a64d=_0x20f4[_0x5aae53];return _0x11a64d;};'use strict';var multer=require(_0x420f('0x0'));var util=require(_0x420f('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var fs_extra=require(_0x420f('0x2'));var auth=require(_0x420f('0x3'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./intZendeskField.controller');router[_0x420f('0x4')]('/',auth['isAuthenticated'](),controller[_0x420f('0x5')]);router[_0x420f('0x4')]('/:id',auth[_0x420f('0x6')](),controller[_0x420f('0x7')]);router['post']('/',auth['isAuthenticated'](),controller[_0x420f('0x8')]);router[_0x420f('0x9')](_0x420f('0xa'),auth[_0x420f('0x6')](),controller[_0x420f('0xb')]);router[_0x420f('0xc')](_0x420f('0xa'),auth[_0x420f('0x6')](),controller['destroy']);module[_0x420f('0xd')]=router;