Built motion from commit 47436d59.|2.6.7
[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 _0x7db4=['moment','bluebird','request-promise','path','../../config/environment','./voiceCallReport.attributes','exports','define','VoiceCallReport','report_call','uniqueid','lodash','util','../../config/logger'];(function(_0x5330d5,_0xfcc56b){var _0x329adf=function(_0x43759e){while(--_0x43759e){_0x5330d5['push'](_0x5330d5['shift']());}};_0x329adf(++_0xfcc56b);}(_0x7db4,0x193));var _0x47db=function(_0x1b4395,_0x427c86){_0x1b4395=_0x1b4395-0x0;var _0x25b235=_0x7db4[_0x1b4395];return _0x25b235;};'use strict';var _=require(_0x47db('0x0'));var util=require(_0x47db('0x1'));var logger=require(_0x47db('0x2'))('api');var moment=require(_0x47db('0x3'));var BPromise=require(_0x47db('0x4'));var rp=require(_0x47db('0x5'));var fs=require('fs');var path=require(_0x47db('0x6'));var rimraf=require('rimraf');var config=require(_0x47db('0x7'));var attributes=require(_0x47db('0x8'));module[_0x47db('0x9')]=function(_0x4eae8d,_0xbb5ffb){return _0x4eae8d[_0x47db('0xa')](_0x47db('0xb'),attributes,{'tableName':_0x47db('0xc'),'paranoid':![],'indexes':[{'fields':[_0x47db('0xd')]}],'timestamps':!![]});};