Built motion from commit 25580385.|2.6.2
[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 _0xd7ce=['post','create','put','update','delete','destroy','multer','util','path','connect-timeout','fs-extra','./cmCustomField.controller','get','isAuthenticated','index','/:id','show'];(function(_0x293ec7,_0x541d46){var _0x4d6759=function(_0x11778a){while(--_0x11778a){_0x293ec7['push'](_0x293ec7['shift']());}};_0x4d6759(++_0x541d46);}(_0xd7ce,0x16b));var _0xed7c=function(_0x377a6e,_0x59b99d){_0x377a6e=_0x377a6e-0x0;var _0x37f751=_0xd7ce[_0x377a6e];return _0x37f751;};'use strict';var multer=require(_0xed7c('0x0'));var util=require(_0xed7c('0x1'));var path=require(_0xed7c('0x2'));var timeout=require(_0xed7c('0x3'));var express=require('express');var router=express['Router']();var fs_extra=require(_0xed7c('0x4'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xed7c('0x5'));router[_0xed7c('0x6')]('/',auth[_0xed7c('0x7')](),controller[_0xed7c('0x8')]);router[_0xed7c('0x6')](_0xed7c('0x9'),auth[_0xed7c('0x7')](),controller[_0xed7c('0xa')]);router[_0xed7c('0xb')]('/',auth[_0xed7c('0x7')](),controller[_0xed7c('0xc')]);router[_0xed7c('0xd')]('/:id',auth[_0xed7c('0x7')](),controller[_0xed7c('0xe')]);router[_0xed7c('0xf')](_0xed7c('0x9'),auth[_0xed7c('0x7')](),controller[_0xed7c('0x10')]);module['exports']=router;