Built motion from commit c738b9ac.|2.6.25
[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 _0xb76c=['define','VoiceCallReport','report_call','uniqueid','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','./voiceCallReport.attributes','exports'];(function(_0x1b959e,_0x5b2d5f){var _0xa5ecea=function(_0x447b07){while(--_0x447b07){_0x1b959e['push'](_0x1b959e['shift']());}};_0xa5ecea(++_0x5b2d5f);}(_0xb76c,0x74));var _0xcb76=function(_0x44a64f,_0x38475c){_0x44a64f=_0x44a64f-0x0;var _0x52024b=_0xb76c[_0x44a64f];return _0x52024b;};'use strict';var _=require('lodash');var util=require(_0xcb76('0x0'));var logger=require(_0xcb76('0x1'))(_0xcb76('0x2'));var moment=require(_0xcb76('0x3'));var BPromise=require(_0xcb76('0x4'));var rp=require(_0xcb76('0x5'));var fs=require('fs');var path=require(_0xcb76('0x6'));var rimraf=require(_0xcb76('0x7'));var config=require('../../config/environment');var attributes=require(_0xcb76('0x8'));module[_0xcb76('0x9')]=function(_0x3155c8,_0x28e27d){return _0x3155c8[_0xcb76('0xa')](_0xcb76('0xb'),attributes,{'tableName':_0xcb76('0xc'),'paranoid':![],'indexes':[{'fields':[_0xcb76('0xd')]}],'timestamps':!![]});};