Built motion from commit (unavailable).|2.5.1
[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 _0x1311=['./voiceCallReport.attributes','exports','VoiceCallReport','report_call','uniqueid','api','bluebird','path','rimraf','../../config/environment'];(function(_0x263a74,_0xc31414){var _0x2aa86c=function(_0x382896){while(--_0x382896){_0x263a74['push'](_0x263a74['shift']());}};_0x2aa86c(++_0xc31414);}(_0x1311,0x127));var _0x1131=function(_0x3c5e7f,_0x557566){_0x3c5e7f=_0x3c5e7f-0x0;var _0x4df292=_0x1311[_0x3c5e7f];return _0x4df292;};'use strict';var _=require('lodash');var util=require('util');var logger=require('../../config/logger')(_0x1131('0x0'));var moment=require('moment');var BPromise=require(_0x1131('0x1'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x1131('0x2'));var rimraf=require(_0x1131('0x3'));var config=require(_0x1131('0x4'));var attributes=require(_0x1131('0x5'));module[_0x1131('0x6')]=function(_0x10445c,_0x2e9bec){return _0x10445c['define'](_0x1131('0x7'),attributes,{'tableName':_0x1131('0x8'),'paranoid':![],'indexes':[{'fields':[_0x1131('0x9')]}],'timestamps':!![]});};