Built motion from commit b5413ace.|2.6.9
[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 _0x693e=['define','WhatsappAccount','whatsapp_accounts','lodash','util','api','request-promise','../../config/environment','exports'];(function(_0x3e6a36,_0x2c0876){var _0x2cb315=function(_0x35ddbd){while(--_0x35ddbd){_0x3e6a36['push'](_0x3e6a36['shift']());}};_0x2cb315(++_0x2c0876);}(_0x693e,0x186));var _0xe693=function(_0x4b055c,_0x4b870b){_0x4b055c=_0x4b055c-0x0;var _0x4b62bb=_0x693e[_0x4b055c];return _0x4b62bb;};'use strict';var _=require(_0xe693('0x0'));var util=require(_0xe693('0x1'));var logger=require('../../config/logger')(_0xe693('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0xe693('0x3'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0xe693('0x4'));var attributes=require('./whatsappAccount.attributes');module[_0xe693('0x5')]=function(_0x57e7cc,_0x2efd3d){return _0x57e7cc[_0xe693('0x6')](_0xe693('0x7'),attributes,{'tableName':_0xe693('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};