4282c82d0a57c6967c52e2eaf994027a19316ed7
[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 _0x7a2c=['path','rimraf','../../config/environment','exports','user_has_voice_queues','lodash','../../config/logger','api','moment','bluebird','request-promise'];(function(_0x49af17,_0x114208){var _0x4d4eb8=function(_0x16fda6){while(--_0x16fda6){_0x49af17['push'](_0x49af17['shift']());}};_0x4d4eb8(++_0x114208);}(_0x7a2c,0x17b));var _0xc7a2=function(_0x5a4ed5,_0x5e5abe){_0x5a4ed5=_0x5a4ed5-0x0;var _0x5d08c8=_0x7a2c[_0x5a4ed5];return _0x5d08c8;};'use strict';var _=require(_0xc7a2('0x0'));var util=require('util');var logger=require(_0xc7a2('0x1'))(_0xc7a2('0x2'));var moment=require(_0xc7a2('0x3'));var BPromise=require(_0xc7a2('0x4'));var rp=require(_0xc7a2('0x5'));var fs=require('fs');var path=require(_0xc7a2('0x6'));var rimraf=require(_0xc7a2('0x7'));var config=require(_0xc7a2('0x8'));var attributes=require('./userVoiceQueue.attributes');module[_0xc7a2('0x9')]=function(_0x1ddbae,_0x5f334e){return _0x1ddbae['define']('UserVoiceQueue',attributes,{'tableName':_0xc7a2('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};