Built motion from commit (unavailable).|2.5.23
[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 _0xe130=['path','rimraf','./voiceMail.attributes','exports','define','VoiceMail','voice_voicemail','mailbox_context','mailbox','util','api'];(function(_0x3928a7,_0x299bba){var _0x17b2a7=function(_0x42ba0a){while(--_0x42ba0a){_0x3928a7['push'](_0x3928a7['shift']());}};_0x17b2a7(++_0x299bba);}(_0xe130,0x18a));var _0x0e13=function(_0x35664b,_0x23e5d2){_0x35664b=_0x35664b-0x0;var _0x378be2=_0xe130[_0x35664b];return _0x378be2;};'use strict';var _=require('lodash');var util=require(_0x0e13('0x0'));var logger=require('../../config/logger')(_0x0e13('0x1'));var moment=require('moment');var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x0e13('0x2'));var rimraf=require(_0x0e13('0x3'));var config=require('../../config/environment');var attributes=require(_0x0e13('0x4'));module[_0x0e13('0x5')]=function(_0x3ecc93,_0x315188){return _0x3ecc93[_0x0e13('0x6')](_0x0e13('0x7'),attributes,{'tableName':_0x0e13('0x8'),'paranoid':![],'indexes':[{'name':_0x0e13('0x9'),'fields':[_0x0e13('0xa'),'context']}],'timestamps':!![]});};