Built motion from commit (unavailable).|2.5.4
[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 _0x893e=['bluebird','request-promise','path','./whatsappAccount.attributes','exports','define','WhatsappAccount','util','../../config/logger','api'];(function(_0x3e76a9,_0x4f92e3){var _0x5c5aab=function(_0x5d58df){while(--_0x5d58df){_0x3e76a9['push'](_0x3e76a9['shift']());}};_0x5c5aab(++_0x4f92e3);}(_0x893e,0x10b));var _0xe893=function(_0x3f2b46,_0x5693e5){_0x3f2b46=_0x3f2b46-0x0;var _0x150488=_0x893e[_0x3f2b46];return _0x150488;};'use strict';var _=require('lodash');var util=require(_0xe893('0x0'));var logger=require(_0xe893('0x1'))(_0xe893('0x2'));var moment=require('moment');var BPromise=require(_0xe893('0x3'));var rp=require(_0xe893('0x4'));var fs=require('fs');var path=require(_0xe893('0x5'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0xe893('0x6'));module[_0xe893('0x7')]=function(_0x1865ab,_0x34f605){return _0x1865ab[_0xe893('0x8')](_0xe893('0x9'),attributes,{'tableName':'whatsapp_accounts','paranoid':![],'indexes':[],'timestamps':!![]});};