Built motion from commit da617fac.|2.6.6
[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 _0x744e=['lodash','util','../../config/logger','bluebird','request-promise','path','rimraf','exports','WhatsappQueue','whatsapp_queues'];(function(_0xaa1b3e,_0x47d976){var _0x454d7d=function(_0x575b32){while(--_0x575b32){_0xaa1b3e['push'](_0xaa1b3e['shift']());}};_0x454d7d(++_0x47d976);}(_0x744e,0x190));var _0xe744=function(_0xf68806,_0x5edb76){_0xf68806=_0xf68806-0x0;var _0x59720d=_0x744e[_0xf68806];return _0x59720d;};'use strict';var _=require(_0xe744('0x0'));var util=require(_0xe744('0x1'));var logger=require(_0xe744('0x2'))('api');var moment=require('moment');var BPromise=require(_0xe744('0x3'));var rp=require(_0xe744('0x4'));var fs=require('fs');var path=require(_0xe744('0x5'));var rimraf=require(_0xe744('0x6'));var config=require('../../config/environment');var attributes=require('./whatsappQueue.attributes');module[_0xe744('0x7')]=function(_0xf0ac12,_0xea0dc6){return _0xf0ac12['define'](_0xe744('0x8'),attributes,{'tableName':_0xe744('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};