Built motion from commit 092f8824.|2.5.49
[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 _0x132e=['../../config/environment','get','isAuthenticated','post','create','put','update','/:id','exports','util','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service'];(function(_0x1bd92b,_0x50cdb5){var _0x4d002e=function(_0x181097){while(--_0x181097){_0x1bd92b['push'](_0x1bd92b['shift']());}};_0x4d002e(++_0x50cdb5);}(_0x132e,0xd9));var _0xe132=function(_0x4c3a36,_0xdba60f){_0x4c3a36=_0x4c3a36-0x0;var _0x40f945=_0x132e[_0x4c3a36];return _0x40f945;};'use strict';var multer=require('multer');var util=require(_0xe132('0x0'));var path=require(_0xe132('0x1'));var timeout=require(_0xe132('0x2'));var express=require(_0xe132('0x3'));var router=express[_0xe132('0x4')]();var fs_extra=require(_0xe132('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0xe132('0x6'));var config=require(_0xe132('0x7'));var controller=require('./intZendeskField.controller');router[_0xe132('0x8')]('/',auth[_0xe132('0x9')](),controller['index']);router['get']('/:id',auth[_0xe132('0x9')](),controller['show']);router[_0xe132('0xa')]('/',auth['isAuthenticated'](),controller[_0xe132('0xb')]);router[_0xe132('0xc')]('/:id',auth[_0xe132('0x9')](),controller[_0xe132('0xd')]);router['delete'](_0xe132('0xe'),auth[_0xe132('0x9')](),controller['destroy']);module[_0xe132('0xf')]=router;