Built motion from commit 092f8824.|2.5.49
[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 _0xfcc7=['../../components/auth/service','../../config/environment','./disposition.controller','get','index','/:id','show','post','isAuthenticated','create','update','delete','destroy','exports','multer','path','connect-timeout','Router','fs-extra'];(function(_0x5a95fa,_0x4a2fc9){var _0x1a61b8=function(_0x59f119){while(--_0x59f119){_0x5a95fa['push'](_0x5a95fa['shift']());}};_0x1a61b8(++_0x4a2fc9);}(_0xfcc7,0x164));var _0x7fcc=function(_0x3048ea,_0x3838c2){_0x3048ea=_0x3048ea-0x0;var _0x1a13c4=_0xfcc7[_0x3048ea];return _0x1a13c4;};'use strict';var multer=require(_0x7fcc('0x0'));var util=require('util');var path=require(_0x7fcc('0x1'));var timeout=require(_0x7fcc('0x2'));var express=require('express');var router=express[_0x7fcc('0x3')]();var fs_extra=require(_0x7fcc('0x4'));var auth=require(_0x7fcc('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x7fcc('0x6'));var controller=require(_0x7fcc('0x7'));router[_0x7fcc('0x8')]('/',auth['isAuthenticated'](),controller[_0x7fcc('0x9')]);router[_0x7fcc('0x8')](_0x7fcc('0xa'),auth['isAuthenticated'](),controller[_0x7fcc('0xb')]);router[_0x7fcc('0xc')]('/',auth[_0x7fcc('0xd')](),controller[_0x7fcc('0xe')]);router['put']('/:id',auth[_0x7fcc('0xd')](),controller[_0x7fcc('0xf')]);router[_0x7fcc('0x10')](_0x7fcc('0xa'),auth[_0x7fcc('0xd')](),controller[_0x7fcc('0x11')]);module[_0x7fcc('0x12')]=router;