Built motion from commit (unavailable).|2.5.14
[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 _0xf300=['../../config/logger','api','request-promise','../../config/environment','./voiceMail.attributes','exports','voice_voicemail','mailbox_context','context'];(function(_0x31079d,_0x47ead8){var _0xf0ee13=function(_0x3e85dd){while(--_0x3e85dd){_0x31079d['push'](_0x31079d['shift']());}};_0xf0ee13(++_0x47ead8);}(_0xf300,0xc6));var _0x0f30=function(_0x1e5cc3,_0x238a87){_0x1e5cc3=_0x1e5cc3-0x0;var _0x15c596=_0xf300[_0x1e5cc3];return _0x15c596;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x0f30('0x0'))(_0x0f30('0x1'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x0f30('0x2'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x0f30('0x3'));var attributes=require(_0x0f30('0x4'));module[_0x0f30('0x5')]=function(_0xf93aae,_0x2649d8){return _0xf93aae['define']('VoiceMail',attributes,{'tableName':_0x0f30('0x6'),'paranoid':![],'indexes':[{'name':_0x0f30('0x7'),'fields':['mailbox',_0x0f30('0x8')]}],'timestamps':!![]});};