Built motion from commit (unavailable).|2.5.13
[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 _0x13fe=['name_openchannel','OpenchannelAccountId','name_whatsapp','WhatsappAccountId','lodash','util','../../config/logger','api','moment','bluebird','path','rimraf','../../config/environment','./disposition.attributes','exports','tools_dispositions','name_voice','name_chat','name','name_mail','SmsAccountId','FaxAccountId'];(function(_0x25012c,_0x2c98a7){var _0x3ade5b=function(_0x5cb02a){while(--_0x5cb02a){_0x25012c['push'](_0x25012c['shift']());}};_0x3ade5b(++_0x2c98a7);}(_0x13fe,0x138));var _0xe13f=function(_0xbb091,_0x3fe7ee){_0xbb091=_0xbb091-0x0;var _0x467a04=_0x13fe[_0xbb091];return _0x467a04;};'use strict';var _=require(_0xe13f('0x0'));var util=require(_0xe13f('0x1'));var logger=require(_0xe13f('0x2'))(_0xe13f('0x3'));var moment=require(_0xe13f('0x4'));var BPromise=require(_0xe13f('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xe13f('0x6'));var rimraf=require(_0xe13f('0x7'));var config=require(_0xe13f('0x8'));var attributes=require(_0xe13f('0x9'));module[_0xe13f('0xa')]=function(_0x1ddbff,_0x2832ce){return _0x1ddbff['define']('Disposition',attributes,{'tableName':_0xe13f('0xb'),'paranoid':![],'indexes':[{'unique':!![],'name':_0xe13f('0xc'),'fields':['name','ListId']},{'unique':!![],'name':_0xe13f('0xd'),'fields':[_0xe13f('0xe'),'ChatWebsiteId']},{'unique':!![],'name':_0xe13f('0xf'),'fields':[_0xe13f('0xe'),'MailAccountId']},{'unique':!![],'name':'name_sms','fields':[_0xe13f('0xe'),_0xe13f('0x10')]},{'unique':!![],'name':'name_fax','fields':['name',_0xe13f('0x11')]},{'unique':!![],'name':_0xe13f('0x12'),'fields':[_0xe13f('0xe'),_0xe13f('0x13')]},{'unique':!![],'name':_0xe13f('0x14'),'fields':['name',_0xe13f('0x15')]}],'timestamps':!![]});};