a12d11b4489a6af81dc393bdcf43f23968b36dbc
[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 _0x550e=['uniqueid','lodash','util','../../config/logger','api','bluebird','request-promise','../../config/environment','./voiceCallReport.attributes','exports','VoiceCallReport','report_call'];(function(_0x588011,_0x5e9d11){var _0x3b3773=function(_0x4cca54){while(--_0x4cca54){_0x588011['push'](_0x588011['shift']());}};_0x3b3773(++_0x5e9d11);}(_0x550e,0x9d));var _0xe550=function(_0x4e2c8a,_0x247ab8){_0x4e2c8a=_0x4e2c8a-0x0;var _0x45e320=_0x550e[_0x4e2c8a];return _0x45e320;};'use strict';var _=require(_0xe550('0x0'));var util=require(_0xe550('0x1'));var logger=require(_0xe550('0x2'))(_0xe550('0x3'));var moment=require('moment');var BPromise=require(_0xe550('0x4'));var rp=require(_0xe550('0x5'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0xe550('0x6'));var attributes=require(_0xe550('0x7'));module[_0xe550('0x8')]=function(_0x2674cb,_0x5f0d53){return _0x2674cb['define'](_0xe550('0x9'),attributes,{'tableName':_0xe550('0xa'),'paranoid':![],'indexes':[{'fields':[_0xe550('0xb')]}],'timestamps':!![]});};