Built motion from commit 00bf23f6.|2.6.16
[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 _0xfa77=['dir','util','api','moment','bluebird','path','rimraf','../../config/environment','./voiceMailMessage.attributes','exports','define','VoiceMailMessage','voice_voicemail_messages'];(function(_0xf8f4fa,_0x4cf6d2){var _0x117289=function(_0x581a9f){while(--_0x581a9f){_0xf8f4fa['push'](_0xf8f4fa['shift']());}};_0x117289(++_0x4cf6d2);}(_0xfa77,0x146));var _0x7fa7=function(_0x3ffb44,_0x4fc665){_0x3ffb44=_0x3ffb44-0x0;var _0x13cecf=_0xfa77[_0x3ffb44];return _0x13cecf;};'use strict';var _=require('lodash');var util=require(_0x7fa7('0x0'));var logger=require('../../config/logger')(_0x7fa7('0x1'));var moment=require(_0x7fa7('0x2'));var BPromise=require(_0x7fa7('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x7fa7('0x4'));var rimraf=require(_0x7fa7('0x5'));var config=require(_0x7fa7('0x6'));var attributes=require(_0x7fa7('0x7'));module[_0x7fa7('0x8')]=function(_0x5e936c,_0x3ae45d){return _0x5e936c[_0x7fa7('0x9')](_0x7fa7('0xa'),attributes,{'tableName':_0x7fa7('0xb'),'paranoid':![],'indexes':[{'name':_0x7fa7('0xc'),'fields':[_0x7fa7('0xc')]}],'timestamps':![]});};