Built motion from commit 14588770.|2.5.38
[motion2.git] / server / api / cmCustomField / 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 _0xa48b=['destroy','multer','util','path','Router','../../components/interaction/service','../../config/environment','./cmCustomField.controller','isAuthenticated','index','post','/:id','update'];(function(_0x122ef9,_0x451d2a){var _0x42fba0=function(_0x17c9d3){while(--_0x17c9d3){_0x122ef9['push'](_0x122ef9['shift']());}};_0x42fba0(++_0x451d2a);}(_0xa48b,0xc4));var _0xba48=function(_0x2d3939,_0x1fbe10){_0x2d3939=_0x2d3939-0x0;var _0x1326e2=_0xa48b[_0x2d3939];return _0x1326e2;};'use strict';var multer=require(_0xba48('0x0'));var util=require(_0xba48('0x1'));var path=require(_0xba48('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xba48('0x3')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0xba48('0x4'));var config=require(_0xba48('0x5'));var controller=require(_0xba48('0x6'));router['get']('/',auth[_0xba48('0x7')](),controller[_0xba48('0x8')]);router['get']('/:id',auth[_0xba48('0x7')](),controller['show']);router[_0xba48('0x9')]('/',auth['isAuthenticated'](),controller['create']);router['put'](_0xba48('0xa'),auth['isAuthenticated'](),controller[_0xba48('0xb')]);router['delete'](_0xba48('0xa'),auth['isAuthenticated'](),controller[_0xba48('0xc')]);module['exports']=router;