d118705a4538ce99ae95aa325a4aab4a04f761f9
[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 _0xdc03=['../../config/environment','./cmCustomField.controller','isAuthenticated','index','get','create','put','/:id','update','delete','exports','multer','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service'];(function(_0x329d13,_0x1aff27){var _0x33efd9=function(_0x265b7d){while(--_0x265b7d){_0x329d13['push'](_0x329d13['shift']());}};_0x33efd9(++_0x1aff27);}(_0xdc03,0x65));var _0x3dc0=function(_0x43e1c8,_0x5a72dc){_0x43e1c8=_0x43e1c8-0x0;var _0x2bdff3=_0xdc03[_0x43e1c8];return _0x2bdff3;};'use strict';var multer=require(_0x3dc0('0x0'));var util=require('util');var path=require(_0x3dc0('0x1'));var timeout=require(_0x3dc0('0x2'));var express=require('express');var router=express[_0x3dc0('0x3')]();var fs_extra=require(_0x3dc0('0x4'));var auth=require(_0x3dc0('0x5'));var interaction=require(_0x3dc0('0x6'));var config=require(_0x3dc0('0x7'));var controller=require(_0x3dc0('0x8'));router['get']('/',auth[_0x3dc0('0x9')](),controller[_0x3dc0('0xa')]);router[_0x3dc0('0xb')]('/:id',auth[_0x3dc0('0x9')](),controller['show']);router['post']('/',auth['isAuthenticated'](),controller[_0x3dc0('0xc')]);router[_0x3dc0('0xd')](_0x3dc0('0xe'),auth[_0x3dc0('0x9')](),controller[_0x3dc0('0xf')]);router[_0x3dc0('0x10')](_0x3dc0('0xe'),auth['isAuthenticated'](),controller['destroy']);module[_0x3dc0('0x11')]=router;