Built motion from commit 3e059bc2.|2.5.32
[motion2.git] / server / api / voiceRecording / voiceRecording.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 _0x9f12=['moment','bluebird','path','rimraf','../../config/environment','./voiceRecording.attributes','exports','define','VoiceRecording','voice_recordings','uniqueid','../../config/logger','api'];(function(_0x2911e2,_0x39c3d9){var _0x111b30=function(_0xb9e924){while(--_0xb9e924){_0x2911e2['push'](_0x2911e2['shift']());}};_0x111b30(++_0x39c3d9);}(_0x9f12,0xe8));var _0x29f1=function(_0x3ed02b,_0x54a618){_0x3ed02b=_0x3ed02b-0x0;var _0x54fccf=_0x9f12[_0x3ed02b];return _0x54fccf;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x29f1('0x0'))(_0x29f1('0x1'));var moment=require(_0x29f1('0x2'));var BPromise=require(_0x29f1('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x29f1('0x4'));var rimraf=require(_0x29f1('0x5'));var config=require(_0x29f1('0x6'));var attributes=require(_0x29f1('0x7'));module[_0x29f1('0x8')]=function(_0x3db9d9,_0x48e33b){return _0x3db9d9[_0x29f1('0x9')](_0x29f1('0xa'),attributes,{'tableName':_0x29f1('0xb'),'paranoid':![],'indexes':[{'name':_0x29f1('0xc'),'fields':['uniqueid']}],'timestamps':!![]});};