Built motion from commit da617fac.|2.6.6
[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 _0xf031=['../../config/logger','api','moment','path','rimraf','../../config/environment','exports','define','VoiceQueuesLog','event_dtm','event','dtm'];(function(_0x11f682,_0x259ef5){var _0x46a0f9=function(_0x16b67e){while(--_0x16b67e){_0x11f682['push'](_0x11f682['shift']());}};_0x46a0f9(++_0x259ef5);}(_0xf031,0xfc));var _0x1f03=function(_0x55b460,_0x27a7b8){_0x55b460=_0x55b460-0x0;var _0x40f22f=_0xf031[_0x55b460];return _0x40f22f;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x1f03('0x0'))(_0x1f03('0x1'));var moment=require(_0x1f03('0x2'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x1f03('0x3'));var rimraf=require(_0x1f03('0x4'));var config=require(_0x1f03('0x5'));var attributes=require('./voiceQueuesLog.attributes');module[_0x1f03('0x6')]=function(_0x2dc000,_0xfef1){return _0x2dc000[_0x1f03('0x7')](_0x1f03('0x8'),attributes,{'tableName':'voice_queues_log','paranoid':![],'indexes':[{'name':_0x1f03('0x9'),'fields':[_0x1f03('0xa'),_0x1f03('0xb')]}],'timestamps':![]});};