Built motion from commit b9b02fed.|2.6.5
[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 _0x613a=['name_sms','SmsAccountId','FaxAccountId','name_openchannel','OpenchannelAccountId','name_whatsapp','WhatsappAccountId','lodash','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./disposition.attributes','Disposition','tools_dispositions','name','ListId','name_chat','ChatWebsiteId','name_mail','MailAccountId'];(function(_0x1bed09,_0x94979){var _0x4830d9=function(_0x133d1b){while(--_0x133d1b){_0x1bed09['push'](_0x1bed09['shift']());}};_0x4830d9(++_0x94979);}(_0x613a,0xaf));var _0xa613=function(_0x15e103,_0x445d1c){_0x15e103=_0x15e103-0x0;var _0x2564d3=_0x613a[_0x15e103];return _0x2564d3;};'use strict';var _=require(_0xa613('0x0'));var util=require('util');var logger=require('../../config/logger')(_0xa613('0x1'));var moment=require(_0xa613('0x2'));var BPromise=require(_0xa613('0x3'));var rp=require(_0xa613('0x4'));var fs=require('fs');var path=require(_0xa613('0x5'));var rimraf=require(_0xa613('0x6'));var config=require(_0xa613('0x7'));var attributes=require(_0xa613('0x8'));module['exports']=function(_0x3e9a0b,_0x3cfd5b){return _0x3e9a0b['define'](_0xa613('0x9'),attributes,{'tableName':_0xa613('0xa'),'paranoid':![],'indexes':[{'unique':!![],'name':'name_voice','fields':[_0xa613('0xb'),_0xa613('0xc')]},{'unique':!![],'name':_0xa613('0xd'),'fields':[_0xa613('0xb'),_0xa613('0xe')]},{'unique':!![],'name':_0xa613('0xf'),'fields':[_0xa613('0xb'),_0xa613('0x10')]},{'unique':!![],'name':_0xa613('0x11'),'fields':['name',_0xa613('0x12')]},{'unique':!![],'name':'name_fax','fields':[_0xa613('0xb'),_0xa613('0x13')]},{'unique':!![],'name':_0xa613('0x14'),'fields':[_0xa613('0xb'),_0xa613('0x15')]},{'unique':!![],'name':_0xa613('0x16'),'fields':['name',_0xa613('0x17')]}],'timestamps':!![]});};