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