1a59044a6375422a1280595eee650a8fdbfc5482
[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 _0x984b=['api','moment','bluebird','rimraf','../../config/environment','UserVoiceQueue','user_has_voice_queues'];(function(_0x456fb1,_0x859a1d){var _0x4083d6=function(_0xe1d0f2){while(--_0xe1d0f2){_0x456fb1['push'](_0x456fb1['shift']());}};_0x4083d6(++_0x859a1d);}(_0x984b,0xee));var _0xb984=function(_0x4a92e5,_0xa87161){_0x4a92e5=_0x4a92e5-0x0;var _0xf128d4=_0x984b[_0x4a92e5];return _0xf128d4;};'use strict';var _=require('lodash');var util=require('util');var logger=require('../../config/logger')(_0xb984('0x0'));var moment=require(_0xb984('0x1'));var BPromise=require(_0xb984('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0xb984('0x3'));var config=require(_0xb984('0x4'));var attributes=require('./userVoiceQueue.attributes');module['exports']=function(_0x2cca53,_0x46c541){return _0x2cca53['define'](_0xb984('0x5'),attributes,{'tableName':_0xb984('0x6'),'paranoid':![],'indexes':[],'timestamps':!![]});};