Built motion from commit 3a7e82ea.|2.6.29
[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 _0x36e3=['bluebird','request-promise','path','rimraf','../../config/environment','./voiceMail.attributes','exports','define','voice_voicemail','mailbox','util','../../config/logger','api','moment'];(function(_0x17d9e3,_0x1f969c){var _0x14192d=function(_0x159745){while(--_0x159745){_0x17d9e3['push'](_0x17d9e3['shift']());}};_0x14192d(++_0x1f969c);}(_0x36e3,0x1bc));var _0x336e=function(_0x187ee1,_0x3fd1e6){_0x187ee1=_0x187ee1-0x0;var _0x388160=_0x36e3[_0x187ee1];return _0x388160;};'use strict';var _=require('lodash');var util=require(_0x336e('0x0'));var logger=require(_0x336e('0x1'))(_0x336e('0x2'));var moment=require(_0x336e('0x3'));var BPromise=require(_0x336e('0x4'));var rp=require(_0x336e('0x5'));var fs=require('fs');var path=require(_0x336e('0x6'));var rimraf=require(_0x336e('0x7'));var config=require(_0x336e('0x8'));var attributes=require(_0x336e('0x9'));module[_0x336e('0xa')]=function(_0xbb557,_0x1d571e){return _0xbb557[_0x336e('0xb')]('VoiceMail',attributes,{'tableName':_0x336e('0xc'),'paranoid':![],'indexes':[{'name':'mailbox_context','fields':[_0x336e('0xd'),'context']}],'timestamps':!![]});};