1284cce687916058e514e76cef7096c4d58082b4
[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 _0xa7f1=['moment','bluebird','path','rimraf','../../config/environment','./voiceMail.attributes','exports','define','VoiceMail','voice_voicemail','mailbox_context','mailbox','util','../../config/logger','api'];(function(_0x5e1d32,_0x305ff8){var _0x579676=function(_0x2b899c){while(--_0x2b899c){_0x5e1d32['push'](_0x5e1d32['shift']());}};_0x579676(++_0x305ff8);}(_0xa7f1,0x75));var _0x1a7f=function(_0x2b60bd,_0x49418d){_0x2b60bd=_0x2b60bd-0x0;var _0x3d9523=_0xa7f1[_0x2b60bd];return _0x3d9523;};'use strict';var _=require('lodash');var util=require(_0x1a7f('0x0'));var logger=require(_0x1a7f('0x1'))(_0x1a7f('0x2'));var moment=require(_0x1a7f('0x3'));var BPromise=require(_0x1a7f('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x1a7f('0x5'));var rimraf=require(_0x1a7f('0x6'));var config=require(_0x1a7f('0x7'));var attributes=require(_0x1a7f('0x8'));module[_0x1a7f('0x9')]=function(_0x228ef4,_0x264862){return _0x228ef4[_0x1a7f('0xa')](_0x1a7f('0xb'),attributes,{'tableName':_0x1a7f('0xc'),'paranoid':![],'indexes':[{'name':_0x1a7f('0xd'),'fields':[_0x1a7f('0xe'),'context']}],'timestamps':!![]});};