Built motion from commit 87cd5f02.|2.5.48
[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 _0x018c=['path','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./cmCustomField.controller','isAuthenticated','index','get','/:id','show','post','create','put','update','delete','destroy','exports','multer','util'];(function(_0x14e236,_0x5251c6){var _0x409d06=function(_0x5b83a3){while(--_0x5b83a3){_0x14e236['push'](_0x14e236['shift']());}};_0x409d06(++_0x5251c6);}(_0x018c,0xda));var _0xc018=function(_0x11535d,_0x1cf6ec){_0x11535d=_0x11535d-0x0;var _0x346c82=_0x018c[_0x11535d];return _0x346c82;};'use strict';var multer=require(_0xc018('0x0'));var util=require(_0xc018('0x1'));var path=require(_0xc018('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xc018('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0xc018('0x4'));var interaction=require(_0xc018('0x5'));var config=require(_0xc018('0x6'));var controller=require(_0xc018('0x7'));router['get']('/',auth[_0xc018('0x8')](),controller[_0xc018('0x9')]);router[_0xc018('0xa')](_0xc018('0xb'),auth[_0xc018('0x8')](),controller[_0xc018('0xc')]);router[_0xc018('0xd')]('/',auth[_0xc018('0x8')](),controller[_0xc018('0xe')]);router[_0xc018('0xf')](_0xc018('0xb'),auth[_0xc018('0x8')](),controller[_0xc018('0x10')]);router[_0xc018('0x11')](_0xc018('0xb'),auth[_0xc018('0x8')](),controller[_0xc018('0x12')]);module[_0xc018('0x13')]=router;