c32bcd053bac8aca444f6f99cabaee32a05e8587
[motion2.git] / server / api / disposition / disposition.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 _0xf0f4=['moment','path','rimraf','../../config/environment','./disposition.attributes','Disposition','tools_dispositions','name_voice','ListId','name_chat','name','name_mail','MailAccountId','name_fax','FaxAccountId','OpenchannelAccountId','name_whatsapp','WhatsappAccountId','lodash','util','../../config/logger','api'];(function(_0x30b58,_0x48df3b){var _0x9d210d=function(_0x46fffd){while(--_0x46fffd){_0x30b58['push'](_0x30b58['shift']());}};_0x9d210d(++_0x48df3b);}(_0xf0f4,0x1b4));var _0x4f0f=function(_0x5c3905,_0x23ca67){_0x5c3905=_0x5c3905-0x0;var _0xc3b713=_0xf0f4[_0x5c3905];return _0xc3b713;};'use strict';var _=require(_0x4f0f('0x0'));var util=require(_0x4f0f('0x1'));var logger=require(_0x4f0f('0x2'))(_0x4f0f('0x3'));var moment=require(_0x4f0f('0x4'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x4f0f('0x5'));var rimraf=require(_0x4f0f('0x6'));var config=require(_0x4f0f('0x7'));var attributes=require(_0x4f0f('0x8'));module['exports']=function(_0x2a906b,_0x3001d0){return _0x2a906b['define'](_0x4f0f('0x9'),attributes,{'tableName':_0x4f0f('0xa'),'paranoid':![],'indexes':[{'unique':!![],'name':_0x4f0f('0xb'),'fields':['name',_0x4f0f('0xc')]},{'unique':!![],'name':_0x4f0f('0xd'),'fields':[_0x4f0f('0xe'),'ChatWebsiteId']},{'unique':!![],'name':_0x4f0f('0xf'),'fields':['name',_0x4f0f('0x10')]},{'unique':!![],'name':'name_sms','fields':[_0x4f0f('0xe'),'SmsAccountId']},{'unique':!![],'name':_0x4f0f('0x11'),'fields':[_0x4f0f('0xe'),_0x4f0f('0x12')]},{'unique':!![],'name':'name_openchannel','fields':[_0x4f0f('0xe'),_0x4f0f('0x13')]},{'unique':!![],'name':_0x4f0f('0x14'),'fields':[_0x4f0f('0xe'),_0x4f0f('0x15')]}],'timestamps':!![]});};