Built motion from commit d1eab355.|2.6.28
[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 _0xb19f=['Router','fs-extra','../../components/interaction/service','./cmCustomField.controller','isAuthenticated','index','/:id','show','put','update','delete','destroy','exports','multer','util','express'];(function(_0x2f51b1,_0x370ac2){var _0x83fa03=function(_0x2b29f0){while(--_0x2b29f0){_0x2f51b1['push'](_0x2f51b1['shift']());}};_0x83fa03(++_0x370ac2);}(_0xb19f,0x7d));var _0xfb19=function(_0x4226dd,_0x31c010){_0x4226dd=_0x4226dd-0x0;var _0x3d3bd6=_0xb19f[_0x4226dd];return _0x3d3bd6;};'use strict';var multer=require(_0xfb19('0x0'));var util=require(_0xfb19('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0xfb19('0x2'));var router=express[_0xfb19('0x3')]();var fs_extra=require(_0xfb19('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0xfb19('0x5'));var config=require('../../config/environment');var controller=require(_0xfb19('0x6'));router['get']('/',auth[_0xfb19('0x7')](),controller[_0xfb19('0x8')]);router['get'](_0xfb19('0x9'),auth['isAuthenticated'](),controller[_0xfb19('0xa')]);router['post']('/',auth[_0xfb19('0x7')](),controller['create']);router[_0xfb19('0xb')]('/:id',auth[_0xfb19('0x7')](),controller[_0xfb19('0xc')]);router[_0xfb19('0xd')](_0xfb19('0x9'),auth[_0xfb19('0x7')](),controller[_0xfb19('0xe')]);module[_0xfb19('0xf')]=router;