Built motion from commit 9d0783e6.|2.6.13
[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 _0xa251=['bluebird','path','rimraf','../../config/environment','./userVoiceQueue.attributes','exports','define','UserVoiceQueue','user_has_voice_queues','util','api','moment'];(function(_0x1762da,_0x153674){var _0xcf6d82=function(_0x198fc6){while(--_0x198fc6){_0x1762da['push'](_0x1762da['shift']());}};_0xcf6d82(++_0x153674);}(_0xa251,0x99));var _0x1a25=function(_0x137972,_0x36f5ba){_0x137972=_0x137972-0x0;var _0x12447d=_0xa251[_0x137972];return _0x12447d;};'use strict';var _=require('lodash');var util=require(_0x1a25('0x0'));var logger=require('../../config/logger')(_0x1a25('0x1'));var moment=require(_0x1a25('0x2'));var BPromise=require(_0x1a25('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x1a25('0x4'));var rimraf=require(_0x1a25('0x5'));var config=require(_0x1a25('0x6'));var attributes=require(_0x1a25('0x7'));module[_0x1a25('0x8')]=function(_0x242f38,_0x21f43c){return _0x242f38[_0x1a25('0x9')](_0x1a25('0xa'),attributes,{'tableName':_0x1a25('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};