Built motion from commit 52c8a02d.|2.6.29
[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 _0x18c6=['/:id','show','create','put','update','delete','destroy','exports','util','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','./disposition.controller','get','isAuthenticated','index'];(function(_0x1bb935,_0x5ad1c1){var _0x822368=function(_0x100808){while(--_0x100808){_0x1bb935['push'](_0x1bb935['shift']());}};_0x822368(++_0x5ad1c1);}(_0x18c6,0x86));var _0x618c=function(_0x426816,_0x5098df){_0x426816=_0x426816-0x0;var _0x33a877=_0x18c6[_0x426816];return _0x33a877;};'use strict';var multer=require('multer');var util=require(_0x618c('0x0'));var path=require('path');var timeout=require(_0x618c('0x1'));var express=require(_0x618c('0x2'));var router=express['Router']();var fs_extra=require(_0x618c('0x3'));var auth=require(_0x618c('0x4'));var interaction=require(_0x618c('0x5'));var config=require('../../config/environment');var controller=require(_0x618c('0x6'));router[_0x618c('0x7')]('/',auth[_0x618c('0x8')](),controller[_0x618c('0x9')]);router[_0x618c('0x7')](_0x618c('0xa'),auth[_0x618c('0x8')](),controller[_0x618c('0xb')]);router['post']('/',auth[_0x618c('0x8')](),controller[_0x618c('0xc')]);router[_0x618c('0xd')](_0x618c('0xa'),auth[_0x618c('0x8')](),controller[_0x618c('0xe')]);router[_0x618c('0xf')]('/:id',auth['isAuthenticated'](),controller[_0x618c('0x10')]);module[_0x618c('0x11')]=router;