021e38d0a7ad4708b37652fdb2d5863792a84250
[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 _0xe130=['path','rimraf','./voiceMail.attributes','exports','define','VoiceMail','voice_voicemail','mailbox_context','mailbox','util','api'];(function(_0x45e1d1,_0x41be41){var _0x35337e=function(_0x2d4f62){while(--_0x2d4f62){_0x45e1d1['push'](_0x45e1d1['shift']());}};_0x35337e(++_0x41be41);}(_0xe130,0x18a));var _0x0e13=function(_0x3b123a,_0x36c7d7){_0x3b123a=_0x3b123a-0x0;var _0x1de123=_0xe130[_0x3b123a];return _0x1de123;};'use strict';var _=require('lodash');var util=require(_0x0e13('0x0'));var logger=require('../../config/logger')(_0x0e13('0x1'));var moment=require('moment');var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x0e13('0x2'));var rimraf=require(_0x0e13('0x3'));var config=require('../../config/environment');var attributes=require(_0x0e13('0x4'));module[_0x0e13('0x5')]=function(_0x3ecc93,_0x315188){return _0x3ecc93[_0x0e13('0x6')](_0x0e13('0x7'),attributes,{'tableName':_0x0e13('0x8'),'paranoid':![],'indexes':[{'name':_0x0e13('0x9'),'fields':[_0x0e13('0xa'),'context']}],'timestamps':!![]});};