Built motion from commit b5996064.|2.6.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 _0x0c24=['./voiceCallReport.attributes','define','VoiceCallReport','report_call','uniqueid','../../config/logger','api','bluebird','rimraf','../../config/environment'];(function(_0x1d5614,_0x4f0bea){var _0x3b4b08=function(_0x2c562b){while(--_0x2c562b){_0x1d5614['push'](_0x1d5614['shift']());}};_0x3b4b08(++_0x4f0bea);}(_0x0c24,0x13b));var _0x40c2=function(_0x31eb67,_0x9bc8c0){_0x31eb67=_0x31eb67-0x0;var _0x2a8cb8=_0x0c24[_0x31eb67];return _0x2a8cb8;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x40c2('0x0'))(_0x40c2('0x1'));var moment=require('moment');var BPromise=require(_0x40c2('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x40c2('0x3'));var config=require(_0x40c2('0x4'));var attributes=require(_0x40c2('0x5'));module['exports']=function(_0x146749,_0x3f204c){return _0x146749[_0x40c2('0x6')](_0x40c2('0x7'),attributes,{'tableName':_0x40c2('0x8'),'paranoid':![],'indexes':[{'fields':[_0x40c2('0x9')]}],'timestamps':!![]});};