5799226aeea8ea0040d9ab903429dea95671e136
[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 _0x78f4=['connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','get','index','/:id','isAuthenticated','post','put','update','destroy','multer','path'];(function(_0x4e3ae1,_0xd636ab){var _0x3ee175=function(_0x47211c){while(--_0x47211c){_0x4e3ae1['push'](_0x4e3ae1['shift']());}};_0x3ee175(++_0xd636ab);}(_0x78f4,0x1de));var _0x478f=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x78f4[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0x478f('0x0'));var util=require('util');var path=require(_0x478f('0x1'));var timeout=require(_0x478f('0x2'));var express=require(_0x478f('0x3'));var router=express[_0x478f('0x4')]();var fs_extra=require(_0x478f('0x5'));var auth=require(_0x478f('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x478f('0x7'));var controller=require('./intZendeskField.controller');router[_0x478f('0x8')]('/',auth['isAuthenticated'](),controller[_0x478f('0x9')]);router[_0x478f('0x8')](_0x478f('0xa'),auth[_0x478f('0xb')](),controller['show']);router[_0x478f('0xc')]('/',auth[_0x478f('0xb')](),controller['create']);router[_0x478f('0xd')](_0x478f('0xa'),auth[_0x478f('0xb')](),controller[_0x478f('0xe')]);router['delete'](_0x478f('0xa'),auth['isAuthenticated'](),controller[_0x478f('0xf')]);module['exports']=router;