9bd3aee422085cb60c200a69b7d12306be2ce1c7
[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 _0x58dc=['../../components/auth/service','../../components/interaction/service','../../config/environment','./cmCustomField.controller','get','isAuthenticated','index','post','create','put','/:id','delete','exports','multer','util','connect-timeout','express','Router'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x58dc,0x199));var _0xc58d=function(_0x3d876d,_0x480789){_0x3d876d=_0x3d876d-0x0;var _0x452332=_0x58dc[_0x3d876d];return _0x452332;};'use strict';var multer=require(_0xc58d('0x0'));var util=require(_0xc58d('0x1'));var path=require('path');var timeout=require(_0xc58d('0x2'));var express=require(_0xc58d('0x3'));var router=express[_0xc58d('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0xc58d('0x5'));var interaction=require(_0xc58d('0x6'));var config=require(_0xc58d('0x7'));var controller=require(_0xc58d('0x8'));router[_0xc58d('0x9')]('/',auth[_0xc58d('0xa')](),controller[_0xc58d('0xb')]);router[_0xc58d('0x9')]('/:id',auth[_0xc58d('0xa')](),controller['show']);router[_0xc58d('0xc')]('/',auth[_0xc58d('0xa')](),controller[_0xc58d('0xd')]);router[_0xc58d('0xe')](_0xc58d('0xf'),auth['isAuthenticated'](),controller['update']);router[_0xc58d('0x10')]('/:id',auth[_0xc58d('0xa')](),controller['destroy']);module[_0xc58d('0x11')]=router;