Built motion from commit d1eab355.|2.6.28
[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 _0x7ecb=['define','OpenchannelQueue','../../config/logger','api','moment','request-promise','path','rimraf','../../config/environment','exports'];(function(_0x28b12e,_0x59f4f5){var _0x2c3bd1=function(_0x1680c1){while(--_0x1680c1){_0x28b12e['push'](_0x28b12e['shift']());}};_0x2c3bd1(++_0x59f4f5);}(_0x7ecb,0x160));var _0xb7ec=function(_0x20a584,_0xe384a5){_0x20a584=_0x20a584-0x0;var _0x4b41a8=_0x7ecb[_0x20a584];return _0x4b41a8;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0xb7ec('0x0'))(_0xb7ec('0x1'));var moment=require(_0xb7ec('0x2'));var BPromise=require('bluebird');var rp=require(_0xb7ec('0x3'));var fs=require('fs');var path=require(_0xb7ec('0x4'));var rimraf=require(_0xb7ec('0x5'));var config=require(_0xb7ec('0x6'));var attributes=require('./openchannelQueue.attributes');module[_0xb7ec('0x7')]=function(_0x2c017c,_0x722faa){return _0x2c017c[_0xb7ec('0x8')](_0xb7ec('0x9'),attributes,{'tableName':'openchannel_queues','paranoid':![],'indexes':[],'timestamps':!![]});};