93efb83dd0734a0a65c2d5db2bec6bede62eea64
[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 _0x8eba=['/:id','show','put','delete','destroy','multer','util','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./cmCustomField.controller','isAuthenticated','index','get'];(function(_0x3070dc,_0x40cf11){var _0x431489=function(_0x49bc2a){while(--_0x49bc2a){_0x3070dc['push'](_0x3070dc['shift']());}};_0x431489(++_0x40cf11);}(_0x8eba,0xf3));var _0xa8eb=function(_0x264d4d,_0x118fb5){_0x264d4d=_0x264d4d-0x0;var _0xc917e2=_0x8eba[_0x264d4d];return _0xc917e2;};'use strict';var multer=require(_0xa8eb('0x0'));var util=require(_0xa8eb('0x1'));var path=require('path');var timeout=require(_0xa8eb('0x2'));var express=require(_0xa8eb('0x3'));var router=express['Router']();var fs_extra=require(_0xa8eb('0x4'));var auth=require(_0xa8eb('0x5'));var interaction=require(_0xa8eb('0x6'));var config=require(_0xa8eb('0x7'));var controller=require(_0xa8eb('0x8'));router['get']('/',auth[_0xa8eb('0x9')](),controller[_0xa8eb('0xa')]);router[_0xa8eb('0xb')](_0xa8eb('0xc'),auth[_0xa8eb('0x9')](),controller[_0xa8eb('0xd')]);router['post']('/',auth[_0xa8eb('0x9')](),controller['create']);router[_0xa8eb('0xe')](_0xa8eb('0xc'),auth[_0xa8eb('0x9')](),controller['update']);router[_0xa8eb('0xf')]('/:id',auth[_0xa8eb('0x9')](),controller[_0xa8eb('0x10')]);module['exports']=router;