e42b12d4dbd0e4068f021be97ce9a0008f2ebb88
[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 _0x84ff=['update','delete','destroy','util','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment','./intDeskField.controller','get','isAuthenticated','/:id','show','create','put'];(function(_0x397e5f,_0x454c8f){var _0x5302b8=function(_0x1a29ef){while(--_0x1a29ef){_0x397e5f['push'](_0x397e5f['shift']());}};_0x5302b8(++_0x454c8f);}(_0x84ff,0x1ac));var _0xf84f=function(_0x3df3cf,_0x3cf52a){_0x3df3cf=_0x3df3cf-0x0;var _0x4e68c2=_0x84ff[_0x3df3cf];return _0x4e68c2;};'use strict';var multer=require('multer');var util=require(_0xf84f('0x0'));var path=require(_0xf84f('0x1'));var timeout=require(_0xf84f('0x2'));var express=require(_0xf84f('0x3'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0xf84f('0x4'));var interaction=require(_0xf84f('0x5'));var config=require(_0xf84f('0x6'));var controller=require(_0xf84f('0x7'));router[_0xf84f('0x8')]('/',auth[_0xf84f('0x9')](),controller['index']);router[_0xf84f('0x8')](_0xf84f('0xa'),auth[_0xf84f('0x9')](),controller[_0xf84f('0xb')]);router['post']('/',auth[_0xf84f('0x9')](),controller[_0xf84f('0xc')]);router[_0xf84f('0xd')]('/:id',auth[_0xf84f('0x9')](),controller[_0xf84f('0xe')]);router[_0xf84f('0xf')]('/:id',auth[_0xf84f('0x9')](),controller[_0xf84f('0x10')]);module['exports']=router;