66d837c46093b1d3af9b9d9c5c30f4069ebceec2
[motion2.git] / server / api / smsInteraction / 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 _0x4965=['get','index','/describe','isAuthenticated','show','getMessages','/:id/download','download','post','create','/:id/messages','addMessage','/:id/tags','tracked','sms','smsinteraction:addtags','addTags','put','/:id','update','delete','smsinteraction:destroy','destroy','removeTags','exports','multer','util','path','../../components/auth/service','../../config/environment','./smsInteraction.controller'];(function(_0x4e6ae6,_0x49dba6){var _0x23c108=function(_0x1bc103){while(--_0x1bc103){_0x4e6ae6['push'](_0x4e6ae6['shift']());}};_0x23c108(++_0x49dba6);}(_0x4965,0x16e));var _0x5496=function(_0x2ed919,_0x48314b){_0x2ed919=_0x2ed919-0x0;var _0x574174=_0x4965[_0x2ed919];return _0x574174;};'use strict';var multer=require(_0x5496('0x0'));var util=require(_0x5496('0x1'));var path=require(_0x5496('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var auth=require(_0x5496('0x3'));var interaction=require('../../components/interaction/service');var config=require(_0x5496('0x4'));var controller=require(_0x5496('0x5'));router[_0x5496('0x6')]('/',auth['isAuthenticated'](),controller[_0x5496('0x7')]);router[_0x5496('0x6')](_0x5496('0x8'),auth[_0x5496('0x9')](),controller['describe']);router[_0x5496('0x6')]('/:id',auth[_0x5496('0x9')](),controller[_0x5496('0xa')]);router[_0x5496('0x6')]('/:id/messages',auth[_0x5496('0x9')](),controller[_0x5496('0xb')]);router[_0x5496('0x6')](_0x5496('0xc'),auth[_0x5496('0x9')](),controller[_0x5496('0xd')]);router[_0x5496('0xe')]('/',auth[_0x5496('0x9')](),controller[_0x5496('0xf')]);router[_0x5496('0xe')](_0x5496('0x10'),auth[_0x5496('0x9')](),controller[_0x5496('0x11')]);router[_0x5496('0xe')](_0x5496('0x12'),auth['isAuthenticated'](),interaction[_0x5496('0x13')](_0x5496('0x14'),_0x5496('0x15')),controller[_0x5496('0x16')]);router[_0x5496('0x17')](_0x5496('0x18'),auth[_0x5496('0x9')](),interaction[_0x5496('0x13')]('sms','smsinteraction:update'),controller[_0x5496('0x19')]);router[_0x5496('0x1a')](_0x5496('0x18'),auth[_0x5496('0x9')](),interaction[_0x5496('0x13')](_0x5496('0x14'),_0x5496('0x1b')),controller[_0x5496('0x1c')]);router[_0x5496('0x1a')]('/:id/tags',auth['isAuthenticated'](),controller[_0x5496('0x1d')]);module[_0x5496('0x1e')]=router;