54baa435b0f7d6c6957301038ae4c090be9f1e1f
[motion2.git] / server / api / cdr / cdr.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 _0xcabe=['accountcode','calldate','disposition','dst','src','uniqueid','lodash','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./cdr.attributes','exports','define','Cdr','cdr'];(function(_0x118477,_0x1377a2){var _0x4f9580=function(_0x715c09){while(--_0x715c09){_0x118477['push'](_0x118477['shift']());}};_0x4f9580(++_0x1377a2);}(_0xcabe,0x123));var _0xecab=function(_0x1c449a,_0x1322d3){_0x1c449a=_0x1c449a-0x0;var _0x4e53e7=_0xcabe[_0x1c449a];return _0x4e53e7;};'use strict';var _=require(_0xecab('0x0'));var util=require('util');var logger=require('../../config/logger')(_0xecab('0x1'));var moment=require(_0xecab('0x2'));var BPromise=require(_0xecab('0x3'));var rp=require(_0xecab('0x4'));var fs=require('fs');var path=require(_0xecab('0x5'));var rimraf=require(_0xecab('0x6'));var config=require(_0xecab('0x7'));var attributes=require(_0xecab('0x8'));module[_0xecab('0x9')]=function(_0x5d8af4,_0x594796){return _0x5d8af4[_0xecab('0xa')](_0xecab('0xb'),attributes,{'tableName':_0xecab('0xc'),'paranoid':![],'indexes':[{'name':_0xecab('0xd'),'fields':[_0xecab('0xd')]},{'name':_0xecab('0xe'),'fields':['calldate']},{'name':_0xecab('0xf'),'fields':[_0xecab('0xf')]},{'name':_0xecab('0x10'),'fields':['dst']},{'name':_0xecab('0x11'),'fields':[_0xecab('0x11')]},{'name':'uniqueid','fields':[_0xecab('0x12')]}],'timestamps':![]});};