e01af8581a7f12189cb51097d498ccf3eb2c6dd5
[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 _0xaaac=['put','openchannelinteraction:update','update','delete','openchannelinteraction:destroy','removeTags','exports','multer','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./openchannelInteraction.controller','isAuthenticated','index','get','/describe','/:id','show','/:id/download','download','post','/:id/messages','/:id/tags','tracked','openchannel','openchannelinteraction:addtags','addTags'];(function(_0x532112,_0x37d94b){var _0x23e5fb=function(_0x690ac8){while(--_0x690ac8){_0x532112['push'](_0x532112['shift']());}};_0x23e5fb(++_0x37d94b);}(_0xaaac,0x151));var _0xcaaa=function(_0x56b499,_0x4bcc59){_0x56b499=_0x56b499-0x0;var _0x59ca78=_0xaaac[_0x56b499];return _0x59ca78;};'use strict';var multer=require(_0xcaaa('0x0'));var util=require(_0xcaaa('0x1'));var path=require('path');var timeout=require(_0xcaaa('0x2'));var express=require(_0xcaaa('0x3'));var router=express[_0xcaaa('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0xcaaa('0x5'));var interaction=require(_0xcaaa('0x6'));var config=require('../../config/environment');var controller=require(_0xcaaa('0x7'));router['get']('/',auth[_0xcaaa('0x8')](),controller[_0xcaaa('0x9')]);router[_0xcaaa('0xa')](_0xcaaa('0xb'),auth['isAuthenticated'](),controller['describe']);router[_0xcaaa('0xa')](_0xcaaa('0xc'),auth[_0xcaaa('0x8')](),controller[_0xcaaa('0xd')]);router[_0xcaaa('0xa')]('/:id/messages',auth[_0xcaaa('0x8')](),controller['getMessages']);router[_0xcaaa('0xa')](_0xcaaa('0xe'),auth['isAuthenticated'](),controller[_0xcaaa('0xf')]);router['post']('/',auth[_0xcaaa('0x8')](),controller['create']);router[_0xcaaa('0x10')](_0xcaaa('0x11'),auth[_0xcaaa('0x8')](),controller['addMessage']);router[_0xcaaa('0x10')](_0xcaaa('0x12'),auth[_0xcaaa('0x8')](),interaction[_0xcaaa('0x13')](_0xcaaa('0x14'),_0xcaaa('0x15')),controller[_0xcaaa('0x16')]);router[_0xcaaa('0x17')](_0xcaaa('0xc'),auth[_0xcaaa('0x8')](),interaction['tracked'](_0xcaaa('0x14'),_0xcaaa('0x18')),controller[_0xcaaa('0x19')]);router[_0xcaaa('0x1a')](_0xcaaa('0xc'),auth[_0xcaaa('0x8')](),interaction['tracked']('openchannel',_0xcaaa('0x1b')),controller['destroy']);router[_0xcaaa('0x1a')]('/:id/tags',auth[_0xcaaa('0x8')](),controller[_0xcaaa('0x1c')]);module[_0xcaaa('0x1d')]=router;