aa44369a3eeca282892dfc54a71b424e67e0a3f1
[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 _0xfdbd=['lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','./cdr.attributes','accountcode','calldate','disposition','dst','src','uniqueid'];(function(_0x59880e,_0x2afff7){var _0x3cf134=function(_0x269c75){while(--_0x269c75){_0x59880e['push'](_0x59880e['shift']());}};_0x3cf134(++_0x2afff7);}(_0xfdbd,0xf0));var _0xdfdb=function(_0x583e98,_0x5534f5){_0x583e98=_0x583e98-0x0;var _0x84cc30=_0xfdbd[_0x583e98];return _0x84cc30;};'use strict';var _=require(_0xdfdb('0x0'));var util=require(_0xdfdb('0x1'));var logger=require(_0xdfdb('0x2'))(_0xdfdb('0x3'));var moment=require(_0xdfdb('0x4'));var BPromise=require(_0xdfdb('0x5'));var rp=require(_0xdfdb('0x6'));var fs=require('fs');var path=require(_0xdfdb('0x7'));var rimraf=require(_0xdfdb('0x8'));var config=require('../../config/environment');var attributes=require(_0xdfdb('0x9'));module['exports']=function(_0x453ef6,_0x41bd5e){return _0x453ef6['define']('Cdr',attributes,{'tableName':'cdr','paranoid':![],'indexes':[{'name':_0xdfdb('0xa'),'fields':[_0xdfdb('0xa')]},{'name':'calldate','fields':[_0xdfdb('0xb')]},{'name':_0xdfdb('0xc'),'fields':[_0xdfdb('0xc')]},{'name':_0xdfdb('0xd'),'fields':[_0xdfdb('0xd')]},{'name':_0xdfdb('0xe'),'fields':[_0xdfdb('0xe')]},{'name':'uniqueid','fields':[_0xdfdb('0xf')]}],'timestamps':![]});};