Built motion from commit 10af8726.|2.6.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 _0xc73a=['./cmCustomField.controller','get','isAuthenticated','/:id','show','update','delete','destroy','exports','util','path','connect-timeout','fs-extra','../../components/auth/service','../../components/interaction/service'];(function(_0x1b5949,_0x308670){var _0x177a76=function(_0x512ef8){while(--_0x512ef8){_0x1b5949['push'](_0x1b5949['shift']());}};_0x177a76(++_0x308670);}(_0xc73a,0x72));var _0xac73=function(_0x18cde4,_0x3afd2b){_0x18cde4=_0x18cde4-0x0;var _0x20f029=_0xc73a[_0x18cde4];return _0x20f029;};'use strict';var multer=require('multer');var util=require(_0xac73('0x0'));var path=require(_0xac73('0x1'));var timeout=require(_0xac73('0x2'));var express=require('express');var router=express['Router']();var fs_extra=require(_0xac73('0x3'));var auth=require(_0xac73('0x4'));var interaction=require(_0xac73('0x5'));var config=require('../../config/environment');var controller=require(_0xac73('0x6'));router[_0xac73('0x7')]('/',auth[_0xac73('0x8')](),controller['index']);router[_0xac73('0x7')](_0xac73('0x9'),auth[_0xac73('0x8')](),controller[_0xac73('0xa')]);router['post']('/',auth[_0xac73('0x8')](),controller['create']);router['put'](_0xac73('0x9'),auth[_0xac73('0x8')](),controller[_0xac73('0xb')]);router[_0xac73('0xc')](_0xac73('0x9'),auth[_0xac73('0x8')](),controller[_0xac73('0xd')]);module[_0xac73('0xe')]=router;