Built motion from commit da617fac.|2.6.6
[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 _0x9490=['../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','show','post','put','update','destroy','exports','connect-timeout','Router','fs-extra','../../components/auth/service'];(function(_0x461c63,_0x2b02cb){var _0x470660=function(_0x370824){while(--_0x370824){_0x461c63['push'](_0x461c63['shift']());}};_0x470660(++_0x2b02cb);}(_0x9490,0x15c));var _0x0949=function(_0x491986,_0x3d2a1c){_0x491986=_0x491986-0x0;var _0xfa0fff=_0x9490[_0x491986];return _0xfa0fff;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require(_0x0949('0x0'));var express=require('express');var router=express[_0x0949('0x1')]();var fs_extra=require(_0x0949('0x2'));var auth=require(_0x0949('0x3'));var interaction=require(_0x0949('0x4'));var config=require(_0x0949('0x5'));var controller=require('./cmCustomField.controller');router[_0x0949('0x6')]('/',auth[_0x0949('0x7')](),controller[_0x0949('0x8')]);router[_0x0949('0x6')](_0x0949('0x9'),auth['isAuthenticated'](),controller[_0x0949('0xa')]);router[_0x0949('0xb')]('/',auth[_0x0949('0x7')](),controller['create']);router[_0x0949('0xc')](_0x0949('0x9'),auth[_0x0949('0x7')](),controller[_0x0949('0xd')]);router['delete'](_0x0949('0x9'),auth[_0x0949('0x7')](),controller[_0x0949('0xe')]);module[_0x0949('0xf')]=router;