Built motion from commit (unavailable).|2.5.8
[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 _0x608e=['../../config/environment','get','isAuthenticated','index','/:id/messages','getMessages','download','create','post','addMessage','/:id/tags','tracked','sms','smsinteraction:addtags','put','/:id','update','destroy','removeTags','exports','multer','path','connect-timeout','express','Router','../../components/interaction/service'];(function(_0x29232a,_0x48ee03){var _0x4f211b=function(_0x283c80){while(--_0x283c80){_0x29232a['push'](_0x29232a['shift']());}};_0x4f211b(++_0x48ee03);}(_0x608e,0xe4));var _0xe608=function(_0x5e6ddf,_0x4fd60d){_0x5e6ddf=_0x5e6ddf-0x0;var _0x425cad=_0x608e[_0x5e6ddf];return _0x425cad;};'use strict';var multer=require(_0xe608('0x0'));var util=require('util');var path=require(_0xe608('0x1'));var timeout=require(_0xe608('0x2'));var express=require(_0xe608('0x3'));var router=express[_0xe608('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0xe608('0x5'));var config=require(_0xe608('0x6'));var controller=require('./smsInteraction.controller');router[_0xe608('0x7')]('/',auth[_0xe608('0x8')](),controller[_0xe608('0x9')]);router[_0xe608('0x7')]('/describe',auth['isAuthenticated'](),controller['describe']);router[_0xe608('0x7')]('/:id',auth['isAuthenticated'](),controller['show']);router[_0xe608('0x7')](_0xe608('0xa'),auth[_0xe608('0x8')](),controller[_0xe608('0xb')]);router[_0xe608('0x7')]('/:id/download',auth['isAuthenticated'](),controller[_0xe608('0xc')]);router['post']('/',auth[_0xe608('0x8')](),controller[_0xe608('0xd')]);router[_0xe608('0xe')]('/:id/messages',auth[_0xe608('0x8')](),controller[_0xe608('0xf')]);router[_0xe608('0xe')](_0xe608('0x10'),auth['isAuthenticated'](),interaction[_0xe608('0x11')](_0xe608('0x12'),_0xe608('0x13')),controller['addTags']);router[_0xe608('0x14')](_0xe608('0x15'),auth[_0xe608('0x8')](),interaction['tracked'](_0xe608('0x12'),'smsinteraction:update'),controller[_0xe608('0x16')]);router['delete']('/:id',auth[_0xe608('0x8')](),interaction[_0xe608('0x11')]('sms','smsinteraction:destroy'),controller[_0xe608('0x17')]);router['delete'](_0xe608('0x10'),auth[_0xe608('0x8')](),controller[_0xe608('0x18')]);module[_0xe608('0x19')]=router;