Built motion from commit (unavailable).|2.5.22
[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 _0x779d=['lodash','util','api','moment','bluebird','path','../../config/environment','./whatsappQueue.attributes','exports','define','WhatsappQueue','whatsapp_queues'];(function(_0x7e9fba,_0x5cf75c){var _0x1f0a02=function(_0x197ecc){while(--_0x197ecc){_0x7e9fba['push'](_0x7e9fba['shift']());}};_0x1f0a02(++_0x5cf75c);}(_0x779d,0x120));var _0xd779=function(_0x16089c,_0x504c31){_0x16089c=_0x16089c-0x0;var _0x5e3b83=_0x779d[_0x16089c];return _0x5e3b83;};'use strict';var _=require(_0xd779('0x0'));var util=require(_0xd779('0x1'));var logger=require('../../config/logger')(_0xd779('0x2'));var moment=require(_0xd779('0x3'));var BPromise=require(_0xd779('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xd779('0x5'));var rimraf=require('rimraf');var config=require(_0xd779('0x6'));var attributes=require(_0xd779('0x7'));module[_0xd779('0x8')]=function(_0x5c9b5a,_0x4c398f){return _0x5c9b5a[_0xd779('0x9')](_0xd779('0xa'),attributes,{'tableName':_0xd779('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};