b7c9466ef1bb2f9b20ffb4f02cd290878093fd9f
[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 _0xf480=['bluebird','rimraf','../../config/environment','./voiceMail.attributes','exports','VoiceMail','voice_voicemail','mailbox_context','context','util','../../config/logger','api','moment'];(function(_0x394ce2,_0x22570b){var _0x1a398d=function(_0x2c4fe5){while(--_0x2c4fe5){_0x394ce2['push'](_0x394ce2['shift']());}};_0x1a398d(++_0x22570b);}(_0xf480,0xe6));var _0x0f48=function(_0xfa048b,_0x257c88){_0xfa048b=_0xfa048b-0x0;var _0x2f85a9=_0xf480[_0xfa048b];return _0x2f85a9;};'use strict';var _=require('lodash');var util=require(_0x0f48('0x0'));var logger=require(_0x0f48('0x1'))(_0x0f48('0x2'));var moment=require(_0x0f48('0x3'));var BPromise=require(_0x0f48('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x0f48('0x5'));var config=require(_0x0f48('0x6'));var attributes=require(_0x0f48('0x7'));module[_0x0f48('0x8')]=function(_0x28eff8,_0x1600e5){return _0x28eff8['define'](_0x0f48('0x9'),attributes,{'tableName':_0x0f48('0xa'),'paranoid':![],'indexes':[{'name':_0x0f48('0xb'),'fields':['mailbox',_0x0f48('0xc')]}],'timestamps':!![]});};