Built motion from commit 3e059bc2.|2.5.32
[motion2.git] / server / api / voiceMail / voiceMail.model.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 _0xacfb=['define','mailbox_context','mailbox','lodash','api','moment','bluebird','rimraf','../../config/environment','./voiceMail.attributes','exports'];(function(_0x200e30,_0x2807c1){var _0xc81e9e=function(_0x508ffd){while(--_0x508ffd){_0x200e30['push'](_0x200e30['shift']());}};_0xc81e9e(++_0x2807c1);}(_0xacfb,0xa8));var _0xbacf=function(_0xf46e5e,_0x3e8fd2){_0xf46e5e=_0xf46e5e-0x0;var _0x528493=_0xacfb[_0xf46e5e];return _0x528493;};'use strict';var _=require(_0xbacf('0x0'));var util=require('util');var logger=require('../../config/logger')(_0xbacf('0x1'));var moment=require(_0xbacf('0x2'));var BPromise=require(_0xbacf('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0xbacf('0x4'));var config=require(_0xbacf('0x5'));var attributes=require(_0xbacf('0x6'));module[_0xbacf('0x7')]=function(_0x1ca623,_0x54f771){return _0x1ca623[_0xbacf('0x8')]('VoiceMail',attributes,{'tableName':'voice_voicemail','paranoid':![],'indexes':[{'name':_0xbacf('0x9'),'fields':[_0xbacf('0xa'),'context']}],'timestamps':!![]});};