Built motion from commit b5413ace.|2.6.9
[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 _0x8827=['delete','exports','multer','util','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./cmCustomField.controller','isAuthenticated','get','show','put','/:id','update'];(function(_0xd10919,_0x2d66ab){var _0x3e88f4=function(_0x32dbae){while(--_0x32dbae){_0xd10919['push'](_0xd10919['shift']());}};_0x3e88f4(++_0x2d66ab);}(_0x8827,0x68));var _0x7882=function(_0xde8822,_0x32359c){_0xde8822=_0xde8822-0x0;var _0x18c879=_0x8827[_0xde8822];return _0x18c879;};'use strict';var multer=require(_0x7882('0x0'));var util=require(_0x7882('0x1'));var path=require('path');var timeout=require(_0x7882('0x2'));var express=require(_0x7882('0x3'));var router=express[_0x7882('0x4')]();var fs_extra=require(_0x7882('0x5'));var auth=require(_0x7882('0x6'));var interaction=require(_0x7882('0x7'));var config=require('../../config/environment');var controller=require(_0x7882('0x8'));router['get']('/',auth[_0x7882('0x9')](),controller['index']);router[_0x7882('0xa')]('/:id',auth[_0x7882('0x9')](),controller[_0x7882('0xb')]);router['post']('/',auth[_0x7882('0x9')](),controller['create']);router[_0x7882('0xc')](_0x7882('0xd'),auth['isAuthenticated'](),controller[_0x7882('0xe')]);router[_0x7882('0xf')](_0x7882('0xd'),auth[_0x7882('0x9')](),controller['destroy']);module[_0x7882('0x10')]=router;