Built motion from commit (unavailable).|2.5.10
[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 _0xe4e7=['lodash','util','../../config/logger','api','moment','bluebird','../../config/environment','./voiceMail.attributes','exports','define','VoiceMail','voice_voicemail','mailbox_context','mailbox','context'];(function(_0x3ab51d,_0x2fa01d){var _0x29a04e=function(_0x7807b0){while(--_0x7807b0){_0x3ab51d['push'](_0x3ab51d['shift']());}};_0x29a04e(++_0x2fa01d);}(_0xe4e7,0x78));var _0x7e4e=function(_0x1ed010,_0x734e0b){_0x1ed010=_0x1ed010-0x0;var _0x6e22bf=_0xe4e7[_0x1ed010];return _0x6e22bf;};'use strict';var _=require(_0x7e4e('0x0'));var util=require(_0x7e4e('0x1'));var logger=require(_0x7e4e('0x2'))(_0x7e4e('0x3'));var moment=require(_0x7e4e('0x4'));var BPromise=require(_0x7e4e('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x7e4e('0x6'));var attributes=require(_0x7e4e('0x7'));module[_0x7e4e('0x8')]=function(_0x377f01,_0x4290ea){return _0x377f01[_0x7e4e('0x9')](_0x7e4e('0xa'),attributes,{'tableName':_0x7e4e('0xb'),'paranoid':![],'indexes':[{'name':_0x7e4e('0xc'),'fields':[_0x7e4e('0xd'),_0x7e4e('0xe')]}],'timestamps':!![]});};