Built motion from commit 14588770.|2.5.38
[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 _0xd5f4=['rimraf','../../config/environment','./smsAccount.attributes','exports','SmsAccount','sms_accounts','lodash','util','../../config/logger','moment','bluebird','path'];(function(_0x12bda7,_0x2c63c6){var _0x2d41bd=function(_0x5efe9b){while(--_0x5efe9b){_0x12bda7['push'](_0x12bda7['shift']());}};_0x2d41bd(++_0x2c63c6);}(_0xd5f4,0x192));var _0x4d5f=function(_0x342baa,_0x4a110f){_0x342baa=_0x342baa-0x0;var _0x1208f3=_0xd5f4[_0x342baa];return _0x1208f3;};'use strict';var _=require(_0x4d5f('0x0'));var util=require(_0x4d5f('0x1'));var logger=require(_0x4d5f('0x2'))('api');var moment=require(_0x4d5f('0x3'));var BPromise=require(_0x4d5f('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x4d5f('0x5'));var rimraf=require(_0x4d5f('0x6'));var config=require(_0x4d5f('0x7'));var attributes=require(_0x4d5f('0x8'));module[_0x4d5f('0x9')]=function(_0x1f4b2d,_0x1f46ca){return _0x1f4b2d['define'](_0x4d5f('0xa'),attributes,{'tableName':_0x4d5f('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};