260a9e793e27f51739621fdf05275108cb493c5e
[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 _0x2660=['moment','request-promise','path','rimraf','../../config/environment','./voiceMail.attributes','exports','define','VoiceMail','voice_voicemail','mailbox_context','mailbox','context','util','../../config/logger','api'];(function(_0x399199,_0x4844ee){var _0x2115c7=function(_0x456377){while(--_0x456377){_0x399199['push'](_0x399199['shift']());}};_0x2115c7(++_0x4844ee);}(_0x2660,0x6d));var _0x0266=function(_0x406115,_0x19f7a1){_0x406115=_0x406115-0x0;var _0xbbabdb=_0x2660[_0x406115];return _0xbbabdb;};'use strict';var _=require('lodash');var util=require(_0x0266('0x0'));var logger=require(_0x0266('0x1'))(_0x0266('0x2'));var moment=require(_0x0266('0x3'));var BPromise=require('bluebird');var rp=require(_0x0266('0x4'));var fs=require('fs');var path=require(_0x0266('0x5'));var rimraf=require(_0x0266('0x6'));var config=require(_0x0266('0x7'));var attributes=require(_0x0266('0x8'));module[_0x0266('0x9')]=function(_0x5c1ea3,_0x3d2f54){return _0x5c1ea3[_0x0266('0xa')](_0x0266('0xb'),attributes,{'tableName':_0x0266('0xc'),'paranoid':![],'indexes':[{'name':_0x0266('0xd'),'fields':[_0x0266('0xe'),_0x0266('0xf')]}],'timestamps':!![]});};