Built motion from commit (unavailable).|2.2.4
[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 _0x950e=['disposition','src','uniqueid','lodash','../../config/logger','api','moment','bluebird','exports','define','Cdr','cdr','accountcode','calldate'];(function(_0x12d9cf,_0xbe11f4){var _0x56e9fe=function(_0x576abb){while(--_0x576abb){_0x12d9cf['push'](_0x12d9cf['shift']());}};_0x56e9fe(++_0xbe11f4);}(_0x950e,0x1c3));var _0xe950=function(_0x46728b,_0x376bc6){_0x46728b=_0x46728b-0x0;var _0x5aa8e2=_0x950e[_0x46728b];return _0x5aa8e2;};'use strict';var _=require(_0xe950('0x0'));var util=require('util');var logger=require(_0xe950('0x1'))(_0xe950('0x2'));var moment=require(_0xe950('0x3'));var BPromise=require(_0xe950('0x4'));var rp=require('request-promise');var attributes=require('./cdr.attributes');module[_0xe950('0x5')]=function(_0x38b517,_0x43d30a){return _0x38b517[_0xe950('0x6')](_0xe950('0x7'),attributes,{'tableName':_0xe950('0x8'),'paranoid':![],'indexes':[{'name':_0xe950('0x9'),'fields':[_0xe950('0x9')]},{'name':_0xe950('0xa'),'fields':['calldate']},{'name':_0xe950('0xb'),'fields':[_0xe950('0xb')]},{'name':'dst','fields':['dst']},{'name':'src','fields':[_0xe950('0xc')]},{'name':'uniqueid','fields':[_0xe950('0xd')]}],'timestamps':![]});};