357e5848dec4c57901c76bbd0aa9d0e82c8cc0d6
[motion2.git] / server / api / userVoiceQueue / userVoiceQueue.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 _0x07cb=['bluebird','request-promise','path','../../config/environment','UserVoiceQueue','user_has_voice_queues','lodash','api'];(function(_0x172948,_0x4262cc){var _0x4aeaa9=function(_0x5ec4b3){while(--_0x5ec4b3){_0x172948['push'](_0x172948['shift']());}};_0x4aeaa9(++_0x4262cc);}(_0x07cb,0x1be));var _0xb07c=function(_0x428ec2,_0x150404){_0x428ec2=_0x428ec2-0x0;var _0x1654d6=_0x07cb[_0x428ec2];return _0x1654d6;};'use strict';var _=require(_0xb07c('0x0'));var util=require('util');var logger=require('../../config/logger')(_0xb07c('0x1'));var moment=require('moment');var BPromise=require(_0xb07c('0x2'));var rp=require(_0xb07c('0x3'));var fs=require('fs');var path=require(_0xb07c('0x4'));var rimraf=require('rimraf');var config=require(_0xb07c('0x5'));var attributes=require('./userVoiceQueue.attributes');module['exports']=function(_0x4e9449,_0x5d0e44){return _0x4e9449['define'](_0xb07c('0x6'),attributes,{'tableName':_0xb07c('0x7'),'paranoid':![],'indexes':[],'timestamps':!![]});};