Built motion from commit 167bccf5.|2.6.7
[motion2.git] / server / api / whatsappQueue / whatsappQueue.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 _0xd50b=['util','../../config/logger','moment','bluebird','path','rimraf','exports','define'];(function(_0x12c6a9,_0x1ac7c5){var _0x3438c=function(_0x14e953){while(--_0x14e953){_0x12c6a9['push'](_0x12c6a9['shift']());}};_0x3438c(++_0x1ac7c5);}(_0xd50b,0xc0));var _0xbd50=function(_0x338990,_0x4755d9){_0x338990=_0x338990-0x0;var _0x14f156=_0xd50b[_0x338990];return _0x14f156;};'use strict';var _=require('lodash');var util=require(_0xbd50('0x0'));var logger=require(_0xbd50('0x1'))('api');var moment=require(_0xbd50('0x2'));var BPromise=require(_0xbd50('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xbd50('0x4'));var rimraf=require(_0xbd50('0x5'));var config=require('../../config/environment');var attributes=require('./whatsappQueue.attributes');module[_0xbd50('0x6')]=function(_0x2583df,_0x55c17e){return _0x2583df[_0xbd50('0x7')]('WhatsappQueue',attributes,{'tableName':'whatsapp_queues','paranoid':![],'indexes':[],'timestamps':!![]});};