ca7b2fe5810ab52de64ff84d58052ce3f8fb6e30
[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 _0x7153=['api','moment','bluebird','path','rimraf','../../config/environment','exports','define','report_call','uniqueid','util','../../config/logger'];(function(_0x2cf2e9,_0xd58ea1){var _0xd3670d=function(_0x272868){while(--_0x272868){_0x2cf2e9['push'](_0x2cf2e9['shift']());}};_0xd3670d(++_0xd58ea1);}(_0x7153,0x136));var _0x3715=function(_0x45b29d,_0x44ce43){_0x45b29d=_0x45b29d-0x0;var _0x32d74=_0x7153[_0x45b29d];return _0x32d74;};'use strict';var _=require('lodash');var util=require(_0x3715('0x0'));var logger=require(_0x3715('0x1'))(_0x3715('0x2'));var moment=require(_0x3715('0x3'));var BPromise=require(_0x3715('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x3715('0x5'));var rimraf=require(_0x3715('0x6'));var config=require(_0x3715('0x7'));var attributes=require('./voiceCallReport.attributes');module[_0x3715('0x8')]=function(_0x20c0cd,_0x3b2636){return _0x20c0cd[_0x3715('0x9')]('VoiceCallReport',attributes,{'tableName':_0x3715('0xa'),'paranoid':![],'indexes':[{'fields':[_0x3715('0xb')]}],'timestamps':!![]});};