28b4d01824f625f56602135912ce61636995c018
[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 _0xb1de=['api','bluebird','request-promise','rimraf','./voiceMail.attributes','exports','define','VoiceMail','voice_voicemail','mailbox_context','util','../../config/logger'];(function(_0x18b2f3,_0x29b07e){var _0x4e896b=function(_0x130790){while(--_0x130790){_0x18b2f3['push'](_0x18b2f3['shift']());}};_0x4e896b(++_0x29b07e);}(_0xb1de,0x196));var _0xeb1d=function(_0x58eb3c,_0x6227ba){_0x58eb3c=_0x58eb3c-0x0;var _0x59be0c=_0xb1de[_0x58eb3c];return _0x59be0c;};'use strict';var _=require('lodash');var util=require(_0xeb1d('0x0'));var logger=require(_0xeb1d('0x1'))(_0xeb1d('0x2'));var moment=require('moment');var BPromise=require(_0xeb1d('0x3'));var rp=require(_0xeb1d('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0xeb1d('0x5'));var config=require('../../config/environment');var attributes=require(_0xeb1d('0x6'));module[_0xeb1d('0x7')]=function(_0x559c56,_0x59ded5){return _0x559c56[_0xeb1d('0x8')](_0xeb1d('0x9'),attributes,{'tableName':_0xeb1d('0xa'),'paranoid':![],'indexes':[{'name':_0xeb1d('0xb'),'fields':['mailbox','context']}],'timestamps':!![]});};