Built motion from commit (unavailable).|2.4.20
[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 _0x34ed=['../../config/environment','./voiceMail.attributes','exports','define','voice_voicemail','mailbox','../../config/logger','api','moment','bluebird','rimraf'];(function(_0x42fb0e,_0x55fc22){var _0x595566=function(_0x4d7e07){while(--_0x4d7e07){_0x42fb0e['push'](_0x42fb0e['shift']());}};_0x595566(++_0x55fc22);}(_0x34ed,0x124));var _0xd34e=function(_0x3b5ad9,_0x223867){_0x3b5ad9=_0x3b5ad9-0x0;var _0x611ae9=_0x34ed[_0x3b5ad9];return _0x611ae9;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0xd34e('0x0'))(_0xd34e('0x1'));var moment=require(_0xd34e('0x2'));var BPromise=require(_0xd34e('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0xd34e('0x4'));var config=require(_0xd34e('0x5'));var attributes=require(_0xd34e('0x6'));module[_0xd34e('0x7')]=function(_0x578370,_0x15ea2c){return _0x578370[_0xd34e('0x8')]('VoiceMail',attributes,{'tableName':_0xd34e('0x9'),'paranoid':![],'indexes':[{'name':'mailbox_context','fields':[_0xd34e('0xa'),'context']}],'timestamps':!![]});};