Built motion from commit 3c2ce842.|2.6.31
[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 _0x5c8d=['moment','bluebird','exports','define','UserVoiceQueue','user_has_voice_queues','../../config/logger'];(function(_0x77d310,_0x2b2fe7){var _0x2cdce4=function(_0xbaa481){while(--_0xbaa481){_0x77d310['push'](_0x77d310['shift']());}};_0x2cdce4(++_0x2b2fe7);}(_0x5c8d,0x1d4));var _0xd5c8=function(_0x5eaeb2,_0x58d795){_0x5eaeb2=_0x5eaeb2-0x0;var _0x22f111=_0x5c8d[_0x5eaeb2];return _0x22f111;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0xd5c8('0x0'))('api');var moment=require(_0xd5c8('0x1'));var BPromise=require(_0xd5c8('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./userVoiceQueue.attributes');module[_0xd5c8('0x3')]=function(_0x3ebd9f,_0x101ed5){return _0x3ebd9f[_0xd5c8('0x4')](_0xd5c8('0x5'),attributes,{'tableName':_0xd5c8('0x6'),'paranoid':![],'indexes':[],'timestamps':!![]});};