Built motion from commit 092f8824.|2.5.49
[motion2.git] / server / api / openchannelInteraction / 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 _0x9b1a=['get','isAuthenticated','/describe','/:id','show','/:id/messages','getMessages','/:id/download','download','create','addMessage','tracked','openchannelinteraction:addtags','addTags','put','openchannel','openchannelinteraction:update','update','delete','openchannelinteraction:destroy','destroy','exports','multer','util','path','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./openchannelInteraction.controller'];(function(_0x5aee01,_0x2b17d9){var _0x2e8f9d=function(_0x33c5cc){while(--_0x33c5cc){_0x5aee01['push'](_0x5aee01['shift']());}};_0x2e8f9d(++_0x2b17d9);}(_0x9b1a,0xb6));var _0xa9b1=function(_0x2c5255,_0x4340c3){_0x2c5255=_0x2c5255-0x0;var _0x30d0ea=_0x9b1a[_0x2c5255];return _0x30d0ea;};'use strict';var multer=require(_0xa9b1('0x0'));var util=require(_0xa9b1('0x1'));var path=require(_0xa9b1('0x2'));var timeout=require(_0xa9b1('0x3'));var express=require(_0xa9b1('0x4'));var router=express['Router']();var fs_extra=require(_0xa9b1('0x5'));var auth=require(_0xa9b1('0x6'));var interaction=require(_0xa9b1('0x7'));var config=require(_0xa9b1('0x8'));var controller=require(_0xa9b1('0x9'));router[_0xa9b1('0xa')]('/',auth[_0xa9b1('0xb')](),controller['index']);router[_0xa9b1('0xa')](_0xa9b1('0xc'),auth['isAuthenticated'](),controller['describe']);router[_0xa9b1('0xa')](_0xa9b1('0xd'),auth[_0xa9b1('0xb')](),controller[_0xa9b1('0xe')]);router[_0xa9b1('0xa')](_0xa9b1('0xf'),auth[_0xa9b1('0xb')](),controller[_0xa9b1('0x10')]);router['get'](_0xa9b1('0x11'),auth[_0xa9b1('0xb')](),controller[_0xa9b1('0x12')]);router['post']('/',auth[_0xa9b1('0xb')](),controller[_0xa9b1('0x13')]);router['post'](_0xa9b1('0xf'),auth[_0xa9b1('0xb')](),controller[_0xa9b1('0x14')]);router['post']('/:id/tags',auth[_0xa9b1('0xb')](),interaction[_0xa9b1('0x15')]('openchannel',_0xa9b1('0x16')),controller[_0xa9b1('0x17')]);router[_0xa9b1('0x18')](_0xa9b1('0xd'),auth[_0xa9b1('0xb')](),interaction[_0xa9b1('0x15')](_0xa9b1('0x19'),_0xa9b1('0x1a')),controller[_0xa9b1('0x1b')]);router[_0xa9b1('0x1c')](_0xa9b1('0xd'),auth[_0xa9b1('0xb')](),interaction[_0xa9b1('0x15')](_0xa9b1('0x19'),_0xa9b1('0x1d')),controller[_0xa9b1('0x1e')]);router[_0xa9b1('0x1c')]('/:id/tags',auth['isAuthenticated'](),controller['removeTags']);module[_0xa9b1('0x1f')]=router;