Built motion from commit (unavailable).|2.5.22
[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 _0x7d4d=['express','Router','../../components/interaction/service','../../config/environment','./smsInteraction.controller','isAuthenticated','index','get','/describe','describe','/:id','show','/:id/messages','/:id/download','download','post','create','addMessage','/:id/tags','sms','addTags','smsinteraction:update','update','delete','tracked','smsinteraction:destroy','destroy','multer','util','path','connect-timeout'];(function(_0x51c388,_0x3b3bfd){var _0x395092=function(_0x38281e){while(--_0x38281e){_0x51c388['push'](_0x51c388['shift']());}};_0x395092(++_0x3b3bfd);}(_0x7d4d,0x170));var _0xd7d4=function(_0x1a3e23,_0xce45e){_0x1a3e23=_0x1a3e23-0x0;var _0x5ee0d8=_0x7d4d[_0x1a3e23];return _0x5ee0d8;};'use strict';var multer=require(_0xd7d4('0x0'));var util=require(_0xd7d4('0x1'));var path=require(_0xd7d4('0x2'));var timeout=require(_0xd7d4('0x3'));var express=require(_0xd7d4('0x4'));var router=express[_0xd7d4('0x5')]();var auth=require('../../components/auth/service');var interaction=require(_0xd7d4('0x6'));var config=require(_0xd7d4('0x7'));var controller=require(_0xd7d4('0x8'));router['get']('/',auth[_0xd7d4('0x9')](),controller[_0xd7d4('0xa')]);router[_0xd7d4('0xb')](_0xd7d4('0xc'),auth[_0xd7d4('0x9')](),controller[_0xd7d4('0xd')]);router['get'](_0xd7d4('0xe'),auth[_0xd7d4('0x9')](),controller[_0xd7d4('0xf')]);router[_0xd7d4('0xb')](_0xd7d4('0x10'),auth[_0xd7d4('0x9')](),controller['getMessages']);router[_0xd7d4('0xb')](_0xd7d4('0x11'),auth[_0xd7d4('0x9')](),controller[_0xd7d4('0x12')]);router[_0xd7d4('0x13')]('/',auth[_0xd7d4('0x9')](),controller[_0xd7d4('0x14')]);router[_0xd7d4('0x13')](_0xd7d4('0x10'),auth['isAuthenticated'](),controller[_0xd7d4('0x15')]);router['post'](_0xd7d4('0x16'),auth[_0xd7d4('0x9')](),interaction['tracked'](_0xd7d4('0x17'),'smsinteraction:addtags'),controller[_0xd7d4('0x18')]);router['put'](_0xd7d4('0xe'),auth[_0xd7d4('0x9')](),interaction['tracked'](_0xd7d4('0x17'),_0xd7d4('0x19')),controller[_0xd7d4('0x1a')]);router[_0xd7d4('0x1b')](_0xd7d4('0xe'),auth[_0xd7d4('0x9')](),interaction[_0xd7d4('0x1c')](_0xd7d4('0x17'),_0xd7d4('0x1d')),controller[_0xd7d4('0x1e')]);router[_0xd7d4('0x1b')](_0xd7d4('0x16'),auth[_0xd7d4('0x9')](),controller['removeTags']);module['exports']=router;