Built motion from commit c738b9ac.|2.6.25
[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 _0xc31b=['mailbox_context','mailbox','context','util','path','rimraf','../../config/environment','./voiceMail.attributes','exports','define','VoiceMail','voice_voicemail'];(function(_0x4aa2ec,_0x3d552a){var _0x534708=function(_0x4255da){while(--_0x4255da){_0x4aa2ec['push'](_0x4aa2ec['shift']());}};_0x534708(++_0x3d552a);}(_0xc31b,0x1d7));var _0xbc31=function(_0x6c2295,_0x4cb31e){_0x6c2295=_0x6c2295-0x0;var _0x21554a=_0xc31b[_0x6c2295];return _0x21554a;};'use strict';var _=require('lodash');var util=require(_0xbc31('0x0'));var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0xbc31('0x1'));var rimraf=require(_0xbc31('0x2'));var config=require(_0xbc31('0x3'));var attributes=require(_0xbc31('0x4'));module[_0xbc31('0x5')]=function(_0x263b8e,_0x3e85e2){return _0x263b8e[_0xbc31('0x6')](_0xbc31('0x7'),attributes,{'tableName':_0xbc31('0x8'),'paranoid':![],'indexes':[{'name':_0xbc31('0x9'),'fields':[_0xbc31('0xa'),_0xbc31('0xb')]}],'timestamps':!![]});};