Built motion from commit 47436d59.|2.6.7
[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 _0x4b22=['./voiceMailMessage.attributes','exports','define','VoiceMailMessage','voice_voicemail_messages','dir','lodash','util','api','moment','bluebird','path','rimraf','../../config/environment'];(function(_0x48dd01,_0x1a49be){var _0x36f07f=function(_0x2ae26a){while(--_0x2ae26a){_0x48dd01['push'](_0x48dd01['shift']());}};_0x36f07f(++_0x1a49be);}(_0x4b22,0x1e2));var _0x24b2=function(_0x2b821d,_0x9ca5a3){_0x2b821d=_0x2b821d-0x0;var _0x4959e8=_0x4b22[_0x2b821d];return _0x4959e8;};'use strict';var _=require(_0x24b2('0x0'));var util=require(_0x24b2('0x1'));var logger=require('../../config/logger')(_0x24b2('0x2'));var moment=require(_0x24b2('0x3'));var BPromise=require(_0x24b2('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x24b2('0x5'));var rimraf=require(_0x24b2('0x6'));var config=require(_0x24b2('0x7'));var attributes=require(_0x24b2('0x8'));module[_0x24b2('0x9')]=function(_0x35aac3,_0xa32778){return _0x35aac3[_0x24b2('0xa')](_0x24b2('0xb'),attributes,{'tableName':_0x24b2('0xc'),'paranoid':![],'indexes':[{'name':_0x24b2('0xd'),'fields':['dir']}],'timestamps':![]});};