Built motion from commit (unavailable).|2.5.11
[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 _0x8f75=['connect-timeout','express','Router','../../components/auth/service','../../config/environment','isAuthenticated','get','/:id','show','create','put','update','delete','destroy','exports','multer','path'];(function(_0x16558a,_0x2c448e){var _0x295a62=function(_0x40ef89){while(--_0x40ef89){_0x16558a['push'](_0x16558a['shift']());}};_0x295a62(++_0x2c448e);}(_0x8f75,0x1b8));var _0x58f7=function(_0x57cc2d,_0x6eb32d){_0x57cc2d=_0x57cc2d-0x0;var _0xef80b1=_0x8f75[_0x57cc2d];return _0xef80b1;};'use strict';var multer=require(_0x58f7('0x0'));var util=require('util');var path=require(_0x58f7('0x1'));var timeout=require(_0x58f7('0x2'));var express=require(_0x58f7('0x3'));var router=express[_0x58f7('0x4')]();var auth=require(_0x58f7('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x58f7('0x6'));var controller=require('./intDeskField.controller');router['get']('/',auth[_0x58f7('0x7')](),controller['index']);router[_0x58f7('0x8')](_0x58f7('0x9'),auth[_0x58f7('0x7')](),controller[_0x58f7('0xa')]);router['post']('/',auth[_0x58f7('0x7')](),controller[_0x58f7('0xb')]);router[_0x58f7('0xc')](_0x58f7('0x9'),auth[_0x58f7('0x7')](),controller[_0x58f7('0xd')]);router[_0x58f7('0xe')]('/:id',auth[_0x58f7('0x7')](),controller[_0x58f7('0xf')]);module[_0x58f7('0x10')]=router;