Built motion from commit 639a1a7f.|2.6.19
[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 _0xcce1=['../../config/environment','exports','define','OpenchannelQueue','openchannel_queues','lodash','util','../../config/logger','bluebird'];(function(_0x280dd8,_0x5c8eb8){var _0x2a6aa6=function(_0x118d85){while(--_0x118d85){_0x280dd8['push'](_0x280dd8['shift']());}};_0x2a6aa6(++_0x5c8eb8);}(_0xcce1,0x68));var _0x1cce=function(_0x25df80,_0xa2aec5){_0x25df80=_0x25df80-0x0;var _0x17b6d0=_0xcce1[_0x25df80];return _0x17b6d0;};'use strict';var _=require(_0x1cce('0x0'));var util=require(_0x1cce('0x1'));var logger=require(_0x1cce('0x2'))('api');var moment=require('moment');var BPromise=require(_0x1cce('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x1cce('0x4'));var attributes=require('./openchannelQueue.attributes');module[_0x1cce('0x5')]=function(_0x22287d,_0x12b248){return _0x22287d[_0x1cce('0x6')](_0x1cce('0x7'),attributes,{'tableName':_0x1cce('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};