41782049229dc01934c75795655af4f73acb66d5
[motion2.git] / server / api / voiceMailMessage / voiceMailMessage.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 _0x186f=['define','VoiceMailMessage','voice_voicemail_messages','dir','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','./voiceMailMessage.attributes'];(function(_0x5b4f3b,_0x24b4b2){var _0x3ae94e=function(_0x260dab){while(--_0x260dab){_0x5b4f3b['push'](_0x5b4f3b['shift']());}};_0x3ae94e(++_0x24b4b2);}(_0x186f,0xa0));var _0xf186=function(_0x397e5f,_0x454c8f){_0x397e5f=_0x397e5f-0x0;var _0x5302b8=_0x186f[_0x397e5f];return _0x5302b8;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0xf186('0x0'))(_0xf186('0x1'));var moment=require(_0xf186('0x2'));var BPromise=require(_0xf186('0x3'));var rp=require(_0xf186('0x4'));var fs=require('fs');var path=require(_0xf186('0x5'));var rimraf=require(_0xf186('0x6'));var config=require('../../config/environment');var attributes=require(_0xf186('0x7'));module['exports']=function(_0x4d8144,_0x5698f1){return _0x4d8144[_0xf186('0x8')](_0xf186('0x9'),attributes,{'tableName':_0xf186('0xa'),'paranoid':![],'indexes':[{'name':_0xf186('0xb'),'fields':[_0xf186('0xb')]}],'timestamps':![]});};