69b727ce772dd6519b91cc14a8f5f540ea403a01
[motion2.git] / server / api / openchannelAccount / openchannelAccount.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 _0xcff0=['request-promise','path','../../config/environment','./openchannelAccount.attributes','exports','define','OpenchannelAccount','openchannel_accounts','lodash','util','api','moment','bluebird'];(function(_0x5529a1,_0x178b85){var _0xf71f93=function(_0x47b809){while(--_0x47b809){_0x5529a1['push'](_0x5529a1['shift']());}};_0xf71f93(++_0x178b85);}(_0xcff0,0xd8));var _0x0cff=function(_0x55577b,_0x12db48){_0x55577b=_0x55577b-0x0;var _0x1c1ae9=_0xcff0[_0x55577b];return _0x1c1ae9;};'use strict';var _=require(_0x0cff('0x0'));var util=require(_0x0cff('0x1'));var logger=require('../../config/logger')(_0x0cff('0x2'));var moment=require(_0x0cff('0x3'));var BPromise=require(_0x0cff('0x4'));var rp=require(_0x0cff('0x5'));var fs=require('fs');var path=require(_0x0cff('0x6'));var rimraf=require('rimraf');var config=require(_0x0cff('0x7'));var attributes=require(_0x0cff('0x8'));module[_0x0cff('0x9')]=function(_0x2f6029,_0x1e1151){return _0x2f6029[_0x0cff('0xa')](_0x0cff('0xb'),attributes,{'tableName':_0x0cff('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};