Built motion from commit (unavailable).|2.5.31
[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 _0x3f8a=['define','Cdr','cdr','accountcode','calldate','disposition','dst','src','uniqueid','lodash','util','../../config/logger','api','bluebird','request-promise','path','rimraf','../../config/environment','./cdr.attributes','exports'];(function(_0xbb9455,_0x5a058e){var _0x4b7fe1=function(_0x3d3e2c){while(--_0x3d3e2c){_0xbb9455['push'](_0xbb9455['shift']());}};_0x4b7fe1(++_0x5a058e);}(_0x3f8a,0x1d5));var _0xa3f8=function(_0x15fb02,_0x4529f6){_0x15fb02=_0x15fb02-0x0;var _0x463460=_0x3f8a[_0x15fb02];return _0x463460;};'use strict';var _=require(_0xa3f8('0x0'));var util=require(_0xa3f8('0x1'));var logger=require(_0xa3f8('0x2'))(_0xa3f8('0x3'));var moment=require('moment');var BPromise=require(_0xa3f8('0x4'));var rp=require(_0xa3f8('0x5'));var fs=require('fs');var path=require(_0xa3f8('0x6'));var rimraf=require(_0xa3f8('0x7'));var config=require(_0xa3f8('0x8'));var attributes=require(_0xa3f8('0x9'));module[_0xa3f8('0xa')]=function(_0x471464,_0x1f160a){return _0x471464[_0xa3f8('0xb')](_0xa3f8('0xc'),attributes,{'tableName':_0xa3f8('0xd'),'paranoid':![],'indexes':[{'name':_0xa3f8('0xe'),'fields':[_0xa3f8('0xe')]},{'name':_0xa3f8('0xf'),'fields':[_0xa3f8('0xf')]},{'name':_0xa3f8('0x10'),'fields':['disposition']},{'name':_0xa3f8('0x11'),'fields':[_0xa3f8('0x11')]},{'name':_0xa3f8('0x12'),'fields':[_0xa3f8('0x12')]},{'name':'uniqueid','fields':[_0xa3f8('0x13')]}],'timestamps':![]});};