Built motion from commit (unavailable).|2.5.17
[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 _0x6bfc=['/:id/download','addMessage','/:id/tags','sms','put','tracked','smsinteraction:update','update','delete','smsinteraction:destroy','removeTags','exports','path','connect-timeout','Router','../../components/auth/service','../../config/environment','./smsInteraction.controller','get','isAuthenticated','index','/describe','/:id','getMessages'];(function(_0x5ae644,_0xa4af8b){var _0x3dc0f2=function(_0x580419){while(--_0x580419){_0x5ae644['push'](_0x5ae644['shift']());}};_0x3dc0f2(++_0xa4af8b);}(_0x6bfc,0x1bc));var _0xc6bf=function(_0x6a74b9,_0x2ebffb){_0x6a74b9=_0x6a74b9-0x0;var _0x1b6344=_0x6bfc[_0x6a74b9];return _0x1b6344;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xc6bf('0x0'));var timeout=require(_0xc6bf('0x1'));var express=require('express');var router=express[_0xc6bf('0x2')]();var auth=require(_0xc6bf('0x3'));var interaction=require('../../components/interaction/service');var config=require(_0xc6bf('0x4'));var controller=require(_0xc6bf('0x5'));router[_0xc6bf('0x6')]('/',auth[_0xc6bf('0x7')](),controller[_0xc6bf('0x8')]);router['get'](_0xc6bf('0x9'),auth[_0xc6bf('0x7')](),controller['describe']);router[_0xc6bf('0x6')](_0xc6bf('0xa'),auth[_0xc6bf('0x7')](),controller['show']);router[_0xc6bf('0x6')]('/:id/messages',auth[_0xc6bf('0x7')](),controller[_0xc6bf('0xb')]);router[_0xc6bf('0x6')](_0xc6bf('0xc'),auth[_0xc6bf('0x7')](),controller['download']);router['post']('/',auth[_0xc6bf('0x7')](),controller['create']);router['post']('/:id/messages',auth[_0xc6bf('0x7')](),controller[_0xc6bf('0xd')]);router['post'](_0xc6bf('0xe'),auth['isAuthenticated'](),interaction['tracked'](_0xc6bf('0xf'),'smsinteraction:addtags'),controller['addTags']);router[_0xc6bf('0x10')](_0xc6bf('0xa'),auth[_0xc6bf('0x7')](),interaction[_0xc6bf('0x11')](_0xc6bf('0xf'),_0xc6bf('0x12')),controller[_0xc6bf('0x13')]);router[_0xc6bf('0x14')](_0xc6bf('0xa'),auth[_0xc6bf('0x7')](),interaction[_0xc6bf('0x11')](_0xc6bf('0xf'),_0xc6bf('0x15')),controller['destroy']);router[_0xc6bf('0x14')](_0xc6bf('0xe'),auth['isAuthenticated'](),controller[_0xc6bf('0x16')]);module[_0xc6bf('0x17')]=router;