Built motion from commit bab6f49e.|2.6.17
[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 _0xdc9e=['mailbox','api','moment','request-promise','path','rimraf','../../config/environment','exports','define','voice_voicemail','mailbox_context'];(function(_0x5f1391,_0x19c132){var _0x50ebe3=function(_0x3d00a3){while(--_0x3d00a3){_0x5f1391['push'](_0x5f1391['shift']());}};_0x50ebe3(++_0x19c132);}(_0xdc9e,0x18d));var _0xedc9=function(_0x33889b,_0x496dff){_0x33889b=_0x33889b-0x0;var _0x1c330a=_0xdc9e[_0x33889b];return _0x1c330a;};'use strict';var _=require('lodash');var util=require('util');var logger=require('../../config/logger')(_0xedc9('0x0'));var moment=require(_0xedc9('0x1'));var BPromise=require('bluebird');var rp=require(_0xedc9('0x2'));var fs=require('fs');var path=require(_0xedc9('0x3'));var rimraf=require(_0xedc9('0x4'));var config=require(_0xedc9('0x5'));var attributes=require('./voiceMail.attributes');module[_0xedc9('0x6')]=function(_0x32fa23,_0x3ce8d6){return _0x32fa23[_0xedc9('0x7')]('VoiceMail',attributes,{'tableName':_0xedc9('0x8'),'paranoid':![],'indexes':[{'name':_0xedc9('0x9'),'fields':[_0xedc9('0xa'),'context']}],'timestamps':!![]});};