Built motion from commit 25580385.|2.6.2
[motion2.git] / server / api / smsAccount / smsAccount.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 _0xd84e=['moment','request-promise','path','rimraf','../../config/environment','exports','util','../../config/logger','api'];(function(_0x5b644e,_0x2e5e07){var _0x49c6bf=function(_0x3032d9){while(--_0x3032d9){_0x5b644e['push'](_0x5b644e['shift']());}};_0x49c6bf(++_0x2e5e07);}(_0xd84e,0x177));var _0xed84=function(_0x5f0220,_0x42ffb9){_0x5f0220=_0x5f0220-0x0;var _0x197438=_0xd84e[_0x5f0220];return _0x197438;};'use strict';var _=require('lodash');var util=require(_0xed84('0x0'));var logger=require(_0xed84('0x1'))(_0xed84('0x2'));var moment=require(_0xed84('0x3'));var BPromise=require('bluebird');var rp=require(_0xed84('0x4'));var fs=require('fs');var path=require(_0xed84('0x5'));var rimraf=require(_0xed84('0x6'));var config=require(_0xed84('0x7'));var attributes=require('./smsAccount.attributes');module[_0xed84('0x8')]=function(_0x2796c1,_0x25e64b){return _0x2796c1['define']('SmsAccount',attributes,{'tableName':'sms_accounts','paranoid':![],'indexes':[],'timestamps':!![]});};