bb000dd6669ab8eb5294f136dc5b88d7e913786a
[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 _0xa491=['define','VoiceMailMessage','voice_voicemail_messages','dir','lodash','../../config/logger','api','bluebird','rimraf','../../config/environment','./voiceMailMessage.attributes','exports'];(function(_0xf1af27,_0x598bb1){var _0x46b274=function(_0x1dba43){while(--_0x1dba43){_0xf1af27['push'](_0xf1af27['shift']());}};_0x46b274(++_0x598bb1);}(_0xa491,0x19c));var _0x1a49=function(_0x3ce74e,_0x5f1df5){_0x3ce74e=_0x3ce74e-0x0;var _0xe767c3=_0xa491[_0x3ce74e];return _0xe767c3;};'use strict';var _=require(_0x1a49('0x0'));var util=require('util');var logger=require(_0x1a49('0x1'))(_0x1a49('0x2'));var moment=require('moment');var BPromise=require(_0x1a49('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x1a49('0x4'));var config=require(_0x1a49('0x5'));var attributes=require(_0x1a49('0x6'));module[_0x1a49('0x7')]=function(_0x26ac5c,_0x28835e){return _0x26ac5c[_0x1a49('0x8')](_0x1a49('0x9'),attributes,{'tableName':_0x1a49('0xa'),'paranoid':![],'indexes':[{'name':_0x1a49('0xb'),'fields':['dir']}],'timestamps':![]});};