Built motion from commit (unavailable).|2.5.4
[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 _0xffcf=['rimraf','../../config/environment','./voiceMail.attributes','define','VoiceMail','voice_voicemail','mailbox_context','mailbox','context','lodash','util','api','bluebird','request-promise','path'];(function(_0x288e69,_0x1f96a5){var _0x81f7e=function(_0x1ecce5){while(--_0x1ecce5){_0x288e69['push'](_0x288e69['shift']());}};_0x81f7e(++_0x1f96a5);}(_0xffcf,0x180));var _0xfffc=function(_0x26d6d9,_0x431cb8){_0x26d6d9=_0x26d6d9-0x0;var _0x1b4875=_0xffcf[_0x26d6d9];return _0x1b4875;};'use strict';var _=require(_0xfffc('0x0'));var util=require(_0xfffc('0x1'));var logger=require('../../config/logger')(_0xfffc('0x2'));var moment=require('moment');var BPromise=require(_0xfffc('0x3'));var rp=require(_0xfffc('0x4'));var fs=require('fs');var path=require(_0xfffc('0x5'));var rimraf=require(_0xfffc('0x6'));var config=require(_0xfffc('0x7'));var attributes=require(_0xfffc('0x8'));module['exports']=function(_0x339792,_0x58f2fc){return _0x339792[_0xfffc('0x9')](_0xfffc('0xa'),attributes,{'tableName':_0xfffc('0xb'),'paranoid':![],'indexes':[{'name':_0xfffc('0xc'),'fields':[_0xfffc('0xd'),_0xfffc('0xe')]}],'timestamps':!![]});};