Built motion from commit d1eab355.|2.6.28
[motion2.git] / server / api / whatsappAccount / whatsappAccount.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 _0xc0f1=['util','../../config/logger','api','moment','bluebird','path','rimraf','../../config/environment','./whatsappAccount.attributes','exports','define','WhatsappAccount','whatsapp_accounts','lodash'];(function(_0x49d41c,_0x2bdc35){var _0xb64c5f=function(_0x28f535){while(--_0x28f535){_0x49d41c['push'](_0x49d41c['shift']());}};_0xb64c5f(++_0x2bdc35);}(_0xc0f1,0x8b));var _0x1c0f=function(_0x33d4a2,_0x2baaf4){_0x33d4a2=_0x33d4a2-0x0;var _0x2c793f=_0xc0f1[_0x33d4a2];return _0x2c793f;};'use strict';var _=require(_0x1c0f('0x0'));var util=require(_0x1c0f('0x1'));var logger=require(_0x1c0f('0x2'))(_0x1c0f('0x3'));var moment=require(_0x1c0f('0x4'));var BPromise=require(_0x1c0f('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x1c0f('0x6'));var rimraf=require(_0x1c0f('0x7'));var config=require(_0x1c0f('0x8'));var attributes=require(_0x1c0f('0x9'));module[_0x1c0f('0xa')]=function(_0x444527,_0x4df244){return _0x444527[_0x1c0f('0xb')](_0x1c0f('0xc'),attributes,{'tableName':_0x1c0f('0xd'),'paranoid':![],'indexes':[],'timestamps':!![]});};