6041dcc736f1dce656d21bf168b1be38e942eb80
[motion2.git] / server / api / voiceQueue / voiceQueue.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 _0xaa68=['lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./voiceQueue.attributes','exports','define','VoiceQueue','voice_queues'];(function(_0x576710,_0x2766d0){var _0x792aaa=function(_0x533a38){while(--_0x533a38){_0x576710['push'](_0x576710['shift']());}};_0x792aaa(++_0x2766d0);}(_0xaa68,0xb4));var _0x8aa6=function(_0x47fe04,_0x3e5e90){_0x47fe04=_0x47fe04-0x0;var _0x149c1d=_0xaa68[_0x47fe04];return _0x149c1d;};'use strict';var _=require(_0x8aa6('0x0'));var util=require(_0x8aa6('0x1'));var logger=require(_0x8aa6('0x2'))(_0x8aa6('0x3'));var moment=require(_0x8aa6('0x4'));var BPromise=require(_0x8aa6('0x5'));var rp=require(_0x8aa6('0x6'));var fs=require('fs');var path=require(_0x8aa6('0x7'));var rimraf=require(_0x8aa6('0x8'));var config=require(_0x8aa6('0x9'));var attributes=require(_0x8aa6('0xa'));module[_0x8aa6('0xb')]=function(_0x9d3522,_0x39bf41){return _0x9d3522[_0x8aa6('0xc')](_0x8aa6('0xd'),attributes,{'tableName':_0x8aa6('0xe'),'paranoid':![],'indexes':[],'timestamps':!![]});};