6eded42d1410e3ad31be3387253a1c90f592c256
[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 _0x0b80=['connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./cmCustomField.controller','isAuthenticated','index','/:id','show','create','put','update','delete','destroy','multer','util'];(function(_0x226cc,_0x38188e){var _0x338f4c=function(_0xcf84d3){while(--_0xcf84d3){_0x226cc['push'](_0x226cc['shift']());}};_0x338f4c(++_0x38188e);}(_0x0b80,0x152));var _0x00b8=function(_0x5a4f92,_0x484a7c){_0x5a4f92=_0x5a4f92-0x0;var _0x427813=_0x0b80[_0x5a4f92];return _0x427813;};'use strict';var multer=require(_0x00b8('0x0'));var util=require(_0x00b8('0x1'));var path=require('path');var timeout=require(_0x00b8('0x2'));var express=require('express');var router=express[_0x00b8('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x00b8('0x4'));var interaction=require(_0x00b8('0x5'));var config=require(_0x00b8('0x6'));var controller=require(_0x00b8('0x7'));router['get']('/',auth[_0x00b8('0x8')](),controller[_0x00b8('0x9')]);router['get'](_0x00b8('0xa'),auth[_0x00b8('0x8')](),controller[_0x00b8('0xb')]);router['post']('/',auth[_0x00b8('0x8')](),controller[_0x00b8('0xc')]);router[_0x00b8('0xd')]('/:id',auth[_0x00b8('0x8')](),controller[_0x00b8('0xe')]);router[_0x00b8('0xf')](_0x00b8('0xa'),auth[_0x00b8('0x8')](),controller[_0x00b8('0x10')]);module['exports']=router;