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