Built motion from commit 53172ac8.|2.6.30
[motion2.git] / server / api / voiceQueuesLog / voiceQueuesLog.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 _0xbe9a=['lodash','../../config/logger','api','moment','request-promise','path','rimraf','../../config/environment','exports','define','VoiceQueuesLog','voice_queues_log','event_dtm','event','dtm'];(function(_0xa464c9,_0x7c86d8){var _0x3d73c4=function(_0x5c2056){while(--_0x5c2056){_0xa464c9['push'](_0xa464c9['shift']());}};_0x3d73c4(++_0x7c86d8);}(_0xbe9a,0x1a4));var _0xabe9=function(_0x287b60,_0x582120){_0x287b60=_0x287b60-0x0;var _0x5e0c03=_0xbe9a[_0x287b60];return _0x5e0c03;};'use strict';var _=require(_0xabe9('0x0'));var util=require('util');var logger=require(_0xabe9('0x1'))(_0xabe9('0x2'));var moment=require(_0xabe9('0x3'));var BPromise=require('bluebird');var rp=require(_0xabe9('0x4'));var fs=require('fs');var path=require(_0xabe9('0x5'));var rimraf=require(_0xabe9('0x6'));var config=require(_0xabe9('0x7'));var attributes=require('./voiceQueuesLog.attributes');module[_0xabe9('0x8')]=function(_0x40b9aa,_0x1ee7e0){return _0x40b9aa[_0xabe9('0x9')](_0xabe9('0xa'),attributes,{'tableName':_0xabe9('0xb'),'paranoid':![],'indexes':[{'name':_0xabe9('0xc'),'fields':[_0xabe9('0xd'),_0xabe9('0xe')]}],'timestamps':![]});};