Built motion from commit 19a84241.|2.5.34
[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 _0xdace=['exports','util','fs-extra','../../components/auth/service','../../components/interaction/service','./cmCustomField.controller','get','isAuthenticated','index','/:id','post','create','put','update','delete','destroy'];(function(_0x4243a3,_0x447337){var _0x1b2a33=function(_0x6a8200){while(--_0x6a8200){_0x4243a3['push'](_0x4243a3['shift']());}};_0x1b2a33(++_0x447337);}(_0xdace,0xc1));var _0xedac=function(_0x5834bc,_0x3d4801){_0x5834bc=_0x5834bc-0x0;var _0x3e183a=_0xdace[_0x5834bc];return _0x3e183a;};'use strict';var multer=require('multer');var util=require(_0xedac('0x0'));var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var fs_extra=require(_0xedac('0x1'));var auth=require(_0xedac('0x2'));var interaction=require(_0xedac('0x3'));var config=require('../../config/environment');var controller=require(_0xedac('0x4'));router[_0xedac('0x5')]('/',auth[_0xedac('0x6')](),controller[_0xedac('0x7')]);router[_0xedac('0x5')](_0xedac('0x8'),auth[_0xedac('0x6')](),controller['show']);router[_0xedac('0x9')]('/',auth[_0xedac('0x6')](),controller[_0xedac('0xa')]);router[_0xedac('0xb')](_0xedac('0x8'),auth[_0xedac('0x6')](),controller[_0xedac('0xc')]);router[_0xedac('0xd')](_0xedac('0x8'),auth[_0xedac('0x6')](),controller[_0xedac('0xe')]);module[_0xedac('0xf')]=router;