6d020264400baf576b983595339fe9c2bdc1f9a0
[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 _0x8bf4=['/:id/messages','getMessages','/:id/download','download','create','post','addMessage','tracked','sms','smsinteraction:addtags','addTags','put','smsinteraction:update','update','delete','/:id/tags','removeTags','multer','util','path','connect-timeout','express','Router','../../components/interaction/service','./smsInteraction.controller','isAuthenticated','index','describe','/:id','show','get'];(function(_0x502c7d,_0x2f1285){var _0x30b7ed=function(_0x2d92f3){while(--_0x2d92f3){_0x502c7d['push'](_0x502c7d['shift']());}};_0x30b7ed(++_0x2f1285);}(_0x8bf4,0x185));var _0x48bf=function(_0x2fef7c,_0x1e72c9){_0x2fef7c=_0x2fef7c-0x0;var _0x3a6212=_0x8bf4[_0x2fef7c];return _0x3a6212;};'use strict';var multer=require(_0x48bf('0x0'));var util=require(_0x48bf('0x1'));var path=require(_0x48bf('0x2'));var timeout=require(_0x48bf('0x3'));var express=require(_0x48bf('0x4'));var router=express[_0x48bf('0x5')]();var auth=require('../../components/auth/service');var interaction=require(_0x48bf('0x6'));var config=require('../../config/environment');var controller=require(_0x48bf('0x7'));router['get']('/',auth[_0x48bf('0x8')](),controller[_0x48bf('0x9')]);router['get']('/describe',auth['isAuthenticated'](),controller[_0x48bf('0xa')]);router['get'](_0x48bf('0xb'),auth[_0x48bf('0x8')](),controller[_0x48bf('0xc')]);router[_0x48bf('0xd')](_0x48bf('0xe'),auth['isAuthenticated'](),controller[_0x48bf('0xf')]);router[_0x48bf('0xd')](_0x48bf('0x10'),auth[_0x48bf('0x8')](),controller[_0x48bf('0x11')]);router['post']('/',auth[_0x48bf('0x8')](),controller[_0x48bf('0x12')]);router[_0x48bf('0x13')](_0x48bf('0xe'),auth[_0x48bf('0x8')](),controller[_0x48bf('0x14')]);router[_0x48bf('0x13')]('/:id/tags',auth['isAuthenticated'](),interaction[_0x48bf('0x15')](_0x48bf('0x16'),_0x48bf('0x17')),controller[_0x48bf('0x18')]);router[_0x48bf('0x19')](_0x48bf('0xb'),auth[_0x48bf('0x8')](),interaction[_0x48bf('0x15')](_0x48bf('0x16'),_0x48bf('0x1a')),controller[_0x48bf('0x1b')]);router[_0x48bf('0x1c')]('/:id',auth['isAuthenticated'](),interaction[_0x48bf('0x15')]('sms','smsinteraction:destroy'),controller['destroy']);router[_0x48bf('0x1c')](_0x48bf('0x1d'),auth[_0x48bf('0x8')](),controller[_0x48bf('0x1e')]);module['exports']=router;