1c34d577bf11fb65d093c806e800b26420caea4c
[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 _0x2c5e=['exports','define','VoiceMail','voice_voicemail','mailbox_context','mailbox','context','lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','../../config/environment','./voiceMail.attributes'];(function(_0xc8a598,_0x8ffd7c){var _0x2a6225=function(_0x5f2d46){while(--_0x5f2d46){_0xc8a598['push'](_0xc8a598['shift']());}};_0x2a6225(++_0x8ffd7c);}(_0x2c5e,0x139));var _0xe2c5=function(_0x17ce9c,_0x6db0a0){_0x17ce9c=_0x17ce9c-0x0;var _0x93265e=_0x2c5e[_0x17ce9c];return _0x93265e;};'use strict';var _=require(_0xe2c5('0x0'));var util=require(_0xe2c5('0x1'));var logger=require(_0xe2c5('0x2'))(_0xe2c5('0x3'));var moment=require(_0xe2c5('0x4'));var BPromise=require(_0xe2c5('0x5'));var rp=require(_0xe2c5('0x6'));var fs=require('fs');var path=require(_0xe2c5('0x7'));var rimraf=require('rimraf');var config=require(_0xe2c5('0x8'));var attributes=require(_0xe2c5('0x9'));module[_0xe2c5('0xa')]=function(_0x1994ff,_0xfd433){return _0x1994ff[_0xe2c5('0xb')](_0xe2c5('0xc'),attributes,{'tableName':_0xe2c5('0xd'),'paranoid':![],'indexes':[{'name':_0xe2c5('0xe'),'fields':[_0xe2c5('0xf'),_0xe2c5('0x10')]}],'timestamps':!![]});};