Built motion from commit 5ba5b610.|2.5.33
[motion2.git] / server / api / voiceCallReport / voiceCallReport.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 _0x807d=['bluebird','request-promise','./voiceCallReport.attributes','exports','define','VoiceCallReport','report_call','uniqueid','lodash','api','moment'];(function(_0x28698a,_0x871a13){var _0x284e07=function(_0x2356b9){while(--_0x2356b9){_0x28698a['push'](_0x28698a['shift']());}};_0x284e07(++_0x871a13);}(_0x807d,0x126));var _0xd807=function(_0x56aec7,_0x598e59){_0x56aec7=_0x56aec7-0x0;var _0x27d421=_0x807d[_0x56aec7];return _0x27d421;};'use strict';var _=require(_0xd807('0x0'));var util=require('util');var logger=require('../../config/logger')(_0xd807('0x1'));var moment=require(_0xd807('0x2'));var BPromise=require(_0xd807('0x3'));var rp=require(_0xd807('0x4'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0xd807('0x5'));module[_0xd807('0x6')]=function(_0x43ed56,_0x5d3b0f){return _0x43ed56[_0xd807('0x7')](_0xd807('0x8'),attributes,{'tableName':_0xd807('0x9'),'paranoid':![],'indexes':[{'fields':[_0xd807('0xa')]}],'timestamps':!![]});};