Built motion from commit (unavailable).|2.4.18
[motion2.git] / server / api / disposition / 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 _0xb44a=['update','exports','path','express','../../components/interaction/service','./disposition.controller','get','isAuthenticated','index','/:id','show','post','create','put'];(function(_0x49c6ff,_0x1d4afe){var _0x42be3c=function(_0x5cf974){while(--_0x5cf974){_0x49c6ff['push'](_0x49c6ff['shift']());}};_0x42be3c(++_0x1d4afe);}(_0xb44a,0x1c2));var _0xab44=function(_0x644560,_0x1783aa){_0x644560=_0x644560-0x0;var _0x41b76b=_0xb44a[_0x644560];return _0x41b76b;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xab44('0x0'));var timeout=require('connect-timeout');var express=require(_0xab44('0x1'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0xab44('0x2'));var config=require('../../config/environment');var controller=require(_0xab44('0x3'));router[_0xab44('0x4')]('/',auth[_0xab44('0x5')](),controller[_0xab44('0x6')]);router[_0xab44('0x4')](_0xab44('0x7'),auth[_0xab44('0x5')](),controller[_0xab44('0x8')]);router[_0xab44('0x9')]('/',auth[_0xab44('0x5')](),controller[_0xab44('0xa')]);router[_0xab44('0xb')](_0xab44('0x7'),auth['isAuthenticated'](),controller[_0xab44('0xc')]);router['delete'](_0xab44('0x7'),auth['isAuthenticated'](),controller['destroy']);module[_0xab44('0xd')]=router;