Built motion from commit ffdca78c.|2.6.24
[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 _0x89f6=['dir','util','api','bluebird','request-promise','path','../../config/environment','./voiceMailMessage.attributes','define','VoiceMailMessage','voice_voicemail_messages'];(function(_0x3cfb0d,_0x4df584){var _0x3486b4=function(_0x1b0939){while(--_0x1b0939){_0x3cfb0d['push'](_0x3cfb0d['shift']());}};_0x3486b4(++_0x4df584);}(_0x89f6,0xd2));var _0x689f=function(_0x4d07cc,_0x587613){_0x4d07cc=_0x4d07cc-0x0;var _0x42de3b=_0x89f6[_0x4d07cc];return _0x42de3b;};'use strict';var _=require('lodash');var util=require(_0x689f('0x0'));var logger=require('../../config/logger')(_0x689f('0x1'));var moment=require('moment');var BPromise=require(_0x689f('0x2'));var rp=require(_0x689f('0x3'));var fs=require('fs');var path=require(_0x689f('0x4'));var rimraf=require('rimraf');var config=require(_0x689f('0x5'));var attributes=require(_0x689f('0x6'));module['exports']=function(_0x46227a,_0x9b38e){return _0x46227a[_0x689f('0x7')](_0x689f('0x8'),attributes,{'tableName':_0x689f('0x9'),'paranoid':![],'indexes':[{'name':_0x689f('0xa'),'fields':[_0x689f('0xa')]}],'timestamps':![]});};