975d0a7e6549be33172d5e3a771c7fddba1844c2
[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 _0xe557=['moment','request-promise','path','../../config/environment','exports','define','VoiceCallReport','report_call','../../config/logger','api'];(function(_0x14add3,_0x13ce8d){var _0x4a174f=function(_0x2b3ed7){while(--_0x2b3ed7){_0x14add3['push'](_0x14add3['shift']());}};_0x4a174f(++_0x13ce8d);}(_0xe557,0x1c0));var _0x7e55=function(_0x6131cd,_0x4c26a1){_0x6131cd=_0x6131cd-0x0;var _0x47e916=_0xe557[_0x6131cd];return _0x47e916;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x7e55('0x0'))(_0x7e55('0x1'));var moment=require(_0x7e55('0x2'));var BPromise=require('bluebird');var rp=require(_0x7e55('0x3'));var fs=require('fs');var path=require(_0x7e55('0x4'));var rimraf=require('rimraf');var config=require(_0x7e55('0x5'));var attributes=require('./voiceCallReport.attributes');module[_0x7e55('0x6')]=function(_0x3d1bac,_0x8b037a){return _0x3d1bac[_0x7e55('0x7')](_0x7e55('0x8'),attributes,{'tableName':_0x7e55('0x9'),'paranoid':![],'indexes':[{'fields':['uniqueid']}],'timestamps':!![]});};