679095301a6f2f625c34957ebc685210134d559e
[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 _0xc9b1=['put','update','delete','destroy','exports','util','path','connect-timeout','express','../../components/interaction/service','../../config/environment','./cmCustomField.controller','get','index','/:id','isAuthenticated','show'];(function(_0x357014,_0x32d159){var _0x1f2867=function(_0x49629f){while(--_0x49629f){_0x357014['push'](_0x357014['shift']());}};_0x1f2867(++_0x32d159);}(_0xc9b1,0x1ae));var _0x1c9b=function(_0x284545,_0x525ec3){_0x284545=_0x284545-0x0;var _0x1e133d=_0xc9b1[_0x284545];return _0x1e133d;};'use strict';var multer=require('multer');var util=require(_0x1c9b('0x0'));var path=require(_0x1c9b('0x1'));var timeout=require(_0x1c9b('0x2'));var express=require(_0x1c9b('0x3'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0x1c9b('0x4'));var config=require(_0x1c9b('0x5'));var controller=require(_0x1c9b('0x6'));router[_0x1c9b('0x7')]('/',auth['isAuthenticated'](),controller[_0x1c9b('0x8')]);router[_0x1c9b('0x7')](_0x1c9b('0x9'),auth[_0x1c9b('0xa')](),controller[_0x1c9b('0xb')]);router['post']('/',auth[_0x1c9b('0xa')](),controller['create']);router[_0x1c9b('0xc')](_0x1c9b('0x9'),auth[_0x1c9b('0xa')](),controller[_0x1c9b('0xd')]);router[_0x1c9b('0xe')]('/:id',auth[_0x1c9b('0xa')](),controller[_0x1c9b('0xf')]);module[_0x1c9b('0x10')]=router;