Built motion from commit (unavailable).|2.4.18
[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 _0x13e9=['exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./openchannelInteraction.controller','get','isAuthenticated','index','/describe','describe','/:id','show','/:id/messages','getMessages','/:id/download','download','post','create','/:id/tags','openchannelinteraction:addtags','addTags','put','openchannel','openchannelinteraction:update','update','delete','tracked','openchannelinteraction:destroy','destroy','removeTags'];(function(_0x5cf90e,_0x5df405){var _0xae958d=function(_0x52c27c){while(--_0x52c27c){_0x5cf90e['push'](_0x5cf90e['shift']());}};_0xae958d(++_0x5df405);}(_0x13e9,0x18d));var _0x913e=function(_0x1969a7,_0x5a133a){_0x1969a7=_0x1969a7-0x0;var _0x3d665f=_0x13e9[_0x1969a7];return _0x3d665f;};'use strict';var multer=require(_0x913e('0x0'));var util=require(_0x913e('0x1'));var path=require(_0x913e('0x2'));var timeout=require(_0x913e('0x3'));var express=require(_0x913e('0x4'));var router=express[_0x913e('0x5')]();var auth=require(_0x913e('0x6'));var interaction=require(_0x913e('0x7'));var config=require(_0x913e('0x8'));var controller=require(_0x913e('0x9'));router[_0x913e('0xa')]('/',auth[_0x913e('0xb')](),controller[_0x913e('0xc')]);router[_0x913e('0xa')](_0x913e('0xd'),auth['isAuthenticated'](),controller[_0x913e('0xe')]);router[_0x913e('0xa')](_0x913e('0xf'),auth['isAuthenticated'](),controller[_0x913e('0x10')]);router['get'](_0x913e('0x11'),auth[_0x913e('0xb')](),controller[_0x913e('0x12')]);router[_0x913e('0xa')](_0x913e('0x13'),auth[_0x913e('0xb')](),controller[_0x913e('0x14')]);router[_0x913e('0x15')]('/',auth[_0x913e('0xb')](),controller[_0x913e('0x16')]);router[_0x913e('0x15')](_0x913e('0x11'),auth[_0x913e('0xb')](),controller['addMessage']);router[_0x913e('0x15')](_0x913e('0x17'),auth['isAuthenticated'](),interaction['tracked']('openchannel',_0x913e('0x18')),controller[_0x913e('0x19')]);router[_0x913e('0x1a')]('/:id',auth[_0x913e('0xb')](),interaction['tracked'](_0x913e('0x1b'),_0x913e('0x1c')),controller[_0x913e('0x1d')]);router[_0x913e('0x1e')](_0x913e('0xf'),auth[_0x913e('0xb')](),interaction[_0x913e('0x1f')](_0x913e('0x1b'),_0x913e('0x20')),controller[_0x913e('0x21')]);router[_0x913e('0x1e')]('/:id/tags',auth[_0x913e('0xb')](),controller[_0x913e('0x22')]);module[_0x913e('0x23')]=router;