95b58b0dc1a7ff7a8fc13de09e883dddf8fa1877
[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 _0x1b94=['../../components/auth/service','../../components/interaction/service','./cmCustomField.controller','get','isAuthenticated','/:id','show','post','create','put','update','exports','multer','util','path','connect-timeout','express','fs-extra'];(function(_0x3b97d1,_0x2df477){var _0x255c31=function(_0x3b69eb){while(--_0x3b69eb){_0x3b97d1['push'](_0x3b97d1['shift']());}};_0x255c31(++_0x2df477);}(_0x1b94,0x1f2));var _0x41b9=function(_0x4fbfd9,_0x3ab91a){_0x4fbfd9=_0x4fbfd9-0x0;var _0x31dc94=_0x1b94[_0x4fbfd9];return _0x31dc94;};'use strict';var multer=require(_0x41b9('0x0'));var util=require(_0x41b9('0x1'));var path=require(_0x41b9('0x2'));var timeout=require(_0x41b9('0x3'));var express=require(_0x41b9('0x4'));var router=express['Router']();var fs_extra=require(_0x41b9('0x5'));var auth=require(_0x41b9('0x6'));var interaction=require(_0x41b9('0x7'));var config=require('../../config/environment');var controller=require(_0x41b9('0x8'));router[_0x41b9('0x9')]('/',auth[_0x41b9('0xa')](),controller['index']);router[_0x41b9('0x9')](_0x41b9('0xb'),auth[_0x41b9('0xa')](),controller[_0x41b9('0xc')]);router[_0x41b9('0xd')]('/',auth['isAuthenticated'](),controller[_0x41b9('0xe')]);router[_0x41b9('0xf')]('/:id',auth[_0x41b9('0xa')](),controller[_0x41b9('0x10')]);router['delete'](_0x41b9('0xb'),auth[_0x41b9('0xa')](),controller['destroy']);module[_0x41b9('0x11')]=router;