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