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