8128e645132f59399efbce65e8c54fa13ec34bbb
[motion2.git] / server / api / smsAccount / 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 _0xf705=['path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./smsAccount.controller','isAuthenticated','get','/describe','describe','/:id','show','/:id/dispositions','getDispositions','/:id/canned_answers','getAnswers','/:id/applications','getApplications','getInteractions','/:id/status','statusGet','/:id/users','post','addAnswer','/:id/notify','notify','addApplications','/:id/send','send','status','addAgents','put','update','delete','destroy','removeDispositions','removeAgents','multer'];(function(_0x270739,_0x165001){var _0x1258c4=function(_0x24ff07){while(--_0x24ff07){_0x270739['push'](_0x270739['shift']());}};_0x1258c4(++_0x165001);}(_0xf705,0x185));var _0x5f70=function(_0x167cc1,_0x56ef5a){_0x167cc1=_0x167cc1-0x0;var _0x10bc4b=_0xf705[_0x167cc1];return _0x10bc4b;};'use strict';var multer=require(_0x5f70('0x0'));var util=require('util');var path=require(_0x5f70('0x1'));var timeout=require(_0x5f70('0x2'));var express=require(_0x5f70('0x3'));var router=express[_0x5f70('0x4')]();var auth=require(_0x5f70('0x5'));var interaction=require(_0x5f70('0x6'));var config=require('../../config/environment');var controller=require(_0x5f70('0x7'));router['get']('/',auth[_0x5f70('0x8')](),controller['index']);router[_0x5f70('0x9')](_0x5f70('0xa'),auth[_0x5f70('0x8')](),controller[_0x5f70('0xb')]);router[_0x5f70('0x9')](_0x5f70('0xc'),auth[_0x5f70('0x8')](),controller[_0x5f70('0xd')]);router[_0x5f70('0x9')](_0x5f70('0xe'),auth[_0x5f70('0x8')](),controller[_0x5f70('0xf')]);router[_0x5f70('0x9')](_0x5f70('0x10'),auth[_0x5f70('0x8')](),controller[_0x5f70('0x11')]);router['get'](_0x5f70('0x12'),auth['isAuthenticated'](),controller[_0x5f70('0x13')]);router['get']('/:id/interactions',auth[_0x5f70('0x8')](),controller[_0x5f70('0x14')]);router[_0x5f70('0x9')](_0x5f70('0x15'),controller[_0x5f70('0x16')]);router[_0x5f70('0x9')](_0x5f70('0x17'),auth[_0x5f70('0x8')](),controller['getAgents']);router[_0x5f70('0x18')]('/',auth[_0x5f70('0x8')](),controller['create']);router[_0x5f70('0x18')](_0x5f70('0xe'),auth[_0x5f70('0x8')](),controller['addDisposition']);router[_0x5f70('0x18')]('/:id/canned_answers',auth[_0x5f70('0x8')](),controller[_0x5f70('0x19')]);router[_0x5f70('0x18')](_0x5f70('0x1a'),controller[_0x5f70('0x1b')]);router[_0x5f70('0x18')](_0x5f70('0x12'),auth[_0x5f70('0x8')](),controller[_0x5f70('0x1c')]);router[_0x5f70('0x18')](_0x5f70('0x1d'),auth[_0x5f70('0x8')](),controller[_0x5f70('0x1e')]);router['post']('/:id/status',controller[_0x5f70('0x1f')]);router[_0x5f70('0x18')](_0x5f70('0x17'),auth[_0x5f70('0x8')](),controller[_0x5f70('0x20')]);router[_0x5f70('0x21')]('/:id',auth[_0x5f70('0x8')](),controller[_0x5f70('0x22')]);router[_0x5f70('0x23')](_0x5f70('0xc'),auth[_0x5f70('0x8')](),controller[_0x5f70('0x24')]);router[_0x5f70('0x23')](_0x5f70('0xe'),auth[_0x5f70('0x8')](),controller[_0x5f70('0x25')]);router['delete']('/:id/canned_answers',auth[_0x5f70('0x8')](),controller['removeAnswers']);router[_0x5f70('0x23')](_0x5f70('0x17'),auth[_0x5f70('0x8')](),controller[_0x5f70('0x26')]);module['exports']=router;