8053e13bd80e7c81814dd59e45f31702d3caf570
[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 _0xea4e=['/:id/download','download','post','addMessage','/:id/tags','tracked','smsinteraction:addtags','addTags','/:id','sms','smsinteraction:update','update','delete','smsinteraction:destroy','removeTags','exports','multer','express','../../components/auth/service','../../components/interaction/service','./smsInteraction.controller','get','isAuthenticated','index','/describe','describe','/:id/messages','getMessages'];(function(_0x557e4f,_0x12db61){var _0x213365=function(_0x5538db){while(--_0x5538db){_0x557e4f['push'](_0x557e4f['shift']());}};_0x213365(++_0x12db61);}(_0xea4e,0x10c));var _0xeea4=function(_0xe406e8,_0x2dbfd8){_0xe406e8=_0xe406e8-0x0;var _0x3f8fbe=_0xea4e[_0xe406e8];return _0x3f8fbe;};'use strict';var multer=require(_0xeea4('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require(_0xeea4('0x1'));var router=express['Router']();var auth=require(_0xeea4('0x2'));var interaction=require(_0xeea4('0x3'));var config=require('../../config/environment');var controller=require(_0xeea4('0x4'));router[_0xeea4('0x5')]('/',auth[_0xeea4('0x6')](),controller[_0xeea4('0x7')]);router[_0xeea4('0x5')](_0xeea4('0x8'),auth[_0xeea4('0x6')](),controller[_0xeea4('0x9')]);router[_0xeea4('0x5')]('/:id',auth[_0xeea4('0x6')](),controller['show']);router[_0xeea4('0x5')](_0xeea4('0xa'),auth[_0xeea4('0x6')](),controller[_0xeea4('0xb')]);router[_0xeea4('0x5')](_0xeea4('0xc'),auth[_0xeea4('0x6')](),controller[_0xeea4('0xd')]);router['post']('/',auth[_0xeea4('0x6')](),controller['create']);router[_0xeea4('0xe')](_0xeea4('0xa'),auth[_0xeea4('0x6')](),controller[_0xeea4('0xf')]);router[_0xeea4('0xe')](_0xeea4('0x10'),auth[_0xeea4('0x6')](),interaction[_0xeea4('0x11')]('sms',_0xeea4('0x12')),controller[_0xeea4('0x13')]);router['put'](_0xeea4('0x14'),auth['isAuthenticated'](),interaction[_0xeea4('0x11')](_0xeea4('0x15'),_0xeea4('0x16')),controller[_0xeea4('0x17')]);router[_0xeea4('0x18')](_0xeea4('0x14'),auth[_0xeea4('0x6')](),interaction[_0xeea4('0x11')](_0xeea4('0x15'),_0xeea4('0x19')),controller['destroy']);router[_0xeea4('0x18')](_0xeea4('0x10'),auth['isAuthenticated'](),controller[_0xeea4('0x1a')]);module[_0xeea4('0x1b')]=router;