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