Built motion from commit (unavailable).|2.5.31
[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 _0xc359=['Router','../../components/auth/service','../../config/environment','get','isAuthenticated','describe','/:id','show','/:id/messages','post','create','addMessage','/:id/tags','tracked','sms','smsinteraction:addtags','addTags','put','smsinteraction:update','update','delete','smsinteraction:destroy','destroy','removeTags','exports','util','connect-timeout','express'];(function(_0x23df1a,_0x7c3f1c){var _0x52a093=function(_0x4f8231){while(--_0x4f8231){_0x23df1a['push'](_0x23df1a['shift']());}};_0x52a093(++_0x7c3f1c);}(_0xc359,0x1d9));var _0x9c35=function(_0x5c082a,_0x19ac27){_0x5c082a=_0x5c082a-0x0;var _0x3b60ac=_0xc359[_0x5c082a];return _0x3b60ac;};'use strict';var multer=require('multer');var util=require(_0x9c35('0x0'));var path=require('path');var timeout=require(_0x9c35('0x1'));var express=require(_0x9c35('0x2'));var router=express[_0x9c35('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x9c35('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x9c35('0x5'));var controller=require('./smsInteraction.controller');router[_0x9c35('0x6')]('/',auth['isAuthenticated'](),controller['index']);router['get']('/describe',auth[_0x9c35('0x7')](),controller[_0x9c35('0x8')]);router[_0x9c35('0x6')](_0x9c35('0x9'),auth[_0x9c35('0x7')](),controller[_0x9c35('0xa')]);router['get'](_0x9c35('0xb'),auth[_0x9c35('0x7')](),controller['getMessages']);router['get']('/:id/download',auth[_0x9c35('0x7')](),controller['download']);router[_0x9c35('0xc')]('/',auth[_0x9c35('0x7')](),controller[_0x9c35('0xd')]);router['post'](_0x9c35('0xb'),auth[_0x9c35('0x7')](),controller[_0x9c35('0xe')]);router[_0x9c35('0xc')](_0x9c35('0xf'),auth['isAuthenticated'](),interaction[_0x9c35('0x10')](_0x9c35('0x11'),_0x9c35('0x12')),controller[_0x9c35('0x13')]);router[_0x9c35('0x14')](_0x9c35('0x9'),auth[_0x9c35('0x7')](),interaction[_0x9c35('0x10')](_0x9c35('0x11'),_0x9c35('0x15')),controller[_0x9c35('0x16')]);router[_0x9c35('0x17')](_0x9c35('0x9'),auth[_0x9c35('0x7')](),interaction[_0x9c35('0x10')]('sms',_0x9c35('0x18')),controller[_0x9c35('0x19')]);router[_0x9c35('0x17')](_0x9c35('0xf'),auth['isAuthenticated'](),controller[_0x9c35('0x1a')]);module[_0x9c35('0x1b')]=router;