6d6d268fa6c1b25479eacb49c303a094e8f2f761
[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 _0x2384=['../../components/interaction/service','./cmCustomField.controller','get','isAuthenticated','index','/:id','show','post','create','put','destroy','exports','multer','path','connect-timeout','express','Router','fs-extra'];(function(_0x56948f,_0x1f3395){var _0xab5e25=function(_0x372170){while(--_0x372170){_0x56948f['push'](_0x56948f['shift']());}};_0xab5e25(++_0x1f3395);}(_0x2384,0x1aa));var _0x4238=function(_0x4e5b89,_0x1e4a88){_0x4e5b89=_0x4e5b89-0x0;var _0x2c7724=_0x2384[_0x4e5b89];return _0x2c7724;};'use strict';var multer=require(_0x4238('0x0'));var util=require('util');var path=require(_0x4238('0x1'));var timeout=require(_0x4238('0x2'));var express=require(_0x4238('0x3'));var router=express[_0x4238('0x4')]();var fs_extra=require(_0x4238('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x4238('0x6'));var config=require('../../config/environment');var controller=require(_0x4238('0x7'));router[_0x4238('0x8')]('/',auth[_0x4238('0x9')](),controller[_0x4238('0xa')]);router[_0x4238('0x8')](_0x4238('0xb'),auth[_0x4238('0x9')](),controller[_0x4238('0xc')]);router[_0x4238('0xd')]('/',auth['isAuthenticated'](),controller[_0x4238('0xe')]);router[_0x4238('0xf')]('/:id',auth[_0x4238('0x9')](),controller['update']);router['delete'](_0x4238('0xb'),auth[_0x4238('0x9')](),controller[_0x4238('0x10')]);module[_0x4238('0x11')]=router;