Built motion from commit (unavailable).|2.5.4
[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 _0xe8b8=['request-promise','path','rimraf','../../config/environment','./voiceCallReport.attributes','exports','define','VoiceCallReport','report_call','uniqueid','../../config/logger','api','moment','bluebird'];(function(_0x507172,_0x52f3ce){var _0x2e3ef5=function(_0x52a31f){while(--_0x52a31f){_0x507172['push'](_0x507172['shift']());}};_0x2e3ef5(++_0x52f3ce);}(_0xe8b8,0xdc));var _0x8e8b=function(_0x3c96f9,_0x2e834a){_0x3c96f9=_0x3c96f9-0x0;var _0x1dd61f=_0xe8b8[_0x3c96f9];return _0x1dd61f;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x8e8b('0x0'))(_0x8e8b('0x1'));var moment=require(_0x8e8b('0x2'));var BPromise=require(_0x8e8b('0x3'));var rp=require(_0x8e8b('0x4'));var fs=require('fs');var path=require(_0x8e8b('0x5'));var rimraf=require(_0x8e8b('0x6'));var config=require(_0x8e8b('0x7'));var attributes=require(_0x8e8b('0x8'));module[_0x8e8b('0x9')]=function(_0x12cfd5,_0x59da09){return _0x12cfd5[_0x8e8b('0xa')](_0x8e8b('0xb'),attributes,{'tableName':_0x8e8b('0xc'),'paranoid':![],'indexes':[{'fields':[_0x8e8b('0xd')]}],'timestamps':!![]});};