3cb6aef41280860775820065b2a24edc5be63f19
[motion2.git] / server / api / intDeskAccount / intDeskAccount.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 _0x543b=['api','path','rimraf','./intDeskAccount.attributes','../../components/integrations/configuration','exports','DeskAccount','int_desk_accounts','lodash','../../config/logger'];(function(_0x11a739,_0x1d8fc5){var _0x159fc1=function(_0x210bac){while(--_0x210bac){_0x11a739['push'](_0x11a739['shift']());}};_0x159fc1(++_0x1d8fc5);}(_0x543b,0xa8));var _0xb543=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0x543b[_0x14add3];return _0x4a174f;};'use strict';var _=require(_0xb543('0x0'));var util=require('util');var logger=require(_0xb543('0x1'))(_0xb543('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0xb543('0x3'));var rimraf=require(_0xb543('0x4'));var config=require('../../config/environment');var attributes=require(_0xb543('0x5'));var integrations=require(_0xb543('0x6'));module[_0xb543('0x7')]=function(_0x2f2678,_0x46c3bd){return _0x2f2678['define'](_0xb543('0x8'),attributes,{'tableName':_0xb543('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};