56f67a3261f33544f6e6553623bcebadb55ede36
[motion2.git] / server / api / openchannelQueue / openchannelQueue.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 _0x98ed=['OpenchannelQueue','openchannel_queues','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','exports','define'];(function(_0x191513,_0x25de2e){var _0x5bddab=function(_0x10c663){while(--_0x10c663){_0x191513['push'](_0x191513['shift']());}};_0x5bddab(++_0x25de2e);}(_0x98ed,0x1be));var _0xd98e=function(_0x3f77de,_0x5a5e5e){_0x3f77de=_0x3f77de-0x0;var _0x5b9158=_0x98ed[_0x3f77de];return _0x5b9158;};'use strict';var _=require('lodash');var util=require(_0xd98e('0x0'));var logger=require(_0xd98e('0x1'))(_0xd98e('0x2'));var moment=require(_0xd98e('0x3'));var BPromise=require(_0xd98e('0x4'));var rp=require(_0xd98e('0x5'));var fs=require('fs');var path=require(_0xd98e('0x6'));var rimraf=require(_0xd98e('0x7'));var config=require('../../config/environment');var attributes=require('./openchannelQueue.attributes');module[_0xd98e('0x8')]=function(_0x4944d3,_0x2fcf8a){return _0x4944d3[_0xd98e('0x9')](_0xd98e('0xa'),attributes,{'tableName':_0xd98e('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};