2fe743fe468305a169655fe7fa4d61d41ccd17fb
[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 _0x17e7=['moment','bluebird','path','../../components/integrations/configuration','exports','define','DeskAccount','lodash','../../config/logger','api'];(function(_0x57b733,_0x5df5f9){var _0x332322=function(_0x4abf18){while(--_0x4abf18){_0x57b733['push'](_0x57b733['shift']());}};_0x332322(++_0x5df5f9);}(_0x17e7,0x1e7));var _0x717e=function(_0x3e7e96,_0x5683ca){_0x3e7e96=_0x3e7e96-0x0;var _0x13f6f0=_0x17e7[_0x3e7e96];return _0x13f6f0;};'use strict';var _=require(_0x717e('0x0'));var util=require('util');var logger=require(_0x717e('0x1'))(_0x717e('0x2'));var moment=require(_0x717e('0x3'));var BPromise=require(_0x717e('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x717e('0x5'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./intDeskAccount.attributes');var integrations=require(_0x717e('0x6'));module[_0x717e('0x7')]=function(_0x5e8a5a,_0x24a9eb){return _0x5e8a5a[_0x717e('0x8')](_0x717e('0x9'),attributes,{'tableName':'int_desk_accounts','paranoid':![],'indexes':[],'timestamps':!![]});};