Built motion from commit 994c64e1.|2.6.1
[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 _0x4300=['../../components/auth/service','../../components/interaction/service','../../config/environment','get','index','/:id','isAuthenticated','show','post','create','put','delete','destroy','exports','multer','Router','fs-extra'];(function(_0x455e79,_0xcf1a28){var _0x57241d=function(_0x54914f){while(--_0x54914f){_0x455e79['push'](_0x455e79['shift']());}};_0x57241d(++_0xcf1a28);}(_0x4300,0x1a6));var _0x0430=function(_0x2dc244,_0x1d923c){_0x2dc244=_0x2dc244-0x0;var _0x5962b0=_0x4300[_0x2dc244];return _0x5962b0;};'use strict';var multer=require(_0x0430('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0x0430('0x1')]();var fs_extra=require(_0x0430('0x2'));var auth=require(_0x0430('0x3'));var interaction=require(_0x0430('0x4'));var config=require(_0x0430('0x5'));var controller=require('./cmCustomField.controller');router[_0x0430('0x6')]('/',auth['isAuthenticated'](),controller[_0x0430('0x7')]);router['get'](_0x0430('0x8'),auth[_0x0430('0x9')](),controller[_0x0430('0xa')]);router[_0x0430('0xb')]('/',auth[_0x0430('0x9')](),controller[_0x0430('0xc')]);router[_0x0430('0xd')](_0x0430('0x8'),auth[_0x0430('0x9')](),controller['update']);router[_0x0430('0xe')](_0x0430('0x8'),auth[_0x0430('0x9')](),controller[_0x0430('0xf')]);module[_0x0430('0x10')]=router;