d3ad573c8e66b06b013769bb7532074db4997806
[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 _0x55b6=['Disposition','tools_dispositions','name_voice','name','ListId','name_chat','name_mail','MailAccountId','name_sms','SmsAccountId','name_fax','FaxAccountId','name_openchannel','OpenchannelAccountId','name_whatsapp','WhatsappAccountId','lodash','util','../../config/logger','api','moment','../../config/environment','./disposition.attributes','exports','define'];(function(_0x21331a,_0x57fc48){var _0x325c55=function(_0x770dfa){while(--_0x770dfa){_0x21331a['push'](_0x21331a['shift']());}};_0x325c55(++_0x57fc48);}(_0x55b6,0x74));var _0x655b=function(_0x5802e1,_0x2449f6){_0x5802e1=_0x5802e1-0x0;var _0x3faaa6=_0x55b6[_0x5802e1];return _0x3faaa6;};'use strict';var _=require(_0x655b('0x0'));var util=require(_0x655b('0x1'));var logger=require(_0x655b('0x2'))(_0x655b('0x3'));var moment=require(_0x655b('0x4'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x655b('0x5'));var attributes=require(_0x655b('0x6'));module[_0x655b('0x7')]=function(_0x5d3784,_0x2842f9){return _0x5d3784[_0x655b('0x8')](_0x655b('0x9'),attributes,{'tableName':_0x655b('0xa'),'paranoid':![],'indexes':[{'unique':!![],'name':_0x655b('0xb'),'fields':[_0x655b('0xc'),_0x655b('0xd')]},{'unique':!![],'name':_0x655b('0xe'),'fields':[_0x655b('0xc'),'ChatWebsiteId']},{'unique':!![],'name':_0x655b('0xf'),'fields':[_0x655b('0xc'),_0x655b('0x10')]},{'unique':!![],'name':_0x655b('0x11'),'fields':[_0x655b('0xc'),_0x655b('0x12')]},{'unique':!![],'name':_0x655b('0x13'),'fields':[_0x655b('0xc'),_0x655b('0x14')]},{'unique':!![],'name':_0x655b('0x15'),'fields':[_0x655b('0xc'),_0x655b('0x16')]},{'unique':!![],'name':_0x655b('0x17'),'fields':[_0x655b('0xc'),_0x655b('0x18')]}],'timestamps':!![]});};