Built motion from commit b0a9a629.|2.6.33
[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 _0x9f30=['request-promise','path','../../config/environment','exports','define','OpenchannelQueue','lodash','util','../../config/logger','bluebird'];(function(_0x21c722,_0x40fb86){var _0x48a8f6=function(_0x201259){while(--_0x201259){_0x21c722['push'](_0x21c722['shift']());}};_0x48a8f6(++_0x40fb86);}(_0x9f30,0xce));var _0x09f3=function(_0x44014f,_0x17fa9c){_0x44014f=_0x44014f-0x0;var _0x4b1af9=_0x9f30[_0x44014f];return _0x4b1af9;};'use strict';var _=require(_0x09f3('0x0'));var util=require(_0x09f3('0x1'));var logger=require(_0x09f3('0x2'))('api');var moment=require('moment');var BPromise=require(_0x09f3('0x3'));var rp=require(_0x09f3('0x4'));var fs=require('fs');var path=require(_0x09f3('0x5'));var rimraf=require('rimraf');var config=require(_0x09f3('0x6'));var attributes=require('./openchannelQueue.attributes');module[_0x09f3('0x7')]=function(_0x3217bd,_0x5bee0c){return _0x3217bd[_0x09f3('0x8')](_0x09f3('0x9'),attributes,{'tableName':'openchannel_queues','paranoid':![],'indexes':[],'timestamps':!![]});};