Built motion from commit 994c64e1.|2.6.1
[motion2.git] / server / api / intDeskField / 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 _0x1e70=['index','/:id','show','post','create','put','delete','destroy','exports','multer','util','path','connect-timeout','express','Router','../../config/environment','get','isAuthenticated'];(function(_0x3dfa0c,_0x53f9f6){var _0x2d4472=function(_0x49b4ed){while(--_0x49b4ed){_0x3dfa0c['push'](_0x3dfa0c['shift']());}};_0x2d4472(++_0x53f9f6);}(_0x1e70,0x183));var _0x01e7=function(_0x1805a1,_0x3b6c47){_0x1805a1=_0x1805a1-0x0;var _0x30edf4=_0x1e70[_0x1805a1];return _0x30edf4;};'use strict';var multer=require(_0x01e7('0x0'));var util=require(_0x01e7('0x1'));var path=require(_0x01e7('0x2'));var timeout=require(_0x01e7('0x3'));var express=require(_0x01e7('0x4'));var router=express[_0x01e7('0x5')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x01e7('0x6'));var controller=require('./intDeskField.controller');router[_0x01e7('0x7')]('/',auth[_0x01e7('0x8')](),controller[_0x01e7('0x9')]);router[_0x01e7('0x7')](_0x01e7('0xa'),auth[_0x01e7('0x8')](),controller[_0x01e7('0xb')]);router[_0x01e7('0xc')]('/',auth[_0x01e7('0x8')](),controller[_0x01e7('0xd')]);router[_0x01e7('0xe')](_0x01e7('0xa'),auth['isAuthenticated'](),controller['update']);router[_0x01e7('0xf')](_0x01e7('0xa'),auth[_0x01e7('0x8')](),controller[_0x01e7('0x10')]);module[_0x01e7('0x11')]=router;