Built motion from commit (unavailable).|2.5.30
[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 _0x19e7=['destroy','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./disposition.controller','get','index','/:id','isAuthenticated','show','create','put','delete'];(function(_0x2e3e1c,_0x4179d5){var _0x4dff96=function(_0x3b9c2e){while(--_0x3b9c2e){_0x2e3e1c['push'](_0x2e3e1c['shift']());}};_0x4dff96(++_0x4179d5);}(_0x19e7,0x1e5));var _0x719e=function(_0x5ec520,_0x486cbb){_0x5ec520=_0x5ec520-0x0;var _0x5a442d=_0x19e7[_0x5ec520];return _0x5a442d;};'use strict';var multer=require(_0x719e('0x0'));var util=require(_0x719e('0x1'));var path=require(_0x719e('0x2'));var timeout=require(_0x719e('0x3'));var express=require(_0x719e('0x4'));var router=express[_0x719e('0x5')]();var fs_extra=require(_0x719e('0x6'));var auth=require(_0x719e('0x7'));var interaction=require(_0x719e('0x8'));var config=require(_0x719e('0x9'));var controller=require(_0x719e('0xa'));router[_0x719e('0xb')]('/',auth['isAuthenticated'](),controller[_0x719e('0xc')]);router[_0x719e('0xb')](_0x719e('0xd'),auth[_0x719e('0xe')](),controller[_0x719e('0xf')]);router['post']('/',auth[_0x719e('0xe')](),controller[_0x719e('0x10')]);router[_0x719e('0x11')](_0x719e('0xd'),auth['isAuthenticated'](),controller['update']);router[_0x719e('0x12')](_0x719e('0xd'),auth[_0x719e('0xe')](),controller[_0x719e('0x13')]);module[_0x719e('0x14')]=router;