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