Built motion from commit (unavailable).|2.4.21
[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 _0x13f3=['../../config/environment','./voiceCallReport.attributes','exports','define','VoiceCallReport','report_call','lodash','util','api','moment','bluebird','path','rimraf'];(function(_0x4551f6,_0x48151b){var _0x581dc2=function(_0x1842af){while(--_0x1842af){_0x4551f6['push'](_0x4551f6['shift']());}};_0x581dc2(++_0x48151b);}(_0x13f3,0x1e7));var _0x313f=function(_0x581249,_0x483f03){_0x581249=_0x581249-0x0;var _0x284bae=_0x13f3[_0x581249];return _0x284bae;};'use strict';var _=require(_0x313f('0x0'));var util=require(_0x313f('0x1'));var logger=require('../../config/logger')(_0x313f('0x2'));var moment=require(_0x313f('0x3'));var BPromise=require(_0x313f('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x313f('0x5'));var rimraf=require(_0x313f('0x6'));var config=require(_0x313f('0x7'));var attributes=require(_0x313f('0x8'));module[_0x313f('0x9')]=function(_0x4767e1,_0x363074){return _0x4767e1[_0x313f('0xa')](_0x313f('0xb'),attributes,{'tableName':_0x313f('0xc'),'paranoid':![],'indexes':[{'fields':['uniqueid']}],'timestamps':!![]});};