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