Built motion from commit (unavailable).|2.4.11
[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 _0xdebe=['tracked','sms','smsinteraction:addtags','addTags','put','smsinteraction:update','update','smsinteraction:destroy','destroy','delete','removeTags','exports','multer','util','path','connect-timeout','Router','../../components/interaction/service','../../config/environment','get','isAuthenticated','describe','/:id','show','/:id/messages','getMessages','/:id/download','download','post','addMessage','/:id/tags'];(function(_0x20a913,_0x1c97d8){var _0xa3de7e=function(_0x42acc5){while(--_0x42acc5){_0x20a913['push'](_0x20a913['shift']());}};_0xa3de7e(++_0x1c97d8);}(_0xdebe,0x142));var _0xedeb=function(_0x2cd597,_0x5cf36d){_0x2cd597=_0x2cd597-0x0;var _0x3f10b6=_0xdebe[_0x2cd597];return _0x3f10b6;};'use strict';var multer=require(_0xedeb('0x0'));var util=require(_0xedeb('0x1'));var path=require(_0xedeb('0x2'));var timeout=require(_0xedeb('0x3'));var express=require('express');var router=express[_0xedeb('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0xedeb('0x5'));var config=require(_0xedeb('0x6'));var controller=require('./smsInteraction.controller');router[_0xedeb('0x7')]('/',auth[_0xedeb('0x8')](),controller['index']);router['get']('/describe',auth[_0xedeb('0x8')](),controller[_0xedeb('0x9')]);router['get'](_0xedeb('0xa'),auth['isAuthenticated'](),controller[_0xedeb('0xb')]);router[_0xedeb('0x7')](_0xedeb('0xc'),auth[_0xedeb('0x8')](),controller[_0xedeb('0xd')]);router['get'](_0xedeb('0xe'),auth[_0xedeb('0x8')](),controller[_0xedeb('0xf')]);router[_0xedeb('0x10')]('/',auth['isAuthenticated'](),controller['create']);router[_0xedeb('0x10')](_0xedeb('0xc'),auth[_0xedeb('0x8')](),controller[_0xedeb('0x11')]);router['post'](_0xedeb('0x12'),auth['isAuthenticated'](),interaction[_0xedeb('0x13')](_0xedeb('0x14'),_0xedeb('0x15')),controller[_0xedeb('0x16')]);router[_0xedeb('0x17')](_0xedeb('0xa'),auth[_0xedeb('0x8')](),interaction[_0xedeb('0x13')]('sms',_0xedeb('0x18')),controller[_0xedeb('0x19')]);router['delete'](_0xedeb('0xa'),auth[_0xedeb('0x8')](),interaction[_0xedeb('0x13')](_0xedeb('0x14'),_0xedeb('0x1a')),controller[_0xedeb('0x1b')]);router[_0xedeb('0x1c')](_0xedeb('0x12'),auth[_0xedeb('0x8')](),controller[_0xedeb('0x1d')]);module[_0xedeb('0x1e')]=router;